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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Compiler Explorer

208 点作者 gnanesh超过 6 年前

15 条评论

drej超过 6 年前
Matt Godbolt is a great speaker as well. I loved this talk that included a bit about the architecture behind his Compiler Explorer. The rest of his talk is super cool as well. E.g. closed form solutions from O(n) code? Compilers are awesome. <a href="https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=bSkpMdDe4g4" rel="nofollow">https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=bSkpMdDe4g4</a>
mouldysammich超过 6 年前
There is this thing that works similarly but for emacs: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;jgkamat&#x2F;rmsbolt" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;jgkamat&#x2F;rmsbolt</a> It seems pretty gosh darn spicy
评论 #18688878 未加载
nyrulez超过 6 年前
This is amazing for all computer science degree courses. I wish I had this when I was learning this stuff. Sadly, I think the truth is that most profs or students won&#x27;t know this platform exists.
评论 #18683347 未加载
评论 #18683953 未加载
tomalpha超过 6 年前
Nice to see this continues to get exposure. It remains awesome and every time I return to it Matt&#x27;s added some new nifty feature. More please Matt!
xvilka超过 6 年前
See also a command line tool[1] for this, written in Rust.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;ethanhs&#x2F;cce" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ethanhs&#x2F;cce</a>
评论 #18681042 未加载
评论 #18681065 未加载
WhitneyLand超过 6 年前
Really nice work by Matt. Haven’t seen a project before that makes some of that stuff quite so quick and simple.<p>Tangentially, anyone have a transpiler recommendation?<p>Started to look at Babel but it seems most inclined to targeting Javascript. Looking to go bidirectional between Python and a proprietary DSL.<p>Would have to reverse engineer the DSL grammmar I assume but it doesn’t seem very complex, so hearing of any good tooling would be interesting.
purple_ducks超过 6 年前
Legit 10&#x2F;10 for their displayed privacy policy.
kazinator超过 6 年前
Or, in one line of shell:<p><pre><code> echo &#x27;int square(int num) { return num*num; }&#x27; | gcc -S -x c - -o - </code></pre> How about this: open an editor on &quot;test.c&quot;. Then in another terminal window, run this script:<p><pre><code> #!&#x2F;bin&#x2F;sh rm -f test_copy.c while true ; do if [ test.c -nt test_copy.c ] ; then cp test.c test_copy.c clear gcc -S test_copy.c -o - fi sleep 0.3 done </code></pre> Every time you save test.c, the compiler output updates in the other shell window (within a fraction of a second).
评论 #18684292 未加载
jokh超过 6 年前
This would be really useful if it can be run offline. Much easier to use than writing code, compiling it with -S to produce assembly, then trawling through the assembly to look for the code you&#x27;re interested in.
评论 #18682238 未加载
评论 #18685281 未加载
评论 #18684078 未加载
评论 #18682272 未加载
评论 #18682062 未加载
sigjuice超过 6 年前
Is there a way to set this up to have two windows? One window to type code into and the other to run my program? I have been fiddling with the UI for a while, but can&#x27;t quite figure it out.
评论 #18686060 未加载
pjmlp超过 6 年前
It a very nice project.<p>I really like how it grew to encompass any language with AOT&#x2F;JIT compilers, as long as anyone is willing to support the language related tooling.
15116超过 6 年前
#incluide &quot;&#x2F;etc&#x2F;passwd&quot; ?
评论 #18680342 未加载
评论 #18680222 未加载
评论 #18685307 未加载
wener超过 6 年前
Godbolt is very impressive for learning assembly, I also post this 5 days ago <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18635399" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18635399</a>
robertsd247超过 6 年前
No perl?!?!?!?
评论 #18680933 未加载
评论 #18681046 未加载
评论 #18683452 未加载
singularity2001超过 6 年前
that&#x27;s such a wonderful tool, for which I have 0 usage