[MLton-user] Re: Compiling ML/C Program to dll / Writing a Java GUI for an ML program

Matthew Fluet matthew.fluet at gmail.com
Sun Jul 31 17:39:39 PDT 2011


On Sun, Jul 31, 2011 at 4:21 PM, Christof Leng
<cleng at dvs.tu-darmstadt.de> wrote:
> Am 31.07.11 17:59, schrieb Matthew Fluet:
>> On Fri, Jul 29, 2011 at 3:57 PM, Steffen J. Smolka
>> <steffen.smolka at in.tum.de> wrote:
>>> I have been wondering for a while now if there's a good way to make ML code
>>> and Java code work together.
>> As for compiling to a DLL, there is some support for compiling a SML
>> program to a library. See "http://mlton.org/LibrarySupport"; I'm not
>> sure that it supports compiling to a DLL, since there isn't a native
>> Windows port of MLton; on Windows, we use either Cygwin or MinGW.
>
> MLton is capable of producing DLLs (at least with the MinGW version), we
> use that in our BubbleStorm peer-to-peer overlay. We have also
> successfully connected the DLL to Java using JNI.

Great.  I'm sure Steffen would appreciate whatever information you
could provide about the correct compiler flags for producing the DLL
and how you moved data back and forth between Java and SML.



More information about the MLton-user mailing list