News for hackers. Stuff that matters.
Re:Frege: A JVM pure functional programming language in the ... by allertonm on Thursday November 07, 2013 @11:51AM (#6690459)
It's interesting to compare this to CAL - an earlier Haskell-like language on the JVM that was a project of some of my former colleagues at Crystal Decisions/Business Objects back in the 00's: http://openquark.org/Welcome.html

I've worked quite a bit with CAL over the years and it has been used for some serious work. One of my big frustrations with it though has been the clunkiness of the Java interop, especially since this is one of the reasons you might choose to use a language on the JVM.

Looking at the Frege docs, I like the look of the way this has been handled - rather than using an FFI-style approach, things like Int, String etc map directly to Java types and Java classes can be used like ADTs, which would make life way, way easier.

Given the nature of the language calling Frege from Java is always going to be more complicated but it looks like they've done a nice "fluent" Java API for calling into the runtime.

Would be interesting to see how this performs relative to CAL, in terms of both speed and space.

Re:Frege: A JVM pure functional programming language in the ... by voxfrege on Thursday November 07, 2013 @01:28PM (#6691266)
> Would be interesting to see how this performs relative to CAL, in terms of both speed and space.

Indeed. Do you have some CAL installation somewhere to make a comparison? (The links I find are all broken.)

Re:Frege: A JVM pure functional programming language in the ... by allertonm on Thursday November 07, 2013 @01:35PM (#6691337)
Unfortunately it looks like you would have to build from source. The best place for that would be Rich Webster's fork - https://github.com/rdwebster/Open-Quark - which is the version maintained by Indicee.
Re:Frege: A JVM pure functional programming language in the ... by voxfrege on Thursday November 07, 2013 @01:54PM (#6691536)
In the "How to build..." document it says I need Eclipse exactly 3.3.0

I am not going to install this, even if I would find it somewhere, hence ....

Re:Frege: A JVM pure functional programming language in the ... by allertonm on Thursday November 07, 2013 @02:34PM (#6691850)
I imagine the documentation is completely out of date.

Anyway, if you don't want to look at it, that's your loss - while I don't think CAL has much of a future a lot of work was invested in it by a very talented team and there is probably something to be learned from it.

Re:Frege: A JVM pure functional programming language in the ... by voxfrege on Thursday November 07, 2013 @04:12PM (#6692439)
> Anyway, if you don't want to look at it, that's your loss

Actually, I did look into it several years back. If I remember correctly, CAL was not pure and still lazy. (An explosive combination, if you ask me.)