Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Any SML experts reading this list?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  21 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
duke  
View profile  
 More options May 14 2012, 11:23 pm
Newsgroups: comp.lang.functional
From: duke <dukeofp...@lavabit.com>
Date: Mon, 14 May 2012 20:23:08 -0700 (PDT)
Local: Mon, May 14 2012 11:23 pm
Subject: Any SML experts reading this list?
I'm a SML (and FP) noob. Need to ask SML-specific questions.

I'm using both SML/NJ and Alice.  TIA....
--
Duke


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torben Ęgidius Mogensen  
View profile  
 More options May 15 2012, 4:49 am
Newsgroups: comp.lang.functional
From: torb...@diku.dk (Torben Ęgidius Mogensen)
Date: Tue, 15 May 2012 10:49:01 +0200
Local: Tues, May 15 2012 4:49 am
Subject: Re: Any SML experts reading this list?

duke <dukeofp...@lavabit.com> writes:
> I'm a SML (and FP) noob. Need to ask SML-specific questions.

Ask away.

        Torben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
duke  
View profile  
 More options May 15 2012, 9:11 am
Newsgroups: comp.lang.functional
From: duke <dukeofp...@lavabit.com>
Date: Tue, 15 May 2012 06:11:08 -0700 (PDT)
Local: Tues, May 15 2012 9:11 am
Subject: Re: Any SML experts reading this list?
On May 15, 2:49 am, torb...@diku.dk (Torben Ęgidius Mogensen) wrote:

> duke <dukeofp...@lavabit.com> writes:
> > I'm a SML (and FP) noob. Need to ask SML-specific questions.

> Ask away.

When I first subscribed to the NG, I did have a specific question, but
as often happens, I found the answer shortly after. :D

But now I know _where_ to ask ....

More generally, I would like folks' opinion as to whether or not
learning SML is a waste of time - in this day and age. So far, I'm
finding SML simple and intuitive to learn. Maybe I should look at the
process as merely a stepping-stone towards a similar but newer
language??

I'm not a professional programmer, but simply an avid amateur/
hobbyist. I enjoy doing website "backends", for which I've used Perl,
PHP, Tcl and newLISP.

I suppose that I'm still on a quest for _my_ "holy grail" of
programming languages. :)

--
Duke


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ultranewb  
View profile  
 More options May 15 2012, 8:09 pm
Newsgroups: comp.lang.functional
From: ultranewb <pineapple.l...@yahoo.com>
Date: Tue, 15 May 2012 17:09:15 -0700 (PDT)
Local: Tues, May 15 2012 8:09 pm
Subject: Re: Any SML experts reading this list?
On May 15, 8:11 pm, duke <dukeofp...@lavabit.com> wrote:

> I suppose that I'm still on a quest for _my_ "holy grail" of
> programming languages. :)

The Holy Grail is J.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
phil.clay...@lineone.net  
View profile  
 More options May 15 2012, 8:55 pm
Newsgroups: comp.lang.functional
From: phil.clay...@lineone.net
Date: Tue, 15 May 2012 17:55:28 -0700 (PDT)
Local: Tues, May 15 2012 8:55 pm
Subject: Re: Any SML experts reading this list?

On Tuesday, May 15, 2012 2:11:08 PM UTC+1, duke wrote:
> On May 15, 2:49 am, torb...@diku.dk (Torben Ęgidius Mogensen) wrote:
> > duke <dukeofp...@lavabit.com> writes:
> > > I'm a SML (and FP) noob. Need to ask SML-specific questions.

> > Ask away.

> When I first subscribed to the NG, I did have a specific question, but
> as often happens, I found the answer shortly after. :D

> But now I know _where_ to ask ....

There is also the IRC channel #sml on Freenode.  That's probably the place to go for quick answers to simple questions.  For compiler-specific matters, e.g. relating to bugs, compilation, performance, FFI (Foreign Function Interface) matters etc., the respective compiler's mailing list would be more suitable.  OCaml has similar resources.  That is probably why comp.lang.ml is very quiet.

