adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
hololeap has quit [Ping timeout: 276 seconds]
hololeap has joined #ruby
roadie has joined #ruby
<rapha> that sums it up quite well
roadie has quit [Ping timeout: 240 seconds]
yxhuvud has joined #ruby
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
ollysmith has joined #ruby
roadie has joined #ruby
AMPed has joined #ruby
roadie has quit [Ping timeout: 264 seconds]
weaksauc_ is now known as weaksauce
m_antis has joined #ruby
Rounin has quit [Ping timeout: 260 seconds]
ur5us_ has quit [Ping timeout: 264 seconds]
ua_ has quit [Ping timeout: 256 seconds]
ua__ has joined #ruby
ur5us_ has joined #ruby
KOTP has quit [Ping timeout: 265 seconds]
roadie has joined #ruby
pull has joined #ruby
KOTP has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
factor7 has joined #ruby
pull has quit [Quit: Czesc]
factor7 has quit [Client Quit]
TCZ has joined #ruby
AMPed has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Leaving]
m_antis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AMPed has joined #ruby
AMPed has quit [Client Quit]
<nakilon> rapha there is if defined?(x)
ur5us_ has quit [Ping timeout: 264 seconds]
ur5us_ has joined #ruby
ur5us_ has quit [Ping timeout: 264 seconds]
robotmay has quit [Quit: No Ping reply in 180 seconds.]
robotmay has joined #ruby
roadie has joined #ruby
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
jpw has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
lunarkitty has joined #ruby
AMPed has joined #ruby
roadie has joined #ruby
Guest3728 has quit [Read error: Connection reset by peer]
Guest3728 has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
krishnac has joined #ruby
krishnac has quit [Remote host closed the connection]
AMPed has quit [Ping timeout: 268 seconds]
roadie has quit [Ping timeout: 264 seconds]
_ht has joined #ruby
ur5us_ has joined #ruby
jpw has quit [Remote host closed the connection]
_ht has quit [Remote host closed the connection]
Rounin has joined #ruby
Jonopoly has joined #ruby
cybertron has joined #ruby
teclator has joined #ruby
ur5us_ has quit [Ping timeout: 260 seconds]
ur5us_ has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
_whitelogger has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
<rapha> nakilon: still won't work like `if defined?(x); Parallel(list).each do |i| ; else list.each do |i| ; ... ; end`
<rapha> this is just a lazyness wish though, so nm
ur5us_ has quit [Ping timeout: 264 seconds]
<ox1eef> isene: cool, very good.
Jonopoly has quit [Quit: WeeChat 3.0]
TCZ has joined #ruby
robotmay has quit [Quit: Be excellent to each other]
robotmay has joined #ruby
Jonopoly has joined #ruby
duds- has quit [Remote host closed the connection]
duds- has joined #ruby
shokohsc8618 has joined #ruby
TCZ has quit [Quit: Leaving]
coffeejunk has quit [Quit: coffeejunk]
walez has joined #ruby
coffeejunk has joined #ruby
shokohsc8618 has quit [Quit: The Lounge - https://thelounge.chat]
duds- has quit [Ping timeout: 276 seconds]
trillp has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
Inline has joined #ruby
walez has quit [Quit: Leaving]
BSaboia has joined #ruby
constxd has joined #ruby
shokohsc8618 has joined #ruby
<nakilon> I feel like it might be about that Marshal part, not sure why they need it
<nakilon> this benchmark results in a sad picture here https://en.wikipedia.org/wiki/Comparison_of_programming_languages#Benchmarks
<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> Or lots of us use the spec style of Minitest or combine styles.
<havenwood> I tent towards `assert` tests wrapped in spec style.
<havenwood> tend*
<havenwood> describe and let but assert
<libsys> thanks havenwood ... very useful links :)
<adam12> I use minitest too, but I do some days wish it was less mini...
<havenwood> You can go the other way around too, and just def with spec style assertion, but I see more the other way
<havenwood> adam12: maxitest
<adam12> I spec-assert sometimes too...
<havenwood> adam12: adequatetest
<adam12> Rather, I _always_ spec-assert if I'm using minitest::spec. But I bounce between both styles.
<havenwood> adam12: I wish it was more mini. I just want a smart assert like ExUnit after trying that way.
<adam12> Like power_assert?
<adam12> I should look at maxitest more. I cant' remember why I discarded it originally.
<havenwood> You just: assert 1 + 1 == 2
<havenwood> And the test framework gives you a nice error, without you cherry picking a proper "type" of assertion.
<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.
Inline has quit [Ping timeout: 265 seconds]
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
aeris has joined #ruby
weaksauce has joined #ruby
AMPed has joined #ruby
AMPed has left #ruby [ERC (IRC client for Emacs 26.3)]
duds-_ has joined #ruby
duds- has quit [Ping timeout: 276 seconds]
duds-_ is now known as duds-
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
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
shokohsc8618 has quit [Quit: The Lounge - https://thelounge.chat]
roadie has joined #ruby
shokohsc8618 has joined #ruby
duds- has joined #ruby
duds- has quit [Remote host closed the connection]
duds- has joined #ruby
duds- has quit [Ping timeout: 276 seconds]
duds- has joined #ruby
duds- has quit [Remote host closed the connection]
duds- has joined #ruby
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
goldfish has quit [Ping timeout: 264 seconds]
jpw has quit [Ping timeout: 256 seconds]
Inline has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
mollerup has joined #ruby
jhass|off has joined #ruby
nmollerup has quit [Remote host closed the connection]
phenom has quit [Quit: See ya! Wouldn't want to blah blah..]
jhass has quit [Quit: Bye]