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.

Compiler Explorer

208 pointsby gnaneshover 6 years ago

15 comments

drejover 6 years ago
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>
mouldysammichover 6 years ago
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 未加载
nyrulezover 6 years ago
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 未加载
tomalphaover 6 years ago
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!
xvilkaover 6 years ago
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 未加载
WhitneyLandover 6 years ago
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_ducksover 6 years ago
Legit 10&#x2F;10 for their displayed privacy policy.
kazinatorover 6 years ago
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 未加载
jokhover 6 years ago
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 未加载
sigjuiceover 6 years ago
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 未加载
pjmlpover 6 years ago
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.
15116over 6 years ago
#incluide &quot;&#x2F;etc&#x2F;passwd&quot; ?
评论 #18680342 未加载
评论 #18680222 未加载
评论 #18685307 未加载
wenerover 6 years ago
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>
robertsd247over 6 years ago
No perl?!?!?!?
评论 #18680933 未加载
评论 #18681046 未加载
评论 #18683452 未加载
singularity2001over 6 years ago
that&#x27;s such a wonderful tool, for which I have 0 usage