<Calinou>
the thing is that a VM incurs a huge amount of latency (both visual and audio) which you'll easily notice when using a full-fledged desktop environment in it
<RougeR>
YEP!
<RougeR>
try telling that to my manager who refuses to let me run ubuntu
<RougeR>
even though 100% of my work is ruby
<SeepingN>
you have macbook written all over you
<RougeR>
yeah im not a fan of macs, but id rather one than windows
<RougeR>
much prefer windows/ubuntu dual boot or vm
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
Tharbakim has quit [Ping timeout: 272 seconds]
sonofentropy has quit [Quit: sonofentropy]
<SeepingN>
yall ain't serious enough yet
mikecmpbll has quit [Quit: inabit. zz.]
mozzarella has joined #ruby
renich_ has joined #ruby
renich has quit [Ping timeout: 245 seconds]
skyikot has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
laaron- has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
r29v has quit [Quit: r29v]
forager has joined #ruby
forager has quit [Quit: leaving]
bruul has joined #ruby
Dreamer3 has joined #ruby
oshanz has quit [Ping timeout: 245 seconds]
ansraliant has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v3.4 Beta Build (2019/02/20 UTC) 64 Bit]
Tempesta has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.4]
orbyt_ has joined #ruby
xrexeon has quit [Read error: Connection reset by peer]
cthu| has quit [Ping timeout: 268 seconds]
bga57 has quit [Ping timeout: 245 seconds]
duckpuppy has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
code_zombie has quit [Quit: Leaving]
dionysus69 has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
r29v has joined #ruby
r29v has quit [Client Quit]
eb0t has joined #ruby
eb0t_ has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 255 seconds]
bga57 has joined #ruby
Emmanuel_Chanel has joined #ruby
skyikot has joined #ruby
renich has joined #ruby
renich_ has quit [Ping timeout: 246 seconds]
bruul has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: night]
tdy has quit [Ping timeout: 245 seconds]
<elcontrastador>
Holistic question: Looking for a <10k line ruby gem-packaged app on github that is a shining example of best practices to level up my game. Recommendations?
renich has quit [Ping timeout: 255 seconds]
r29v has joined #ruby
blackbaba has joined #ruby
blackbaba has quit [Client Quit]
awkwords has joined #ruby
r29v has quit [Quit: r29v]
<baweaver>
elcontrastador: What do you want to learn about?
Tharbakim has joined #ruby
r29v has joined #ruby
r29v has quit [Client Quit]
gnufied has quit [Remote host closed the connection]
AJA4350 has quit [Remote host closed the connection]
tdy has joined #ruby
wolfshappen has quit [Ping timeout: 246 seconds]
mkroman has quit [Quit: Reconnecting]
wolfshappen has joined #ruby
mkroman has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
bruul has joined #ruby
awkwords has quit [Quit: sleepy time]
Azure|dc is now known as Azure
v01d4lph4 has joined #ruby
v01d4lph4 has quit [Read error: Connection reset by peer]
bruul has quit [Ping timeout: 255 seconds]
r29v has joined #ruby
skyikot has quit [Remote host closed the connection]
r29v has quit [Quit: r29v]
skyikot has joined #ruby
fluxAeon has joined #ruby
dellavg__ has joined #ruby
<elcontrastador>
baweaver: particulary, just the best ruby form
<elcontrastador>
I've met jim weirich before he left us...just reading thru rake code now.... much respect for jim
conta has joined #ruby
<havenwood>
elcontrastador: I couldn't agree more.
<havenwood>
elcontrastador: It's hard to pick, but I can't find a thing to improve in Roda's code so it might make a good read: https://github.com/jeremyevans/roda
<syndikate>
Is true parallelism possible in ruby using processes?
<havenwood>
syndikate: sure, you can do things in parallel on multiple cores with multiple processes.
<havenwood>
syndikate: is that what you mean?
<syndikate>
Ah okay havenwood. Was reading through parallel_tests gem
cgfbee has quit [Remote host closed the connection]
<havenwood>
syndikate: Ah, neat. Using separate processes is a fairly common pattern in Ruby since CRuby blocks most Threads from doing parallel non-IO work.
<havenwood>
syndikate: (JRuby and TruffleRuby can do parallel work in Threads.)
<syndikate>
Oh, they are helped by having the VM eh? havenwood
<syndikate>
havenwood, Yeah that's what I meant. Oh okay nice will read through.
<havenwood>
syndikate: CRuby has a VM too these days! (So it's a GVL technically, not a GIL.)
<havenwood>
syndikate: CRuby got a VM in 1.9, with YARV.
<syndikate>
Oh, I have never worked on it so pretty un-informed on these
<havenwood>
syndikate: Then at Christmas the CRuby JIT landed. (JRuby's and TruffleRuby's are far further along at this point.)
<havenwood>
syndikate: Welcome to Ruby!
<syndikate>
havenwood, Thanks! I have been on rails for sometime but haven't written much tools in Ruby. Recently started looking into gems and seeing if I can get hands into more ruby stuff
<havenwood>
syndikate: ah, nice
<syndikate>
havenwood, Any pointers, suggestions, mentoring on stuff to begin contribution are all welcome :D socketry/falcon is something that I wanted to look into for a while now. Fibers as well.
<havenwood>
syndikate: Fibers are interesting. I much more often use Enumerators, which are backed by Fibers internally.
<havenwood>
syndikate: Happy to review any code or help here with anything that comes up!
<syndikate>
havenwood, Oh didn't know that. Sure, I will probably request for clarification for things I don't understand :D
<syndikate>
Oh okay, let me check them. Might need some time :D
<havenwood>
Enumerators really are useful!
<syndikate>
Yeah I started picking up enumerators a while ago
<syndikate>
But problem is that there is not much scope to write much stuff with all those in my current work as mostly it's the usual rails related stuff
<havenwood>
Aye, I was just talking with some folk tonight at a meetup about how Rails development feels like putting things meticulously in the right drawers.
<havenwood>
Which can be pleasing or maddening, depending on how tidily it fits in those drawers.
<havenwood>
The author of that ^ GIL article wrote three great books, on processes, tcp sockets and threads.
<syndikate>
Exactly, after a while the charm is lost - well for someone who wants to do something new most of the time. It's not that the current application is best ever but when you working with business requirements and timelines out of scope work is always in the backlogs. You do what's required and that's mostly straightforward stuff. So, I thought looking into more of ruby can help me take something back.
<syndikate>
Oh alright, that's quite a lot of stuff to bookmark now :D
<syndikate>
Thanks havenwood !
luminous has joined #ruby
<havenwood>
You're welcome! Any time
sauvin has joined #ruby
<syndikate>
I am trying to see how I can (If I can) improve the tooling and use it to it's utmost potential in my project
<andywww>
that is haild code and works, but I’m not sure if its the correct way to go stylistically?
<andywww>
is it okay/common to pass the class in like that so the parent knows what to instantiate?
<andywww>
or is there a better way to do it?
<andywww>
haild = valid
<phaul>
klasses are just objects. You can pass them around
tjbp has quit [Remote host closed the connection]
<andywww>
so theres nothing ‘wrong’ with doing it that way then?
<andywww>
you wouldn’t wince if you saw that approach in a project?
<phaul>
no, but probably I wouldn't do it either
<andywww>
how might you do it different?
gregf_ has joined #ruby
tjbp has joined #ruby
<phaul>
what makes the decision on A or B? somewhere there is going to be a case that decides otherwise there is no point in the two possibilities. There I would just chose A or B and there is no need for parent class altogether
<phaul>
that said I would probably transfer the decision into BaseHandler
<phaul>
class BaseHandler; def self.for_thing(x) case x when X then AHandler; when Y then BHandler ...
<phaul>
but it's subjective opinion and peoples preferences differ
<andywww>
sorry, the particular instance I’ve applied this to are audio stream formats where the parent object is a broadcast which has many streams of different audio formats
<andywww>
and I want to be able to add to those formats over time
<andywww>
so the XHandler classes are for each format, if that makes sense
<phaul>
sure. Imo the only way to really go wrong with this if you replicate the decision logic in multiple places. There should be 1 place which dispatches on A/B types.
<andywww>
okay thanks
sonofentropy has joined #ruby
<phaul>
the other thing I started doing, again it is very subjective, is to get rid of raise NotImplementedError methods. And if a common parent only has NotImplementedError methods then get rid of the parent class. And child classes just have the same methods without a common parent. Im sure this view is somewhat controversial. But for instance look at how TrueClass and FalseClass doesn't have a common parent.
<al2o3-cr>
imo prefer andywww way of polymorphism here.
<phaul>
there are 2 options. doing the same as for BHandler, or introducing a plugin like architecture where Handler.for picks up child classes automatically. Either form a common folder like /handlers or using hooks like inherited
<phaul>
then each match check can be put in a class method and Handler.for just calls different handlers in a loop to check which can handle
<phaul>
class AHandler; def can_handle?(thing) :a == thing; end ...
<phaul>
def _self_.can_handle? ^
<andywww>
brill, thanks for the input
sleetdrop has quit [Quit: Computer has gone to sleep.]
venmx has quit [Ping timeout: 272 seconds]
venmx has joined #ruby
fritzroy15 has joined #ruby
<fritzroy15>
heyo, keep getting ! Terminating timed out worker: and puma doesn't seem to want to properly start. I'm running it inside ec2 on aws and no machine metrics look like it's reaching the limit in any way
<fritzroy15>
any clues?
jcalla has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
andywww has quit [Quit: andywww]
cd has joined #ruby
conta has quit [Ping timeout: 250 seconds]
awkwords has joined #ruby
sonofentropy has quit [Quit: sonofentropy]
queip has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
awkwords_ has joined #ruby
awkwords has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
sonofentropy has joined #ruby
orbyt_ has joined #ruby
Rapture has joined #ruby
govg has quit [Ping timeout: 245 seconds]
darix has quit [Quit: may the packets be with you...]
gnufied has joined #ruby
millerti has joined #ruby
blackmesa has quit [Quit: WeeChat 2.3]
skryking has quit [Remote host closed the connection]
skryking has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
maryo has joined #ruby
mangold has joined #ruby
dhollin3 is now known as dhollinger
code_zombie has joined #ruby
polishdub has joined #ruby
Arahael has quit [Ping timeout: 244 seconds]
fernandobasso has joined #ruby
<fernandobasso>
How do I assign a lambda to a name with a ?, like foo? = -> (x) { ... } ?
<fernandobasso>
I get a syntax error because of the ?
skryking has quit [Remote host closed the connection]
skryking has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
yokel has quit [Ping timeout: 246 seconds]
wolfshappen has quit [Ping timeout: 272 seconds]
Inline has joined #ruby
wolfshappen_ has joined #ruby
<havenwood>
fernandobasso: question marks just aren't allowed in variable names
<havenwood>
fernandobasso: you could define a method that returns that lambda
rippa has joined #ruby
yokel has joined #ruby
<fernandobasso>
havenwood: All right. Thanks.
<fernandobasso>
Ah, não é possível. Nomes de variáveis não podem conter ?
maryo has quit [Read error: Connection reset by peer]
<phaul>
TIL what a f*up gemspec add_development_dependency is. they are just under the assumption that you would use bundler anyways. But if that's the case really it should be removed as it doesn't work
<phaul>
I dont see concatenation, I see 3 local vars foo (symbol), foo﹖ (lambda), foofoo﹖ (integer)
<al2o3-cr>
am i missing something here ?!? have i gone mental
<al2o3-cr>
phaul: ignore me, i see it now. i'm a daft bat :(
Arahael has joined #ruby
<al2o3-cr>
thought i was going stir crazy for a minute then
<phaul>
nah extra pair of eyes. rubber duck. etc. we all been there
<al2o3-cr>
glad you cleared that up ;)
sonofentropy has joined #ruby
reber has joined #ruby
nowhere_man has joined #ruby
clemens3_ has quit [Ping timeout: 255 seconds]
tdy1 has quit [Ping timeout: 246 seconds]
duckpuppy has joined #ruby
tjbp has quit [Remote host closed the connection]
ravenousmoose has joined #ruby
tjbp has joined #ruby
ravenousmoose has quit [Client Quit]
darix- has joined #ruby
darix- is now known as darix
mikecmpbll has joined #ruby
sameerynho has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
yokel has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
sonofentropy has quit [Quit: sonofentropy]
yokel has joined #ruby
venmx has quit [Ping timeout: 246 seconds]
awkwords has joined #ruby
orbyt_ has quit [Ping timeout: 245 seconds]
sonofentropy has joined #ruby
conta has joined #ruby
<elcontrastador>
havenwood: Thanks for the code sample recommendations. Looking at Roda....looks good.
AJA4350 has quit [Ping timeout: 246 seconds]
rockyh has joined #ruby
r3m has quit [Quit: WeeChat 2.5-dev]
r3m has joined #ruby
<rockyh>
hello!
<phaul>
hi rockyh
orbyt_ has joined #ruby
<rockyh>
I am using ruby 2.4.5 on FreeBSD 12.0; I am using Jekyll for GitHub Pages. Each repository has its own Gemfile.lock and needs some gems to be installed. FreeBSD `pkg' has a package for each gem, but it is almost impossible to match all the gems and/or versions needed in each repository with the ones available in `pkg'. In this condition, could it be a good solution to install gems only in my user home
<rockyh>
directory, without affecting the system at all? With `bundle install --binstubs', IIUC
<rockyh>
this would also avoid the use of `root' (discouraged) to install gems, and also the use of `sudo' (which I would install only to install gems)
ghormoon has quit [Ping timeout: 250 seconds]
ghormoon has joined #ruby
dellavg__ has quit [Ping timeout: 255 seconds]
linuus has joined #ruby
v01d4lph4 has quit [Read error: Connection reset by peer]
<havenwood>
rockyh: It's a common pattern to install gems in $GEM_HOME for multiple apps, then using `bundle exec` to limit each app to the exact version of gems in the Gemfile.lock.
<havenwood>
rockyh: On the other hand, if it's prod, you can use the `--deployment` flag to install gems for each app in an app-local vendor/ dir.