Category: node js

Bundle-time macros with Bun

June 1, 2023 By Mark Otto Off

JavaScript Macros in Bun — Not content with giving the JavaScript world a brand new bundler, Bun’s Jarred has taken it a bit further: ‘macros’ that run at bundle time with the result being directly inlined into your code. They use stage 3 annotated import…

All the ways to use Postgres from Node

May 30, 2023 By Mark Otto 0

▶  ‘I Tried 8 Different Postgres ORMs’ — A modern, fast-paced, and slightly irreverent meme-heavy look at the various ways in which you can interact with Postgres (provided serverless by Neon, in this case) from a backend JavaScript app. It’s pretty neat as whirlwind tours go.…

Microsoft shrunk the TypeScript

May 25, 2023 By Mark Otto Off

DeviceScript: TypeScript for Tiny Thingamabobs — DeviceScript is a new Microsoft effort to take the TypeScript experience to low-resource microcontroller-based devices. It’s compiled to a custom VM bytecode which can run in such constrained environments. (A bit like Go’s TinyGo.) It’s aimed at VS Code…

Node.js 20 is fast(er)

May 23, 2023 By Mark Otto 0

The State of Node.js Performance in 2023 — Nearform’s Rafael Gonzaga reflects on the recent release of Node 20 and puts it through its paces against v18.16 and v16.20 with a few different benchmark suites running on a pretty typical EC2 instance. He goes into…

jQuery lives on; major changes teased

May 18, 2023 By Mark Otto Off

Bun’s New Bundler: 220x Faster than webpack? — Bun is one of the newest JavaScript runtimes (built atop the JavaScriptCore engine) and focuses on speed while aiming to be a drop-in replacement for Node.js. This week’s v0.6.0 release is the ‘biggest release yet’ with standalone…

MS’s new tool for digging deep into V8

May 16, 2023 By Mark Otto 0

‘This Page is Hosted on My Android Phone’ — Since it’s been linked on some pretty big sites already, I don’t feel too guilty about linking it here too ???? This is a link to a blog being hosted from a $180 Android phone that’s…

Why Svelte is converting TypeScript to JSDoc

May 11, 2023 By Mark Otto Off

The JavaScript Ecosystem is Delightfully Weird — There are plenty of examples of how JavaScript is weird but Sam focuses on the why. If you’ve been a JS developer for many years you’ll have seen it go through many phases and morph to fit its…

Getting recursive with Node 20.1

May 9, 2023 By Mark Otto 0

???? That said, the fs readdir and opendir functions get a new recursive option which, a commenter notes, could replace some popular third party packages that do the same thing, such as recursive-readdir which gets over 5 million downloads a week(!) Smooth Logging for Node.js…

‘It’s a miracle anything about this ecosystem works at all.’

May 4, 2023 By Mark Otto Off

Psst.. if you’re wondering about the context of today’s subject line, see the first ⚡️ In Brief. Angular v16 Released — With the “biggest release since the initial rollout of Angular”, v16 of the extensive framework introduces a preview of a new signals-based reactivity model (a.k.a. Angular…

Running Node.js on the iPad?

May 2, 2023 By Mark Otto 0

Now Node.js Can Run on Every Major Browser Engine — The actual story is that WebContainers can now run on Safari, iOS and iPadOS much as they could on Firefox or Chrome before, meaning Node.js, too, can run directly within all of those browsers, if…