TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

96 pointsby juancampaalmost 4 years ago

11 comments

saghulalmost 4 years ago
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 未加载
beebeepkaalmost 4 years ago
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
Zababaalmost 4 years ago
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 未加载
jbeard4almost 4 years ago
Fabrice Bellard is a legend.
windowojjialmost 4 years ago
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_seekeralmost 4 years ago
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>
gavinrayalmost 4 years ago
Is this intended to be used with the C header as an embedded lib + runtime to add JS scripting support to applications?
评论 #28025148 未加载
mcfedralmost 4 years ago
Good stuff, I&#x27;m interested, what&#x27;s the use case here? And what trade offs compared to nodejs are we making?
评论 #28025143 未加载
apatheticonionalmost 4 years ago
Can we compile this to WASM and compile JavaScript to a binary format that includes the runtime?
hungryforcodesalmost 4 years ago
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.
talhof8almost 4 years ago
I wonder if multi-threaded JS will ever be a thing, despite the event-loop nature of the language
评论 #28025567 未加载
评论 #28025254 未加载