jvm-languages Questions

4

Solved

I have spent much time looking for a functional language that can seamlessly access Java legacy code (Weka code). Autocompletion of imported Java class methods would be excellent. I will present my...

2

Solved

I'm new to Scala, I'm using 2.9.1, and I'm trying to get my head around how to use partial functions. I have a basic understanding of curried functions, and I know that partial functions are kind o...
Extract asked 28/12, 2011 at 0:4

2

Solved

I came across this bit of code: n = args[0] as Long [*n..1, n].any{ println ' '*it + '*'*(n - ~n - it*2) } It's used for printing a tree form of structure. Like this: * *** ***** ******* ...
Burtis asked 11/12, 2011 at 17:12

4

Solved

I have been hearing a lot lately regarding Scala, Clojure, etc which is supposed to run on JVM. Does this means that those languages are implementing the Java API underneath? What does it mean for...
Kavanaugh asked 5/10, 2011 at 2:45

4

Solved

In Clojure programming language, why this code passes with flying colors? (let [r (range 1e9)] [(first r) (last r)]) While this one fails: (let [r (range 1e9)] [(last r) (first r)]) I know it...
Crossexamine asked 18/4, 2011 at 3:8

5

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 o...
Rayburn asked 17/4, 2011 at 20:21

3

Solved

I read somewhere Clojure is compiled. Is it really compiled, like Java or Scala, rather than interpreted, like Jython or JRuby?

2

Solved

I have started messing around with the ASM API for a compiler project I am working on. However, I am finding that the documentation is less than clear for a newcomer in many places and I thought ha...

2

Solved

I'm currently learning scala. Why this code doesn't work: class GenClass[T](var d : T) { var elems: List[T] = Nil def dosom(x: T) = { var y = new T() y } } I get: error: class type req...
Petulant asked 17/3, 2011 at 8:33

2

Normal CPUs (for example, Android devices) are register-based machines. The Java virtual Machine is a stack based machine. But does a stack-based machine depend on a register-based machine to work?...
Spada asked 24/2, 2011 at 8:6

4

Solved

In Java, Scala, or generally any JVM language, there is a set of packages that is imported by default. Java, for instance, automatically imports java.lang, you don't need to do it in your Java code...
Systemize asked 17/2, 2011 at 7:44

1

Of course I'm not talking about using Clojure just because I can. I'm curious about where/when to use Clojure and what is the value it brings to a project. Suppose I'm doing Java web development,...
Och asked 20/8, 2010 at 0:54

4

Solved

I recently bought Programming Scala, and have been reading through it. The language definitely isn't what I expected! Specifically, it seems to implement just about every programming language idea ...

5

Solved

I'm reading "Programming Clojure" and I'm interested in a book that discusses how to create macros as extensive as possible. Do you suggest a book for this? Thanks.
Lager asked 26/8, 2010 at 1:47

1

I am interested in integrating Scala (or some other non-Java JVM-language) into the android platform. I am not referring to writing an android application with Scala, that I did early early on, but...
Clover asked 6/8, 2010 at 20:43

3

Lot of Mobile devices are coming with JVM with its OS(for example Nokia,sony ericcson).will all devices have same JVM? are all JVMs owned by sun micro systems? has device manufacturer paid for it t...
Undrape asked 3/8, 2010 at 4:24

9

Solved

I have created a compiler in C (using Lex & Bison) for a dynamic typed programming language that supports loops, functions declarations inside functions, recursive calls, etc. I also created a ...

2

Solved

I would like to develop some apps for the JVM using a concise, dynamic language. The most popular choices for this seem to be Jython, JRuby, Groovy, and maybe Clojure. Rhino appears to be fast and...
Monoicous asked 16/7, 2010 at 17:11

2

Solved

How do I send a POSIX signal from within the JVM? (in Java or Clojure) I never thought this would be an issue until I tried googling it — there is lots of information about handling signals, but n...
Searcy asked 30/6, 2010 at 9:2

8

Solved

Where do JVM Implementations differ (except licensing)? Does every JVM implement Type Erasure for the Generic handling? Where are the differences between: JRockit IBM JVM SUN JVM Open JDK Blackd...
Kirovograd asked 14/4, 2009 at 12:42

3

Solved

Scala is a wonderful language, but I wonder how could be improved if it had it's own runtime? I.e. what design choices were made because of JVM choice?
Frontlet asked 21/4, 2010 at 12:7

9

Solved

I am a java developer and I want to know, what is the main benefit from learning a language such as Scala or Groovy?
Escolar asked 14/1, 2010 at 14:12

8

Solved

What is your preferred scripting language in java world (scripting language on JVM) and way? When do you prefer your scripting language over java (in what situations for example for prototypi...
Ticktock asked 18/3, 2009 at 7:45

11

Solved

For the next 3 years I will have to work with the JVM (project requirement) using a very specific third party API. They want Java but I've been given leeway to move away from Java. I was hopi...
Demolition asked 24/9, 2009 at 18:0

6

Solved

I was wondering whether Scala will get the takeup it deserves without explicit corporate backing (I was thinking by Sun/Oracle but I suppose it could be someone else, such as Google). With Sun's r...
Santoro asked 21/6, 2009 at 15:56

© 2022 - 2024 — McMap. All rights reserved.