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)]
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`.
<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/