HackerTrans
TopNewTrendsCommentsPastAskShowJobs

theThree

no profile record

Submissions

Java 25 Launch Stream

youtube.com
1 points·by theThree·قبل 10 أشهر·0 comments

PostgreSQL JavaScript client benchmark – pgline vs. pg vs. Bun.sql vs. Postgres

github.com
3 points·by theThree·قبل 12 شهرًا·0 comments

Rusdown: A Fast JavaScript Markdown Parser Powered by WASM/Rust

github.com
1 points·by theThree·قبل 12 شهرًا·0 comments

Dotenv's Promotion on Runtime Message

github.com
1 points·by theThree·قبل 12 شهرًا·0 comments

Node.js Added Watch-Mode

github.com
3 points·by theThree·السنة الماضية·0 comments

TypeScript-autoAwait: automatically add "async/await" on Tab

github.com
1 points·by theThree·السنة الماضية·0 comments

PHP Pipe operator v3 Accepted

wiki.php.net
10 points·by theThree·السنة الماضية·0 comments

Pgline – PostgreSQL node.js driver written in TypeScript

github.com
1 points·by theThree·السنة الماضية·0 comments

Show HN: Pgline – The fastest PostgreSQL driver for Node.js

github.com
2 points·by theThree·السنة الماضية·0 comments

A Go string concatenation library that is more efficient than strings.Builder

github.com
1 points·by theThree·السنة الماضية·2 comments

Automatically add missing "async/await" keywords to your TypeScript code

github.com
7 points·by theThree·السنة الماضية·7 comments

Show HN: A string Enum generator for Go lang

github.com
2 points·by theThree·السنة الماضية·0 comments

GoSync: Go-style channel and waitGroup for Node.js

github.com
2 points·by theThree·السنة الماضية·0 comments

PHP True Async

externals.io
4 points·by theThree·السنة الماضية·0 comments

PHP 8.4

php.net
486 points·by theThree·قبل سنتين·323 comments

comments

theThree
·قبل 7 أشهر·discuss
I don't know if I'm the only one experiencing this: It's too hard to find the download link from their website.
theThree
·قبل 9 أشهر·discuss
I developed a JS pg client that use pipeline mode by default: https://github.com/stanNthe5/pgline
theThree
·قبل 11 شهرًا·discuss
I'm using Bun, but I avoid using any Bun.* function, because I don't want to bind my typescript project to a runtime.
theThree
·قبل 11 شهرًا·discuss
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.
theThree
·قبل 12 شهرًا·discuss
It still have issues. Example: `import foo from "./Foo"` doesn't work. You have to `import foo from "./Foo.ts"`
theThree
·السنة الماضية·discuss
Something like this?

async function runTasks(tasks: Job[]) { for (let task of tasks) { try { await task() } catch (e) { } } }
theThree
·السنة الماضية·discuss
Async/await is the only thing prevent me from using Rust.
theThree
·السنة الماضية·discuss
Good to see there is already a preview version (@typescript/native-preview). Can tsc/ts-node use it now?
theThree
·السنة الماضية·discuss
The fastest PostgreSQL Node driver written in TypeScript: https://github.com/stanNthe5/pgline
theThree
·السنة الماضية·discuss
Will do that. Thank you.
theThree
·السنة الماضية·discuss
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
theThree
·السنة الماضية·discuss
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 "+").
theThree
·السنة الماضية·discuss
Maybe at some point. Their vsCode extension has 1M downloads, while Bun has 155k.
theThree
·السنة الماضية·discuss
In web backend, Node.js is not slower than Go.
theThree
·السنة الماضية·discuss


    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'.
theThree
·السنة الماضية·discuss
>That means you have 1 GiB in the pool.

This only happen when every request last 1 second.
theThree
·السنة الماضية·discuss
Chinese are unable to visit ChatGPT.
theThree
·السنة الماضية·discuss
Can anyone explain to me what is "TypeScript types“?
theThree
·السنة الماضية·discuss
The appeal of Go is goroutine.
theThree
·السنة الماضية·discuss
> a, b := 20, 30 // accepted. why ??

I guess it is a dept of error handling. Otherwise you have to write "foo,err1 := Foo();bar,err2 := Bar(),.."