> More generally, I would like folks' opinion as to whether or not
> learning SML is a waste of time - in this day and age. So far, I'm
> finding SML simple and intuitive to learn. Maybe I should look at the
> process as merely a stepping-stone towards a similar but newer
> language??

SML is generally a nice language to work with and has some good compiler support - see Wikipedia for a list.  It is also one of the most well-defined and scrutinized languages that exists.

There are practical issues though: there are very few libraries available.  I know of no modern usable GUI library, for example.  (On that note, I am hoping to release bindings for GTK+ soon.)  Availability of libraries may well determine whether SML is suitable for your purposes.

As for the language, there are many ways it could be improved/extended, from little fixes to new fancy ideas (many of which are noted at http://www.successor-ml.org/), but these have little bearing on getting useful stuff done.  In my opinion, the most pressing issue today is the lack of language-level support for Unicode, and for this alone, SML is in dire need of a revision.

> I'm not a professional programmer, but simply an avid amateur/
> hobbyist. I enjoy doing website "backends", for which I've used Perl,
> PHP, Tcl and newLISP.

You may be interested in these, though I've never used them myself:

SMLserver
http://www.smlserver.org/

ML server pages
http://ellemose.dina.kvl.dk/~sestoft/msp/index.msp
(didn't appear to be working properly when I tried - server issue?)

and once you've properly mastered SML and want more from the type system...

Ur/Web
http://www.impredicative.com/ur/

> I suppose that I'm still on a quest for _my_ "holy grail" of
> programming languages. :)

Would be interesting to hear your views.

Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torben Ęgidius Mogensen  
View profile  
 More options May 16 2012, 9:52 am
Newsgroups: comp.lang.functional
From: torb...@diku.dk (Torben Ęgidius Mogensen)
Date: Wed, 16 May 2012 15:52:57 +0200
Local: Wed, May 16 2012 9:52 am
Subject: Re: Any SML experts reading this list?

duke <dukeofp...@lavabit.com> writes:
> More generally, I would like folks' opinion as to whether or not
> learning SML is a waste of time - in this day and age. So far, I'm
> finding SML simple and intuitive to learn. Maybe I should look at the
> process as merely a stepping-stone towards a similar but newer
> language??

SML has the advantage of being available on many platforms and that
there are plenty of textbooks to learn the language from.  I agree with
another poster that library support isn't great, but what libraries
there are are fairly well written.

Newer languages similar to ML (such as O'Caml, Scala and F#) nearly all
have the disadvantage of being "infected" by object-oriented
programming, partly because of running on JVM or .NET, where there is a
need to support libraries designed for Java or C#.  Haskell is less
similar to SML than, say, Scala or F#, but it has (so far) avoided this
infection -- though the word "class" is used, it means something
different than in Java or C#.  But Haskell is also a much more complex
language than SML.

It would be really nice to have a new language similar to SML that
solves some of the issues with libraries, Unicode, multi-threading and a
few other things -- but without going overboard in complexity.  It would
not be that difficult to design and implement such a language, but it is
a lot of work to make extensive libraries -- which is why many recent
attempts use existing object-oriented libraries instead of making new
libraries.

As for whether it is worth to learn SML: Definitely.  Even if you won't
use it for serious projects, having learnt it makes you a better
programmer in other languages.

        Torben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NatarovVI  
View profile  
 More options May 16 2012, 10:23 am
Newsgroups: comp.lang.functional
From: NatarovVI <4KCheshire...@gmail.com>
Date: Wed, 16 May 2012 14:23:39 +0000 (UTC)
Local: Wed, May 16 2012 10:23 am
Subject: Re: Any SML experts reading this list?

> More generally, I would like folks' opinion as to whether or not
> learning SML is a waste of time - in this day and age. So far, I'm
> finding SML simple and intuitive to learn. Maybe I should look at the
> process as merely a stepping-stone towards a similar but newer
> language??
> I'm not a professional programmer, but simply an avid amateur/ hobbyist.
> I enjoy doing website "backends", for which I've used Perl, PHP, Tcl and
> newLISP.

"holy grail" not exist... but, yes, SML is good language with good
modularity.

some notes:
1) in IT there is no "age" or "time". technology or fits requrements or
not, thats it. "Old" language still can be "perfect fit" for task.
Sure "New" languages emerges everyday... and dies everyday))
Their developers make this "feature monsters" just because they can.
not because that languages was needed.

