jvm

Lua to JVM compiler?

Is there a compiler for Lua that compiles to JVM bytecode (and would thus be able to run on Google app engine)? ...

Research on banishing heap space issues?

We are putting together a platform that can supposedly load any jar file and run statistical models. The issue im facing right now is that some models run too big to fit on our platform causing heap out of memory errors. I know there has been research done on this but I cant find them anymore. In essence, how does google app engine do...

Java: Why does MaxPermSize exist?

Why does MaxPermSize exist? ...

Zero-copy message-passing on the JVM

A faithful implementation of the actor message-passing semantics would mean that message contents are deep-copied from a logical point-of-view, even for immutable types. Deep-copying of message contents remains one the biggest bottlenecks for naïve implementations the actor model, so some implementations (ie. Kilim) support zero-copy mes...

Why does the (Sun) JVM have a fixed upper limit for memory usage (-Xmx)?

In the spirit of question http://stackoverflow.com/questions/3356005/java-why-does-maxpermsize-exist, I'd like to ask why the Sun JVM uses a fixed upper limit for the size of its memory allocation pool. The default is 1/4 of your physical RAM (with upper & lower limit); as a consequence, if you have a memory-hungry application you have ...

What's actually in the Managed Runtime Initiative's kernel patches and JVM?

http://managedruntime.org/ is pretty sparse on what exactly are in the tarballs and why users would want them. http://lwn.net/Articles/392307/ has some more details, but the author also isn't sure what the memory management modules actually do. Apparently the high-level goal is to reduce GC pauses, but I'd be interested in (pointers to) ...

Does anyone expect the JVM to ever have reified types?

I understand the challenge presented by having reified types for the JVM, well, maybe I don't understand it so much as I've heard repeatedly that the JVM simply has no way to support such a concept without breaking backwards compatability. But that just makes me wonder more, are there plans for reified types in the future or will the JV...

What is the most performant lisp on the JVM

What is the most performant (fastest) lisp implementation on the JVM? By lisp implementation I consider all implementations of any language in lisp family, like Common Lisp, Scheme, Clojure, ... I know that Clojure can be made pretty fast using type hints, that ABCL is in general not considered to be fast. I don't have experience using ...

Java VM tuning - Xbatch and -Xcomp

Hi I am looking at the JVM configuration options for running Alfresco, mainly this document on the Alfresco Wiki. One of the recommendations is to use the JVM flags -Xcomp and -Xbatch. The justification of this is: If you wish to have Hotspot precompile the classes, you can add [-Xcomp and -Xbatch]. This will, however, significantly...

Unexpected JVM behaviour on 64bit linux

Hi, i tried to compare my java web app behaviour on 32 bit windows and 64 bit linux. When i view the memory usage via jconsole i find very different graph of memory usage. On windows the appl never touches 512m. However when i run on linux 64bit with 64 bit VM the memory keeps invcreasing gradually and reaches peak value about1000m ver...

Create a JVM programming language

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 virtual machine for that runs the intermediate code created by the compiler. I was now thinking instead of compiling to my own intermediate code...

Is it better to store value as variable or call method again?

Recently, I started learning some Java. From what I've already learned about JVM it looks like JIT makes it pretty fast on operations requiring CPU cycles (i.e. calling a method) but also makes it hungry for memory. So when I need same output from same method as before, is it generally better approach to store the output from before in v...

Deliberate Clojure symbol name limitations or inherited?

In Common LISP I can do: (setf a1 'a) (setf 1a 'b) In clojure I can do the first (ignoring the fact that setf and def work differently) (def a1 'a) but with the second I get an error (def 1a 'b) java.lang.NumberFormatException: Invalid number: 1a Did Clojure just inherit this limitation from Java, or is it deliberate? (ie you c...

How can I see the native code generated by CLR?

Is there any way to see the native code generated by CLR? In java there is a option "-XX:+PrintOptoAssembly" to see the native code compiled by JIT. So is there any similar thing for CLR? ...

Determining location of JVM executable during runtime

How does one obtain the location of the executable of the currently running JVM during runtime? I would like to instantiate another JVM as a subprocess using the ProcessBuilder class. I am aware that there is the java.home System property, but this doesn't specify the location of the JVM executable. I understand I could do something lik...

who is the owner of JVM?

hi, 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 to sun micro sytems? suppose If i want to creat my OWN JVM, I have to pay to sun micro sytems and get permission from SUN(ORACLE)? If it is...

one program runs on multiple JVMs?

I know that MPI does it, also heard that Erlang has nice support for this. But is there any similar frameworks/languages on JVM? I need to run one program distributed on multiple machines transparently. Thanks, ...

How exactly does java compilation take place?

Confused by java compilation process OK i know this: We write java source code, the compiler which is platform independent translates it into bytecode, then the jvm which is platform dependent translates it into machine code. So from start, we write java source code. The compiler javac.exe is a .exe file. What exactly is this .exe file...

Compiling/running a java program in a different directory.

I'm writing a makefile that compiles a .java file in a different directory, and then I want to run it without changing directories. I want to do something along the lines of: $(SQM_JAVA_TOOL_DONE) : $(SQM_JAVA_TOOL) $(shell cd /home_dir) javac myjavafile.java java myjavafile where the java file is /home/myjavaf...

Checking if Java is installed in a makefile

I'm writing a make file that compiles and runs a Java program, but it'll be run on different platforms so I want the make file to first determine if Java IS installed, and only then will it compile and run the .java file. How would I go about doing this? ...