Rahul Sethi

4K posts

Rahul Sethi banner
Rahul Sethi

Rahul Sethi

@rahul1sethi

Principal Engineer @Cloudflare Workers

London Katılım Temmuz 2010
356 Takip Edilen194 Takipçiler
Jarred Sumner
Jarred Sumner@jarredsumner·
since musl/alpine people want smaller builds if we made a 50% smaller Bun binary that only supported American English in Intl.* APIs would that be worth it
English
51
5
135
33.7K
Rahul Sethi retweetledi
The Exploding Heads
The Exploding Heads@Exploding_Heads·
🎙️"It turns out all these years I've confused 'Journalist' with 'Mouthpiece.'" High profile political journalist excited to reveal that he's recently discovered how to do journalism, just in time for the change in government.
English
45
766
2.2K
323.8K
Rahul Sethi retweetledi
DCPetterson.bsky.social
DCPetterson.bsky.social@dcpetterson·
This is spectacular. Right on the money. Whoever wrote this absolutely understands our popular culture.
DCPetterson.bsky.social tweet media
English
754
17.6K
70.6K
2.7M
Rahul Sethi retweetledi
rita kozlov 🐀
rita kozlov 🐀@ritakozlov·
building on cloudflare workers + NPM packages just got a whole lot easier, with compatibility_flags = ["nodejs_compat_v2"] and by default, starting sept 26... you can see the meaningful difference in the coverage now available here: workers-nodejs-compat-matrix.pages.dev the team's work here, building on unenv really allows customers to have the best of both worlds — using the packages you need, without unnecessary bloat from polyfilling when it's not needed, and without a ton of tedious updates such as adding `node:` which makes it easy to miss. what's also cool is that it's easier to mock APIs that are not yet supported natively or via polyfill. you might wonder if this is useful, but we've found so many libraries over the years that import things without actually using them, so yes, this is a huge unblocker! great deep dive on the previous approaches, and how this makes it so much easier to build, highly recommend taking the team to 🤓
Cloudflare@Cloudflare

Cloudflare Workers now supports more NPM packages and Node.js APIs using an overhauled hybrid compatibility layer. cfl.re/4egifdU

English
11
24
207
71.6K
Rahul Sethi
Rahul Sethi@rahul1sethi·
@jasnell @jarredsumner What if you use req.clone() to proxy to multiple origins sequentially? Contrived example: const req2 = req.clone(); const res1 = await fetch(downstream1, req); const downstream2 = await res1.text(); const res2 = await fetch(downstream2, req2);
English
0
0
0
120
Jarred Sumner
Jarred Sumner@jarredsumner·
In the next version of Bun - response.clone() & req.clone() supports ReadableStream - .text(), .arrayBuffer(), .bytes() supports mixed content
Jarred Sumner tweet media
English
3
2
85
8.7K
Rahul Sethi
Rahul Sethi@rahul1sethi·
@lizisraad @JacobMGEvans Use positive padding to make the tappable area bigger than the element itself and use negative margin of the same value to negate any layout diff input[type=checkbox] { padding: 20px; margin: -20px; }
English
0
0
1
37
liz
liz@lizisraad·
How did they do this?
English
127
8
716
394.7K
Rahul Sethi
Rahul Sethi@rahul1sethi·
@boristane I get @chatsidhartha to stand by a laptop and press send at a specific time. It’s on him to build a slightly more efficient… workflow
English
1
0
3
177
boris
boris@boristane·
what do you use to schedule api calls in the future? say you want to schedule sending an email to a user precisely 63mins after they sign up?
English
74
2
51
32.3K
Rahul Sethi
Rahul Sethi@rahul1sethi·
@krupa1i As you’ve mentioned, hard copies come with the problem of staleness. I think digital — but local first — is the best trade off. Then download diff patches. Or redownload the whole updated thing but with tooling that showed you the diffs.
English
0
0
0
32
Rahul Sethi retweetledi
Dr Adam Rutherford
Dr Adam Rutherford@AdamRutherford·
Every word of this.
English
1
36
150
25.6K
Rahul Sethi retweetledi
Marina Purkiss
Marina Purkiss@MarinaPurkiss·
Darren from Reading is the kind of guy who makes you proud to be British…
English
154
543
2.9K
219.9K
Rahul Sethi
Rahul Sethi@rahul1sethi·
@jaffathecake Or maybe cheaper to keep a reference counter for each member in the functions scope and decrement when a closure gets GC’d. When a member’s reference counter hits 0 remove from the scope
English
2
0
0
27
Rahul Sethi retweetledi
Andrej Karpathy
Andrej Karpathy@karpathy·
To help explain the weirdness of LLM Tokenization I thought it could be amusing to translate every token to a unique emoji. This is a lot closer to truth - each token is basically its own little hieroglyph and the LLM has to learn (from scratch) what it all means based on training data statistics. So have some empathy the next time you ask an LLM how many letters 'r' there are in the word 'strawberry', because your question looks like this: 👩🏿‍❤️‍💋‍👨🏻🧔🏼🤾🏻‍♀️🙍‍♀️🧑‍🦼‍➡️🧑🏾‍🦼‍➡️🤙🏻✌🏿🈴🧙🏽‍♀️📏🙍‍♀️🧑‍🦽🧎‍♀🍏💂 Play with it here :) #scrollTo=75OlT3yhf9p5" target="_blank" rel="nofollow noopener">colab.research.google.com/drive/1SVS-ALf…
Andrej Karpathy tweet media
English
285
1K
7.5K
559.9K
Rahul Sethi
Rahul Sethi@rahul1sethi·
Is it just AirPods or all noise cancelling earphones that make the screeching on the tube 10x worse?
English
0
0
3
47
Rahul Sethi retweetledi
Jay Phelps
Jay Phelps@jayphelps·
There's irony in the fact that I'm most passionate about things like WebAssembly, custom programming languages, RxJS, etc. and yet I'll be the first to tell you you *probably* shouldn't be using them when you ask.
English
1
2
15
2.4K