2) about requirements. languages divides on two big categories.

first category  is research, prototyping languages. yes, those scripting,
agile, dynamic, with "modern" powerful features etc. those "for dummyes".
this languages praises fast generation of "seemingly working" prototype
for sell.

second category is industrial languages. industrial means "for ingeners"
here. such langs emphasizes quality, control, proving solution
correctness, maintenance, contracts.
they do not try get "first shot", they try do right shot. and one more if
needed. and again. such languages do not like hard to control
superfeatures. they like simplicity and use modular "divide et conquer"
tactic for program manageability. SML is such language. maybe
Ada is. or modula-2. it's easy to determine - such languages have
separate interface and implementation part of modules. have good,
isolating modularity. not OOP dependence madness, not namespaces.

so. not "cool features" is good. manageability and guaranteed safe use of
primitives combinations is good. and this is hard to do in language with
cool features, just because it combinations is hard to predict.

"newer" not necessary better. because nobody really tries do better.

see - SML have 5-7 living implementations. still living. good?
look at existentialtypes.wordpress.com

for you - caml is good at web backends. pgocaml is typechecked.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Rubin  
View profile  
 More options May 16 2012, 11:42 am
Newsgroups: comp.lang.functional
From: Paul Rubin <no.em...@nospam.invalid>
Date: Wed, 16 May 2012 08:42:36 -0700
Local: Wed, May 16 2012 11:42 am
Subject: Re: Any SML experts reading this list?

duke <dukeofp...@lavabit.com> writes:
> More generally, I would like folks' opinion as to whether or not
> learning SML is a waste of time - in this day and age. So far, I'm
> finding SML simple and intuitive to learn. Maybe I should look at the
> process as merely a stepping-stone towards a similar but newer
> language??

I think there's more energy in the Haskell community these days, and
that Haskell is more interesting and "advanced" than ML, though it might
have some practicality disadvantages (matter of opinion).  I'd consider
Haskell to be more challenging and educational, so I'm spending a fair
amount of time on it, but ML (whether SML or Ocaml) might be a better
choice for producing reliable large programs quickly, depending on the
task and the programmers.

http://learnyouahaskell.com is probably the most popular Haskell
beginners' guide these days, and the Freenode #haskell IRC channel is
very helpful.

> I suppose that I'm still on a quest for _my_ "holy grail" of
> programming languages. :)

It doesn't exist.  As someone on #haskell put it, being sophisticated
gents, we classify languages into sucks and doesn't-suck, and put all of
them in the first category.  ;-)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
duke  
View profile  
 More options May 16 2012, 7:19 pm
Newsgroups: comp.lang.functional
From: duke <dukeofp...@lavabit.com>
Date: Wed, 16 May 2012 16:19:31 -0700 (PDT)
Local: Wed, May 16 2012 7:19 pm
Subject: Re: Any SML experts reading this list?
Thanks everybody for your "informed" opinions!

@phil.c
Thanks for the IRC channel heads-up, and the web-related links!

I'm currently test-driving SML with 3 different compilers. I like this one:

http://www.ps.uni-saarland.de/alice/

@Torben

I have an aversion to OOP - but I don't mind Wirth's approach to it in Oberon2 etc.

Mythryl http://mythryl.org/ might just be the answer when it becomes a little more fleshed out.

@Natarov

I know!! The perfect hammer may not exist, or the perfect fly-rod, but I have one of each that _I_ think are. :) Programming languages are tools - after all, each suited for a particular task (maybe). I guess maybe I should say that I'm still searching for "native tongue" - my "default" programming language. SML (Alice flavor) might just be the one.

I've fooled around with the MUMPS language. I like it, but getting it to happen on my machines has been a chore. It is _still_ widely used in Healthcare and financial institutions - after all these years.

I'll be test-driving OCAML as well.

@Paul

I tried Haskell using the link you provided, some 3 yrs ago. I found it a bit too complicated - then! And the Freenode channel may come in handy.

