HNHacker News
TopNewBestAskShowJobs

knocte

990 karma · joined March 20, 2013

Try my new FP lib for TypeScript: its name in npmjs.com is 'fp-sdk'
submissionscomments
knocte··on Shopify is moving from React Native back to Swift and Kotlin
Aight, I recognize I only skimmed through the comments, I was completely convinced it was a typo because it has to be a big coincidence that in a post about Shopify suddenly they talk about Spotify and it's not by mistake.
knocte··on Shopify is moving from React Native back to Swift and Kotlin
Actually, the first occurrence might have just been a typo (auto-correct?), but the second occurrence looks like slop directed at the previous comment.
knocte··on Nvidia agrees to acquire Hugging Face for $13B
I never said I paid, I was referring to my opensource repos.
knocte··on Nvidia agrees to acquire Hugging Face for $13B
Not a fan of defending GitHub, but TBH them launching GithubActions made me abandon all other CI platforms I was using in the past, I even left GitLab just for that.
knocte··on Rewriting in Rust
Did I just read an HN comment written by an AI? Looks sycophantic enough
knocte··on Go 1.27
Can proper Result/Option types be created for Go now?
knocte··on Stripe will reportedly acquire OpenRouter for $7B+
Why?
knocte··on Melatonin impairs morning cognition in healthy young adults (2023)
But how's this related to melatonin? Did you use it on those 7 years to progressively switch?
knocte··on Demis Hassabis has a plan to harness AI safely
Well, if he had proposed more concrete plans for what that body might do... but yeah, it seems too abstract that indeed sounds like a bureaucrat wanting to wrap everything under a big pile of paperwork.
knocte··on Demis Hassabis has a plan to harness AI safely
Am I the only one thinking this tweet is just a word salad with a lot of sauces and condiments?
knocte··on Show HN: Clawk – Give coding agents a disposable Linux VM, not your laptop
Or give them a dedicated user and you don't lose precious CPU cycles to run a VM/container: http://github.com/tarsgate/skynot
knocte··on TypeScript 7
Yeah! This way TS at runtime would also benefit from the speedup, not just the compilation.
knocte··on TypeScript 7
> Python is strongly typed

Get the f*ck outta here.

knocte··on ZCode – Harness for GLM-5.2
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··on A Man Who Reads Books for a Living
> and thankfully could not get anywhere near that today.

Because you're addicted to HN now and HN didn't exist by then?

knocte··on Codex just found a "workaround" of not having sudo on my PC
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··on Investigating how prompt politeness affects LLM accuracy (2025)
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··on Lisette a little language inspired by Rust that compiles to Go
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··on OpenAI's response to the Axios developer tool compromise
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··on Bitcoin miners are losing on every coin produced as difficulty drops
> 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··on Show HN: QVAC SDK, a universal JavaScript SDK for building local AI applications
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··on Lisette a little language inspired by Rust that compiles to Go
how do you know?
knocte··on Lisette a little language inspired by Rust that compiles to Go
Where did we lose you? we're talking about two flavours of null, not one.
knocte··on Lisette a little language inspired by Rust that compiles to Go
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··on Lisette a little language inspired by Rust that compiles to Go
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··on Lisette a little language inspired by Rust that compiles to Go
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··on Show HN: Apfel – The free AI already on your Mac
With a small/minimalistic harness like Pi maybe it works well?
knocte··on Moving from GitHub to Codeberg, for lazy people
Exactly. Any github alternative needs to consume same GithubActions syntax OOTB I'm afraid.
knocte··on How BYD got EV chargers to work almost as fast as gas pumps
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··on How BYD got EV chargers to work almost as fast as gas pumps
> 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.

Page 1 of 23Next →