3 ms·
See http://stackoverflow.com/questions/12487986/how-can-i-make-ruby-release-unreferenced-memory http://stackoverflow.com/questions/12487986/how-can-i-make-r...
by cookiecaper 14y ago
See http://stackoverflow.com/questions/12487986/how-can-i-make-ruby-release-unreferenced-memory http://stackoverflow.com/questions/12487986/how-can-i-make-r... . The tl;dr of it is that MRI is atrocious at memory management. For political reasons we are stuck using Ruby in a situation like that; if we could easily, accurately compile that to Java and run it with with java -jar my_script.jar it'd be awesome.
- drstewart 14y agoYou are aware of JRuby, no?
- chc 14y agoAnd just for anyone unaware, this project is by the author of JRuby.
- VeejayRampay 14y agoJust for the sake of correctness, Charles Oliver Nutter is actually of one of the main developers of JRuby, a project created about 10 years ago but which has evolved a LOT since then. See http://en.wikipedia.org/wiki/JRuby#History http://en.wikipedia.org/wiki/JRuby#History
- cookiecaper 14y agoI am aware, but I haven't really had the time to get involved in testing it. I know we'd have to make some code changes because we depend on modules with native extensions in our script, but I don't know that they'd really be prohibitive. Much easier would be: "Make this Java with one command to a cross-compiler".
- sublimit 14y agoThanks, I figured there would be some situation like this that'd inspire one to write a cross compiler.