LOL ... but everybody's "suck" criteria are _so_ different. I just assume that they all are good and have some value, until I test-drive them. :)

Thank you all for your insights!!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NatarovVI  
View profile  
 More options May 21 2012, 10:25 am
Newsgroups: comp.lang.functional
From: NatarovVI <4KCheshire...@gmail.com>
Date: Mon, 21 May 2012 14:25:49 +0000 (UTC)
Local: Mon, May 21 2012 10:25 am
Subject: Re: Any SML experts reading this list?

> should say that I'm still searching for "native tongue" - my "default"
> programming language. SML (Alice flavor) might just be the one.

Sure i (Cheshire) know about Alice ))

Alice looks like research testbed. You know, system of "all-in-one" type.
It's interesting... parallel distributed systems, transparent bytecode
migration etc... but it don't developed anymore now, isn't it?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
duke  
View profile  
 More options May 21 2012, 2:40 pm
Newsgroups: comp.lang.functional
From: duke <dukeofp...@lavabit.com>
Date: Mon, 21 May 2012 11:40:13 -0700 (PDT)
Local: Mon, May 21 2012 2:40 pm
Subject: Re: Any SML experts reading this list?

On Monday, May 21, 2012 8:25:49 AM UTC-6, NatarovVI wrote:
> > should say that I'm still searching for "native tongue" - my "default"
> > programming language. SML (Alice flavor) might just be the one.

[snip]

> It's interesting... parallel distributed systems, transparent bytecode
> migration etc... but it don't developed anymore now, isn't it?

Maybe that because it is considered complete, mature and stable? It seems to ship with an adequate set of tools, and there are a few contributed libraries, I see. Could be worse! :)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NatarovVI  
View profile  
 More options May 23 2012, 11:35 am
Newsgroups: comp.lang.functional
From: NatarovVI <4KCheshire...@gmail.com>
Date: Wed, 23 May 2012 15:35:20 +0000 (UTC)
Local: Wed, May 23 2012 11:35 am
Subject: Re: Any SML experts reading this list?

>> > programming language. SML (Alice flavor) might just be the one.
>> It's interesting... parallel distributed systems, transparent bytecode
>> migration etc... but it don't developed anymore now, isn't it?
> Maybe that because it is considered complete, mature and stable? It
> seems to ship with an adequate set of tools, and there are a few
> contributed libraries, I see. Could be worse! :)

hmm... i in doubt that such all-in-one system can be complete ;)
especially if it has "futures" and make "promises"...
as always all struck to "constraints"... just joking ))

seriously, it's developers just leave it and make other job now.
at google, if i correctly remember...
and... alice is definetely not so "complete, mature and stable".
i was try to build and try it some, on different bsd/linuxes.
it is continues to be interesting research testbed and it feels.
more or less worked only core part, with minimum features and
on stability-liking linuxes. like debian or slackware.

i hears it used in practice somewhere... but
alice definetely needs updating to modern realities and closing bugs.

yes, could be worse... and, yes, it's interesting environment.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
duke  
View profile  
 More options May 23 2012, 7:17 pm
Newsgroups: comp.lang.functional
From: duke <dukeofp...@lavabit.com>
Date: Wed, 23 May 2012 16:17:56 -0700 (PDT)
Local: Wed, May 23 2012 7:17 pm
Subject: Re: Any SML experts reading this list?

On Wednesday, May 23, 2012 9:35:20 AM UTC-6, NatarovVI wrote:

[snip]

> i hears it used in practice somewhere... but
> alice definetely needs updating to modern realities and closing bugs.

> yes, could be worse... and, yes, it's interesting environment.

So what implementation of SML would you recommend?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
phil.clay...@lineone.net  
View profile  
 More options May 23 2012, 8:59 pm
Newsgroups: comp.lang.functional
From: phil.clay...@lineone.net
Date: Wed, 23 May 2012 17:59:17 -0700 (PDT)
Local: Wed, May 23 2012 8:59 pm
Subject: Re: Any SML experts reading this list?

