Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mattgodbolt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
91.
▲
Emulating a BBC Micro in JavaScript (1h20 Video)
(youtube.com)
1 points
by
mattgodbolt
11y ago
|
0 comments
92.
▲
by
mattgodbolt
11y ago
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 :)
93.
▲
by
mattgodbolt
11y ago
I posted an article on this pretty recently: with optimisation on, Rust is comparable to C++ : http://xania.org/201505/on-rust-performance
94.
▲
by
mattgodbolt
11y ago
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
95.
▲
by
mattgodbolt
11y ago
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:
96.
▲
by
mattgodbolt
11y ago
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!
97.
▲
by
mattgodbolt
11y ago
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...
98.
▲
by
mattgodbolt
11y ago
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!
99.
▲
by
mattgodbolt
11y ago
As of just now, zindex and zq now support field-based indexing. Hope this helps your use case!
100.
▲
by
mattgodbolt
11y ago
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 ca
101.
▲
by
mattgodbolt
11y ago
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 zi
102.
▲
by
mattgodbolt
11y ago
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 M
103.
▲
by
mattgodbolt
11y ago
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
104.
▲
by
mattgodbolt
11y ago
Interesting point, thanks for the link! For my use case I wanted to put stuff together without writing too much novel code; zindex uses a SQLite file to store indices and checkpoints. I'm hoping to add json support to zq/zindex,
105.
▲
Show HN: Efficiently searching compressed text files
(github.com)
125 points
by
mattgodbolt
11y ago
|
35 comments
106.
▲
by
mattgodbolt
11y ago
Took a little longer than I'd hoped but GCC explorer now has support for GCC 5.1 : https://gcc.godbolt.org It doesn't support LTO as yet due to the way it works so some of the juicier optimisations aren't visible.
107.
▲
Show HN: A simple embedded websocket server in C++
(xania.org)
5 points
by
mattgodbolt
12y ago
|
0 comments
108.
▲
by
mattgodbolt
12y ago
Cool! I will give that a go. The rest of the site is pretty geared around annotated assembler from the compiler but I've been meaning to add objdump like support for a while (if only to see things like opcode lengths for I-cache observ
109.
▲
by
mattgodbolt
12y ago
Absolutely: in fact the original "version" of GCC Explorer was inspired by me having a window with 'watch "g++ -O2 -S foo.cpp"' running next to the vi editor I was tweaking code with. I reckon that's prett
110.
▲
by
mattgodbolt
12y ago
No worries. The 6g version is now live but I suspect it doesn't do the code generator justice. It seems 6l also does some kind of optimisation and my hacks version o just running 6g -S isn't showing that up.
111.
▲
by
mattgodbolt
12y ago
Hi! Site author here. As you probably noticed, this viewer is based on "GCC explorer". Most compilers for most languages (rust, d, c++) have GCC-like modes where their command-line settings and outputs are GCC-like enough that onl
112.
▲
by
mattgodbolt
12y ago
This is correct: the posts above referring to "page swaps" are a little misleading. The only reason I can think of to keep things within one page is to reduce the load on the TLB, which caches logical-to-physical addresses and whi
113.
▲
How Misaligning Data Can Increase Performance 12x (2013)
(danluu.com)
98 points
by
mattgodbolt
12y ago
|
16 comments
114.
▲
Nibble sort competition winner on GCC Explorer
(url.godbolt.org)
7 points
by
mattgodbolt
12y ago
|
1 comments
115.
▲
An objected-oriented BASIC on ARM (2007)
(xania.org)
8 points
by
mattgodbolt
12y ago
|
0 comments
116.
▲
by
mattgodbolt
12y ago
This is why techniques like kernel bypass are used in high throughout or low latency systems like finance. Things like http://www.openonload.org/ This does tie you in to a specific network vendor but I can see the argument
117.
▲
Online C++ compiler now supports ARM64 and PowerPC
(xania.org)
3 points
by
mattgodbolt
12y ago
|
0 comments
118.
▲
Really Tiny Chess Program
(bbc.com)
1 points
by
mattgodbolt
12y ago
|
0 comments
119.
▲
A homebuilt MOS 6502 based microcomputer system
(grappendorf.net)
116 points
by
mattgodbolt
12y ago
|
29 comments
120.
▲
by
mattgodbolt
12y ago
That's a weakness of the article...sorry. I use it to handle error cases in otherwise very performant straight-line code.
More ›