Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pretzelhammer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
pretzelhammer
2y ago
As the article mentions, the test server had 12 cores. The Node.js server ran in "cluster mode" so that all 12 cores were utilized during benchmarking. You can see the implementation here (just ~20 lines of JS): https://
2.
▲
by
pretzelhammer
2y ago
Here's the list of my benchmark targets: https://github.com/pretzelhammer/using-rust-in-non-rust-serv... Vegeta, the tool I used for benchmarking, iterates through all those targets round-robin style while attacki
3.
▲
by
pretzelhammer
2y ago
Author here. The benchmarking tool I used for measuring response size was vegeta, which ignores HTTP headers in its measurements. I believe the difference in size is indeed in the QR code images themselves.
4.
▲
by
pretzelhammer
2y ago
Author here. I believe I generated both of those images using the Rust lib, they shouldn't be used for comparing the compression performance of the JS lib vs the Rust lib.
5.
▲
by
pretzelhammer
6y ago
I wrote 4 tiny brainfuck compilers in Rust targeting x86, ARM, WebAssembly, and LLVM. The code is 100% safe Rust and is dependency-free. Excluding shared code (just the brainfuck parser) each compiler is standalone and is between just 100-1
6.
▲
Show HN: Tiny Brainfuck Compilers Written in Rust
(github.com)
3 points
by
pretzelhammer
6y ago
|
1 comments
7.
▲
Learn Assembly with Too Many Brainfuck Compilers
(github.com)
5 points
by
pretzelhammer
6y ago
|
0 comments
8.
▲
by
pretzelhammer
6y ago
I also came to Rust from JS! I plan to write an article in the future comparing Rust to Typescript.
9.
▲
by
pretzelhammer
6y ago
Hi, document author here. I learned Rust because I was too scared to learn C++, lol. Rust has a steeper learning curve than most languages but it also has a very beginner-friendly and welcoming community. So don't be scared, you can do
10.
▲
by
pretzelhammer
6y ago
Hi, author here. I enjoy reading about programming and I think it's fun, just not _as fun_ as programming. I tried to choose my words carefully because I didn't want to come across like I was bashing reading. Perhaps I should have
11.
▲
by
pretzelhammer
6y ago
Hi, author here. Rustlings took me only a few hours but I came back to it after I had already finished reading The Book and finished about ~100 exercises between LeetCode and Exercism, so my experience with Rustlings wasn't that of a &
12.
▲
by
pretzelhammer
6y ago
A Rustacean recently started https://tourofrust.com/ as the Rust-version of the Tour of Go! It's still WIP but looks pretty great so far.