News for hackers. Stuff that matters.
Re:Very funny, gdb. Ve-ery funny by GFK_of_xmaspast on Saturday January 11, 2014 @12:47PM (#7043145)
"No really, there used to be Unices with a program called undump that did just that."

Isn't that how they used to build emacs, there was some multistage bootstrapping procedure that culminated in undump'ing a thing that got turned into a binary.

Re:Very funny, gdb. Ve-ery funny by jws on Saturday January 11, 2014 @12:53PM (#7043159)
emacs and some of the TeX programs worked that way. Maybe they still do. I haven't looked at that in a quarter century.

To elaborate: the programs would do all of their initialization and loading of things that would be used in any run, then dump themselves. The result of undump was an executable that had already done all of its boilerplate loading and was ready to process its arguments and inputs. It was bigger, since it had a bunch of heap stored, but it was better than hammering away on your CPU at 1 million instructions per second.

Re:Very funny, gdb. Ve-ery funny by eliasmacpherson on Sunday January 12, 2014 @09:15AM (#7046044)
That's pretty cool. Is there a way of making a java program do this? The JVM startup time on a desktop kills me.
Re:Very funny, gdb. Ve-ery funny by judk on Sunday January 12, 2014 @11:13AM (#7046326)
Java Web start or similar. It was called TSR in the DOS world "terminate and stay resident".
Re:Very funny, gdb. Ve-ery funny by stox on Saturday January 11, 2014 @10:05PM (#7044968)
Glad to see someone beat me to this comment. Emacs would have had a startup time measured in minutes were it not for this.