Rahul Sethi
4K posts

Rahul Sethi
@rahul1sethi
Principal Engineer @Cloudflare Workers
London Katılım Temmuz 2010
356 Takip Edilen194 Takipçiler

@mitsuhiko @bielarusajed True but I don’t think it builds without at least one locale
English
Rahul Sethi retweetledi
Rahul Sethi retweetledi
Rahul Sethi retweetledi

@SnazzyLabs No case life has treated me well for a decade
English
Rahul Sethi retweetledi

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
Rahul Sethi retweetledi

The reason every story on this makes sure to reference her ethnicity in the headline is to make sure that you know that you don't have to actually get upset.
BBC Breaking News@BBCBreaking
American activist of Turkish origin, aged 26, shot dead by Israeli army during protest in the occupied West Bank, Palestinian media report bbc.in/3Xz5Ix0
English

@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

@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

@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

@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
Rahul Sethi retweetledi
Rahul Sethi retweetledi

@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

📝 JavaScript garbage collection doesn't work how I expected when it comes to closures. TIL!
jakearchibald.com/2024/garbage-c…
English
Rahul Sethi retweetledi

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…

English
Rahul Sethi retweetledi










