HackerTrans
TopNewTrendsCommentsPastAskShowJobs

knocte

985 karmajoined vor 13 Jahren
Try my new FP lib for TypeScript: its name in npmjs.com is 'fp-sdk'

Submissions

Beware of infinite loops when using AI

github.com
1 points·by knocte·letzten Monat·0 comments

comments

knocte
·vorgestern·discuss
Yeah! This way TS at runtime would also benefit from the speedup, not just the compilation.
knocte
·vorgestern·discuss
> Python is strongly typed

Get the f*ck outta here.
knocte
·vor 9 Tagen·discuss
I shared your fear some weeks/months ago so I was always using my harness in the cloud. However, latency started to become an issue when I traveled to other countries where I needed a VPN... so I ended up cooking skynot to be able to trust running my harness in my own computer: https://github.com/tarsgate/skynot (PRs welcome if you want to add support for another harness different than Pi)
knocte
·letzten Monat·discuss
> and thankfully could not get anywhere near that today.

Because you're addicted to HN now and HN didn't exist by then?
knocte
·letzten Monat·discuss
That's why I don't even let my AI use my user account. If you are interested in this setup, use my tool 'skynot' or adopt a similar setup: https://github.com/tarsgate/skynot/
knocte
·letzten Monat·discuss
Funny to find this just now, when just yesterday I told an LLM "and please don't lecture me again on $factAboutSomeProgrammingSubject", and then the LLM proceeded to write wrong tests and just told me "alright, tests pass, I'm sorry for correcting you before...". It took me a while to find the wrong tests. Wasted time all around.
knocte
·vor 3 Monaten·discuss
None is not just another nullish value.

If you do a type check with None, and there is some value inside (so it is Some, not None), it is IMPOSSIBLE that the .value that you extract underneath is gone. This is an important race-condition that you might run into due to the nature of TS/JS, but by boxing the value with an immutable Option type, you're protected.

Also this prevents people to run into NullReferenceException (or UndefinedRefsExceptions, or whatever is called in this ecosystem) for people that didn't turn strictNullChecks ON.
knocte
·vor 3 Monaten·discuss
The real issue is the cancer practice in our software development industry of updating dependencies for the sake of updating.

Deps should be updated when you need some features or bugfixes from the new versions; not just when DependaBot prompts you to do it.

I see value in DependaBot and things like that only to check that your module still passes your CI with upgraded dependencies (and if not, then it's worth looking at the failure, to be prepared for the updgrade in the future).
knocte
·vor 3 Monaten·discuss
> below miner leaving rates.

What does this mean, sorry?

> the edge case collapse the entire system.

If you mean that if it reaches a certain point, the entire system will collapse, it means you don't understand the difficulty adjustment. If it's too expensive to mine, then some miners leave, which makes blocktimes be longer, but not to worry because the consequence of that it just that difficulty will go down, which means that you need less hashrate to mine (and maybe some of those miners that leave will come back because it is profitable again for them). This means that it is essentially impossible for all miners to leave at the same time; some of them stay even if at a loss, and some of them are just hobbyists that can already feed their miners with solar power (so there's really no loss for them in leaving them connected).
knocte
·vor 3 Monaten·discuss
Are there incentives for nodes to join the swarm (become a seeder)? If yes, how exactly, do they get paid in a decentralized way? Any URL where to get info about this?
knocte
·vor 3 Monaten·discuss
how do you know?
knocte
·vor 3 Monaten·discuss
Where did we lose you? we're talking about two flavours of null, not one.
knocte
·vor 3 Monaten·discuss
Maybe spit warnings when undefined is used? In the same way it does for when you use typeScript in a type-loose way.

But yeah it's a fair point. Sometimes I think I should just write my own lang (a subset of typescript), in the same fashion that Lisette dev has done.
knocte
·vor 3 Monaten·discuss
Yup, in my TODO list (I've only recently published this package). For now you can just check the tests, or a SO answer I wrote a while ago (before I published the idea as an npm package): https://stackoverflow.com/a/78937127/544947
knocte
·vor 3 Monaten·discuss
From your blog entry:

> Go was not satisfied with one billion dollar mistake, so they decided to have two flavors of NULL

Thanks for raising this kind of things in such a comprehensible way.

Now what I don't understand is that TypeScript, even if it was something to make JavaScript more bearable, didn't fix this! TS is even worse in this regard. And yet no one seems to care in the NodeJS ecosystem.

<selfPromotion>That's why I created my own Option type package in NPM in case it's useful for anyone: https://www.npmjs.com/package/fp-sdk </selfPromotion>
knocte
·vor 3 Monaten·discuss
With a small/minimalistic harness like Pi maybe it works well?
knocte
·vor 4 Monaten·discuss
Exactly. Any github alternative needs to consume same GithubActions syntax OOTB I'm afraid.
knocte
·vor 4 Monaten·discuss
Only the Long Range version of the Ioniq5 has decent range IMO. And BTW, the fact that it's an SUV is precisely a downside about it; smaller cars would have obviously more efficiency.
knocte
·vor 4 Monaten·discuss
> On long distance trips I spend 1 hour charging for every 2 hours driving

In Spain, I take ~600km trips every once in a while. I just need to charge once in the middle of the trip, in a super-charger that is. And the charge is 25min maximum.

Your experience varies is basically opposite from my experience. Your situation is probably influenced, indeed, by the poor choice of EVs you purchased (range is the most important factor for me to buy) and the lack of superchargers around your area.
knocte
·vor 4 Monaten·discuss
Or just run it in your VPS?