jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
jpn has joined #ruby
Rounin has quit [Ping timeout: 265 seconds]
jpn has quit [Ping timeout: 265 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
mikecmpbll has joined #ruby
jpn has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
jpn has quit [Ping timeout: 244 seconds]
zoknert has joined #ruby
zoknert has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
jpn has joined #ruby
nirvdrum has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
desnudopenguino has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 244 seconds]
legahc has quit [Quit: %bye%]
legahc has joined #ruby
c10l0 has joined #ruby
c10l has quit [Ping timeout: 250 seconds]
c10l0 is now known as c10l
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
nirvdrum has quit [Ping timeout: 260 seconds]
jetchisel has quit [Ping timeout: 246 seconds]
jetchisel has joined #ruby
Vonter has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
nirvdrum has joined #ruby
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
darkstardevx has quit [Ping timeout: 260 seconds]
mdemo has quit [Quit: The Lounge - https://thelounge.github.io]
mikecmpbll has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
Everything has quit [Quit: leaving]
zoknert has joined #ruby
Aminda has quit [Ping timeout: 258 seconds]
Aminda has joined #ruby
zoknert has quit [Ping timeout: 246 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
zoknert has joined #ruby
zoknert has quit [Ping timeout: 265 seconds]
zoknert has joined #ruby
zoknert has quit [Remote host closed the connection]
zoknert has joined #ruby
zoknert has quit [Ping timeout: 265 seconds]
jpn has joined #ruby
mbarbar has quit [Ping timeout: 268 seconds]
mbarbar has joined #ruby
kristianpaul has quit [Read error: Connection reset by peer]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
kristianpaul has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
jpn has joined #ruby
<tsujp> is there a shorthand for `module_function :foo` -- I have a module I am using to contain a few methods and adding the aforementioned each time is verbose as
shokohsc has quit [Quit: Ping timeout (120 seconds)]
NightMonkey has quit [Quit: ZNC - http://znc.in]
lagash_ has joined #ruby
shokohsc has joined #ruby
lagash has quit [Ping timeout: 260 seconds]
NightMonkey has joined #ruby
zoknert has joined #ruby
tsvallender has joined #ruby
mikecmpbll has joined #ruby
zoknert has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
_ht has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
idiocrash has joined #ruby
tsvallender has quit [Quit: Connection closed]
ur5us has quit [Ping timeout: 250 seconds]
moldorcoder7 has joined #ruby
hightower3 has quit [Quit: Leaving]
johan_ has joined #ruby
johan_ has quit [Quit: Leaving]
reset has joined #ruby
johan_ has joined #ruby
jpn has joined #ruby
reset has quit [Quit: reset]
BSaboia has quit [Quit: ZNC - https://znc.in]
BSaboia has joined #ruby
BSaboia has quit [Max SendQ exceeded]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
BSaboia has joined #ruby
moldorcoder7 has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
jetchisel has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
Eris7 has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
Eris7 has quit [Ping timeout: 244 seconds]
markong has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.6]
perrierjouet has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
Successus has joined #ruby
Sankalp has quit [Ping timeout: 268 seconds]
walez__ has joined #ruby
Sankalp has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
jpn has joined #ruby
anon00 has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
walez__ has quit [Quit: Leaving]
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
TomyLobo has joined #ruby
<TomyLobo> is there something like a JIT-compiled ruby out there that i can use? or a faster ruby in general?
<TomyLobo> oh, ruby 3.1 has a JIT. guess I just need to update :D
jpn has joined #ruby
Guest5359 has joined #ruby
<Guest5359> slv
<Guest5359> estou iniciando em Ruby
<Guest5359> me indiquem alguns livros
Guest5359 has quit [Client Quit]
<TomyLobo> I suppose that's spanish for "do you have any ruby book recommendations"?
<TomyLobo> there's a "books" link in the topic. don't know if there are spanish books among them
jpn has quit [Ping timeout: 265 seconds]
Guest254 has joined #ruby
Guest254 has quit [Client Quit]
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
<TomyLobo> if I wanna try out a variety of different ruby versions, which installation method should I pick? rbenv? rvm?
tsv has joined #ruby
tsv is now known as tsvallender
royo25 has joined #ruby
<TomyLobo> ok, updating from 2.7 to 3.1 didn't help performance :/
royo25 has quit [Client Quit]
dionysus69 has joined #ruby
<Rounin> I think it's Portuguese... For like... "I'm beginning with Ruby, point out some books"
<Rounin> Or like... show me some books I suppose
<Rounin> Oh yeah, .br TLD as well
tsvallender has quit [Quit: Connection closed]
<Rounin> Hmm... Pretty similar, though, when it's in writing
<Rounin> Portuguese pronunciation is a mystery mankind will never solve
<Rounin> Along with Danish and French
cocalero has joined #ruby
cocalero_ has joined #ruby
cocalero_ has quit [Client Quit]
<joto> TomyLobo: I'm using rbenv
<TomyLobo> I think I'm gonna use that. looks simple
<joto> indeed, that's mainly the reason why I chose it
<joto> also, most modern tutorials/resources seem to advise it
tsv has joined #ruby
<havenwood> TomyLobo: The JIT is disabled by default. Try with `--yjit` and try with `--mjit` and see how those two impact results.
<TomyLobo> havenwood, thanks. not sure how i fit that in the shebang though :D
tsv has quit [Quit: Connection closed]
<TomyLobo> hmm that didn't give me a lot of performance boost, unfortunately
<TomyLobo> 2:27 => 2:10
nmollerup has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
moldorcoder7 has joined #ruby
jpn has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
moldorcoder7 has quit [Ping timeout: 268 seconds]
moldorcoder7 has joined #ruby
nirvdrum has joined #ruby
<AstrallyForged> (Portuguese, yes, it's got more words ending in -m than -n)
<AstrallyForged> (Roun_n is more or less correct, although that sounds a bit likeva demand in English; I'd definitely render it as more of a polite request)
Zerock is now known as Zeroctober
jpn has quit [Ping timeout: 250 seconds]
cocalero has joined #ruby
joto has quit [Ping timeout: 252 seconds]
nirvdrum has quit [Quit: nirvdrum]
jpn has joined #ruby
markong has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
johan_ has quit [Quit: Leaving]
jpn has quit [Ping timeout: 252 seconds]
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b5 - https://znc.in]
ollysmith has joined #ruby
moldorcoder7_ has joined #ruby
moldorcoder7 has quit [Ping timeout: 265 seconds]
ollysmith has quit [Quit: ZNC 1.8.2+deb3 - https://znc.in]
ollysmith has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
<TomyLobo> as in "ordeM e progresso", right :)
jpn has quit [Ping timeout: 260 seconds]
fef has joined #ruby
CalimeroTeknik has quit [Quit: バイバイ]
CalimeroTeknik has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
nirvdrum has joined #ruby
anon00 has quit [Quit: Konversation terminated!]
_ht has quit [Remote host closed the connection]
<adam12> tsujp: No shorthand. You might be able to get away with `extend self`.
<adam12> TomyLobo: What's your issue with perf?
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
fef has quit [Ping timeout: 258 seconds]
CalimeroTeknik has quit [Quit: バイバイ]
nirvdrum has quit [Quit: nirvdrum]
CalimeroTeknik has joined #ruby
<TomyLobo> adam12, I'm trying to write a solitaire solver, specifically for the "Fortunes's Foundation" variant The Zachtronics Solitaire Collection. I have the rules all set up. I wrote a depth-first solver that finds a single solution which uses 2300 moves on a game I transcribed. So I rewired it to be breadth-first instead, and step through all possible paths at every turn. takes a loooot of time, so I'm looking into ways to speed it up
<Rounin> How about multithreading?
<Rounin> If you could divide the workload into a number of threads equal to your number of cores, say...
<Rounin> That could at least divide it by 4 or 6 or 8 or whatever
jpn has joined #ruby
<Rounin> I used that to speed up one of my Project Euler solutions
<Rounin> I also used the "buy a new computer" technique
<Rounin> Also mandatory "try Crystal" suggestion, I suppose, though that's really a topic for another channel
jpn has quit [Ping timeout: 265 seconds]
iampokerpaul has joined #ruby
iampokerpaul has quit [Client Quit]
ur5us has joined #ruby
idiocrash has quit [Ping timeout: 244 seconds]
idiocrash has joined #ruby
<TomyLobo> yeah I'm also working on parallelizing it at the same time
idiocrash has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
<TomyLobo> but I think it's still going to be slow
<TomyLobo> Rounin, what's crystal?
<TomyLobo> googling "ruby crystal" is obviously not very helpful :D
idiocrash has joined #ruby
<Rounin> TomyLobo: It's a compiled and typed language that's sort of nearly identical to Ruby except they introduced some random changes that were totally unnecessary, but otherwise the main difference is the type information
<Rounin> Also it mainly works on Linux
<TomyLobo> I'm running this on WSL anyway, so that's fine :)
<Rounin> Ah... It seems like it should work on WSL, though I haven't tried
<TomyLobo> WSL2 is basically just a linux vm
<sam113101> Rounin: euler problems should take less than one minute even with single threaded programs, but I'm guilty of going that route too ;S
<Rounin> sam113101: Haha, yeah, this was prime factorization, though, so I guess it's OK for it to take a little while
ur5us has quit [Ping timeout: 248 seconds]
<AstrallyForged> TomyLobo: sure :)
<AstrallyForged> a lot of Portuguese -m words are valid Spanish words with the same meanings if you s/m$/n/
ur5us has joined #ruby
Successus has quit []
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
ur5us has quit [Quit: Leaving]
shokohsc has joined #ruby
ur5us has joined #ruby
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby