HNHacker News
TopNewBestAskShowJobs

mattgodbolt

1,194 karma · joined March 1, 2014

Master-of-none developer. Ex-games industry, ex-Google, ex-startup.

Primary hacker of Compiler Explorer - https://godbolt.org

Mucks about with Javascript emulators - https://miracle.xania.org, https://bbc.xania.org/ and in C++ too https://spectrum.xania.org

Some OSS on https://github.com/mattgodbolt/ and https://github.com/compiler-explorer

submissionscomments
mattgodbolt··on How it works: Compiler Explorer
Given how much effort it is to compile and maintain 200 different compilers just for Ubuntu (not to mention some closed-source compilers), this probably is not as simple as you'd think :-)
mattgodbolt··on How it works: Compiler Explorer
Thanks ms for your kind words!
mattgodbolt··on How it works: Compiler Explorer
Oh wow! Hello from TheMoog hahah. Small world, eh?
mattgodbolt··on Godbolt: Enter C, get Assembly
Sadly the mobile support is pretty bad. It's on my list to fix at some point but requires a bunch of changes in the underlying window library (golden-layout.com), plus some work to reconfigure the layout for mobile.
mattgodbolt··on Compiler Explorer – now with side-by-side compiler comparison
Coming soon too: a diff view between two versions. Visual Studio is also coming soon, thanks to some help from Microsoft. The main holdback is the windows part of everything...(isn't it always!)
mattgodbolt··on Does a compiler use all x86 instructions? (2010)
https://gcc.godbolt.org/ may help too
mattgodbolt··on Emulating a 6502 in JavaScript [video]
Convenient clickable link to the emulation site itself: https://bbc.godbolt.org/
mattgodbolt··on Compiler Explorer
The supplied examples by design don't override the settings you've chosen: this lets you play independently with the text and the settings. It seems the original link here on HN was to a canned example with settings for C, which I think caused the confusion.
mattgodbolt··on Compiler Explorer
Please feel free to file some suggestions at https://github.com/mattgodbolt/gcc-explorer/issues :)
mattgodbolt··on Compiler Explorer
Not currently; I'd happily accept patches though! :)
mattgodbolt··on Compiler Explorer
Yeah...It started out as GCC only but then I added clang, and ICC and... naming is hard!
mattgodbolt··on Compiler Explorer
So far I've limited myself to compilers etc that model very closely on GCC; i.e. very similar compile options etc. I'd happily accept patches though...
mattgodbolt··on Compiler Explorer
Thanks; I'll take a look (feel free to file bugs on github https://github.com/mattgodbolt/gcc-explorer/issues too)
mattgodbolt··on Compiler Explorer
It's not very discoverable but there are sister sites for Rust, Go and D:

https://rust.godbolt.org/ https://go.godbolt.org/ https://d.godbolt.org/

mattgodbolt··on Announcing Rust 1.7
Also at http://rust.godbolt.org/ should you wish to see the assembly code generated too.
mattgodbolt··on The Ivy Bridge and Haswell BTB
DRAM pages are indeed larger; but a single bus transaction does not have to read the whole DRAM page. Tons more info here: https://www.akkadia.org/drepper/cpumemory.pdf
mattgodbolt··on The Ivy Bridge and Haswell BTB
Thanks for the feedback! I must say graphs and whatnot are not my forté - I spent nearly two evenings trying to get them half-decent. Patches welcome, of course :)
mattgodbolt··on Michael Crichton and Computers
There's a typo in the heading "Chrichton" should be "Crichton".
mattgodbolt··on Interactive C++ Assembly Explorer
Thanks! It's a frequently requested feature but I've yet to find a decent way to present it. There's an issue tracker on GitHub that you're welcome to chime in on if you have ideas :)
mattgodbolt··on Interactive C++ Assembly Explorer
I posted an article on this pretty recently: with optimisation on, Rust is comparable to C++ :

http://xania.org/201505/on-rust-performance

mattgodbolt··on Interactive C++ Assembly Explorer
Thanks for the HN post! :)

Rust, Go, and D language explorers are https://<lang>.godbolt.org, e.g. https://rust.godbolt.org/ and so on

mattgodbolt··on Sophie Wilson, Acorn and the development of ARM
Weird and wonderful it was, but also amazingly hackable. Using similar tricks to the allocator, I was able to "ROM patch" RISC OS 3.1 to look like 3.5 [1] using only a few bytes of module space. I do miss those days :)

[1]: http://xania.org/201212/finallook-a-risc-os-3.1-hack

mattgodbolt··on X86 mov is turing complete: mov-only compiler
For a (hopefully!) more accessible introduction to the crazy world of what really happens inside the x86, I did a talk at GOTO: http://youtu.be/hgcNM-6wr34 - it's a really fascinating subject!
mattgodbolt··on Intel Buys Altera for $16.7B
FIX is usually sent and received as ASCII tags of the form NUM=value\x01 , not as XML.

Source: http://en.m.wikipedia.org/wiki/Financial_Information_eXchang...

mattgodbolt··on Asmttpd – Web server for Linux written in amd64 assembly
Indeed! Full details of the string routine at http://xania.org/201406/elites-crazy-string-format if you're interested in quite how mad it was!
mattgodbolt··on Show HN: Efficiently searching compressed text files
As of just now, zindex and zq now support field-based indexing. Hope this helps your use case!
mattgodbolt··on Show HN: Efficiently searching compressed text files
Great idea. zq uses the SQLite index built by zindex; so in theory I can modify it to use a 'WHERE index LIKE xxx' instead of 'WHERE index=xxx' -- then SQLish wildcards would be supported.

I've raised an issue to capture this use case; feel free to chime in there! :) https://github.com/mattgodbolt/zindex/issues/12

mattgodbolt··on Show HN: Efficiently searching compressed text files
Short reply as I'm on a phone, but thanks! I can add an option to pick the nth field, and to skip the first X lines of the input; I think this'd cover your use case!

The code and file format support multiple indices in the same zindex file but I haven't got a decent way to pass command line arguments to define them yet!

Watch this space: also feel free to ping me on email for more comments!

mattgodbolt··on Show HN: Efficiently searching compressed text files
Fantastic! I had hoped others would have the same problem as me. I didn't have the luxury of being able to change my many input gzip files (unlike BGZF).

The trick is to store the gzip internal state as a checkpoint every few hundred MB. Then to decode data at a particular offset, you find the further internal state that's before your offset; reinitialize the compression internal state with that, and then scan on until you get to the offset you need.

The zindex file that's generated contains both these checkpoints and the index that lets one scan there.

There's an open issue I'd like to resolve to add support for indexing a particular field: would support for arguments like those the "cut" UNIX utility allow for your use case?

mattgodbolt··on Show HN: Efficiently searching compressed text files
Thanks! For my logfiles it runs through them at around 3MB/sec (that's 3MB of compressed file per second). Most of it is probably I/O, my giant logs are on NFS.

I run the indexer in parallel on multiple log files: in general there's no way to parallelize the indexing of a single file as decompressing a gzipped file requires all the bytes up to that point. Unless you already have a gzip checkpoint around somewhere, you need to sequentially scan: this is part of what zindex does to allow quick random access.

Thanks for the feedback :)

← PreviousPage 3 of 5Next →