<nakilon>
probably ruby 3.0 can utilize cores within a single process so this program will not use Marshal anymore and become faster?
<adam12>
If it used Ractors, it _might_ be faster, but that's workload dependent, because passing messages and objects can be slow. I think Schneems just did a recent test where he noticed it was slower even tho it should of been faster. There's still some overhead.
<adam12>
Oh I see, they fork and use Marshal as part of the IPC. Hmm.
<adam12>
I wonder if Marshal is indeed slow and something like msgpack could be faster.
<adam12>
I feel like Ruby is the only one that uses an expensive serializer. The PHP version just packs which I'm sure is a ton faster.
BSaboia has quit [Quit: This computer has gone to sleep]
<adam12>
The Ruby version just forks 8 workers, but the PHP version looks at /proc/cpuinfo. The output says "quad core", which means nothing if there's hyperthreading. So did PHP queue 4 workers and saturate the CPU correctly, where 8 Ruby workers oversaturated the CPU and more time was spent context switching?
<adam12>
I find these benchmarks incredibly annoying.
weaksauce has quit [Ping timeout: 256 seconds]
duds- has joined #ruby
<libsys>
which testing framework do you guys use?
<havenwood>
libsys: Minitest
<havenwood>
libsys: RSpec is the other popular one
<libsys>
why people doesn't use test::unit?
<libsys>
too bare-bones?
<havenwood>
libsys: Minitest is the modern test unit.
<havenwood>
libsys: Test unit these days is just a wrapper around Minitest. Just using Minitest directly is the way to go.
<havenwood>
adam12: why didn't this win?? ¯\_(ツ)_/¯
<adam12>
Magic!
<havenwood>
I guess I should be using minitest-power_assert and live my dream...
<adam12>
LOL I guess.
Jonopoly has quit [Quit: WeeChat 3.0]
<adam12>
I think even ruby-core isn't sure which test framework to use. They've been gradually replacing minitest, but are they going back to test-unit? I wish there was some clear direction there.
<adam12>
havenwood: Maybe the Known Limitations is too much for power_assert to be a suitable default.
<adam12>
That said, there seem to be improvements around Ripper/AST/whatever, so perhaps if `assert` can be smarter and error when it knows there will be an issue, it could become a default.
duds- has quit [Remote host closed the connection]
goldfish has joined #ruby
jpw has joined #ruby
hololeap has quit [Ping timeout: 276 seconds]
hololeap has joined #ruby
Inline has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
<leah2>
ruby doesn't have a "check if complete string matches regexp" right?
<leah2>
without explicit anchors
Inline has quit [Remote host closed the connection]
Inline has joined #ruby
Inline has quit [Remote host closed the connection]
Inline has joined #ruby
Inline has quit [Quit: Leaving]
<adam12>
leah2: None that I'm aware of.
<nakilon>
leah2 you can either compare size of $& with size of string
<nakilon>
or check $` and $' for being empty
<leah2>
i just added \A\z around my regexp :p
<nakilon>
adam12 do you use this power_assert thing?
<adam12>
nakilon: No
<adam12>
Tho I might try it on a project.
NightMonkey has joined #ruby
Inline has joined #ruby
TomyWork has quit [Quit: Leaving]
krishnac has joined #ruby
krishnac has quit [Remote host closed the connection]
<adam12>
nakilon: Neat trick matching $& and/or $` and $'.
___nick___ has joined #ruby
donofrio has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
constxd has quit [Ping timeout: 256 seconds]
ur5us_ has joined #ruby
oz has quit [Read error: Connection reset by peer]
jetchisel has quit [Ping timeout: 265 seconds]
trillp has quit [Quit: nyaa~]
jetchisel has joined #ruby
___nick___ has quit [Ping timeout: 256 seconds]
gcd has quit [Remote host closed the connection]
<nakilon>
I wonder is there is a gem that cuts off the hello and bye from the email body
<adam12>
lol
<nakilon>
for example, automated email text part starts with "\n\nHello, nakilon!\n" and ends with "Cheers,\nthe team\n\n---\n\nThis notification is automated. Don't respond\n. All rights reserved.\n\n--\n\nView message on the web: <and here foes gmails links to html version>"
<nakilon>
in HTMl this crap uses two screens and I only need to get the most sensible part of the email to process it
ur5us_ has quit [Ping timeout: 240 seconds]
<nakilon>
correction: that link in the end isn't by gmail, it's by the service that emails me