Technical Challenge: SML

Oct 04, 2009 22:07

Success! I finally got SMLNJ and the MLton optimizing compiler to work with Windows. I am very happy about this, as I had been trying for quite a while and ran into various annoying compilation and DLL problems. (Really mlton was the difficult one.) Here's how I did it.:

ml, nerds

Leave a comment

Comments 7

extensionality October 5 2009, 13:27:35 UTC
cygwin blows

Reply

nolacoaster October 5 2009, 13:29:35 UTC
affirmative

Reply

extensionality October 5 2009, 13:38:00 UTC
I actually get way more mileage out of putty + sshing into a unix box than I ever did out of cygwin.

Reply


lordspaz October 5 2009, 18:38:07 UTC
I'm not sure this counts as "working in Windows." :)

I still can't get my SML/NJ code to compile with mlton. Very frustrating.

Reply

nolacoaster October 5 2009, 21:14:51 UTC
;-)

Well this post was partly a joke (because it's a little ridiculous that this is the only way I can get it to work in Windows) and partly serious (because I really am completely content with this solution).

Really, I would give the VM solution a try. Overall it only took about 30 minutes to get mlton up & running with this approach, and that INCLUDES the download of Ubuntu, although granted that was from CMU with a fast Internet pipe.

The one caveat is, if I actually wanted a Windows EXE, so that I could say give it to other people who use Windows, I would not be able to do it. If I had that need, I would beg and plead Tom VII to tell me how to do it.

Peace

Reply


Halp! DLL linking problems! anonymous October 5 2009, 21:07:57 UTC
Welcome to the light side! I just had an assignment for this vision class where they gave us a Visual Studio skeleton to fill in. I unzipped it, typed 'rm */*.vcproj*', and never looked back. The class message board is quickly filling up with posts like "Halp! DLL linking problems!"

--Rand

Reply

Re: Halp! DLL linking problems! nolacoaster October 5 2009, 21:16:14 UTC
Lol... that's pretty funny.

Yes, DLLs are like the final CS frontier and I am afraid I will never fully understand how they work. I think that Java has spoiled me in this way, since jars more or less work.

Reply


Leave a comment

Up