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.

Roll your own JavaScript runtime, pt. 3

126 pointsby danielskoglyabout 2 years ago

5 comments

olliejabout 2 years ago
This is not any kind of &quot;rolling your own JS runtime&quot;. This is &quot;use our framework to use v8 from rust&quot;. What an obnoxious title.<p>v8 is a JS runtime. JSC is a JS runtime. SpiderMonkey is a JS runtime.<p>All of these are embeddable and have usable APIs. If all you are doing, is linking to a JS runtime, and then using it, you aren&#x27;t &quot;rolling your own runtime&quot;.<p>If you want to roll your own JS runtime go look at how the LibJS folk in serenity did it - they did it without corporate backing and despite that I believe LibJS is fairly complete even with the new draft language features, albeit lacking a decade or so of performance optimizations.
评论 #35821086 未加载
评论 #35823169 未加载
评论 #35821815 未加载
评论 #35821925 未加载
评论 #35827004 未加载
评论 #35821090 未加载
评论 #35824652 未加载
tbillingtonabout 2 years ago
I made a demo integrating deno and sqlite into a quasi-&quot;lambda&quot; runtime in 200 lines for a rust meetup talk, if anyone is interested <a href="https:&#x2F;&#x2F;github.com&#x2F;tbillington&#x2F;rust_serverless_runtime">https:&#x2F;&#x2F;github.com&#x2F;tbillington&#x2F;rust_serverless_runtime</a>.
rickbuttonabout 2 years ago
roll your own runtime does not imply to me `import runtime from &quot;runtime&quot;;` but this seems to just be &quot;include deno and use deno&quot;?
评论 #35820859 未加载
评论 #35820823 未加载
obpeabout 2 years ago
JS has improved a lot over the years but I am not sure I would want it as the default scripting language for applications. JS is really only useful because it&#x27;s the language you access the browser&#x27;s API with. If you are creating a different kind of application and therefore don&#x27;t need the DOM or other browser things then why JS at all? Having worked with Lua for some game mods, it seems like a better choice for an integrated language. Maybe a Rust inspired language would make a better fit for a modern DSL... insert XKCD comic about standards proliferation.
评论 #35821849 未加载
评论 #35821996 未加载
评论 #35822161 未加载
评论 #35821887 未加载
评论 #35823888 未加载
评论 #35822252 未加载
FascistDonutabout 2 years ago
When&#x2F;why would you want to do this? I went to pt. 1 but it didn&#x27;t seem clear.
评论 #35821114 未加载
评论 #35821162 未加载
评论 #35823700 未加载
评论 #35822226 未加载