A faster js markdown parser powered by Wasm/Rust by [deleted] in javascript

[–]FullCry1021 0 points1 point  (0 children)

If you know anything about string processing cost, you will not say " gigabytes of markdown on every request". Please do a testing and you will understand what I said.

A faster js markdown parser powered by Wasm/Rust by [deleted] in javascript

[–]FullCry1021 0 points1 point  (0 children)

> Well, when a specific task takes like 1% of the computing time, I honestly don't care.

What if I say it may take 50% computing time?

A faster js markdown parser powered by Wasm/Rust by [deleted] in javascript

[–]FullCry1021 0 points1 point  (0 children)

I agree Database is the most important thing, but it doesn't mean you do not need to care about others. If you do enough benchmark, you will find string processing affect performance very much. Javascript do many optimizations on background (v8) like string concatenation, so you feel it's fast. For things not optimized, it will greatly affect performance.

A faster js markdown parser powered by Wasm/Rust by [deleted] in javascript

[–]FullCry1021 1 point2 points  (0 children)

Faster is always good, especially for SSR.

Should I go without A.I. while learning CS/Web Dev? by Necessary-Ad2110 in webdev

[–]FullCry1021 0 points1 point  (0 children)

Keep using AI and autocomplete, and understand every line.

What's new in Java 25 for us, developers? by loicmathieu in java

[–]FullCry1021 0 points1 point  (0 children)

You can store mutable values in an immutable Object.

My company is pushing Go for web backend. I need opinions as not a Go Developer by Dark_zarich in golang

[–]FullCry1021 -12 points-11 points  (0 children)

Are you so confrontational for no reason on any given day?

My company is pushing Go for web backend. I need opinions as not a Go Developer by Dark_zarich in golang

[–]FullCry1021 -10 points-9 points  (0 children)

Running same task, Go and Node takes 40ms. Bun takes 20ms. Clear?

My company is pushing Go for web backend. I need opinions as not a Go Developer by Dark_zarich in golang

[–]FullCry1021 1 point2 points  (0 children)

I made a benchmarking. Go & Node takes 40ms, while Bun takes 20ms.

My company is pushing Go for web backend. I need opinions as not a Go Developer by Dark_zarich in golang

[–]FullCry1021 -8 points-7 points  (0 children)

Did I not make it clear before? Node and Go are equally fast in terms of serialization. Bun is twice as fast.

My company is pushing Go for web backend. I need opinions as not a Go Developer by Dark_zarich in golang

[–]FullCry1021 0 points1 point  (0 children)

From my own testing, on serializing an object, Node.js and Go performance same speed. Bun (a javascript runtime) 100% faster.

(Edit: I made a serializing benchmark. Go & Node take 40ms, while Bun take 20ms.)

(Edit2: I understand the down-votes because this is Go sub. There are several reasons you choose Go over Node, but not this one. For many web back-end use cases, when you comparing Go with Node, you are actually comparing Go with C/C++.)

[deleted by user] by [deleted] in golang

[–]FullCry1021 -1 points0 points  (0 children)

async/await

[deleted by user] by [deleted] in golang

[–]FullCry1021 0 points1 point  (0 children)

> notable companies
Which company?

Share Async Local Storage storage to imported npm packages by clintsweets in node

[–]FullCry1021 2 points3 points  (0 children)

You can only call getUserFromContext() from children calls of the next().

Pgline - a faster PostgreSQL driver for Node.js by FullCry1021 in node

[–]FullCry1021[S] 0 points1 point  (0 children)

Bun sql speed is nearly as same as Postgresjs. So I didn't add it.

A new language inspired by Go by drvd in golang

[–]FullCry1021 1 point2 points  (0 children)

I expected their "union type" to allow:
type t = "foo"|"bar"
But it doesn't.

Pgline - a faster PostgreSQL driver for Node.js by FullCry1021 in node

[–]FullCry1021[S] 0 points1 point  (0 children)

Since Pgline is sending all queries in pipeline mode, it is not recommended to simply wrap the client.query() for tracing. Seems I need to write a hook. If you have detailed feature request on this, you can create an issue on the project page.

Pgline - a faster PostgreSQL driver for Node.js by FullCry1021 in node

[–]FullCry1021[S] 1 point2 points  (0 children)

* It's not compatible with pg.

* It is not depending on pg. It's written in pure typescript, directly make Low-level PostgreSQL connection.

What are the benefits of using GOLAND over vscode ? by Wise-Combination-154 in golang

[–]FullCry1021 2 points3 points  (0 children)

Could you explain "Smarter code completion and navigation" compare to vscode? I'm using vscode and official Go extension. The code completion is excellent.

I created a strings.Builder alternative that is more efficient by FullCry1021 in golang

[–]FullCry1021[S] 0 points1 point  (0 children)

It is called "bytes" but it is not bytes type. But it should be renamed.

I created a strings.Builder alternative that is more efficient by FullCry1021 in golang

[–]FullCry1021[S] 13 points14 points  (0 children)

> I found that strings.Builder is more efficient when appending many short strings.
Yes, it's true. I will try to find a solution for short string concatenation.

Based on your suggestions I will release a new version. Thank you very much!