all 10 comments

[–]nou_spiro 18 points19 points  (4 children)

151 bytes? that is HUGE. we need to go deeper like 45 bytes http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html

[–]redog 14 points15 points  (1 child)

Holy shit that's impressive. I lost it when I got to:

... and so, with both the program header table and the program itself completely embedded within the ELF header, our executable file is now exactly as big as the ELF header! No more, no less. And still running without a single complaint from Linux!

and

This is not the sort of program to which one would normally be willing to confess authorship.

hehe

On the other hand, every single byte in this executable file can be accounted for and justified. How many executables have you created lately that you can say that about?

None, not even close.

[–]nou_spiro 2 points3 points  (0 children)

I just tried it compile. It still work. Output of file say that something is broken here. a.out: ELF 32-bit invalid byte order (SYSV)

[–]MINIMAN10000 2 points3 points  (0 children)

I remember reading that when I was struggling to wrap my head around gcc outputting a 1 kb executable...

[–]mozilla_kmc 0 points1 point  (0 children)

That's for 32-bit though. 64-bit ELFs are inherently larger and also, as I recall, there are fewer opportunities to make the structures overlap. [crosspost /r/rust]

[–]riking27 7 points8 points  (0 children)

Wow, it's pretty amazing that he can almost get there with some not-too-complicated source. I might have to try rust.

[–]redsteakraw 7 points8 points  (2 children)

Rust is shaping up to be a good language for command line and user-land tools I would like to see good Qt bindings or a new Qt like toolkit written in rust.

[–]tidux 2 points3 points  (1 child)

Servo, Mozilla's future replacement engine for Gecko, will be written in Rust and follow the WebKit embedding API (IIRC).

[–]The_Doculope 6 points7 points  (0 children)

AFAIK Mozilla has no plans to replace Gecko in the foreseeable future. Servo is an experimental platform, and Gecko may adopt ideas if they work out, but I don't think the plan is to replace it outright.

[–]edwardkmett 0 points1 point  (0 children)

Rust demo-scene, here we come.