snsei has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
aphel is now known as aphelion
aphelion is now known as aphel
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
snsei has joined #ruby
snsei1 has quit [Ping timeout: 240 seconds]
elcontrastador has quit [Ping timeout: 240 seconds]
John__ has quit [Remote host closed the connection]
imode has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
snsei has quit [Remote host closed the connection]
montyboy has quit [Quit: WeeChat 1.9]
learningRuby has joined #ruby
bronson has joined #ruby
<learningRuby>
What is the difference between (1) a class method, and (2) an instance method of Class? For example, the method "new" as in Person.new, is it a class method of Person or an instance method of Class?
gizmore|2 has joined #ruby
<tamouse__>
learningRuby: *very* simplisitcally, a class method is one you call on the class, such as .new
bronson has quit [Ping timeout: 252 seconds]
<tamouse__>
an instance method is called on an instance of the class, such as person.name
<tamouse__>
i say very simplistically, because it can get a lot more complicated
<learningRuby>
so, I guess that .new is an instance method of Class that is inherited by every class, but a class method is something defined in the class that will be invoked as if it was an instance method of Class... correct me if I'm wrong
nankyok__ has quit [Ping timeout: 252 seconds]
zautomata has joined #ruby
<learningRuby>
oh, and I guess a class method is a singleton method of the class that defines it..
<elomatreb>
There is no fundamental difference between class objects and instances, it's "just" a system
<learningRuby>
elomatreb: yeah, that's a good point! it's just abstractions, right?
<elomatreb>
You can reimplement a system like the Class.new gets you an instance by yourself, entirely, if you want
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
__Yiota has joined #ruby
beilabs has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
jnollette has joined #ruby
arescorpio has joined #ruby
cschneid_ has quit [Remote host closed the connection]
gusrub has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
cschneid_ has joined #ruby
coderphive has joined #ruby
zack6849 has quit [Ping timeout: 246 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyoku_ has joined #ruby
chihhsin has joined #ruby
jnollette has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
zack6849 has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
raz has quit [Ping timeout: 246 seconds]
creat has quit [Ping timeout: 246 seconds]
raz has joined #ruby
harfangk has joined #ruby
creat has joined #ruby
gusrub has quit []
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
astrobunny has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
harfangk has quit [Ping timeout: 248 seconds]
coderphive has quit [Quit: coderphive]
__Yiota has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
harfangk has joined #ruby
nowhere_man has quit [Remote host closed the connection]
bronson has joined #ruby
nowhere_man has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
bronson has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Remote host closed the connection]
Kuukunen- has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
A124 has quit [Ping timeout: 255 seconds]
A124 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
gix has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 248 seconds]
gix has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harai has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
bronson has joined #ruby
claw has quit [Ping timeout: 240 seconds]
claw has joined #ruby
Averna has joined #ruby
cschneid_ has quit [Remote host closed the connection]
harai has joined #ruby
nofxxx has quit []
Rodya_ has joined #ruby
Averna has quit [Quit: Ex-Chat]
Averna has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
knight33 has joined #ruby
cgfbee has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Quit: Leaving...]
s2013 has joined #ruby
numbdewd has quit [Quit: ☺ ]
cgfbee has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
conta has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
dminuoso_ has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
beilabs has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs_ has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
Ouchy`w has joined #ruby
Ouchy has quit [Ping timeout: 248 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
Ouchy`w has quit [Client Quit]
rabajaj has joined #ruby
uZiel has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ta_ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkali has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
biberu has joined #ruby
ur5us has joined #ruby
Ouchy`w has joined #ruby
aupadhye has joined #ruby
Ouchy has quit [Ping timeout: 248 seconds]
Ouchy has joined #ruby
Ouchy has joined #ruby
Ouchy has quit [Changing host]
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
oleo has quit [Quit: Leaving]
Averna has quit [Quit: Ex-Chat]
rabajaj has quit [Quit: Leaving]
rabajaj has joined #ruby
Dimik has joined #ruby
<scatterp>
i dont understand how its possible that when i comment line 117 here https://github.com/scatterp2/peatio/tree/testing01/app/api/api_v3/executor.rb main.thread runs when i uncomment it main.thread does not run since its threaded it should not effect the main.thread the threaded code is blocking unexpectedly
quobo has joined #ruby
<havenwood>
scatterp: what happens if you comment out line 108?
<havenwood>
but leave line 117
<havenwood>
uncommented
<havenwood>
scatterp: you'd get a lot easier to get help if you can extract out a minimal reproducible testcase - no code more than is needed to reproduce the error
<havenwood>
you'd find it a lot easier to get help, i mean**
mkali has quit [Quit: mkali]
andikr has joined #ruby
<scatterp>
havenwood if i comment 108 not 117 it still blocks if i comment 107 it does not block
<scatterp>
i will try my best to build a testcase some how
<matthewd>
Without looking at any code, I don't like the sound of this library
* dminuoso_
throws a lemma in havenwood's direction
<scatterp>
matthewd me also.. and i looked at a lot (all) of google under various keywords but that is not the point a thread should be a thread i have been reading this morning that a thread is not nessasarilly isolated in ruby and reading also about race conditions
<matthewd>
Camelcase methods... maybe SWIG generated? Basically one gem release, years ago. Sounds more like someone ticked a "has ruby version available" checkbox than a serious attempt to provide something usable.
<scatterp>
i thought camelcase was the corrrect way to define a method (based on the ruby class i took last week)
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
beilabs_ has quit [Remote host closed the connection]
<dminuoso_>
scatterp: That's a good indicator that it was a bad class, because the Ruby standard is snake_case for methods and variables, InitialCase for constants.
<dminuoso_>
Or is it called InitialCaps? idk
<scatterp>
oh ok i learned something new :)
<scatterp>
i think i might have an idea whats going wrong ..
<dminuoso_>
Or actually SCREAMING_CASE for constants inside modules/classes, and UpperCamelCase for class/module constants.
<scatterp>
since the GIL does not support true parallelism when the quickfix opens a socket and listens for a connection (tcp/ip stuff) it causes a race condition becuse it needs all of thread time to do that
<scatterp>
and threads in ruby are not native threads
<dminuoso_>
scatterp: Wrong. The GIL is released on blocking IO.
<dminuoso_>
And threads in ruby are native threads.
<scatterp>
oh ok
<matthewd>
That matches my theory, FWIW
<matthewd>
dminuoso_: Some rando SWIGged library doing IO seems unlikely to be releasing the GVL.
<dminuoso_>
Haha. Good point
nobitanobi has joined #ruby
<matthewd>
scatterp: If you must use this library... does it have a mode where it can help with the parsing, but leave the actual IO up to you?
<matthewd>
Well that's written in C++, so I doubt it's using this gem
<scatterp>
this gem is a wrapper around the c++ code from what i can understand
<matthewd>
I'm making no claim about the quality of the underlying C++ library. I'm claiming it is a bad wrapper.
<scatterp>
ah
<scatterp>
is it possible to bypass the gvl and just let it run in its own space if it works it works if it crashes it crashes and the main.thread continues like every other thing running on the operating system
tohuw has quit [Remote host closed the connection]
<scatterp>
like a cronjob to force the gvl to unlock or something :/
<matthewd>
The lock isn't there for decoration
<matthewd>
You can try using this library in a separate process, and then communicate back to the main one
<scatterp>
hmm yeah good idea
<scatterp>
how would they talk
<scatterp>
some kind of telnet style chat ?
<matthewd>
Possibly. I don't know enough about what this is supposed to be doing.
<scatterp>
quickfix is an implementation of FIX API specification for financial communications
techn1cs has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
<scatterp>
peatio is a trading exchange crypto coins with its own api (which sucks)
Lyubo1 has quit [Ping timeout: 252 seconds]
<scatterp>
krypto-trading-bot is a FIX API compatable bot that makes trading decisions
techn1cs has joined #ruby
milardovich has joined #ruby
imode has quit [Ping timeout: 252 seconds]
milardovich has quit [Ping timeout: 240 seconds]
<dminuoso_>
>> <scatterp> is it possible to bypass the gvl and just let it run in its own space if it works it works if it crashes it crashes and the main.thread continues like every other thing running on the operating system
<dminuoso_>
Yes. It's called processes.
conta has joined #ruby
xcesariox has joined #ruby
harai has quit [Ping timeout: 248 seconds]
beilabs has joined #ruby
ta_ has joined #ruby
eroux has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
InfinityFye has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
nahra has quit [Remote host closed the connection]
Burgestrand has joined #ruby
uZiel has joined #ruby
bigkevmcd has joined #ruby
tohuw has joined #ruby
tohuw has quit [Changing host]
tohuw has joined #ruby
Silthias has joined #ruby
claudiuinberlin has joined #ruby
mark_66 has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
kaibro has quit [Ping timeout: 240 seconds]
Ouchy has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
Ouchy`w has quit [Ping timeout: 248 seconds]
Ouchy has joined #ruby
Ouchy`w has joined #ruby
claudiuinberlin has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
TheBrayn has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<scatterp>
when run directly ruby executor.rb (removing peatio and simplifying the problem) it crashes segfault this suggests as matthewd said the wrapper is bad since others reported success with the jruby version
clouts has quit [Read error: Connection reset by peer]
cloutz has joined #ruby
govg has joined #ruby
elsevero has joined #ruby
Lyubo1 has joined #ruby
anisha has quit [Ping timeout: 248 seconds]
<Burgestrand>
Yay, segfaults \o/
Mortomes|Work has joined #ruby
mikecmpbll has joined #ruby
anisha has joined #ruby
marr has joined #ruby
xcesariox has joined #ruby
ams__ has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nahra has joined #ruby
aloy has quit [Remote host closed the connection]
aloy has joined #ruby
Cohedrin_ has joined #ruby
konsolebox has joined #ruby
mim1k has joined #ruby
aufi has joined #ruby
DougieJones has quit [Ping timeout: 248 seconds]
mim1k is now known as mim1k|w
raynold has quit [Quit: Connection closed for inactivity]
milardovich has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
zautomata has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 252 seconds]
Azure has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
jinie has quit [Ping timeout: 252 seconds]
jinie has joined #ruby
zautomata has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
Guest56524 has quit [Remote host closed the connection]
enterprisey has quit [Read error: Connection reset by peer]
ben_ has joined #ruby
ben_ is now known as Guest6654
drptbl has joined #ruby
morfin has joined #ruby
<morfin>
hello
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has quit [Ping timeout: 240 seconds]
<scatterp>
hi
<morfin>
how can i ensude Sidekiq web is using proper settings?
<morfin>
*ensure
hs366 has joined #ruby
Guest6654 has quit [Ping timeout: 246 seconds]
TomyWork has joined #ruby
anisha has joined #ruby
jaruga has joined #ruby
montyboy has joined #ruby
surrounder has quit [Remote host closed the connection]
surrounder has joined #ruby
benjen has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
paranoicsan has quit [Ping timeout: 255 seconds]
paranoic_ has joined #ruby
octomancer has quit [Quit: WeeChat 0.3.8]
sepp2k has joined #ruby
paranoic_ has quit [Quit: paranoic_]
paranoicsan has joined #ruby
octomancer has joined #ruby
dminuoso_ has quit [Ping timeout: 248 seconds]
phaul has quit [Ping timeout: 248 seconds]
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PONG :orwell.freenode.net"]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Serpent7776 has joined #ruby
kaibro has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
phaul has joined #ruby
claudiuinberlin has joined #ruby
enterprisey has joined #ruby
claudiuinberlin has quit [Client Quit]
enterprisey has quit [Read error: Connection reset by peer]
paranoicsan has quit [Read error: Connection reset by peer]
paranoicsan has joined #ruby
claudiuinberlin has joined #ruby
uZiel has joined #ruby
ur5us has quit [Remote host closed the connection]
eroux has quit [Quit: ZZZzzz… ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha_ has joined #ruby
anisha has quit [Ping timeout: 248 seconds]
Dry_Lips has quit [Ping timeout: 248 seconds]
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
charliesome has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
t-recx has joined #ruby
tcopeland has quit [Quit: tcopeland]
paranoicsan has quit [Quit: paranoicsan]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has quit [Ping timeout: 246 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
voiceftp has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
bronson has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 248 seconds]
paranoicsan has joined #ruby
ben_ has joined #ruby
ben_ is now known as Guest6903
DipoleHourglass has quit [Quit: Connection closed for inactivity]
andikr has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
DTZUZU has quit [Ping timeout: 264 seconds]
mtkd has quit [Ping timeout: 252 seconds]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 255 seconds]
dminuoso_ has joined #ruby
alveric has joined #ruby
tvw has joined #ruby
numbdewd has joined #ruby
andikr has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
anisha has joined #ruby
anisha_ has quit [Ping timeout: 240 seconds]
tvw has quit []
astrobun_ has quit [Remote host closed the connection]
dminuoso_ has quit [Remote host closed the connection]
Guest6903 has quit [Ping timeout: 264 seconds]
balazs_ has quit [Ping timeout: 252 seconds]
claudiuinberlin has joined #ruby
noobineer has joined #ruby
bronson has joined #ruby
duckpupp1 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 246 seconds]
ShalokShalom_ is now known as ShalokShalom
fChanX has joined #ruby
<fChanX>
Hello
<teatime>
\o
<t-recx>
hi
<fChanX>
\n
dinfuehr has quit [Ping timeout: 248 seconds]
wald0 has joined #ruby
dinfuehr has joined #ruby
mjolnird has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
mjolnird has joined #ruby
milardovich has joined #ruby
claudiuinberlin has joined #ruby
joast has quit [Quit: Leaving.]
mostlybadfly has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
Pisuke has quit [Ping timeout: 240 seconds]
Sembei has joined #ruby
marr123 has joined #ruby
ben_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben_ is now known as Guest35896
marr has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
ornerymoose has joined #ruby
Guest35896 has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
d10n-work has joined #ruby
__Yiota has quit [Client Quit]
bruno- has quit [Read error: Connection reset by peer]
ornerymoose has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
ornerymoose has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
mim1k|w has quit [Ping timeout: 255 seconds]
FastJack has joined #ruby
shinnya has joined #ruby
claudiuinberlin has joined #ruby
bmurt has joined #ruby
mson has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
marr123 has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
daveomcd has quit [Remote host closed the connection]
daveomcd has joined #ruby
<teatime>
aliciaxx: it doesn't do "deep merge" or whatever you would call it
<teatime>
aliciaxx: when the same key exists in both hashes (in this case bond0) the new value overwrites, they aren't merged
daveomcd has quit [Client Quit]
uZiel has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
jphase has joined #ruby
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
griffindy has joined #ruby
Burgestrand has quit [Quit: Closing time!]
alex`` has joined #ruby
alex`` is now known as alexherbo2
cdg has joined #ruby
alexherbo2 is now known as alex``
charliesome_ has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
ben_ has joined #ruby
ben_ is now known as Guest28689
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
gnufied has joined #ruby
charliesome has joined #ruby
webguynow has quit [Ping timeout: 248 seconds]
webguynow has joined #ruby
huyderman has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<scatterp>
how can i start a thread that runs under jruby instead of ruby ?
<Papierkorb>
You want to spawn a JRuby thread from MRI?
<scatterp>
yea
<Papierkorb>
Not possible. You can start a JRuby process from MRI, or just use JRuby from the start
<fChanX>
What is JRuby?
<fChanX>
Sorry for newbieness.
<scatterp>
fChanX some java+ruby thing
<Papierkorb>
A hack would be starting a JRuby process where you use some kind of custom ruby code loader (Controlled through a protocol like drb), which you then use to feed the ruby code in. But, I don't recommend this. Just use JRuby
<havenwood>
scatterp: You can use interprocess communication or a message queue to communicate between processes, if that's what you need. You can spawn a JRuby process from MRI. What are you trying to do?
<scatterp>
ok so if i have my first appication lets say helloworld and i start a jruby process that runs helloworld2 is there a way they can share variables
<havenwood>
scatterp: IPC
<scatterp>
havenwood quickfix_ruby has a broken wrapper the quickfix_jruby version works
<havenwood>
Probably a message queue of some sort or DRb like Papierkorb said.
<havenwood>
fChanX: It's an implementation of Ruby on the JVM.
claudiuinberlin has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
<Papierkorb>
scatterp: JRuby is a complete Ruby implementation on top of the JVM, giving you access to many ruby gems (Excluding those which use native extensions), and to all Java libraries, at once
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<scatterp>
havenwood peatio the exchange is runing in ruby and fix-engine (depends quickfix_jruby) is runing in jruby
<Papierkorb>
fChanX: ^
<havenwood>
fChanX: It's a fast, well-respected implementation that stays pretty up-to-date with the reference implementation.
<scatterp>
havenwood its fast ?
<havenwood>
scatterp: JRuby?
<scatterp>
yea
<havenwood>
yeah
<Papierkorb>
Faster than MRI for most workloads
<Papierkorb>
But also more resource hungry
<havenwood>
It has a slow startup but optimizes nicely.
<fChanX>
Nice.
<scatterp>
oh i thought it was slow maybe i should be trying to run peatio in jruby some day
<havenwood>
Its JIT takes a bit of RAM.
<fChanX>
Thanks :)
DLSteve_ has joined #ruby
<scatterp>
i am still here just interpreting all that was said..
<scatterp>
ok will test the rest of the code base on jruby ...
<scatterp>
meanwhile how do i start a JRuby process where you use some kind of custom ruby code loader (Controlled through a protocol like drb), which you then use to feed the ruby code in. ?
<scatterp>
havenwood when i finally worked out how to reduce my problem (like you suggested) it was a segfault that caused the issue.
Sh3rl0cK has joined #ruby
shime has joined #ruby
shime has quit [Client Quit]
<Papierkorb>
scatterp: By writing the code for it. That are multiple problems. You can try building it, but I don't see much actual use for it.
shime has joined #ruby
apparition has joined #ruby
mim1k has joined #ruby
<Papierkorb>
scatterp: First and foremost, there are many many security issues that have to be considered when building something like this (for production use). Just the knowledge on this could fill a book.
<scatterp>
yes the FIX implementation will only be available to a specific endpoint this will be controlled via firewall and will be a local system connecting 127.0.0.1
<Papierkorb>
scatterp: You can build it, as challenge for you ("research purposes"). In fact, if you're interested, you totally should. Just know that I can't blindly recommend this approach for production use (e.g., if you just started in a company as intern or otherwise beginner). For home use (That is, on your local computer, NOT on some webserver you rented).
<scatterp>
the peatio project has had a full security review recently which is not enough..
<scatterp>
so i do plan to test it with some fuzzers and do some checks as well
mim1k_ has quit [Ping timeout: 240 seconds]
<Papierkorb>
Oh if only an iptables entry would actually fix the security issues of that
<scatterp>
yes :)
rfoust has joined #ruby
<scatterp>
security is very important i agree but i cant protect my wallet before i can walk outside :)
knight33 has joined #ruby
<scatterp>
so i have to make it function first also its opensource so its also available for others to review
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
griffindy has joined #ruby
Ishido has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ishido has joined #ruby
bronson has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
aupadhye has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
joast has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 240 seconds]
elbuki has joined #ruby
fChanX has left #ruby ["Leaving"]
rabajaj has quit [Quit: Leaving]
__Yiota has joined #ruby
mim1k_ has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
darix has quit [Ping timeout: 258 seconds]
heftig has quit [Ping timeout: 264 seconds]
ShalokShalom_ has joined #ruby
paranoicsan has quit [Read error: Connection reset by peer]
paranoicsan has joined #ruby
konsolebox has quit [Quit: .]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ouchy has quit [Ping timeout: 248 seconds]
Ouchy`w has quit [Ping timeout: 248 seconds]
ShalokShalom has quit [Ping timeout: 260 seconds]
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
Ouchy`w has joined #ruby
Ouchy`w has quit [Client Quit]
heftig has joined #ruby
mkali has joined #ruby
theunraveler has joined #ruby
knight33 has joined #ruby
__Yiota has joined #ruby
darix has joined #ruby
claudiuinberlin has joined #ruby
oleo has quit [Quit: Leaving]
Rapture has joined #ruby
webguynow has quit [Ping timeout: 248 seconds]
InfinityFye has quit [Quit: Leaving]
webguynow has joined #ruby
oleo has joined #ruby
brw has quit [Quit: Off to listen to some tunes...]
<pskosinski>
I wasn't using Ruby for long time. I think I used to use input = gets.chomp and it was working. Now I get error: undefined method `chomp' for nil:NilClass. Anything changed in Ruby or I remember something wrong? Why doesn't it work?
ResidentBiscuit has joined #ruby
<pskosinski>
Why is gets returning nil instead of a string
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
chouhoulis has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
bmurt has joined #ruby
<teatime>
pskosinski: gets has interesting behavior if your script has arguments, you probably want to STDIN.gets explicitly even if that isn't your problem
<teatime>
pskosinski: are you piping to your program?
<pskosinski>
teatime: I just realized my script works… ah ;) yes, I'm piping
<pskosinski>
works when typing into terminal, doesn't when piping
<teatime>
what are you piping
<teatime>
gets returns nil on EOF
<pskosinski>
echo "1\n2\n3" | ruby test.rb
<pskosinski>
So how can I read from pipe?
Asher has quit [Quit: Leaving.]
<teatime>
well that should work afaict.
<pskosinski>
Hm, OK
<teatime>
that way of interpolating \n doesn't work in shell jsyk
<teatime>
use printf instead of echo
<pskosinski>
yeah, I forgot about echo -e
<teatime>
pskosinski: do you get the first line(s) fine and just get the nil afterward? that's the expected behavior, gets returns nil on EOF
Burgestrand has quit [Quit: Closing time!]
Asher has joined #ruby
<pskosinski>
teatime: Yes, seems like it's what happenes, just undefined method chomp for nil class on the end, thank you for help! Looks like I need to rescue from that
<teatime>
pskosinski: just need something like, while line = STDIN.gets
<pskosinski>
teatime: Nice, that's even easier, thanks :)
rowend has joined #ruby
rowend has quit [Client Quit]
dinfuehr has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dinfuehr has joined #ruby
polishdub has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
oleo has quit [Remote host closed the connection]
bronson has joined #ruby
oleo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
raynold has joined #ruby
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition has quit [Quit: Bye]
milardovich has quit [Remote host closed the connection]
DTZUZU has joined #ruby
charliesome has joined #ruby
s2013 has joined #ruby
claudiuinberlin has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
bronson has quit [Remote host closed the connection]
<maesitos>
baweaver: so you recommend me to stop reading and dig my head in some code right?
<baweaver>
Moreover that reading will only get you so far
Dimik has joined #ruby
<baweaver>
and Eloquent Ruby will be helpful, yes, but moreso if you've already seen the trenches a bit for yourself
ivanskie has joined #ruby
<baweaver>
Eloquent Ruby is entirely how to do Ruby like a Ruby programmer
<maesitos>
I see
<baweaver>
and sometimes it helps to Ruby like a you programmer first to understand
elsevero_ has joined #ruby
<baweaver>
So whenever you see all these "Here's a simple way to do X" that you just struggled with a bit it starts to become clearer why they do certain things
<baweaver>
Though there is certainly merit in not having to fall down the hole in the first place
uZiel has quit [Remote host closed the connection]
<maesitos>
so you say I need to feel the pain first
elsevero has quit [Ping timeout: 252 seconds]
elsevero_ is now known as elsevero
mkali has quit [Quit: mkali]
<maesitos>
the thing is I tend to lose motivation with dummy projects...
<baweaver>
You'll feel it one way or another honestly. Reading that book may spare you from some of it
<maesitos>
but I don't feel ready for something serious
<Papierkorb>
maesitos: You'll never feel ready without getting your hands dirty.
ur5us has joined #ruby
troys_ is now known as troys
<baweaver>
The thing about serious projects is that they tend to look terrifying if you take it in its entirety
<maesitos>
Papierkorb: right
<Papierkorb>
maesitos: You can't learn to walk without falling first
<maesitos>
baweaver: just like watching a building right?
<baweaver>
whenever most sane developers that've been at it for a while will break it apart into smaller, more manageable tasks.
<baweaver>
yep
<baweaver>
You have to figure out your blueprint before you even lay the foundation
<maesitos>
yeah well that happens to me in my own live, when I look back I cannot believe I did all that... But I feel stuck now
<Papierkorb>
maesitos: Find a project that interests you ("How does this work?") and/or that is helpful to you ("This always annoyed me, there must be a better way!"). Do that right now. And then get onto it.
<teatime>
maesitos: you can read 10 more books and still probably won't without some practical hands-on. It's the fastest way to learn.
troulouliou_dev has joined #ruby
uZiel has joined #ruby
<baweaver>
The fun part is finding said project. For a newbie that's a task of its own
TomyLobo has joined #ruby
<baweaver>
Namely because they haven't learned what problems they can solve yet while a programmer with some exp knows what nails need hammering
FahmeF has quit [Remote host closed the connection]
<baweaver>
That said, what is your hobby maesitos?
<Papierkorb>
baweaver, maesitos, hence why I generally advise to do something about an annoyance they're facing.
dtomic has joined #ruby
<maesitos>
baweaver: I don't have any haha
<baweaver>
What do you enjoy doing in your spare time.
<baweaver>
Papierkorb: Indeed.
<baweaver>
One makes more selling painkillers than vitamins.
<baweaver>
maesitos: Nothing you enjoy doing for fun?
<maesitos>
baweaver: my hobby is my business and I've hired several Rails developers believe it or not
<dtomic>
Hey guys ...quick noob question if anyone is available
<Papierkorb>
That's unexpected indeed
<dtomic>
:/
<Papierkorb>
dtomic: Ask away
<maesitos>
baweaver: not really... I like building stuff that's what I enjoy
<teatime>
maesitos: I don't suppose you need any *nix sysadmins? ;)
<Papierkorb>
maesitos: Building what kind of stuff?
ur5us has quit [Ping timeout: 252 seconds]
<dtomic>
trying to ssh to a remote server with default user and then execute sudo yum install command... how do I pass root password to execute that command
andikr has quit [Remote host closed the connection]
<maesitos>
teatime: I'd love to... but my business now is small to hire a full time sysadmin but I'm working at it!
<teatime>
dtomic: try -t option to ssh, perhaps
<maesitos>
Papierkorb: anything... lately my business, I consider it a stuff haha
zachk has joined #ruby
dstrunk has joined #ruby
tamouse__ has joined #ruby
<baweaver>
dtomic: I'd look into using SSH keys for security, but past that it's setting up your SSH user with sudoer access
Bock has quit [Ping timeout: 252 seconds]
<maesitos>
Papierkorb: anything... lately my business, I consider it stuff haha
<maesitos>
baweaver: what's your hobby by the way
<dtomic>
yeah I cannot do that .. only way I can execute command is to pass root password
zachk has quit [Max SendQ exceeded]
<teatime>
dtomic: you can also disable sudo asking for passwords, if that's acceptable to you
<baweaver>
maesitos: several, but most recently Tak and making a game engine for it in Javascript.
<dtomic>
I do not own server, just have root pass to execute yum install
<teatime>
dtomic: sudo doesn't ask for root's password, btw, it's your user's password
<Papierkorb>
maesitos: In any case, you said you have Rails devs, so I'll just assume you're fine with using Rails yourself. Build a helper tool (local web-application, or CLI script) helping with your daily routines. If you can't think of something in this moment, grab pen&paper and write everything down you do in the following days, what time it took, and what was annoying about it (if any). Few days later (or a week at max), take a look at your notes. You
<Papierkorb>
WILL find something where you think "I can save time here if I had X". You now have your first project, that'll even have a real impact.
zachk has joined #ruby
<teatime>
dtomic: if you want to use root's password, you want to use su -c instead of sudo
<dtomic>
yup
<dtomic>
sorry
<baweaver>
That said, this sounds like a security nightmare waiting to happen
<dtomic>
not sudo
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<maesitos>
Papierkorb: building a small Sass will be something that I'd enjoy doing
chouhoul_ has joined #ruby
<maesitos>
Papierkorb: if it ain't useful I get bored
<Papierkorb>
maesitos: Excellent. Go for it. (Though I don't know what a Sass is ;) )
<teatime>
software-as-a-service.
<maesitos>
Papierkorb: a Saas... it's how the hippies call online services now a days
aliciaxx has quit [Remote host closed the connection]
<maesitos>
Papierkorb: ideally you ask for 20 bucks a moth or so
chouhoulis has quit [Ping timeout: 240 seconds]
<Papierkorb>
Well, the big question then is what it should do :P
<baweaver>
maesitos: that's horrible business strategy
ta_ has quit [Remote host closed the connection]
<baweaver>
19.99 is law
<maesitos>
baweaver: xD
<baweaver>
4.99 and 9.99 are super common for those services.
<maesitos>
baweaver: it depends
<baweaver>
it does
<maesitos>
baweaver: now I see them getting more expensive
<Papierkorb>
enterprise "Please contact us" (Meaning, oh shit, we don't know if our infrastructure will be able to handle that)
<maesitos>
Papierkorb: that's the big question yes
Pierreb|home has joined #ruby
<Papierkorb>
Ah well, I already showed you how to find an idea, maybe even something you can sell. ("The money is on the street. You just have to see it.")
woodruffw has quit [Ping timeout: 240 seconds]
<maesitos>
You know the ugly part is JS
<maesitos>
if I want to do web I need to interface with the user with JS and CSS
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maesitos>
and it's a bit hostile
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
paranoicsan has joined #ruby
paranoicsan has quit [Client Quit]
harai has joined #ruby
John__ has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theunraveler has quit []
bronson has joined #ruby
dviola has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<morfin>
there is no patches for older MRI?
uZiel has quit [Ping timeout: 248 seconds]
FrostCandy has joined #ruby
<morfin>
there was issue with GC as i remember causing UB and crash in miniruby/ruby
ski7777 has quit [Read error: Connection reset by peer]
<baweaver>
Depends on the version, but most everything before 2.1.x is EOL
<morfin>
2.3.x
<FrostCandy>
if i have fields = {"f1"=>"one"} why can't I access it like fields.f1 ? I can do fields["f1"]
John__ has quit [Read error: Connection reset by peer]
<baweaver>
Shouldn't be.
<morfin>
i had bug with gcc 7
ski7777 has joined #ruby
<morfin>
even miniruby ceashed :(
<morfin>
*crashed
jphase_ has joined #ruby
<baweaver>
FrostCandy: It's not Javascript
<baweaver>
we don't have dot notation for hashes
<morfin>
hehe
<FrostCandy>
baweaver: lol ya, but im sure i've seen something.something in ruby, maybe it was differnet context.
<baweaver>
Not that there aren't ways to do it anyways
<morfin>
also do not forget symbol keys != string keys
<baweaver>
primarily around method_missing, hashie, and some other fun bits
<baweaver>
but that's also really dirty and slow, so best to avoid them
<havenwood>
or turn the hash into an openstruct or struct
ams__ has quit [Quit: Connection closed for inactivity]
mtkd has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
dtomic has quit [Quit: Page closed]
<maesitos>
baweaver: The Ruby Way or Eloquent Ruby
<maesitos>
what would you say
jamesaxl has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
<FrostCandy>
If I append an object to an array, then change something in the object it automatically changes the array element. How do I make the array store just a copy of the object? I'm using my_array << my_object to do the append. https://gist.github.com/sirchuck/3ad1f276a177fa337201601fd55b3e1b
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb>
FrostCandy: You probably need to clone the element, with .dup
<FrostCandy>
elomatreb: ok i'll research that thanks
duckpupp1 has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaruga has quit [Quit: jaruga]
jamesaxl has quit [Read error: Connection reset by peer]
<FrostCandy>
electrostat: works great.
jamesaxl has joined #ruby
bmurt has joined #ruby
Ouchy`w has quit [Ping timeout: 248 seconds]
Ouchy`w has joined #ruby
sepp2k has quit [Remote host closed the connection]
ta_ has joined #ruby
marxarelli|afk is now known as marxarelli
eckhardt has joined #ruby
ski7777 has quit [Remote host closed the connection]
ski7777 has joined #ruby
ski7777 has quit [Remote host closed the connection]
ski7777 has joined #ruby
ski7777 has quit [Remote host closed the connection]
ski7777 has joined #ruby
cdg has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
PaulCapestany has quit [Quit: .]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xevious has joined #ruby
rasca_ has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
theunraveler has joined #ruby
voiceftp has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
ramfjord has joined #ruby
brw has joined #ruby
biberu has quit []
ur5us has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
MarkBilk has joined #ruby
Sh3rl0cK has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
jinie has quit [Ping timeout: 240 seconds]
jphase_ is now known as jphase
_sfiguser has quit [Ping timeout: 240 seconds]
raynold has quit [Quit: Connection closed for inactivity]
jinie has joined #ruby
_sfiguser has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
Algebr has joined #ruby
rabajaj has quit [Quit: Leaving]
<Algebr>
when you get the common: 'Could not find foo in any of the sources', what is teh gem path like variable that you can dump to check where its looking for?
shime has joined #ruby
tamouse__ has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
cagomez has joined #ruby
Azure has joined #ruby
cpruitt has quit [Quit: cpruitt]
raynold has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli is now known as marxarelli|afk
tcopeland has quit [Quit: tcopeland]
cagomez has quit [Remote host closed the connection]
gusrub has quit []
whippythellama_ has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
ornerymoose has quit [Ping timeout: 240 seconds]
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
tamouse__ has joined #ruby
enterprisey has joined #ruby
<Algebr>
I have unf_ext-0.0.7.4-x86-mingw32.gem in the root of my directory, where the gem file is, then I have gem 'unf_ext', :path => './', :platform => [:mingw] in the gemfile, and then I do bundle lock --add-platform x86-mingw32 but bundle craps out with: Could not find gem 'unf_ext x86-mingw32' in source at `./`. which seems odd to me
shime has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
sp4rrow has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
whippythellama_ has joined #ruby
ikopico has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
imode has quit [Ping timeout: 264 seconds]
ikopico has joined #ruby
troys is now known as troys_
marxarelli|afk is now known as marxarelli
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
cout has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
gmatute has joined #ruby
ineb has joined #ruby
mim1k has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zachk has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
zachk has joined #ruby
mikecmpbll has joined #ruby
enko has joined #ruby
brent__ has quit []
enko has quit [Client Quit]
tamouse__ has joined #ruby
__Yiota has quit [Max SendQ exceeded]
__Yiota has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John__ has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyoku_ has quit [Ping timeout: 248 seconds]
scatterp has quit [Ping timeout: 240 seconds]
scatterp has joined #ruby
t-recx has quit [Quit: t-recx]
lagweezle is now known as lagweezle_away
jnollette has joined #ruby
mim1k has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
<Algebr>
What is the right way to make a gem with precompiled ruby native extensions?
<Algebr>
I am getting very confused.
bruno-_ has quit [Ping timeout: 264 seconds]
<eam>
Algebr: could you be more specific?
bronson has joined #ruby
eckhardt has joined #ruby
mtkd has joined #ruby
coderphive has joined #ruby
<Algebr>
there is a project called unf_ext. I can build it finally on windows, the ruby + make dance. Now I want to make a gem but it has the compiled code in it, so that when I deploy an application using this gem, it doesn't make the target try to compile but just uses the precompiled gem