Sheilong has quit [Quit: Connection closed for inactivity]
perrierjouet has quit [Quit: WeeChat 3.8]
razetime has joined #ruby
perrierjouet has joined #ruby
neshpion has quit [Quit: neshpion]
Al2O3_ has quit [Ping timeout: 272 seconds]
<tsujp>
Well surely the inclusion of multiple testing libraries goes against that ethos too re: mail library
<tsujp>
Not knocking Ruby, or the lack of a stdlib mail library, or the inclusion of 2 testing libraries in stdlib just curious that the line is drawn where it is
<tsujp>
Since Ruby is mostly a web language (mostly used for) it seems strange to me it wouldn't be folded in is all
<tsujp>
Given how major email is to the web
Sankalp has quit [Ping timeout: 256 seconds]
cartdrige has quit [Ping timeout: 256 seconds]
<ox1eef_>
It also does not include a web framework. I think it is wise to not pick favorites by bringing them into the stdlib, and let the ecosystem flourish separately.
<cartdrige>
Does the last version of ruby offers bytecode pseudo compiling or something to make it faster?
<cartdrige>
cause i think it's slower than python in most cases right?
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Sankalp has joined #ruby
yxhuvud has joined #ruby
Sankalp has quit [Ping timeout: 260 seconds]
___nick___ has joined #ruby
Sankalp has joined #ruby
Linux_Kerio has quit [Quit: Konversation terminated!]
Linux_Kerio has joined #ruby
pslotko has joined #ruby
Linux_Kerio has quit [Quit: Konversation terminated!]
Linux_Kerio has joined #ruby
gr33n7007h has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
moldorcoder7 has joined #ruby
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #ruby
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #ruby
pslotko has quit [Ping timeout: 260 seconds]
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Client Quit]
teclator has joined #ruby
pslotko has joined #ruby
teclator has quit [Ping timeout: 256 seconds]
pslotko has quit [Quit: Client closed]
Sankalp has quit [Ping timeout: 265 seconds]
plantman2 has joined #ruby
Sankalp has joined #ruby
<ox1eef_>
No idea if it is slower than Python or not, but iirc RubyVM::InstructionSequence can produce and parse bytecode.
razetime has joined #ruby
plantman2 has quit [Ping timeout: 256 seconds]
razetime has quit [Quit: See You Space Cowboy]
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Client Quit]
Momentum_ is now known as Momentum
eddof13 has joined #ruby
teclator has joined #ruby
John_Ivan has joined #ruby
hololeap_ is now known as hololeap
teclator has quit [Ping timeout: 265 seconds]
perrierjouet has quit [Quit: WeeChat 3.8]
perrierjouet has joined #ruby
<havenwood>
cartdrige: Ruby ships with two JITs called MJIT and YJIT. In the latest stable Ruby, YJIT is built is Rust and is quite fast.
<havenwood>
built in*
<havenwood>
If a suitable version of Rust is available, YJIT will be built automatically.
<havenwood>
You can run Ruby with `ruby --yjit` or just `ruby --jit` assuming YJIT built, or set `export RUBYOPT="--yjit"` in your terminal.
<havenwood>
It's production ready and is a nice just-in-time compiler.
<havenwood>
Or if you mean compiling source code to YARB and caching it to disk so the grammar doesn't have to get parsed each time unless the file changes, Rails does that by default with Bootsnap. It's not built in to RubyGems like it is for Elixir's package manager, but could be.
<havenwood>
Like ox1eef_ said
<havenwood>
You can `RubyVM::InstructionSequence.compile_file(path).to_binary` or `RubyVM::InstructionSequence.compile(code).to_binary`.
<havenwood>
Then `RubyVM::InstructionSequence.load_from_binary(either_of_the_above_bytecode)`.
<havenwood>
Run it with `.eval` and you skip the grammar parsing and just give YARV the YARB IR to run directly and JIT.