havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
m27frogy has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
dviola has joined #ruby
oneeggeach has joined #ruby
m27frogy has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
m27frogy has joined #ruby
d3bug has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
Rudd0 has quit [Ping timeout: 260 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
<deimos_> i didn't know there was a #sequel, thanks!
<al2o3-cr> deimos_: /msg alis list sequel
oneeggeach has quit [Quit: Leaving...]
<al2o3-cr> probably check that as *sequel*
jinmiaoluo has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
krillbat has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
m27frogy has joined #ruby
Hien has quit [Read error: Connection reset by peer]
Hien has joined #ruby
hutch has quit [Ping timeout: 260 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
jinmiaoluo has quit [Ping timeout: 265 seconds]
jinmiaoluo has joined #ruby
jinmiaoluo has quit [Ping timeout: 265 seconds]
jinmiaoluo has joined #ruby
ur5us has joined #ruby
m27frogy has quit [Quit: ZNC - https://znc.in]
m27frogy has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jinmiaoluo has quit [Ping timeout: 272 seconds]
jinmiaoluo has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ChmEarl has quit [Quit: Leaving]
Esa__ has quit []
m27frogy has quit [Read error: Connection reset by peer]
m27frogy has joined #ruby
cadeskywalker has quit [Ping timeout: 240 seconds]
pandakekok9 has joined #ruby
golevka has quit [Read error: Connection reset by peer]
cadeskywalker has joined #ruby
robotmay has quit [Ping timeout: 260 seconds]
mbarbar has quit [Ping timeout: 265 seconds]
robotmay has joined #ruby
canton7 has quit [Ping timeout: 265 seconds]
canton7 has joined #ruby
pandakekok9 has quit [Read error: Connection reset by peer]
mbarbar has joined #ruby
jinmiaoluo has quit [Ping timeout: 256 seconds]
arekushi has joined #ruby
jinmiaoluo has joined #ruby
krillbat has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
troulouliou_div2 has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
cthu| has quit [Ping timeout: 260 seconds]
careta has joined #ruby
krillbat has joined #ruby
MrCrackPot has joined #ruby
MrCrackPot has quit [Client Quit]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
sergioro has quit [Quit: leaving]
akem has quit [Ping timeout: 250 seconds]
gitter1234 has quit [Quit: Connection closed for inactivity]
sergioro has joined #ruby
polishdub has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
alfiemax_ has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
sauvin has joined #ruby
alfiemax_ has quit [Ping timeout: 256 seconds]
polishdub has quit [Quit: leaving]
kinduff has quit [Read error: Connection reset by peer]
roadie has joined #ruby
kinduff has joined #ruby
mikedoty has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 272 seconds]
dviola has quit [Quit: WeeChat 2.8]
alexherbo2 has joined #ruby
donofrio__ has quit [Remote host closed the connection]
krillbat has quit [Quit: Connection closed for inactivity]
apotheon is now known as copyfree
copyfree is now known as apotheon
conta has joined #ruby
duderonomy has quit [Remote host closed the connection]
duderonomy has joined #ruby
vondruch has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
ldepandis has joined #ruby
alfiemax_ has joined #ruby
ur5us has joined #ruby
cnsvc has joined #ruby
rubydoc has joined #ruby
<deimos_> i guess a rephrasing is that i didn't realize sequel gem had it's support on freenode
<deimos_> list on freenode consumes more than INT_MAX ;)
rmnull has joined #ruby
imode has quit [Ping timeout: 264 seconds]
fercell has quit [Quit: WeeChat 2.8]
burgestrand has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
jetchisel has joined #ruby
rmnull has quit [Ping timeout: 265 seconds]
rmnull has joined #ruby
jinmiaoluo has quit [Ping timeout: 264 seconds]
jinmiaoluo has joined #ruby
arcaos has quit [Read error: Connection reset by peer]
cnsvc has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
burgestrand has quit [Quit: burgestrand]
burgestrand has joined #ruby
schne1der has joined #ruby
kkoomen has joined #ruby
<kkoomen> Hi, I'm using rspec with a rails project. When I do "expect(response).to be_successful", what does the "be_successful" exactly do? Does it check for the response status? Because I mainly do: "expect(response).to be_successful; expect(response).to have_http_status(:ok)" but I don't know if "expect(response).to have_http_status(:ok)" is needed here...
alexherbo29 has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo29 is now known as alexherbo2
SuperLag has quit [Ping timeout: 256 seconds]
SuperLag has joined #ruby
burgestrand has quit [Quit: burgestrand]
roadie has quit [Remote host closed the connection]
rmnull has quit [Quit: WeeChat 2.8]
fercell has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
cnsvc has joined #ruby
GodFather has joined #ruby
Ven`` has joined #ruby
burgestrand has joined #ruby
jinmiaoluo has quit [Ping timeout: 264 seconds]
jinmiaoluo has joined #ruby
<jhass> kkoomen: so the first thing to understand is that in rspec, be_foo just calls .foo? on the object and looks for a truthy return value. So this is essentially raise unless response.successful?. Now where does successful? come from? response is a ActionDispatch::TestResponse, let's take a look at it:
<jhass> https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/testing/test_response.rb not much to see here, but the parent gets more interesting, it has this include:
<jhass> so be_successful does a range check on the status code, your second expectation then narrows it down to just being equal to 200
<jhass> making be_successful kind of redundant, yes
ua has quit [Read error: Connection reset by peer]
akem has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
giorgian has quit [Remote host closed the connection]
giorgian has joined #ruby
alfiemax has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
giorgian has quit [Remote host closed the connection]
giorgian has joined #ruby
burgestrand has quit [Quit: burgestrand]
sergioro has quit [Quit: leaving]
ua has joined #ruby
giorgian has quit [Ping timeout: 258 seconds]
giorgian has joined #ruby
giorgian has quit [Remote host closed the connection]
giorgian has joined #ruby
giorgian has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 264 seconds]
vondruch has quit [Ping timeout: 265 seconds]
giorgian has joined #ruby
kristian_on_linu has joined #ruby
jinmiaoluo has quit [Ping timeout: 265 seconds]
jinmiaoluo has joined #ruby
vondruch has joined #ruby
burgestrand has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
cliluw has joined #ruby
burgestrand has quit [Quit: burgestrand]
cliluw has quit [Ping timeout: 256 seconds]
burgestrand has joined #ruby
cnsvc has joined #ruby
burgestrand has quit [Quit: burgestrand]
burgestrand has joined #ruby
burgestrand has joined #ruby
donofrio has joined #ruby
ldepandis has quit [Read error: Connection reset by peer]
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
alexherbo22 has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo22 is now known as alexherbo2
daqing has joined #ruby
<daqing> hello, anyone using Pry? the 'gem-open' command didn't work right now
<daqing> when I type: gem-open "railties"
<daqing> I got error: SyntaxError: unexpected tSTRING_BEG, expecting do or '{' or '('
fritzroy15 has joined #ruby
entel has joined #ruby
<fritzroy15> hello, I'm pulling my hair out trying to figure out an issue: for some reason, if the DB connection goes down in my sinatra/puma application, it just hangs, no matter what I attempt to do; the closest I've found to my problem is this bug thread: https://github.com/puma/puma/issues/595; I attempted thebetra1 Rack::Timeout method but it doesn't seem to work (included in config.ru instead of app.rb, as instructed in the git page). Any ideas? It's drivin
<fritzroy15> g me crazy. We're using the data_mapper gem
dionysus69 has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
Rudd0 has joined #ruby
leitz has joined #ruby
alfiemax_ has joined #ruby
<leitz> Mildly complex (at least for me) issue. A method should be returning an object, but it's not. The process is written out: https://gist.github.com/LeamHall/612d437f14c59b7c97507cb17d9de7d3
daqing has quit [Ping timeout: 250 seconds]
coniptor has quit [Ping timeout: 265 seconds]
Ai9zO5AP has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
troulouliou_div2 has quit [Ping timeout: 258 seconds]
aesthe has joined #ruby
<jhass> leitz: I'll give you a hint, add p @list to Manifest#review_lot
cnsvc has joined #ruby
<jhass> and a tip: use Hash#fetch over Hash#[] if you depend on the key existing
gitter1234 has joined #ruby
<leitz> jhass, tips and hints are my preference, since I learn more that way. :)
coniptor has joined #ruby
giorgian has quit [Ping timeout: 256 seconds]
giorgian has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
giorgian has quit [Ping timeout: 265 seconds]
burningserenity has joined #ruby
<fritzroy15> i know, not very easy to fix
<fritzroy15> also tried running with unicorn instead
<fritzroy15> same issue
<fritzroy15> here's a question I'm not quite sure, what's the flow when using the nginx setup? is it http request => nginx => puma => app => nginx, or http request => nginx => app => puma => nginx?
androi has joined #ruby
TomyWork has quit [Remote host closed the connection]
<androi> class in a class like inheritance? or does it even have a meaning?
Ai9zO5AP has joined #ruby
<jhass> uhm, context?
kristian_on_linu has quit [Remote host closed the connection]
<jhass> fritzroy15: more like browser <=> nginx <=> ruby processs (puma <=> rack app (sinatra <=> your code))
<jhass> socket IO is bidirectional and rack is a middleware architecture
<jhass> you might want to try something along the lines of https://gist.github.com/benweint/5396600 when its stuck to see where it's stuck
<androi> i think it doesn't matter.. put the inner class outside of the outer one and i get the same result
<jhass> androi: severley lacking context here :)
<androi> in general. is there any purpose to define a class in a class?
<burgestrand> androi no they have no connection
<burgestrand> androi for organizational purposes yes
<jhass> Class < Module, so they can act as namespace just like a module would
<androi> ok
<androi> and invoke it then with class1::class2 ?
<fritzroy15> jhass that link doesn't work for me
<jhass> fritzroy15: or setup something like https://github.com/frsyuki/sigdump (I'm sure there's alternatives if this no longer works, I just googled it)
<jhass> github seems to have had a hiccup, try again
<fritzroy15> jhass i see, seems to be going haywire
<fritzroy15> jhass could you give me a pastebin with the contents if you have it loaded, please?
<jhass> just try a couple times, it's not completely down
cnsvc has joined #ruby
<fritzroy15> it's dead and buried for me; getting redirected to various error pages
TCZ has joined #ruby
burgestrand has quit [Quit: burgestrand]
Ven`` has quit [Quit: Textual IRC Client: www.textualapp.com]
TCZ has quit [Quit: Leaving]
androi has quit [Remote host closed the connection]
suni has joined #ruby
kkoomen has left #ruby ["WeeChat 2.5"]
jinmiaoluo has quit [Remote host closed the connection]
fercell has quit [Quit: WeeChat 2.8]
jinmiaoluo has joined #ruby
fercell has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
giorgian has joined #ruby
nowhere_man has joined #ruby
<suni> Hello peoples. I'm a newbie to ruby coming from lots of years with a handful of other languages. Is this a good channel for newbies to hang out and ask questions or is there a more polite place for that kinda behavior?
<adam12> suni: This channel is fine.
<suni> ^_^ coolio
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
svilenv has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
plutes has joined #ruby
plutes has quit [Remote host closed the connection]
plutes has joined #ruby
TCZ has joined #ruby
falconfox has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
careta has quit [Ping timeout: 264 seconds]
careta has joined #ruby
conta has quit [Quit: conta]
ChmEarl has joined #ruby
<leitz> Well, depends on your definition of polite, but...
burgestrand has joined #ruby
<jhass> how do you mean?
careta has quit [Ping timeout: 264 seconds]
burgestrand has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
<havenwood> suni: Welcome!
<suni> Hiya! ^_^ I've discovered the koans and am loving them, btw
Emmanuel_Chanel has joined #ruby
<havenwood> suni: Awesome. I really enjoyed the koans when I started Ruby too.
Bael has joined #ruby
impermanence has joined #ruby
finchfiler has joined #ruby
burgestrand has joined #ruby
conta has joined #ruby
burgestrand has quit [Client Quit]
CrazyEddy has quit [Ping timeout: 250 seconds]
sergioro has joined #ruby
burgestrand has joined #ruby
TCZ has quit [Quit: Leaving]
Esa__ has joined #ruby
BTRE has quit [Quit: Leaving]
burgestrand has quit [Quit: burgestrand]
gix has joined #ruby
Ai9zO5AP has quit [Remote host closed the connection]
Ai9zO5AP has joined #ruby
conta has quit [Quit: conta]
fritzroy15 has quit [Quit: Leaving]
Bael has quit [Quit: Leaving]
comet23 has joined #ruby
cnsvc has joined #ruby
d3bug has joined #ruby
burgestrand has joined #ruby
burgestrand has quit [Ping timeout: 250 seconds]
sergioro has quit [Quit: leaving]
TCZ has joined #ruby
sergioro has joined #ruby
Archenoth has joined #ruby
alfiemax has joined #ruby
imode has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
TCZ has quit [Quit: Leaving]
jinmiaoluo has quit [Ping timeout: 260 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
cthu| has joined #ruby
vondruch has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
sergioro has quit [Quit: leaving]
vondruch has quit [Client Quit]
vondruch has joined #ruby
* leitz had forgotten about the koans...
sergioro has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
<suni> I started my clojure journey with clojurescript koans, http://clojurescriptkoans.com/ and I've loved all kindsa koans ever since.
SeepingN has joined #ruby
cnsvc has joined #ruby
fercell has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
CrazyEddy has joined #ruby
cnsvc has quit [Remote host closed the connection]
giorgian has quit [Ping timeout: 256 seconds]
cliluw has joined #ruby
cnsvc has joined #ruby
finchfiler has quit [Read error: Connection reset by peer]
Ai9zO5AP has quit [Ping timeout: 240 seconds]
Ai9zO5AP has joined #ruby
burgestrand has joined #ruby
conta has joined #ruby
burgestrand has quit [Quit: burgestrand]
burgestrand has joined #ruby
giorgian has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
comet23 has quit [Quit: Connection closed for inactivity]
hiroaki has joined #ruby
vondruch has quit [Quit: vondruch]
kinduff has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
kinduff has joined #ruby
vondruch has quit [Ping timeout: 265 seconds]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
<suni> Hey, in array = %i[peanut butter and jelly] what is the term to google for what %i is doing there?
<adam12> suni: It's called a sigil.
<adam12> suni: Actually I lied. We call them percent strings. News to me.
<suni> @adam12 Thanks!
<phaul> btw letter i comes from internal
<suni> Cool, also, I've been in slack too much lately. -_- hehehe
<phaul> &>> 'a'.intern
<rubydoc> # => :a (https://carc.in/#/r/8xww)
sauvin has quit [Remote host closed the connection]
aesthe has quit [Quit: Leaving]
dinfuehr has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
<adam12> phaul: Cool fact. I had no idea.
<havenwood> phaul: I thought it was from "interned."
roadie has joined #ruby
<phaul> it could be interned :) internal, interned.. idk
<phaul> something along those lines
<adam12> havenwood: I need your memory again. Experimental library that would cache Ruby AST. Not Bootsnap. I thought it came from ko1 but not finding it. Does it ring a bell? I feel like you've linked it before.
<havenwood> adam12: yomikomu
<havenwood> kakidasu!
<adam12> havenwood: Yeah! I wonder how I missed it when I went through ko1's repo list.
<adam12> havenwood: Thanks.
conta has quit [Quit: conta]
<havenwood> adam12: This was my spike at generating binary files for each gem: https://gist.github.com/havenwood/414367192cf22f66d01a3117064713e7
<havenwood> adam12: I'd still love to see RubyGems compile binary files automatically on gem install then use those if checksums match.
<havenwood> adam12: Better yet, integrate with `ruby` and `gem` fully like Elixir does with precompiling to IR bytecode.
<havenwood> Running the code in that ^ gist shows some interesting errors in some gems when producing bytecode.
banisterfiend has joined #ruby
howdoi has joined #ruby
burgestrand has quit [Quit: burgestrand]
<havenwood> I have another version with error handling somewhere. It nabs a few gems.
<adam12> havenwood: I'd like to see bits of bootsnap make it's way back into MRI. Maybe just even the $LOAD_PATH optimization stuff but the bytecode caching stuff is of interest too.
<adam12> I'm in a constant battle with one of my apps to drop boot time, and it only gets worse.
<havenwood> adam12: The bytecode caching makes a pretty large difference.
<havenwood> adam12: Roda app or Rails or pure Ruby?
<adam12> havenwood: Roda app.
<adam12> havenwood: A lot of it is is azure dependencies (which I've talked about before). I end up lazy loading them wherever possible, but there's still time lost in places.
<adam12> havenwood: In some apps I use Zeitwerk with much success, if the folder structure is Zeitwerk friendly. I'm experimenting with dry-system in others but for overall boot time there's no savings (just in running tests / maybe booting a console).
<havenwood> adam12: Ah, I was curious if Zeitwerk would help.
banisterfiend has quit [Ping timeout: 240 seconds]
<adam12> havenwood: In this case it might, but once it has to load those large dependencies all bets are off.
<adam12> havenwood: And until recently it was fairly rigid in folder structure, and this app has some legacy where files dont' define exact matching constants.
kaleido has quit [Quit: ZNC 1.7.4+deb7 - https://znc.in]
<havenwood> adam12: Interesting there's no Spring-like thing for pure Rack apps.
<adam12> havenwood: Yeah tho I wonder if Zeus would work, if it's still maintained.
<adam12> havenwood: Burke seems to have dropped Zeus work but I suspect they want to rewrite it and not deprecate it.
kaleido has joined #ruby
sticaz has joined #ruby
banisterfiend has joined #ruby
kaleido has quit [Remote host closed the connection]
kaleido has joined #ruby
sticaz has quit [Ping timeout: 256 seconds]
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
banisterfiend has quit [Ping timeout: 265 seconds]
hiroaki has quit [Ping timeout: 265 seconds]
cnsvc_ has joined #ruby
roadie has quit [Ping timeout: 256 seconds]
ellcs has quit [Ping timeout: 252 seconds]
sysh has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
sticaz has joined #ruby
felix_221986 has joined #ruby
chalkmonster has joined #ruby
rubydoc has quit [Killed (Sigyn (Stay safe off irc))]
chalkmonster has quit [Client Quit]
burningserenity has quit [Remote host closed the connection]
nowhere_man has quit [Read error: Connection reset by peer]
tf2ftw has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
masticass has joined #ruby
ur5us has joined #ruby
_aeris_ has quit [Remote host closed the connection]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
_aeris_ has joined #ruby
roadie has joined #ruby
cahoots has joined #ruby
roadie has quit [Ping timeout: 258 seconds]
<cahoots> hi, do concurrent-ruby and its concurrent data structures have any benefit on mri? or does the gil prevent any gains?
felix_221986 has quit [Quit: Connection closed]
giorgian has quit [Ping timeout: 256 seconds]
<jhass> if your application is strictly CPU bound, the returns are probably little. But when it comess to IO bound workloads, very much so
cnsvc has joined #ruby
svilenv has quit [Remote host closed the connection]
<cahoots> jhass, i don't think that would apply to these concurrent data structures, but yeah as a general principle i see what you mean
chalkmonster has joined #ruby
<jhass> well maybe I didn't get your question. Since you mentioned GIL/GVL I considered the question to be of performance. concurrent-ruby mainly provides varying levels of patterns and abstractions that make writing concurrent programs easier. That doesn't make them influence the workloads though
TomyLobo has joined #ruby
<cahoots> makes sense
suni has quit [Ping timeout: 256 seconds]
masticass has quit [Ping timeout: 265 seconds]
<cahoots> jhass, here's my dilemma. i'm doing the following: "memo = {} ; Parallel.map(array) { |obj| resolve(obj, memo) }", where memo is a hash for memoizing all the results. all the "obj" files are top-level dependencies. i want to have a copy of memo for each process, and then at the end merge them all into one. is there any way to do that with ruby's Parallel lib?
<cahoots> (doesn't help that that parallel gem seems to have practically no documentation)
<jhass> sorry, I don't actually have any hands on experience here :)
<cahoots> no worries
leitz has quit [Quit: Leaving]
tf2ftw has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
roadie has joined #ruby
<cahoots> havenwood, the issue is persisting state from to stuff that the workers are doing
<cahoots> *from the
<cahoots> i need the memoized maps at the end to merge and use
cnsvc has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 256 seconds]
<havenwood> cahoots: Assuming the processes are on the same machine, you could use pipes or socket pairs for IPC.
<havenwood> cahoots: I had a gem that used IPC for futures with Rob Gleason's IProcess gem. He has a new one now, I don't recall the name: https://github.com/havenwood/ifuture#usage
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood> cahoots: Can't you just do the reduce step after the Parallel gem does the map?
chalkmonster has quit [Quit: WeeChat 2.8]
cnsvc has joined #ruby
schne1der has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
yottanami has joined #ruby
<yottanami> Is there any function to do this code? `[1,2,3,4,5,6].each_with_index { |val,index| print ar.slice(index,2) if index < ar.length-1}`
<yottanami> *method
alfiemax has quit [Ping timeout: 264 seconds]
<adam12> yottanami: Are you looking for Enumerable#each_pair or Enumerable#each_cons ?
<yottanami> adam12: I am not sure which one should I use here is my array [1,2,3,4] and here is the result that I need [1,2][2,3][3,4]
cnsvc has joined #ruby
<apotheon> I'm pretty sure that would be very slightly more succinct in Haskell, but that probably doesn't help.
<apotheon> . . . other than the "print" part, of course.
<adam12> &>> [1, 2, 3, 4, 5, 6].each_cons(2).to_a
cnsvc_ has quit [Ping timeout: 240 seconds]
<adam12> I guess rubybot is AWOL
<yottanami> adam12: Thank you
yottanami has quit [Quit: WeeChat 2.6]
emptyflask has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
TomyWork has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
gitter1234 has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
gitter1234 has joined #ruby
greypack has quit [Quit: All your IRC are belong to ZNC]
greypack has joined #ruby
cahoots has quit [Read error: Connection reset by peer]
dviola has joined #ruby
d3bug has joined #ruby
sysh has quit [Remote host closed the connection]
cd has joined #ruby
cd has quit [Quit: cd]
roadie has joined #ruby
roadie has quit [Ping timeout: 258 seconds]
sticaz has quit [Quit: WeeChat 2.8]
sticaz has joined #ruby
deimos_ has quit [Remote host closed the connection]
suni has joined #ruby
cd has joined #ruby
suni has quit [Quit: WeeChat 2.8]
kieran has joined #ruby
kieran is now known as Guest22966
Guest22966 is now known as suni
chalkmonster has joined #ruby
suni has quit [Client Quit]