TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Txiki.js: Tiny JavaScript runtime built with QuickJS and libuv

96 点作者 juancampa将近 4 年前

11 条评论

saghul将近 4 年前
Oh nice to see this here! I’m the author of this little amalgamation, happy to answer any questions :-)<p>I just love small (for certain definitions of small) C libraries and got hooked to QuickJS the moment I tried it. After a few weekends of tinkering I had “quv” which was just QuickJS running on the libuv event loop. Later on I integrated curl and implemented xmlhttprequest on top of it. The last large change I made was to embed wasm3 as the WASM &#x2F; WASI runtime.<p>I haven’t had the time to continue working on it for a while, seeing this here might be the encouragement I needed! :-)
评论 #28025795 未加载
评论 #28032363 未加载
beebeepka将近 4 年前
Oh, goody. Last time I tried QuickJS it didn&#x27;t have support for asynchronous generators and proxies.<p>Thank you, Mr. Bellard and whoever is working on this runtime. Your work is appreciated
Zababa将近 4 年前
Since it&#x27;s presented as a &quot;tiny&quot; runtime, I&#x27;d like a size comparaison between this and Node in the readme. Same thing with the use cases (learning projects or &quot;just for fun&quot; are very valid use cases!).
评论 #28021621 未加载
评论 #28021510 未加载
jbeard4将近 4 年前
Fabrice Bellard is a legend.
windowojji将近 4 年前
For other small JS engines similar to QuickJS see Hermes: <a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;hermes" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;hermes</a>
评论 #28023680 未加载
评论 #28023733 未加载
truth_seeker将近 4 年前
Related :- <a href="https:&#x2F;&#x2F;github.com&#x2F;just-js&#x2F;just" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;just-js&#x2F;just</a>
gavinray将近 4 年前
Is this intended to be used with the C header as an embedded lib + runtime to add JS scripting support to applications?
评论 #28025148 未加载
mcfedr将近 4 年前
Good stuff, I&#x27;m interested, what&#x27;s the use case here? And what trade offs compared to nodejs are we making?
评论 #28025143 未加载
apatheticonion将近 4 年前
Can we compile this to WASM and compile JavaScript to a binary format that includes the runtime?
hungryforcodes将近 4 年前
So how does this compare to Espruino exactly -- which uses between 100K to 200K depending on which features you compile it with, has an excellent ecosystem, drivers for most hardware and acts alot like Node.
talhof8将近 4 年前
I wonder if multi-threaded JS will ever be a thing, despite the event-loop nature of the language
评论 #28025567 未加载
评论 #28025254 未加载