Khafra (@KhafraDev) profile picture

https://nitter.cf/t.co/n61HkMyWwN - https://nitter.cf/t.co/A1VAKwd7Sn (Node.js Core Collaborator)

Joined August 2020
JUST IN: Riemann Hypothesis has been solved. alpo.ge/remark.pdf
1,820
8,147
5,405
61,503
15,674,730
this is the kinda code we wrote before ai
1
2
110
Containers are Cloudflare's most underrated product, by far. Ignore the ai-first marketing, they're a fantastic product whenever you need something that would typically/previously require a VPS.
1
83
Due to AI, I have disabled external pull requests on all my repos. Open source, as we have known it, was fun while it lasted. (It’s been 15 years for me) I will still maintain projects and handle issues.
154
114
78
2,523
555,993
Don't use the global WebSocket in node. Coming from the person who originally implemented it, you really should not be using it. Use ws. You'll get a more consistent API since it doesn't pretend to be something it isn't.
2
124
I love @Cloudflare DurableObjects, but having incidents every 9 days on average since January is unacceptable. 20 incidents this year alone! new.cloudflarestatus.com/his…
3
3
134
9 incidents in August alone... :(
1
12
We made a huge mistake with the Fetch API. We brought it to the server.
10
6
2
82
23,624
Node apparently will have native .zip support, possibly in v27. I never thought I'd see the day, there were quite a few critics in the feature request (from 2022!). github.com/nodejs/node/pull/…
6
13
2
139
42,835
and as of v24.7.0, node:crypto implements argon2! I can drop quite a few dependencies
1
1
18
1,022
If anyone's interested, it's possible to get canvaskit-wasm working on Cloudflare Workers with 2 simple patches: 1. handle __dirname being undefined 2. implement the missing instantiateWasm hook gist.github.com/KhafraDev/88…
1
211
Yesterday I spent the entire day “coding” with my AI. Together we built a solid architecture. What did I do next? I told the AI: drop the worktree, delete everything. In a sense, you could say I wasted my whole Saturday. I tried something, and instead of letting the AI keep working on it, I chose to say no. Knowing when to say no, and then moving on, is an important skill. It applies just as much to a career. Many people stay stuck because they are told to do X, Y, and Z and cannot bring themselves to refuse. They waste years meeting other people’s expectations, only to realize later that they have been had. I have said no to many offers in my life. In a few cases, saying yes would have made me several times richer. I have no regrets. Had I said yes to everything, I would have been lost in pure mediocrity. You need focus. You must decide what actually needs to be done and do that, rather than everything else you might do. This remains true even if you are a junior in a bureaucratic setting. There are always moments when saying no is necessary for your own good. The same logic applies to AI coding. Your AI will happily generate enormous piles of code. It will offer to refactor the same code multiple times. It costs only a few tokens, why not say yes? Because that path leads straight to mediocrity. By saying no you will miss out. Perhaps the AI would have built a feature that truly mattered for your career. Sure. But you still have to say no a lot. Be picky. Be decisive. Have good taste.
21
11
1
195
21,824
I'm going to step away from maintaining undici (node's fetch/EventSource/WebSocket). AI has made maintaining it miserable. Every terrible idea now has free reign while taking up my time and piece-by-piece breaking down my patience and enjoyment.
2
1
19
1,498
This is unacceptable, come on Cloudflare
49
I had Fable whip this POC up... unfortunately node:quic isn't totally feature complete yet :)
3
528
This will probably cut my Cloudflare costs in half. Had Fable rewrite a bunch of workers to use this last night. nitter.cf/Cloudflare/status/2074…
2
247
Workers Cache — Your Cloudflare Worker now has its own tiered cache in front of it: blog.cloudflare.com/workers-… Workers Cache is a programmable tiered cache between Workers — even between code running in the same Worker we’ve seen pretty much every approach to caching over the years from our customers, and Workers Cache is the direct result of everything we’ve learned it takes all the workarounds and clever hacks we’ve seen to make sites and APIs fast, and simplifies them down to writing JavaScript and returning Cache-Control headers you can use for so much — for us this is like shipping 12 different things on the same day first up — you can use it to place your app near your database, cache its responses, and run code in front close to users:
16
65
20
403
90,331