News for hackers. Stuff that matters.

theThree

Re:I Tried Gleam for Advent of Code, and I Get the Hype on Saturday December 13, 2025 @06:21PM (#46259201)
I don't know if I'm the only one experiencing this: It's too hard to find the download link from their website.
Re:Pipelining in psql (PostgreSQL 18) on Sunday October 12, 2025 @05:10AM (#45556686)
I developed a JS pg client that use pipeline mode by default: https://github.com/stanNthe5/pgline
Re:Node.js can now execute TypeScript files on Sunday August 17, 2025 @09:53PM (#44936646)
I'm using Bun, but I avoid using any Bun.* function, because I don't want to bind my typescript project to a runtime.
Re:Modern Node.js Patterns on Sunday August 03, 2025 @07:06PM (#44780587)
It's still not ready for use. I don't care Enum. But you can not import local files without extensions. You can not define class properties in constructor.
It still have issues. Example: `import foo from "./Foo"` doesn't work. You have to `import foo from "./Foo.ts"`
Re:A job queue in two lines of JavaScript on Monday July 14, 2025 @12:22AM (#44556431)
Something like this?

async function runTasks(tasks: Job[]) { for (let task of tasks) { try { await task() } catch (e) { } } }

Re:10 Years of Betting on Rust on Thursday June 05, 2025 @08:01AM (#44190760)
Async/await is the only thing prevent me from using Rust.
Good to see there is already a preview version (@typescript/native-preview). Can tsc/ts-node use it now?
Re:Ask HN: What are you working on? (May 2025) on Sunday May 25, 2025 @04:18PM (#44090716)
The fastest PostgreSQL Node driver written in TypeScript: https://github.com/stanNthe5/pgline
Will do that. Thank you.
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
Re:Deno's Decline on Thursday May 01, 2025 @09:19PM (#43865206)
From my own testing. In high-concurrency scenarios, their performance is roughly the same, and Node uses less memory. When it comes to string concatenation, Go has to do a lot of extra work (no "+",Estimating string length, Preallocate memory ) just to catch up with the speed of Node (simply using "+").
Re:Deno's Decline on Thursday May 01, 2025 @09:01PM (#43865121)
Maybe at some point. Their vsCode extension has 1M downloads, while Bun has 155k.
Re:Deno's Decline on Thursday May 01, 2025 @07:43PM (#43864632)
In web backend, Node.js is not slower than Go.
Re:On JavaScript's Weirdness on Friday April 04, 2025 @09:09AM (#43581779)

    function f1(a:number, b:number, c:number, d:number) {
        [a, b] = [b, a]
        [c, d] = [d, c]
        console.log(a, b, c, d)
    }
For the above codes Typescript gives error message: Type 'number[]' is not assignable to type 'number'.
Re:Go Optimization Guide on Tuesday April 01, 2025 @04:08PM (#43550822)
>That means you have 1 GiB in the pool.

This only happen when every request last 1 second.

Re:DeepSeek surpasses ChatGPT in new monthly visits on Monday March 31, 2025 @03:03PM (#43538532)
Chinese are unable to visit ChatGPT.

Older »