Compiling binaries of bytecode: ever been considered?

Hi all, I was just wondering: has a compiler output mode ever been considered that would dump bytecode to a file, dynamic link to the ghc runtime, and then on start-up that program would just interpret the bytecode like ghci does? The purpose would be simply faster compile-and-restart times. Cheers, Chris

I've heard the idea come up once or twice. But I'm not aware of any efforts going further than that. Christopher Done schrieb am 04.11.2019 um 14:59:
Hi all,
I was just wondering: has a compiler output mode ever been considered that would dump bytecode to a file, dynamic link to the ghc runtime, and then on start-up that program would just interpret the bytecode like ghci does?
The purpose would be simply faster compile-and-restart times.
Cheers,
Chris _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Lots of people have had such ideas… until they looked at the bco
implementation. Consider yourself warned.
On Mon, Nov 4, 2019 at 9:02 AM Andreas Klebinger
I've heard the idea come up once or twice. But I'm not aware of any efforts going further than that.
Christopher Done schrieb am 04.11.2019 um 14:59:
Hi all,
I was just wondering: has a compiler output mode ever been considered that would dump bytecode to a file, dynamic link to the ghc runtime, and then on start-up that program would just interpret the bytecode like ghci does?
The purpose would be simply faster compile-and-restart times.
Cheers,
Chris _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
-- brandon s allbery kf8nh allbery.b@gmail.com
participants (3)
-
Andreas Klebinger
-
Brandon Allbery
-
Christopher Done