News for hackers. Stuff that matters.
Re:CakeML – A Verified Implementation of ML by gravypod on Sunday January 01, 2017 @08:35AM (#13295678)
Go into the compiler explorer [0] and type the following

    val num = 10
Then take a look at the x86 generation.

What is all of that. It doesn't look like executable data needed. Is that just implicit functions or something baked into the language? If it is, why isn't it being tree-shook?

Re:CakeML – A Verified Implementation of ML by junke on Sunday January 01, 2017 @08:53AM (#13295721)
It seems you need to add a semi-colon after the line (the AST was empty). A minimal program is simply "();", and compiles into something even more complex. A big part of it looks like runtime setup/cleanup code, common for all programs.
Re:CakeML – A Verified Implementation of ML by clarus on Sunday January 01, 2017 @09:36AM (#13295845)
It seems that there are some examples here: https://github.com/CakeML/cakeml/blob/master/explorer/exampl... Whould be cool to have these examples accessible from the web interface of the compiler explorer.
Re:CakeML – A Verified Implementation of ML by gravypod on Sunday January 01, 2017 @12:37PM (#13296428)
Sadly it doesn't seem like you can link to a compiler output from their compiler.