News for hackers. Stuff that matters.
Re:Shen is a portable functional programming language by moron4hire on Sunday August 31, 2014 @05:39PM (#8250459)
What are the functional languages that are in common usage that are not portable?
Re:Shen is a portable functional programming language by alayne on Sunday August 31, 2014 @05:48PM (#8250478)
I think the question is what does portable mean, or is there a better word to use than portable. It clearly doesn't just mean written in C or C++. From the linked page -- "It currently runs under CLisp and SBCL, Clojure, Scheme, Ruby, Python, the JVM and Javascript."
Re:Shen is a portable functional programming language by chc on Sunday August 31, 2014 @05:48PM (#8250481)
In the sense that they run under CLisp, SBCL, Clojure, Scheme, Ruby, Python, the JVM and Javascript? I can't think of any that are portable in that sense.
Re:Shen is a portable functional programming language by hawkice on Sunday August 31, 2014 @06:57PM (#8250719)
Haxe seems to be portable in a similar way, and probably more popular than Shen at the moment.
Re:Shen is a portable functional programming language by chc on Tuesday September 02, 2014 @02:27PM (#8259261)
Is Haxe functional? I didn't think it was.
Re:Shen is a portable functional programming language by hawkice on Tuesday September 02, 2014 @06:24PM (#8260535)
Definitely seems to be -- they claim it's been used by a lot of different people (including, notably, the now-famous indie game Papers, Please) and is somewhere deep into version 3.something -- it's been around for quite some time.
Re:Shen is a portable functional programming language by zem on Monday September 01, 2014 @01:08AM (#8251613)
the creator of ats has recently demonstrated proof of concept python, javascript and php backends.

https://github.com/githwxi/ATS-Postiats-contrib/tree/master/...

Re:Shen is a portable functional programming language by CMCDragonkai on Sunday August 31, 2014 @06:32PM (#8250622)
Can shen be embedded in the host language?
Re:Shen is a portable functional programming language by tizoc on Sunday August 31, 2014 @07:39PM (#8250875)
That depends on the port. The Clojure port allows this:

https://github.com/hraberg/shen.clj#神-define-prolog-and-defp...

Re:Shen is a portable functional programming language by malisper on Monday September 01, 2014 @01:50AM (#8251680)
From[0], the answer appears to be yes, but it greatly depends on the host. One can write Common Lisp code by using uppercase. Using $native will execute the following code as Scheme code. For Clojure, it looks like Shen provides a FFI for basic interactions.

[0] http://www.shenlanguage.org/learn-shen/native.html