On Thursday, May 24, 2012 12:17:56 AM UTC+1, duke wrote:
> On Wednesday, May 23, 2012 9:35:20 AM UTC-6, NatarovVI wrote:

> [snip]

> > i hears it used in practice somewhere... but
> > alice definetely needs updating to modern realities and closing bugs.

> > yes, could be worse... and, yes, it's interesting environment.

> So what implementation of SML would you recommend?

Although you weren't asking me, I thought I would share my views :)

The compilers/interpreters each have their own pros and cons.  There is no one answer - it depends on your particular circumstances.

MLton typically produces the fastest code (by some margin) but has no interactive session: it produces stand-alone executables.  It typically takes the longest to compile (by some margin) due to optimization, so this may not be most suitable during development if e.g. you are frequently recompiling programs whose running time is low.  If you need an interactive session, then I would suggest looking at Poly/ML or SML/NJ.  For large-scale industrial applications, we found that Poly/ML scales up much better - it was a lot faster and has an x86_64 version.  If you're learning SML, that probably isn't a big deal and it may well be that the wide range of tools/utilities provided by SML/NJ would be more useful.

My suggestion would be to look at MLton, Poly/ML and SML/NJ.  That's just practical advice based on my own experience, not a balanced view considering all available implementations.

Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Torben Ęgidius Mogensen  
View profile  
 More options May 24 2012, 4:39 am
Newsgroups: comp.lang.functional
From: torb...@diku.dk (Torben Ęgidius Mogensen)
Date: Thu, 24 May 2012 10:39:59 +0200
Local: Thurs, May 24 2012 4:39 am
Subject: Re: Any SML experts reading this list?

duke <dukeofp...@lavabit.com> writes:
> So what implementation of SML would you recommend?

For learning the language, I would suggest Moscow ML.  It is a
light-weight implementation that compiles quickly and gives decent error
messages.  It doesn't generate the fastest executables by any account
(it generates bytecode that is interpreted), but for learning the
language, this isn't important.

        Torben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
duke  
View profile  
 More options May 24 2012, 9:44 am
Newsgroups: comp.lang.functional
From: duke <dukeofp...@lavabit.com>
Date: Thu, 24 May 2012 06:44:03 -0700 (PDT)
Local: Thurs, May 24 2012 9:44 am
Subject: Re: Any SML experts reading this list?

On Wednesday, May 23, 2012 6:59:17 PM UTC-6, phil.c...@lineone.net wrote:
> On Thursday, May 24, 2012 12:17:56 AM UTC+1, duke wrote:
> > On Wednesday, May 23, 2012 9:35:20 AM UTC-6, NatarovVI wrote:

> > [snip]

> > > i hears it used in practice somewhere... but
> > > alice definetely needs updating to modern realities and closing bugs.

> > > yes, could be worse... and, yes, it's interesting environment.

> > So what implementation of SML would you recommend?

> Although you weren't asking me, I thought I would share my views :)

You bet! Much obliged ...

[snip]

> My suggestion would be to look at MLton, Poly/ML and SML/NJ.  That's just practical advice based on my own experience, not a balanced view considering all available implementations.

SML/NJ was the first implementation that I installed, so It seems that I'm on the right track. :) I'll install the others and have a look. Thanks!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
duke  
View profile  
 More options May 24 2012, 9:50 am
Newsgroups: comp.lang.functional
From: duke <dukeofp...@lavabit.com>
Date: Thu, 24 May 2012 06:50:57 -0700 (PDT)
Local: Thurs, May 24 2012 9:50 am
Subject: Re: Any SML experts reading this list?

On Thursday, May 24, 2012 2:39:59 AM UTC-6, Torben Ęgidius Mogensen wrote:
> duke writes:

> > So what implementation of SML would you recommend?

> For learning the language, I would suggest Moscow ML.  It is a
> light-weight implementation that compiles quickly and gives decent error
> messages.  It doesn't generate the fastest executables by any account
> (it generates bytecode that is interpreted), but for learning the
> language, this isn't important.

Why not!! I might as well have them all. :D  On the side of the spectrum, I'm also learning Oberon-2 using Mike Spivey's Oxford Oberon-2 Compiler - a JIT written in OCAML - of all things! lol ... It too is plenty fast to learn on. Thanks ...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NatarovVI  
View profile  
 More options Jun 9 2012, 5:12 am
