Hacker News new | ask | show | jobs
by Borg3 718 days ago
Hmm, I think this is not supported, but probably not very hard to do it at least for Windows (PE executable).

Hard to say about new Ruby versions like 3.x or even 2.x. 1.8.x have pretty simple building process, just grab the old source. You can use --enable-static builds there. Miniruby is build by default, always, because its part of building process.

Also, if you are platform are you targeting? Win32 only?

1 comments

Okey thank you for the details. I am mainly targetting windows but I wouldn’t mind being able to include mac & linux aswell.

I wonder if experimenting miniruby with cosmopolitian would help with that?

Im not sure what you mean by this... Anyway, if you want to peek at my stuff, take a look at those 2 urls below. One contains various Ruby 1.8.7 Win32 builds (compiled using older Mingw). Other one is my gperf. All this will work on Win2000 and up. In case of gperf, Windows needs to be en_US build. Anything other will simple not work, because Microsoft with they wisdom, localized perf counter names instead aliasing them! Not smart, heh..

http://borg.uu3.net/ftp/pub/archive/ruby/

http://ds-1.ovh.uu3.net/ftp/home/borg/gperf.zip

What I meant is that compiling cosmopolitan with miniruby would maybe make the miniruby executable APE-format (actually portable executable). That would allow me to run the same executable on all these mentioned platforms.

But Idk, I’m just thinking loudly and probably missing a huge detail which would make the idea non-working.

Also, thanks for the linked resource, I’ll definitely give it a go!

Ahh, this stuff.. Never done that :) Im happy enough to provide just .rb + ruby.exe (MiniRuby) for Win32. UNIX/Linux is no issue, since can be easly installed or compiled. In worst case I can provide static ruby too there.