Better HN
topnewbestaskshowjobs
Log inSign up

theThree

236 karma · joined Mar 16, 2024 (2y ago) · 46 submissions

Submissions

comment 11mo ago · link · parent

I don't know if I'm the only one experiencing this: It's too hard to find the download link from their website.

comment 1y ago · link · parent

I developed a JS pg client that use pipeline mode by default: https://github.com/stanNthe5/pgline

3.

Java 25 Launch Stream(youtube.com ↗)

1 points · by theThree · 1y ago · discuss

comment 1y ago · link · parent

I'm using Bun, but I avoid using any Bun.* function, because I don't want to bind my typescript project to a runtime.

comment 1y ago · link · parent

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.

6.

PostgreSQL JavaScript client benchmark – pgline vs. pg vs. Bun.sql vs. Postgres(github.com ↗)

3 points · by theThree · 1y ago · discuss

7.

Rusdown: A Fast JavaScript Markdown Parser Powered by WASM/Rust(github.com ↗)

1 points · by theThree · 1y ago · discuss

8.

Dotenv's Promotion on Runtime Message(github.com ↗)

1 points · by theThree · 1y ago · discuss

comment 1y ago · link · parent

It still have issues. Example: `import foo from "./Foo"` doesn't work. You have to `import foo from "./Foo.ts"`

comment 1y ago · link · parent

Something like this?

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

11.

Node.js Added Watch-Mode(github.com ↗)

3 points · by theThree · 1y ago · discuss

12.

TypeScript-autoAwait: automatically add "async/await" on Tab(github.com ↗)

1 points · by theThree · 1y ago · discuss

comment 1y ago · link · parent

Async/await is the only thing prevent me from using Rust.

14.

PHP Pipe operator v3 Accepted(wiki.php.net ↗)

10 points · by theThree · 1y ago · discuss

comment 1y ago · link · parent

Good to see there is already a preview version (@typescript/native-preview). Can tsc/ts-node use it now?

comment 1y ago · link · parent

The fastest PostgreSQL Node driver written in TypeScript: https://github.com/stanNthe5/pgline

17.

Pgline – PostgreSQL node.js driver written in TypeScript(github.com ↗)

1 points · by theThree · 1y ago · discuss

18.

Show HN: Pgline – The fastest PostgreSQL driver for Node.js(github.com ↗)

2 points · by theThree · 1y ago · discuss

comment 1y ago · link · parent

Will do that. Thank you.

20.

A Go string concatenation library that is more efficient than strings.Builder(github.com ↗)

1 points · by theThree · 1y ago · 2 comments

comment 1y ago · link · parent

You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.

22.

Automatically add missing "async/await" keywords to your TypeScript code(github.com ↗)

7 points · by theThree · 1y ago · 7 comments

comment 1y ago · link · parent

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 "+").

comment 1y ago · link · parent

Maybe at some point. Their vsCode extension has 1M downloads, while Bun has 155k.

comment 1y ago · link · parent

In web backend, Node.js is not slower than Go.

comment 1y ago · link · parent

    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'.

comment 1y ago · link · parent

>That means you have 1 GiB in the pool.

This only happen when every request last 1 second.

comment 1y ago · link · parent

Chinese are unable to visit ChatGPT.
12