[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Precompiling Ruby programs

John Wells

4/26/2005 10:22:00 PM

Guys,

We're considering Ruby here at work for a web application we would resell
to customers.

We're currently a Java shop, so distributing code in binary form (via
class files) is no problem. We get a few benefits: performance benefits
and IP protection (via bytecode obfuscation).

Is there any way to precompile ruby programs? How have you handled
similar scenarios? This is unfortunately a stopping point for us, as we
can't comfortably distribute our readable code to clients.

I appreciate any insight you can provide.

John





5 Answers

David Mitchell

4/26/2005 10:38:00 PM

0

We have an internal tool with a lot of dependencies: wxRuby, SSL
libraries etc, but the guys that use it don't want to stuff around
installing all that on their machine to use our tool so we package it
all up into an exe with exerb (http://exerb.sourceforge.jp/ind...)

Works really well. The resulting executable is fairly large, but it
works perfectly, performance is fine (hard to tell with our app, because
it's not very cpu intensive).

HTH

David

John Wells wrote:
> Guys,
>
> We're considering Ruby here at work for a web application we would resell
> to customers.
>
> We're currently a Java shop, so distributing code in binary form (via
> class files) is no problem. We get a few benefits: performance benefits
> and IP protection (via bytecode obfuscation).
>
> Is there any way to precompile ruby programs? How have you handled
> similar scenarios? This is unfortunately a stopping point for us, as we
> can't comfortably distribute our readable code to clients.
>
> I appreciate any insight you can provide.
>
> John
>
>
>
>
>


--
David Mitchell
Software Engineer
Telogis

NOTICE:
This message (including any attachments) contains CONFIDENTIAL
INFORMATION intended for a specific individual and purpose, and
is protected by law. If you are not the intended recipient,
you should delete this message and are hereby notified that any
disclosure, copying, or distribution of this message, or the
taking of any action based on it, is strictly prohibited.


David Mitchell

4/26/2005 10:43:00 PM

0

One problem, just realised the ruby source is stored verbatim inside the
executable, so this might not be your best bet. However, seaching for
"build ruby exe windows" on google turns up a few other candidates.

David

David Mitchell wrote:
> We have an internal tool with a lot of dependencies: wxRuby, SSL
> libraries etc, but the guys that use it don't want to stuff around
> installing all that on their machine to use our tool so we package it
> all up into an exe with exerb (http://exerb.sourceforge.jp/ind...)
>
> Works really well. The resulting executable is fairly large, but it
> works perfectly, performance is fine (hard to tell with our app, because
> it's not very cpu intensive).
>
> HTH
>
> David
>
> John Wells wrote:
>
>> Guys,
>>
>> We're considering Ruby here at work for a web application we would resell
>> to customers.
>>
>> We're currently a Java shop, so distributing code in binary form (via
>> class files) is no problem. We get a few benefits: performance benefits
>> and IP protection (via bytecode obfuscation).
>>
>> Is there any way to precompile ruby programs? How have you handled
>> similar scenarios? This is unfortunately a stopping point for us, as we
>> can't comfortably distribute our readable code to clients.
>>
>> I appreciate any insight you can provide.
>>
>> John
>>
>>
>>
>>
>>
>
>


--
David Mitchell
Software Engineer
Telogis

NOTICE:
This message (including any attachments) contains CONFIDENTIAL
INFORMATION intended for a specific individual and purpose, and
is protected by law. If you are not the intended recipient,
you should delete this message and are hereby notified that any
disclosure, copying, or distribution of this message, or the
taking of any action based on it, is strictly prohibited.


Ara.T.Howard

4/26/2005 11:03:00 PM

0

Mark Hubbart

4/27/2005 5:53:00 PM

0

On 4/27/05, Paul Brannan <pbrannan@atdesk.com> wrote:
> With nodewrap, you can store the code as an AST:
[...]
> The process is still somewhat reversible, but afaik no one has written a
> tool yet to do this.
>
> I should also note that the code is still experimental, and you should test
> your code thoroughly after transforming it this way.

Looks cool! The url, for the google-impaired:
http://rubystuff.org...

cheers,
Mark



george

11/8/2011 7:35:00 PM

0

?BAMA'S Abominable Presidency wrote:
>
>
> "Dawlish" <pjgno1@hotmail.com> wrote in message
> news:7b6161dd-b539-4796-bd11-d6bdf03fa507@h24g2000yqm.googlegroups.com...
>> On Nov 8, 4:24 pm, Racist nutter wrote:
>>
>> Another weather post. These people are so stupid, it is incredible.
>> 434/13. Stupid denier and racist nutter.
>>
>>
>> Bet there isn't a denier who'll tell this piece of detritus that he's
>> talking utter rubbish and tell him that one temporary, local weather
>> event that hasn't actually happened, has nothing to do with global
>> cliamte, is there?
>> ===============
>
> Except when there is a record heat wave in Alaska, then the GW k00ks
> tel;l us weather is Climate and GW is responsible.
>
>

It doesn't matter what the weather does.
It's always global warming done it..
Any time this is pointed out the 'global warming is the fault of man
cult' claim that it's 'just weather'...
What else makes up climate ???????