Re: MLton on OS X El Capitan

Matthew Fluet <[email protected]> Thu, 14 Apr 2016 12:35:24 -0400
Newsgroups gmane.comp.lang.ml.mlton.user
Message-ID <CAMrhFL6YP1bzZQYFCZuX6JxA44r-4m2Way+MjZPtEDHk+7wsyg@mail.gmail.com>
On Thu, Apr 14, 2016 at 12:20 PM, Rob Arthan <[email protected]> wrote:
> I see the same behaviour on El Capitan as you, but it is consistent with what
> Matthew said: you've generated a world and then recompiled your program, so you
> can't load the old world into the new executable. If you run save-world with no
> arguments after recompiling you get a new world that you can load into the new executable.

Precisely:

[mtf@graywolf tmp]$ mlton
MLton 20100608 (built Tue Jun  8 16:05:08 EDT 2010 on zaphod.cs.rit.edu)
[mtf@graywolf tmp]$ mlton save-world.sml
[mtf@graywolf tmp]$ ./save-world
I am the original
[mtf@graywolf tmp]$ ./save-world @MLton load-world world --
Segmentation fault: 11
[mtf@graywolf tmp]$ mlton -link-opt -fno-PIE save-world.sml
[mtf@graywolf tmp]$ ./save-world @MLton load-world world --
Invalid world: wrong magic number.
[mtf@graywolf tmp]$ ./save-world
I am the original
[mtf@graywolf tmp]$ ./save-world @MLton load-world world --
I am the clone

-- 
You received this message because you are subscribed to the Google Groups "MLton-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z