News for hackers. Stuff that matters.
Re:ClojureScript: Graal.js REPL Environment by keymone on Friday May 10, 2019 @06:51AM (#19876638)
Polyglot Ruby is invoked from Clojurescript which transpiles to JS which runs on GraalJS implementation running on GraalVM extension to the JVM?

this is both impressive and terrifying.

Re:ClojureScript: Graal.js REPL Environment by new4thaccount on Friday May 10, 2019 @07:35AM (#19876803)
Yea, I'm sure it's impressive work far beyond my skills, but that sounds like a monument to complexity. There are a lot of things to not like about Smalltalk, Forth, and Lisp, but their systems seem to be so much more knowable.

Put another way, I question the longevity of these franken-systems. I doubt people will be maintaining each one of those layers in 10 years let alone 40. I used to make fun on Cobol and Fortran a lot, but now see that we've traded some inefficiencies for a large jump in systems complexity. Yea it only takes 5 pages of code for your app, but another million are being executed. I guess the economics make sense and the developer speed of development and more systems to target makes it worth it.

Re:ClojureScript: Graal.js REPL Environment by Moru on Friday May 10, 2019 @08:11AM (#19876978)
Have you tried to make a "Hello world" in Microsofts latest creation? Far away are the days of 58 bytes hello world examples.
Re:ClojureScript: Graal.js REPL Environment by new4thaccount on Friday May 10, 2019 @11:31AM (#19878704)
I'm mostly a high level dynamic language guy, but have played with hello works in Nim, D, Ada, C++, and C on Linux and Windows.

I believe most are in the 400kb range iirc.

Re:ClojureScript: Graal.js REPL Environment by new4thaccount on Friday May 10, 2019 @10:55PM (#19884237)
Just tried GFortran on Linux and it was 16kb if that helps.
Re:ClojureScript: Graal.js REPL Environment by jmiskovic on Friday May 10, 2019 @08:35AM (#19877091)
I'm not sure this is meant for production? I understood it as way to call other language functions from this REPL, for convenience. You'd replace those calls with ClojureScript code. As for maintenance, I'm not worried about JVM and JS at least.
Re:ClojureScript: Graal.js REPL Environment by new4thaccount on Friday May 10, 2019 @01:28PM (#19880097)
Ah, fair points
Re:ClojureScript: Graal.js REPL Environment by svieira on Friday May 10, 2019 @09:19AM (#19877417)
Actually, since this is Graal the Ruby implementation here is almost certainly https://github.com/oracle/truffleruby so you're invoking Ruby in the same compiler _and process space_ that underlies GraalJS (no transpilation to JS needed). That means the JVM can optimize calls between JS and Ruby (inlining JS values into Ruby method call sites, and vice versa).
Re:ClojureScript: Graal.js REPL Environment by keymone on Friday May 10, 2019 @09:25AM (#19877452)
right, i meant clojurescript is transpiled, not ruby. still, cool detail, thanks!
Re:ClojureScript: Graal.js REPL Environment by lvh on Friday May 10, 2019 @11:18AM (#19878563)
I've been working with GraalVM a bunch and one of the things I'm most excited about is that it also supports LLVM via Sulong. This is great because it means I finally have to care a lot less about native v JVM gaps, and it becomes much easier to ship non-JVM code as part of the same app :-)
Re:ClojureScript: Graal.js REPL Environment by the-alchemist on Friday May 10, 2019 @05:43PM (#19882528)
I had to look up Sulong [1]. Basically, as long as LLVM can compile your code, you can use it with GraalVM.

i.e., call C/C++ functions from Javascript through GraalVM.

[1] https://github.com/oracle/graal/tree/master/sulong