jvm-languages Questions

4

Solved

I read that usage of Globalscope is highly discouraged, here. I have a simple use-case. For every kafka message (let's say a list of Ids) that I receive I have to split it and invoke a rest service...
Habilitate asked 23/1, 2019 at 20:45

4

Solved

In Scala, I can declare an object like so: class Thing object Thingy extends Thing How would I get "Thingy" (the name of the object) in Scala? I've heard that Lift (the web framework for Scala...
Lappet asked 21/10, 2012 at 5:25

1

Solved

As a concrete example for my question, here's a snippet in Python (which should be readable to the broadest number of people and which has a JVM implementation anyway): def memo(f): cache = {} d...
Pippo asked 20/12, 2019 at 16:20

8

Solved

Is there anything similar to Python virtualenv for Java or JVM Languages?
Highly asked 4/9, 2011 at 15:15

4

Solved

This question came up after reading the Loom proposal, which describes an approach of implementing coroutines in the Java programming language. Particularly this proposal says that to implement th...
Powerful asked 30/12, 2017 at 12:27

4

Solved

Given the following constructs for defining a function in Scala, can you explain what the difference is, and what the implications will be? def foo = {} vs. def foo() = {} Update Thanks for ...

2

Solved

The title captures my question fairly well. I'm wondering if there is a good resource or leaping-off point for questions about how a JVM (not just HotSpot, but that's obviously the place to s...
Mamiemamma asked 18/10, 2010 at 21:41

4

Solved

JVM provides great performance - it's on the one hand. Golang sounds like a new paradigm and extremely productive - on the other hand. If we could bring together the best of two worlds - JVM perfor...
Manicdepressive asked 9/8, 2012 at 11:45

4

Solved

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. GHC uses LLVM as compile...
Quincunx asked 31/8, 2011 at 17:38

1

Solved

If a Kotlin function invocation reifies a primitive, say Int, the 'passed' class is that for the boxed primitive, not the unboxed version. inline fun <reified T> reify() = T::class @Test fu...
Irrecoverable asked 29/11, 2015 at 20:33

2

Wikipedia's current article about the Groovy programming language explains that "Most valid Java files are also valid Groovy files" and gives the following examples, first of Java code: for (Strin...
Chiaki asked 15/7, 2015 at 14:59

3

Solved

Main question: I view the most significant application of tail call optimization (TCO) as a translation of a recursive call into a loop (in cases in which the recursive call has a certain form). Mo...
Highwrought asked 19/10, 2013 at 4:17

4

Solved

I took a look at some new languages for JVM. Two of them are gathering much interest these days: Clojure and Scala. But in my humble opinion, both of them are not ideal. (Let's keep it a spec...
Outrelief asked 8/10, 2009 at 13:8

5

Solved

We are starting a big-data based analytic project and we are considering to adopt scala (typesafe stack). I would like to know the various scala API's/projects which are available to do hadoop , ma...
Annettaannette asked 30/1, 2013 at 4:4

1

I have a simple language that I am trying to write a compiler for (yes it is homework) to compile a simple language I shall describe if necessary to java vm code. It currently works pretty well I'...
Pavia asked 15/5, 2013 at 12:57

1

What is the maximum of number of arguments which can be used by a vararg in java ? I believe there should be some limit and it is not infinite.
Say asked 10/8, 2013 at 16:55

3

Solved

Looks there is a lot of cool things about Akka framework (I don't really understand the framework, hope to dig into it soon). Is it encouraged to use Akka in Clojure? does it make sense to use Akka...
Oogenesis asked 25/3, 2011 at 1:19

5

Solved

I'm looking for a guide for polyglot programming in this two languages. I know that interop between them is possible, since they are both running on the same Java VM, and both got compiled to the...
Gehlbach asked 13/3, 2012 at 0:39

8

Solved

I've been a Java programmer for over 10 years since starting off with Smalltalk. It's my opinion that next big languages are likely to be ones which run on the ubiquitous Java Virtual Machine...
Neff asked 16/2, 2009 at 22:51

3

Solved

What's a prefereed way to download Scala , via scala-lang.org, can it be added directly by the Eclipse IDE or how to add Scala to Eclipse IDE? Is there a convention on how to add a JVM language? U...
Errol asked 6/2, 2013 at 1:2

1

Solved

I just stumbled upon groovy++ and found it quite interesting. Unfortunately it seems that it's not further developed? According to github the last commit was over a year ago. The mailing l...
Toulouse asked 22/10, 2012 at 11:11

8

Solved

I am an experienced C++ programmer with average Python skills. The reasons I studied Python in the first place were: to get a different perspective on programming (static vs dynamic, interp...
Blindfold asked 10/7, 2009 at 10:34

4

Solved

Using Scala's command line REPL: def foo(x: Int): Unit = {} def foo(x: String): Unit = {println(foo(2))} gives error: type mismatch; found: Int(2) required: String It seems that you can't def...
Bumblebee asked 23/9, 2008 at 12:35

1

Solved

Are tail calls optimised in Frege. I know that there is TCO neither in Java nor in languages which compile to JVM bytecode like Clojure and Scala. What about Frege?
Denaturalize asked 4/4, 2012 at 9:45

1

Solved

Is there any Frege's equivalent of Haskell's getLine and read to parse input from the console in the standard library? Currently I am doing it like this: import frege.IO getLine :: IO String get...
Hebraize asked 27/2, 2012 at 14:54

© 2022 - 2024 — McMap. All rights reserved.