dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
BDFOC has quit [Read error: Connection reset by peer]
wmoxam_ has quit [Remote host closed the connection]
wmoxam has joined #ruby
wand has quit [Ping timeout: 255 seconds]
BDFOC has joined #ruby
admin1 has joined #ruby
sphex_ has joined #ruby
wand has joined #ruby
siery has quit [*.net *.split]
sphex has quit [*.net *.split]
Vonter has quit [*.net *.split]
egality has quit [*.net *.split]
Milos has quit [*.net *.split]
miah has quit [*.net *.split]
bougyman has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
depesz has quit [*.net *.split]
cornett has quit [*.net *.split]
ralu1 has quit [*.net *.split]
rapha has quit [*.net *.split]
leftylink has quit [*.net *.split]
PedroG1 has quit [*.net *.split]
sol has quit [*.net *.split]
scottg489 has quit [*.net *.split]
Byteflux has quit [*.net *.split]
hexology has quit [*.net *.split]
Byteflux has joined #ruby
hexology has joined #ruby
siery has joined #ruby
Vonter has joined #ruby
Milos has joined #ruby
scottg489 has joined #ruby
PedroG1 has joined #ruby
leftylink has joined #ruby
rapha has joined #ruby
cornett has joined #ruby
miah has joined #ruby
ralu1 has joined #ruby
depesz has joined #ruby
bougyman has joined #ruby
sol has joined #ruby
Milos has quit [Max SendQ exceeded]
Milos_ has joined #ruby
hightower2 has joined #ruby
egality has joined #ruby
graywolf has joined #ruby
wand has quit [Remote host closed the connection]
wand has joined #ruby
Vonter has quit [Quit: WeeChat 3.8]
infinity_fye has joined #ruby
infinityfye has quit [Ping timeout: 252 seconds]
<adam12>
GDAY
eddof13 has joined #ruby
<siery>
OGDAY c:
<adam12>
siery: how goes
<siery>
Learning about WASI
<siery>
Great that I can port my JS code to Ruby now
<siery>
sup adam12?
<adam12>
siery: Very cool. I want WASM/WASI to become ubiquitous so I can write plugins/extensions/CLI in Ruby and not the lang-de-jour of the host (tho I find Lua OK).
<adam12>
siery: Just shipping things in Ruby, my favourite thing to do.
<siery>
adam12: So it is not possible to write an extension in ruby yet?
<adam12>
siery: Haven't looked, to be honest. Only so much time in the day.
<siery>
I mean in WASM*
<adam12>
I think havenwood has looked. Maybe he can chime in.
<siery>
Damn, I started porting my extension too quick then c;
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<siery>
adam12: Seems it can be done with some work
<siery>
adam12: I gotta test this in ruby 3.2
quazimodo has quit [Ping timeout: 255 seconds]
infinity_fye is now known as infinityfye
Vonter has joined #ruby
shokohsc62 has joined #ruby
shokohsc6 has quit [Ping timeout: 252 seconds]
shokohsc62 is now known as shokohsc6
tomtmym has quit [Quit: Gone.]
MalusVulgaris has quit [Remote host closed the connection]
eddof13 has joined #ruby
dviola has quit [Quit: WeeChat 3.7.1]
<havenwood>
siery: WASM/WASI has great support in Ruby 3.2, but you have to ship the interpreter so it's probably best for edge server use at this point.
<havenwood>
siery: Once WASI supports sockets it should be off to the races on that front.
<havenwood>
The Artichoke Ruby implementation in Rust promises possible smaller WASM binaries for the browser. See, for example, this playground in WASM: https://artichoke.run/
razetime has quit [Remote host closed the connection]
<John_Ivan>
Hi. I wish to download gems locally for standalone installation. what's the approach to this?
shokohsc64 has joined #ruby
shokohsc6 has quit [Ping timeout: 264 seconds]
shokohsc64 is now known as shokohsc6
dviola has quit [Read error: Connection reset by peer]
shokohsc6 has quit [Quit: Ping timeout (120 seconds)]
shokohsc6 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
siery: Nope, but played with each a bit. IIR Ruby+WASI is ~11MB and Natalie is ~3MB once you remove headers so with emscripten should be smaller but I haven’t checked.
<havenwood>
I think it’s a bit easier to build a standalone binary with Natalie rather than Artichoke at the moment.
unlean73 has joined #ruby
Milos_ is now known as Milos
brw5 has quit [Ping timeout: 255 seconds]
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
brw has joined #ruby
Pixi has quit [Quit: Leaving]
shokohsc6 has quit [Read error: Connection reset by peer]
wand has quit [Ping timeout: 255 seconds]
shokohsc6 has joined #ruby
yosafbridge has quit [Quit: Leaving]
<ox1eef_>
John_Ivan: I'd look into 'bundle cache'.
shokohsc6 has quit [Read error: Connection reset by peer]
<John_Ivan>
ox1eef_, I'll use it as a starting point. thanks.
<ox1eef_>
Or 'bundle install --path=foo', then 'ruby -Ifoo/'. Probably won't be that simple. You might have to walk 'foo', and place each 'lib' directory onto the $LOAD_PATH.
shokohsc6 has joined #ruby
wand has joined #ruby
<ox1eef_>
With the 'bundle cache' option, you should be able to distrbute a Gemfile / Gemfile.lock alongside vendor/cache, then run 'bundle install'.