[HN Gopher] Compiler Explorer
       ___________________________________________________________________
        
       Compiler Explorer
        
       Author : rbanffy
       Score  : 68 points
       Date   : 2024-05-14 16:42 UTC (6 hours ago)
        
 (HTM) web link (thechipletter.substack.com)
 (TXT) w3m dump (thechipletter.substack.com)
        
       | p0w3n3d wrote:
       | For me (on every domain highlighted in github) it's
       | //ATypeAyourAcodeAhere,AorAloadAanAexample.
       | intAsquare(intAnum)A{
       | 
       | which renders the code unreadable
        
         | p0w3n3d wrote:
         | apparently those are fonts 'Liberation mono' and 'Consolas' on
         | macos
        
       | klelatti wrote:
       | Author here. Thanks for all the upvotes - and Compiler Explorer
       | is awesome - but I'm not sure this should be on the front page as
       | it's mostly a collection of links. @dang
        
         | sfink wrote:
         | I disagree. I found it to be a very nice approachable high-
         | level walkthrough of what CE can do. I've used CE for various
         | things, but still learned about several capabilities that I
         | didn't know about and can make use of.
         | 
         | And calling something like this just "a collection of links"...
         | have you _seen_ the crap that passes for a web page on today 's
         | web? I'll take a manually curated collection of links with some
         | useful commentary any day over the AI-generated "here are 30
         | answers to your question and several similar questions, with
         | repeats and contradictory answers thrown in for free" things I
         | find all over the place.
        
         | gwbas1c wrote:
         | > but I'm not sure this should be on the front page as it's
         | mostly a collection of links
         | 
         | I disagree. A lot of time there's a link to a project on Hacker
         | News without any kind of about page. I _significantly_ prefer
         | to go to an about  / demo page that tells me about the tool,
         | with links to the tool itself.
         | 
         | > Disclaimer: We are now entering a 'rabbit hole' that may
         | consume several hours of your time.
         | 
         | I really enjoyed skimming the article; seeing your results
         | instead of taking the time to learn how to use the tool and
         | generate similar results.
        
       | almostgotcaught wrote:
       | I have never seen it called anything other than godbolt and
       | rightfully so because it's a fantastic, free, open source tool
       | (so that guy deserves all the notoriety furnished by everyone
       | knowing the tool by only his name).
        
       | dang wrote:
       | Related. Others?
       | 
       |  _The Compiler Explorer Story - Matt Godbolt_ -
       | https://news.ycombinator.com/item?id=40140698 - April 2024 (5
       | comments)
       | 
       |  _Matt Godbolt: Five things you didn 't realise your CPU did for
       | you_ - https://news.ycombinator.com/item?id=33312400 - Oct 2022
       | (16 comments)
       | 
       |  _Compiler Explorer_ -
       | https://news.ycombinator.com/item?id=33224542 - Oct 2022 (107
       | comments)
       | 
       |  _Happy 10th Birthday Compiler Explorer_ -
       | https://news.ycombinator.com/item?id=31470251 - May 2022 (20
       | comments)
       | 
       |  _Compiler Explorer_ -
       | https://news.ycombinator.com/item?id=24066570 - Aug 2020 (48
       | comments)
       | 
       |  _Compiler Explorer_ -
       | https://news.ycombinator.com/item?id=18671993 - Dec 2018 (44
       | comments)
       | 
       |  _How it works: Compiler Explorer_ -
       | https://news.ycombinator.com/item?id=16295493 - Feb 2018 (25
       | comments)
       | 
       |  _Godbolt: Enter C, get Assembly_ -
       | https://news.ycombinator.com/item?id=13182726 - Dec 2016 (151
       | comments)
       | 
       |  _Compiler Explorer - now with side-by-side compiler comparison_
       | - https://news.ycombinator.com/item?id=12627295 - Oct 2016 (6
       | comments)
       | 
       |  _Compiler Explorer_ -
       | https://news.ycombinator.com/item?id=11671730 - May 2016 (38
       | comments)
       | 
       |  _Interactive C++ Assembly Explorer_ -
       | https://news.ycombinator.com/item?id=9861294 - July 2015 (8
       | comments)
       | 
       |  _See What Your C Function Compiles To_ -
       | https://news.ycombinator.com/item?id=9808870 - June 2015 (2
       | comments)
       | 
       |  _Interactive Go source to assembly_ -
       | https://news.ycombinator.com/item?id=9085158 - Feb 2015 (12
       | comments)
       | 
       |  _Nibble sort competition winner on GCC Explorer_ -
       | https://news.ycombinator.com/item?id=9049864 - Feb 2015 (1
       | comment)
       | 
       |  _C /C++ Fiddle_ - https://news.ycombinator.com/item?id=7593109 -
       | April 2014 (40 comments)
       | 
       |  _Interactively watch how your C++ gets compiled._ -
       | https://news.ycombinator.com/item?id=4020814 - May 2012 (1
       | comment)
        
       | orlp wrote:
       | As a low-level performance-oriented engineer I use the Compiler
       | Explorer almost every day. It is a great tool, give it a try.
        
       | jlarocco wrote:
       | Is Common Lisp the only language with this built-in?
       | CL-USER> (defun foo (a b)                    (declare (optimize
       | (speed 3))                             (type fixnum a b))
       | (+ a b))         FOO                  CL-USER> (disassemble
       | #'foo)                  ; disassembly for FOO         ; Size: 23
       | bytes. Origin: #x1002230744                        ; FOO
       | ; 44:       4801FA           ADD RDX, RDI         ; 47:
       | 48D1E2           SHL RDX, 1         ; 4A:       710A
       | JNO L0         ; 4C:       48D1DA           RCR RDX, 1         ;
       | 4F:       FF1425F00C1050   CALL [#x50100CF0]                ; SB-
       | VM::ALLOC-SIGNED-BIGNUM-IN-RDX         ; 56: L0:   C9
       | LEAVE         ; 57:       F8               CLC         ; 58:
       | C3               RET         ; 59:       CC10             INT3 16
       | ; Invalid argument count trap         NIL                  CL-
       | USER>
       | 
       | The Emacs Lisp mode has support for it, too - I have Alt-F8 open
       | the disassembly of the current function in a new window next to
       | the current window.
        
         | nick__m wrote:
         | Julia has it it's called code_native
         | http://www.jlhub.com/julia/manual/en/function/code_native
        
       ___________________________________________________________________
       (page generated 2024-05-14 23:01 UTC)