alex0ptr has quit [Remote host closed the connection]
alex0ptr has joined #jruby
alex0ptr has quit [Remote host closed the connection]
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 256 seconds]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 260 seconds]
<GitHub36>
[jruby] headius reopened issue #4515: Output of backticks call not returned but written to stdout instead https://git.io/vy3aH
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 264 seconds]
atm0sphere has joined #jruby
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 260 seconds]
atm0sphere has quit [Ping timeout: 260 seconds]
camlow325 has quit [Ping timeout: 268 seconds]
bga57 has quit [Ping timeout: 246 seconds]
atm0sphere has joined #jruby
atm0sphere has quit [Ping timeout: 240 seconds]
thedarkone2 has quit [Quit: thedarkone2]
camlow325 has joined #jruby
camlow325 has quit [Ping timeout: 240 seconds]
pawnbox has joined #jruby
thedarkone2 has joined #jruby
pawnbox has quit [Ping timeout: 260 seconds]
bga57 has joined #jruby
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 264 seconds]
atm0sphere has joined #jruby
pawnbox has joined #jruby
atm0sphere has quit [Ping timeout: 240 seconds]
ankitr has joined #jruby
pawnbox_ has joined #jruby
pawnbox has quit [Read error: Connection reset by peer]
thedarkone2 has quit [Quit: thedarkone2]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 268 seconds]
pawnbox has joined #jruby
ankitr is now known as atm0sphere
bascule has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 240 seconds]
bascule has joined #jruby
havenwood has joined #jruby
havenwood has joined #jruby
ankitr has joined #jruby
atm0sphere has quit [Ping timeout: 240 seconds]
atm0sphere has joined #jruby
ankitr has quit [Ping timeout: 260 seconds]
atm0sphere has quit [Quit: Leaving]
ankitr has joined #jruby
ankitr is now known as atm0sphere
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #jruby
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #jruby
<kares>
neoice: that might be a good feature request for concurrent-ruby gem :)
alex0ptr has joined #jruby
<kares>
... they do have some atomic-ref stuff in place already
alex0ptr has quit [Ping timeout: 256 seconds]
<matthewd>
Concurrent::Array
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
blaxter has joined #jruby
blaxter has quit [Client Quit]
ankitr has joined #jruby
atm0sphere has quit [Ping timeout: 260 seconds]
ankitr has quit [Client Quit]
ankitr has joined #jruby
ankitr is now known as atm0sphere
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
shellac has joined #jruby
pawnbox has quit [Ping timeout: 260 seconds]
drbobbeaty has joined #jruby
pawnbox has joined #jruby
ankitr has joined #jruby
ankitr has quit [Client Quit]
ankitr has joined #jruby
ankitr has quit [Client Quit]
ankitr has joined #jruby
ankitr has quit [Client Quit]
atm0sphere has quit [Ping timeout: 260 seconds]
ankitr has joined #jruby
<kares>
matthewd: had smt such as Atomic::Array in mind ... since :
<kares>
> neoice> I must be doing something wrong because Concurrent::Array seems to be giving me wildly inconsistent results.
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shellac has quit [Quit: Computer has gone to sleep.]
shellac has joined #jruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 264 seconds]
<matthewd>
kares: Ah, right, I didn't scroll back enough
<matthewd>
kares: Still.. sounds more like a bug than a potential new feature to me
pawnbox has joined #jruby
bbrowning_away is now known as bbrowning
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 264 seconds]
ankitr has quit [Ping timeout: 268 seconds]
drbobbeaty has joined #jruby
<kares>
matthewd: yes - in terms of Ruby's simplicity you're right. should just work
<kares>
neoice: any chance we get details what did not go right when you used Concurrent::Array ?
pawnbox has joined #jruby
<GitHub164>
[jruby] yujideveloper opened issue #4527: Guard gem does not work on JRuby 9.1.8.0 https://git.io/vy2wu
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox_ has joined #jruby
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
tcrawley-away is now known as tcrawley
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 240 seconds]
shellac has joined #jruby
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
drbobbeaty has quit [Ping timeout: 260 seconds]
shellac has quit [Quit: Computer has gone to sleep.]
shellac has joined #jruby
drbobbeaty has joined #jruby
alex0ptr has joined #jruby
alex0ptr_ has joined #jruby
ankitr has joined #jruby
alex0ptr has quit [Ping timeout: 258 seconds]
<neoice>
kares: I have a couple UDP servers passing data back and forth (ints, placeholder data for now). if they see new data, the server is supposed to append it to an `Array`. however, sometimes after a message, the `Array` might have 0 new elements. or 4. or even 23. one time I even got the JVM to crash with a Concurrency error!
<neoice>
kares: there's a `FooManager` class holding the `Array`. `foomgr.append()` contains the logic for "does this element exist in the array". I used `include?` (or whatever it is, I always have to reference docs) and I implemented it via iteration. neither resulted in consistent results. inconsistent reads from the `Array` during this process could result in inconsistent data in the `Array`.
<neoice>
kares: this was with implemented ruby `Array` originally but switching to `Concurrent::Array` did not resolve the problem. since switching `java.util.concurrent.atomic.AtomicReferenceArray`, I've had no problems. (I even made a little method that takes a &block and shoves it inside the annoying Java style looping.)
<neoice>
kares: I'm pretty sure I've implemented the classic "network loop": open socket, recv, (fork, process data), rebind socket. but I always assume my code is wrong. I write all kinds of crap code and I know from previous experience that I suck at threading, I usually make mistakes in the daemonize fork(), and I have made mistakes in previous network loop implementations.
<neoice>
kares: it *could* also be CAP theorem biting me in a subtle way. anecdotally, the problem seems to reproduce more frequently with servers across a network link and not multiple servers on localhost.
pawnbox has joined #jruby
camlow325 has joined #jruby
nirvdrum has quit [Ping timeout: 240 seconds]
nirvdrum has joined #jruby
ankitr has quit [Ping timeout: 240 seconds]
shellac has quit [Quit: Computer has gone to sleep.]
shellac has joined #jruby
ankitr has joined #jruby
ankitr has quit [Ping timeout: 240 seconds]
<kares>
neoice: well thanks - so I guess you do not have a reproducable script to report to CR
<neoice>
kares: no. I might be able to hack one together, but I'm rather behind on this project. maybe another time.
<neoice>
I write tons of bad code. I've now added ID numbers to all of my requests: successful requests show the same ID for recv and send. unsuccessful show different IDs. hooray threads!
<neoice>
it only happens under high load too (10+ Mbps)
<neoice>
I'll also get duplicate calls too, like it recv()s twice. but neither response makes it to the other side :P
akp has joined #jruby
akp has quit [Client Quit]
akp has joined #jruby
lanceball is now known as lance|afk
akp has quit [Remote host closed the connection]
camlow325 has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 264 seconds]
shellac has quit [Ping timeout: 258 seconds]
pawnbox has joined #jruby
bbrowning is now known as bbrowning_away
pawnbox has quit [Ping timeout: 260 seconds]
<GitHub24>
[jruby-openssl] kares pushed 1 new commit to master: https://git.io/vyar6
<GitHub24>
jruby-openssl/master 96955ce Donovan Lampa: add OCSP support (#124)...