best way to distribute?

C

Charles Oliver Nutter

John said:
Charles Oliver Nutter:

Actually, we've recently enabled an interpreted mode in IronRuby / DLR. We run interpreted by default until a method gets called multiple times, and then we compile. The exact heuristic hasn't been finalized yet, but we're forced to do this to do better on startup perf. The cost of JIT is rather expensive ...

I'll be interested to see what heuristic you come up with. Currently
JRuby just uses "20 invocations" as the deciding moment. This ends up
working great for small apps, where the code you want compiled gets
compiled quickly. But for large apps, it seems we may want an upper
limit on the number of JITed methods, since it can eventually swamp the
system with barely-used code.

- Charlie
 
P

Pavel Pvl

Cameron said:
Sounds like it to me, although I don't know starpacks at all.

I've had very good luck with rubyscript2exe. Even used it with C
extensions (like rb-gsl) and it worked on different distributions than
what I "compiled" it on.

Pavel, it's really straight-forward to use. What are you having
problems with?

Cameron

well, ive been experimenting some more with it. ran into some problems
with the ftools library. but i somehow fixed it. now im just trying to
figure out how this system works. i have a script compiled, but it only
lets me load it through a terminal. so ill just need to paly with it a
bit more, but it seems to be working.

otherwise, for things like jruby and so forth. idunno y, but it seems as
tho my ubuntu isn't "built" for them. i guess its a problem with my
java, but they wont work. although i would like to try them
 
P

Pavel Pvl

does anyone know if Matz plans on making a compiler? While ruby is an
awesome language and extensible, there is time to make a compiler. plus
its C derived.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,274
Messages
2,571,367
Members
48,060
Latest member
JerrodSimc

Latest Threads

Top