Newsgroups: comp.lang.functional
From: NatarovVI <4KCheshire...@gmail.com>
Date: Sat, 9 Jun 2012 09:12:41 +0000 (UTC)
Local: Sat, Jun 9 2012 5:12 am
Subject: Re: Any SML experts reading this list?

>> i hears it used in practice somewhere... but alice definetely needs
>> updating to modern realities and closing bugs.
>> yes, could be worse... and, yes, it's interesting environment.
> So what implementation of SML would you recommend?

as others already sayed, it depends on your needs.
i'm not expert ... but can remember some on all ML versions
(not CAML, it has somewhere different target audience).

...oh-o, seems i know many... seven!... implementations, beside alice...
looks like with ML you definetely NOT vendor-locked, like with gnat or
evergrow ghc! he-he...

0) so, alice... it's bytecoded implementation and purposely will be such
(for code migration). as such it somewhere slow (but has jit) and more or less
portable. as i remember, have some problems with oses which "not linux" (like xBSD).
base sml language in it is greatly extended with parallel and distributed features,
with constraint programming, etc. which is not so well-founded and narrow as in
smlsharp case. general and powerful, of course. but you not always need power,
sometimes predictability and reliability is preferred... having solution you
deny other solutions... and as sayed, standards (Standard ML 97) is good.
...i hear alice developer now spend all time making v8 javascript at google,
and javascript is bad language...

1) smlnj. the so named "standard implementation of ML". i use it some, it's average.
oriented to dynamic, explorating, interactive use. memory images can be stored to
file and runned on other computer with same runtime version (or can be packed
with runtime forming independent, somewhere big, executable),
but smlnj is not for binaries. it's big, elaborated, interactive environment.
memory consumption is moderate. generates native code in-memory (MLRISC backend)
and so has slower compiling time than mosml, has somewhere bigger memory
consumption also, but faster run times (on par with mlkit).

2) mlton. optimizing compiler. i say it "optimising whole picture, not small peepholes",
optimising-at-large. it do less optimisations-in-small than gcc, i think, but apply
optimisations-in-big more thoroughly (some peepholes rests unoptimized, sse not used
etc). supports parallelism (threads), as is polyml, but in somewhere different way.
resulting binaries is self-contained and relatively small (what not used is not included).
one BIG problem with it - it's a real memory and processor hog, and always will be.
it can easy eat gigabytes because of "whole-programness" and multiple passes
of optimisation transformations in memory. and because of that it sometimes can't
be used on old desktops or netbooks. i recommend you setup zswap in your linux for
this beast. peoples recommends use mlton for compiling release binaries only.
some game developers or crossdevelopers use it as wunderwaffe.
there is one possible trap in "use for final release only".
"whole-program"-ness somewhere changes semantic for some SML constructs
(like scope for definitions). this can be good (you get efficient functors for free!)
or bad. it depends... be warned.

3) polyml. compact interactive system. two files, easily distributed with application.
has parallelism. i think internally looks like smlnj (generate native code in-memory),
but smaller and simpler. moderate sequential performance, but people say it has
good parallel scalability. main application - polyml powers isabelle theorem prover.
i do not know if polyml GC is parallelized now (that somewhere limited speedup
on 4-6 in applications other than symbolic computations with small shared state),
but it is actively supported.

4) mlkit. simple native batch compiler (MLRISC-based codegenerator, as smlnj).
optimisator in this compiler is simple and gives moderate quality.
not so good in optimisation as mlton, but more predictable. has small runtime.
really great things in this compiler is:
  region-based memory allocation (compiler optimise some work for gc,
make it possible to program realtime systems) and
  separate module compilation (really good thing for incremental big project development).
try to use it together with mlton.
it's bad, bad that this compiler somewhere forgetted and leaved in shadows!

5) moscow ml. bytecode interpreter on old caml (wich was before ocaml) runtime.
fast compiles, slow runtimes (no jit). compact. have separate module compilation.
as i hear, have some problems with float numbers. some admins use it as scripting
language and for small web interfaces. in the past some use it for theorem provers.
small memory consumption is main goodie of this implementation.

