0

Is there a JSR 223 implementation of the Java language? or even something that can parse and run Java?

My intentions are to make Java reload times almost zero during development like Javascript and PHP, without having to pay for JRebel or deal with that classloader/hotswap hell. So runtime performance doesn't matter, a simple treewalker would be more than fine.

Thanks.

8
  • 3
    Most modern IDEs support hot reload in debugging mode - if that's all you need. Commented Nov 18, 2016 at 12:35
  • I was thinking of something like Play Framework, where you run it from the console, when you edit the code and reload the browser it compiles the code and reloads it. But the compile times tend to kill productivity. Commented Nov 18, 2016 at 12:45
  • The IDE will only recompile the class you changed so the reloading time will be minimal. Commented Nov 18, 2016 at 12:54
  • are we talking about some big application? in that case you probably need an application container + automation in your IDE that builds + re-deploys as a save action. hot code replace is inherently dicy because you replace code but not state. Commented Nov 18, 2016 at 15:09
  • Even with smallish apps the whole "make a change wait 10-20sec to see the results" cycle wastes a lot of time at the end of the day. Hot swapping code in the JVM is a well known mess. So I was thinking if there was a basic Java interpreter that could run business logic and every time a new request comes in, I would tear down and parse the whole thing kind like PHP. It's just an idea I would like to test. Commented Nov 18, 2016 at 15:44

3 Answers 3

0

Look at https://github.com/dcevm/dcevm + HotswapAgent https://github.com/HotswapProjects/HotswapAgent, it should match with your requiremets

Sign up to request clarification or add additional context in comments.

Comments

0

Technically, it is possible. However, this is rather a smell in your application and you better to just pick a proper tool for the task. There are plenty of JRebel alternatives out there. Just pick and try.

Comments

0

I think it is theoretically possible. However every process certainly takes a certain amount of time to be done, so the idea of making the Java reload times almost zero during development like Javascript and PHP is quite impossible. Like Anton Arhipov said, there are plenty of JRebel alternatives out there. Just pick and try, whatever makes the reload time almost zero then do chose that. :)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.