Embedded SWE Rust & TypeScript first Building @pocket_js

HalfSweetIsland
Joined June 2019
难以想象的巨大成就
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!
1
1
19
2,762
Pipe retweeted
As much as I respect Chinese-made AI models and hardware, I'm equally puzzled by how rough most of the software still is. Whether it's Wechat or Alipay or HarmonyOS. You'd think getting unique aesthetics, perfect fidelity, and great flows would be "easy", but clearly it is not.
933
196
231
5,464
1,160,368
帮转
This quoted post is unavailable.
2
7
800
ok so i've been quietly making a logic analyzer app as a side project hehe~ it's called HSync ✨ rust core, tauri + vue on top. it runs DSLogic, ATK-Logic and PX-Logic analyzers on mac, windows and linux, and decodes your bus while it's still capturing it used to use sigrok's decoders, but i rewrote the whole decode stack in rust. the engine is called uiharu and now the cursed part: i write the decoders in typescript 🥺 before you yell at me!! the typescript never actually runs. it's just the DSL. a little compiler eats a strict subset of it, turns it into an IR, checks it and spits out rust. no JS runtime anywhere, pinky promise why ts tho? a decoder is basically a tiny state machine and ts already has everything it wants. events are just tagged unions. every read is an await, so a decoder can take a nap wherever the samples get cut and wake up later. and your editor already knows how to typecheck it, zero setup is it fast? yes!! (。•̀ᴗ-)✧ on the same machine my spi decoder is 52× faster than sigrok's python one on dense traffic and 27× faster on a sparse 16-channel capture. memory stays flat too, +0.3 MiB over 50M samples, while sigrok ate +291 MiB over 3.1M uiharu is written from the public specs with zero sigrok code in it, and the whole repo is going Apache-2.0 soon it's just a side project i poke at in my free time so pls be gentle 👉👈 issues, PRs and new decoders are all super welcome~ github.com/HalfSweet/HSync
14
3
2
34
4,223
很高兴今天能在 RustChinaConf 来和大家分享一些 @pocket_js 的新进展,也认识了很多有意思的朋友🥳 感谢 @blackanger 张老师的组织,期待下次再和大家见面,聊聊更多有趣的东西~ What if a UI framework were a compiler, not a runtime?
5
2
44
3,015
有没有来Rust China conf面基的小伙伴呀👀
在 Rust Conf China 上严肃学习 Omarchy 中
1
14
828
我也试试,根据我的所有推文画出我的形象 @grok
我也试试,根据我的所有推文画出我的形象 @grok
4
3
4
2,803
昨天去迪士尼团建,走得实在是太累了于是想休息一下,结果没想到被同事偷偷拍下来了🥹
25
103
2,849
其实我真的很不喜欢四分位的计数方式,我甚至认为以四分位数字分隔作为所谓的本地化方式是徒增成本 另外很奇怪的是,在过去中国人从来没有在意过四分位的问题,不管是存储容量还是网络带宽都是SI单位制。现在到了AI时代反而扣起这些细节,总感觉有点不伦不类 同样,我也不喜欢用B代替G
2
2
9
3,168
最近越来越觉得,TypeScript 其实超级适合拿来写 DSL 如果不执着于把它编译成 JS,也不一定要跑在 JS VM 上,那 TS 本身就是一门相当灵活、表达力很强的语言。而且它的类型系统真的很好用,可以把好多原本需要在业务逻辑里处理的复杂度,提前交给类型检查和编译器就可以解决了 仔细想想,谁规定 TypeScript 最后一定要变成 JavaScript 的嘛!TS 负责描述就好了,至于编译成什么、运行在哪里,全部交给编译器就好了啦
12
2
2
72
15,131
今天去尝试了一下拼豆,花了差不多4个小时拼出来了这两个东西。感觉还是蛮有趣的,上手也很简单,比摆电容轻松多了((( 下次有空的话想挑战点更复杂更有趣的图案
6
21
1,643
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.
24
148
14
1,584
61,644
看前两项还以为是ADI和Ti的芯片系列呢
This quoted post is unavailable.
1
24
1,232
搬完家,决定重新搭一套硬件实验台,顺便把老设备换一换 经过群友推荐之后买了这一套新的焊台,没想到现在适配JBC头的国产焊台只需要300多人民币了,并且一个烙铁头也只需要20+人民币。回想起在前司用烙铁头氧化的936给01005飞线的生活,那都是什么苦日子啊……
27
11
155
11,654
PocketJS now runs the Hero demo in just 1.3MB of runtime memory, down from 7.84MB. A round of memory fixes also eliminated the slow creep we were seeing over long runs. 8MB+ used to be the practical floor. Now ~4MB is enough for fairly large apps, opening the door to much cheaper ESP32 parts. Thanks @baobaoa_ for helping track these down!
1
1
1
20
3,172
PocketJS in 15 seconds. Generated by Opus 5.5
2
8
54
2,942
I've been experimenting with compiling TypeScript for MCUs, and I finally got PocketJS's layout and animation engines running on a GBA at 30fps It took a lot of optimizations in MicroTS, the compiler I'm building. Stay tuned for more!
10
11
4
232
37,953
努力工作了一上午,终于把新家的VRF接好了,现在终于可以在米家里面控制空调的参数和开关了。 不得不说在这种狭窄空间里面接线真是一件非常累的工作,电工师傅们确实很厉害 PS:图2是中途拍的照,不是最终接线状态,我有好好接到连接器里面的,绝对没有任何铜丝外露!
7
13
1,995
这个时候就要推荐一下我们的PocketJS项目了,你真的可以在UEFI里面用vue去写UI🎉🎉 xitter.cf/bookazoid_/status/2095…
2
7
1,609
虽然数据都丢失了,但是幸好有@lody_ai,这样至少提示词都还在,损失只有代码的实现(((
刚刚立完flag之后电脑就暴毙了,无法开机也进不去DFU,痛失一个mac mini😰
4
1
1
13
8,124