6) hamlet. interpreter of full ml written in ml. useful in teaching and
experimenting with language, can be in one big sml file.
slow, of course. compile it with mlton.

7) smlsharp. interesting ml native-code x86 compiler. roots of project grows from
mlkit as i think (it not related with dotNet and c-sharp). so characteristics is also like
of mlkit. have good c interoperability. somewhere polished in fresh, release version.
hey, developers say it has parallelized gc now.
has ml language extended with some enterprise-y constructions like records and
such. and this extensions try to be formally verified and theoretically founded
(meanwhile, i personally do not like oop and inheritance, but managers like).
developed by japan government-founded project, they tries to get language for
usual commercial development, specially targeted at low maintenance costs
(like Ada was). i ask developers if it will have jvm codegen in future (for more
"enterpriseness"). they reply - "maybe". interesting project, i will look at it future...

resulting runtime performance grade from fast to slow:
1) mlton (on par with c or even faster)
2) mlkit, smlsharp, smlnj (1.5-2 times from mlton)
2.5) polyml (2-3 times).
(alice, i think, somewhere between poly and mosml)
3) mosml (5-10)
4) hamlet (you bet)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NatarovVI  
View profile  
 More options Jun 9 2012, 5:40 am
Newsgroups: comp.lang.functional
From: NatarovVI <4KCheshire...@gmail.com>
Date: Sat, 9 Jun 2012 09:40:53 +0000 (UTC)
Local: Sat, Jun 9 2012 5:40 am
Subject: Re: Any SML experts reading this list?

> looks like with ML you definetely NOT vendor-locked, like with gnat or
> evergrow ghc! he-he...

i mean that with Ada you locked to GNAT, with Haskell you locked to GHC.
with Standard ML you not locked to one compiler.

...there is not so many languages with good modularity...
and ML is such language.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
duke  
View profile  
 More options Jun 9 2012, 9:15 am
Newsgroups: comp.lang.functional
From: duke <dukeofp...@lavabit.com>
Date: Sat, 9 Jun 2012 06:15:56 -0700 (PDT)
Local: Sat, Jun 9 2012 9:15 am
Subject: Re: Any SML experts reading this list?

On Saturday, June 9, 2012 3:12:41 AM UTC-6, NatarovVI wrote:
> >> i hears it used in practice somewhere... but alice definetely needs
> >> updating to modern realities and closing bugs.
> >> yes, could be worse... and, yes, it's interesting environment.
> > So what implementation of SML would you recommend?

> as others already sayed, it depends on your needs.
> i'm not expert ... but can remember some on all ML versions
> (not CAML, it has somewhere different target audience).

> ...oh-o, seems i know many... seven!... implementations, beside alice...
> looks like with ML you definetely NOT vendor-locked, like with gnat or
> evergrow ghc! he-he...

[snip]

Thanks for the overview of the ML various implementations!! I'm enjoying PolyML to learn ML with.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
NatarovVI  
View profile  
 More options Jun 15 2012, 8:54 pm
Newsgroups: comp.lang.functional
Followup-To: comp.lang.functional
From: NatarovVI <4KCheshire...@gmail.com>
Date: Sat, 16 Jun 2012 07:54:19 +0700
Local: Fri, Jun 15 2012 8:54 pm
Subject: Re: Any SML experts reading this list?

>> learning SML is a waste of time - in this day and age. So far, I'm
>> finding SML simple and intuitive to learn. Maybe I should look at the

you heart feels right))

> I think there's more energy in the Haskell community these days, and
> that Haskell is more interesting and "advanced" than ML, though it might
> have some practicality disadvantages (matter of opinion).  I'd consider

this is energy of monkey with handgrenade... somewhat untargeted and
action-oriented (not target-oriented)...

> Haskell to be more challenging and educational, so I'm spending a fair
> amount of time on it, but ML (whether SML or Ocaml) might be a better
> choice for producing reliable large programs quickly, depending on the
> task and the programmers.

sure they will. they simpler and has proper modules.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »