JVM -> Node

17 views
Skip to first unread message

Dan Mullins

unread,
Mar 14, 2017, 10:16:40 PM3/14/17
to Central-Iowa-J...@googlegroups.com
I really enjoyed Aaron Hoffman's talk on serverless programming with AWS and Azure. Unfortunately, the slow start-up times and heavy memory use makes a lot of JVM languages less than ideal. Has anyone thought about writing in a Scala/Clojure/Koitlin/etc, compiling to javascript, and running a Node.js version? 

Or is this too complicated and bordering on the dumbest thing you've heard today?


Dan

Shawn Garner

unread,
Mar 15, 2017, 6:56:37 PM3/15/17
to central-iowa-j...@googlegroups.com
I've seen an open source project cross compile to both scala and scala-js so there must be some demand.
I've not done anything with Scala-JS myself.
I wonder if http://www.scala-native.org would be a good fit for what you want.
Again never done anything with it myself though.

--
--
Visit http://www.cijug.net for more information
 
You received this message because you are subscribed to the Google Groups "Central Iowa Java Users Group" group.
To post to this group, send email to Central-Iowa-Java-Users-Group@googlegroups.com
To unsubscribe from this group, send email to Central-Iowa-Java-Users-Group-unsub...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Central-Iowa-Java-Users-Group?hl=en

---
You received this message because you are subscribed to the Google Groups "Central Iowa Java Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to central-iowa-java-users-group+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nate Gordon

unread,
Mar 26, 2017, 12:29:13 PM3/26/17
to central-iowa-j...@googlegroups.com
It probably isn't a terrible idea, but why not just write for node directly or not use FaaS? What is the value you are trying to achieve apart from new hotness?

For the record, I usually default to the JVM to solve problems, but I've also decided that FaaS isn't for me when I really care about latency. I do think there are lots of uses of FaaS where latency isn't a big deal and the jvm wouldn't be a problem to use if it provided me a benefit otherwise.

But possibly the best answer is to just try it and see what happens? Compare running jvm scala and js scala and maybe the performance difference won't matter.

-Nate

On Tue, Mar 14, 2017 at 12:48 PM, Dan Mullins <dmull...@gmail.com> wrote:

--
--
Visit http://www.cijug.net for more information
 
You received this message because you are subscribed to the Google Groups "Central Iowa Java Users Group" group.
To post to this group, send email to Central-Iowa-Java-Users-Group@googlegroups.com
To unsubscribe from this group, send email to Central-Iowa-Java-Users-Group-unsub...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Central-Iowa-Java-Users-Group?hl=en

---
You received this message because you are subscribed to the Google Groups "Central Iowa Java Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to central-iowa-java-users-group+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-Nathan Gordon

If the database server goes down and there is no code to hear it, does it really go down?
<esc>:wq<CR>

Darrin Holst

unread,
Mar 26, 2017, 12:29:13 PM3/26/17
to Central Iowa Java Users Group, Central-Iowa-J...@googlegroups.com
I don't think it's any more complicated than what we're already doing to get typescript and es6 to run in the browser and older versions of node. It's just another transpiler to put in your build step.

I'd give javascript a shot though. I heard node runs it just fine.

S. David Pullara

unread,
Mar 26, 2017, 12:29:13 PM3/26/17
to central-iowa-j...@googlegroups.com
Would Scala Native be a useful alternative?
(Sean Mooney pointed this out to our team this morning.)
Reply all
Reply to author
Forward
0 new messages