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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Boa: an experimental Javascript lexer, parser and compiler written in Rust

80 点作者 jayflux超过 4 年前

9 条评论

migueloller超过 4 年前
It&#x27;s very interesting to see how their benchmarks [1] progress over time. I would love to see a comparison with the alternatives. Perhaps that could show some of the benefits of writing this in Rust.<p>For another JavaScript parser, but written in TypeScript, check out Seafox [2]. It&#x27;s also self-hosted [3], which I always enjoy seeing.<p>[1] <a href="https:&#x2F;&#x2F;boa-dev.github.io&#x2F;boa&#x2F;dev&#x2F;bench&#x2F;" rel="nofollow">https:&#x2F;&#x2F;boa-dev.github.io&#x2F;boa&#x2F;dev&#x2F;bench&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;KFlash&#x2F;seafox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;KFlash&#x2F;seafox</a><p>[3] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Self-hosting_(compilers)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Self-hosting_(compilers)</a>
评论 #24665893 未加载
评论 #24666238 未加载
quesera超过 4 年前
&gt; Boa is an experimental Javascript lexer, parser and compiler written in Rust. It has support for some of the language, can be embedded in Rust projects fairly easily and also used from the command line.
kbr2000超过 4 年前
The older boa: <a href="http:&#x2F;&#x2F;www.boa.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.boa.org&#x2F;</a>
评论 #24664177 未加载
评论 #24665376 未加载
评论 #24664055 未加载
saurik超过 4 年前
Does anyone know what they mean by &quot;compiler&quot;? The README file on their repository didn&#x27;t expound on this. (I have a very fast parser and lexer for JavaScript written in C++ that is very compliant in Cycript--the main issues I sometimes see are in my hacky &quot;try to do everything in a single pass&quot;semantic optimizer pass I am doing to generate code, but that is of course optional--though I haven&#x27;t pushed updates to its repository in a few years despite my doing a lot of work on it... I kind of decided at some point I hated users. But I don&#x27;t have a &quot;compiler&quot; unless the meaning is &quot;compile from JavaScript to JavaScript&quot;, in which case it would be fun to benchmark it against boa and I might start doing that. It is just that it sounds a bit like boa is also executing the JavaScript?)
nynx超过 4 年前
What does compiler mean here in the context of Javascript?
评论 #24665616 未加载
jayflux超过 4 年前
There’s a talk about it here: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;_uD2pijcSi4" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;_uD2pijcSi4</a>
kondu超过 4 年前
Congrats :) the project has made so much progress since I last saw it a couple months ago
zeandcode超过 4 年前
This is interesting project made by rust
评论 #24663756 未加载
tsjq超过 4 年前
Pardon my language. That&#x27;s an utterly useless title and no description shared here either
评论 #24665367 未加载
评论 #24663881 未加载
评论 #24663931 未加载