jvm-languages
What is the difference between def foo = {} and def foo() = {} in Scala?
Given the following constructs for defining a function in Scala, can you explain what the difference is, and what the implications will be?[详细]
2023-04-04 11:55 分类:问答XML parsing with Scala: Equivalent to "getElementByTagName(name)" in JS
XML parsing in Scala doesn\'t seem to be as easy and straightforward as it should be. What I needed was something that behaved similar to document.getElementsByTagName(name) in JavaScript, but for my[详细]
2023-04-01 08:41 分类:问答Haskell on JVM?
I\'m wondering if there is some way to make Haskell run on the JVM (compiled or interpreted)? There exists JHaskell on Sourceforge but this one seems to be empty and dead.[详细]
2023-04-01 07:06 分类:问答Why is the JVM a Stack Based virtual Machine?
Why is the JVM a stack based virtual machine? What exactly does that mean and what are the advantages over register based virtual machines? Are there any other major design / implementation choices fo[详细]
2023-03-30 03:17 分类:问答When does running Jython on a .py file generate a .class file?
I just started playing with Jython, and sometimes running jython on a .py file gener开发者_运维技巧ates a .class file, but this doesn\'t always happen.[详细]
2023-03-29 19:18 分类:问答How does Groovy handle closure scope and recursion?
I have a recursive Python function that builds a tree, and I\'m trying to translate it into Groovy. Here\'s the Python version...[详细]
2023-03-29 05:00 分类:问答Is Clojure compiled or interpreted?
I read somewhere Clojure is compiled. Is it really compiled, like Java or Scala, rather than开发者_开发问答 interpreted, like Jython or JRuby?Clojure is always compiled.[详细]
2023-02-26 06:13 分类:问答Use of recursion in Scala when run in the JVM
From searching elsewhere on this site and the web, tail call optimization is not supported by the JVM. Does that therefore mean that tail recursive Scala code such as the following, which may run on v[详细]
2023-02-26 00:54 分类:问答Setting CLASSPATH for Clojure project
I have a plain project structure: Base Dir src ;; Pile of Clojure files lib ;; Jar files To export the classpath:[详细]
2023-02-20 08:38 分类:问答Akka as the concurrency model for Clojure
Looks there is a lot of cool things about Akka framework (I don\'t really understand the framework, hope to dig into it soon).[详细]
2023-02-19 09:37 分类:问答