YARV Compiling on the Web, Native Thread Support #
Here we go, further down the road of Ruby2. Ko1 has a script up for compiling Ruby scripts to YARV bytecode! With or without optimizations.
He’s also started adding native thread support within the last few days. The YARVCore::VM::Thread
comments show possibility for three independant threading modes.
YARV Thread Desgin model 1: Userlevel Thread Same as traditional ruby thread. model 2: Native Thread with Giant VM lock Using pthread (or Windows thread) and Ruby threads run concurrent. model 3: Native Thread with fine grain lock Using pthread and Ruby threads run concurrent or parallel.
As always, a very low bow in reverent subservience to Sasada. (More at the YARV page.)
WhenBoy
Great, but when does YARV get integrated with mainline Ruby?
greasygreasy
Far out on the horizon, the great 2.0 begins to come into view. I’m shaking just thinking about it.
why
WhenBoy: See this. Esp. the IRC conversation.
<|:{
Let’s implement YARV in hardware. Then Ruby will be one of the fastest languages on the planet.
WhenBoy
why: Yes, I understand “soon,” but I was hoping for a more granular update. :) Chomping at the bit for Ruby2, I am.
ko1
now, YARV support only model 2.
why
ko1: And the plan is to have all three?
CrankyDeveloper
If I’m not mistaken, many scripting languages (like CPython) also supports model 2 only? I personally don’t mind as long as I get OS threads. Have never used green threads much either (and one can always use Ruby1.8 if he/she needs green threads anyway).
Also, OOT , when will the page look decent in Opera8? ;-)
CrankyDeveloper
WhenBoy: read again, it’s not just “soon”, it’s “hopefully before the end of 2005.” That should be concrete enough, right? Or do you need the exact date and time? I think Matz has a tradition to release stuffs on Christmas day…
riffraff
well, Sydney supports model 1&3, so at least there is a chance that we can get the feature… and if we can, why we would not have it?
ko1
why: I want to try. It’s fight againt time.
riffraff: Sydney doesn’t change Ruby intereter. YARV changes it.
BTW , Sydney support model 3? I saw sources, but no exclusive synchronization on shared object (ie: Array). It’s too danger.
evan
yep, sydney supports 1 and 3. my MODIFY api is used in all the builtin classes to provide synchronization on shared objects.
Comments are closed for this entry.