crafting good stuffs

Joined June 2024
If u truly believe in safe-Rust will bring u real safe, check out the only 0 unsafe Rust JavaScript implementation, consider those security problems from @Railway and PHP.
New from PocketJS: quickjs-oxide. A JavaScript interpreter modeled after QuickJS, implemented from scratch by AI in Rust with zero unsafe code, and the first of its kind to achieve performance competitive with the original QuickJS. We spent one month achieving a high Test262 pass rate, then another month cleaning up the code, getting rid of the AI slop, and reaching competitive performance with just a stack VM and reference counting. Over the last weekend at RustChinaConf, we rewrote the core into a register VM and achieved this level of performance in just two days. Now quickjs-oxide outperforms most non-JIT JavaScript engines on benchmarks like V8 v7 and the Octane suite, using only around 30% more memory than QuickJS, while maintaining zero lines of unsafe implementation code and no external dependencies except for BigInt support. Huge credit to @ericoolen_eric for making this happen, and massive thanks to our sponsor @ZephyrCloudIO for supporting the journey!
4
484
Ericoolen retweeted
还有分型赛跑测试,视频形式参考了 @pocket_js 发布 quickjs-oxide 时的演示视频
1
1
5
1,590
神了这个 b 视频
Today we're launching an exciting new project: Highlights Highlights is a syntax highlighter that outputs HTML. It improves on both speed and correctness compared to the existing industry standard libraries. It's an optional drop-in replacement in Diffs, and it's ready to use today. In fact, it's already powering diffshub․com! Check it out at diffs.com/highlights OR `pnpm install @​pierre/highlights`
1
2
326
还是希望证明,safe Rust 在做解释器虚拟机这件事情上努努力还是能摸到 C 语言的性能门槛。不要就这么放弃 intepreter 啊混蛋。
New from PocketJS: quickjs-oxide. A JavaScript interpreter modeled after QuickJS, implemented from scratch by AI in Rust with zero unsafe code, and the first of its kind to achieve performance competitive with the original QuickJS. We spent one month achieving a high Test262 pass rate, then another month cleaning up the code, getting rid of the AI slop, and reaching competitive performance with just a stack VM and reference counting. Over the last weekend at RustChinaConf, we rewrote the core into a register VM and achieved this level of performance in just two days. Now quickjs-oxide outperforms most non-JIT JavaScript engines on benchmarks like V8 v7 and the Octane suite, using only around 30% more memory than QuickJS, while maintaining zero lines of unsafe implementation code and no external dependencies except for BigInt support. Huge credit to @ericoolen_eric for making this happen, and massive thanks to our sponsor @ZephyrCloudIO for supporting the journey!
2
2
17
4,068
almost forgot, thanks so much for @lfk_dsk 's contribution and support for this project also!
1
37
news.ycombinator.com/item?id… 这是hn上对这篇文章的讨论,也有很多关于性能优化十分有见解的经验
非常短但是很有价值的文章,如果我在quickjs-oxide初期就读到会少走很多弯路。基本上你需要在迭代中将你的性能测试控制在一个很小的大小(300ms),让它不会拖累agent的开发迭代,同时又能通过profiler揭示所有问题。足够小还能更简单的避免杂项和噪声的影响,而不是反过来。 matklad.github.io/2026/10/05…
2
17
3,313
非常短但是很有价值的文章,如果我在quickjs-oxide初期就读到会少走很多弯路。基本上你需要在迭代中将你的性能测试控制在一个很小的大小(300ms),让它不会拖累agent的开发迭代,同时又能通过profiler揭示所有问题。足够小还能更简单的避免杂项和噪声的影响,而不是反过来。 matklad.github.io/2026/10/05…
2
5
2
51
10,718
Ericoolen retweeted
New from PocketJS: quickjs-oxide. A JavaScript interpreter modeled after QuickJS, implemented from scratch by AI in Rust with zero unsafe code, and the first of its kind to achieve performance competitive with the original QuickJS. We spent one month achieving a high Test262 pass rate, then another month cleaning up the code, getting rid of the AI slop, and reaching competitive performance with just a stack VM and reference counting. Over the last weekend at RustChinaConf, we rewrote the core into a register VM and achieved this level of performance in just two days. Now quickjs-oxide outperforms most non-JIT JavaScript engines on benchmarks like V8 v7 and the Octane suite, using only around 30% more memory than QuickJS, while maintaining zero lines of unsafe implementation code and no external dependencies except for BigInt support. Huge credit to @ericoolen_eric for making this happen, and massive thanks to our sponsor @ZephyrCloudIO for supporting the journey!
11
8
5
114
22,699
kind of what we do and want in quickjs-oxide
写 rust-analyzer 的传奇大佬、TigerBeetle 核心工程师 matklad,刚写了一篇不到 300 字的短文,却在 Hacker News 吵翻了天。 他提出了一个极其反直觉的「性能测试 300ms 黄金法则」: 不要迷信纳秒级的复杂统计学测试框架。做 Micro-benchmark 时,直接调整输入规模,让耗时刚好卡在 300 毫秒。 为什么是 300ms?背后的工程哲学太通透了🧵👇
10
2,619
I seriously don't understand why people want AOT so much, we already have so many compiled languages with BS performance, JIT is so nice tbh.
i genuinely think good AOT JS/TS with full ecosystem compatibility would be the most exciting thing to happen to JavaScript since Node
1
1,404
Ericoolen retweeted
Behold, the ESP32 ball.
Readers added context they thought people might want to know
This is a popular product on AliExpress, TikTok shop and others. It was not invented by this user. It retails for about $55 USD on AliExpress. a.aliexpress.com/_mr4TNcR Beware potential drop-shipping scams.
323
569
126
9,043
396,366
Why Jai is still not available? plz
3
202
Too useful to be real.
I've published a new, general-purpose terminal specification that gives any program a way to tell the terminal what it's doing: idle, working, waiting, finished, or failed, and why. It is easy to implement on both sides. I've written more about why: mitchellh.com/writing/progra… The problem this solves is generic and applies in compelling ways to all sorts of use cases (e.g. package managers, build tools), but it really rears a hideous head when it comes to AI and the "agentic inbox" problem. I found over 250 different agent orchestrators (with various goals) that all individually implement a heuristic based approach to detecting whether things like Claude Code are working, blocked, done, etc. If you look at @herdrdev's commit history, you can see around 10 compatibility changes to detect Claude Code within just the past 3 months. (This isn't a dig at Herdr! They're doing great work with what they have, and everyone else is doing the same thing). Heuristics are not the way. And over-indexing on agentic use cases isn't the way, because this problem is really interesting for other tools too: Homebrew, Terraform, Cargo, etc. etc. Proprietary protocols and out of band APIs are not the way. They have an O(N) integration problem and require extra work to work over SSH or within local VMs/containers. The program status specification (OSC 7501) solves this in a reliable, deterministic way that is general-purpose and can be easily adopted by the entire industry. Read more: mitchellh.com/writing/progra…
246
为什么解决方案不是做一个 rust 解释器,开发过程中只用这个解释器,release 再 build
Replying to @LinearUncle
冷知识:Rust编译时间从 Rust 正式发布之后一直在优化,距今十年了。编译时间、性能和编译大小是不可能三角,需要根据项目来权衡。
1
3
2,989
Ericoolen retweeted
the most beautiful thing I’ve ever seen
260
172
45
4,430
990,789
15
943
35
8,392
75,268
38
1,499
128
13,403
176,550
crazy, x-platform 3d
What if the same game could feel native on every machine you love? PSP. PS Vita. Nintendo 3DS. iPod touch. Old Android. PocketJS is going 3D. Introducing Pocket3D.
4
227
Syntax used to reveal semantic design direction and taste, which we won't need in the future also.
Good news: we finally settled down that syntax is not that important
1
1
1
383