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!
orbyt_ has joined #ruby
r29v has quit [Quit: r29v]
rmnull has quit [Ping timeout: 272 seconds]
dhollinger has quit [Ping timeout: 246 seconds]
rmnull has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 272 seconds]
clemens3 has quit [Ping timeout: 265 seconds]
clemens3 has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
dhollinger has joined #ruby
wymillerlinux has joined #ruby
yaw has quit [Ping timeout: 265 seconds]
CommunistWolf has quit [Ping timeout: 256 seconds]
CommunistWolf has joined #ruby
xco has joined #ruby
Exuma has joined #ruby
duderonomy has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r29v has joined #ruby
orbyt_ has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
arahael1 has joined #ruby
Arahael has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
cow[moo] has quit [Read error: Connection reset by peer]
TCZ has quit [Quit: Leaving]
cow[moo] has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
d3bug has joined #ruby
jinmiaoluo has joined #ruby
ChmEarl has quit [Quit: Leaving]
jetchisel has quit [Ping timeout: 264 seconds]
codefriar has joined #ruby
rmnull has quit [Quit: WeeChat 2.8]
djdduty has joined #ruby
charon77 has quit [Ping timeout: 256 seconds]
charon77 has joined #ruby
djdduty has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djdduty has joined #ruby
charon77 has quit [Read error: Connection reset by peer]
r3m is now known as Pascal
wymillerlinux has quit [Ping timeout: 265 seconds]
xco has quit [Ping timeout: 240 seconds]
arahael1 is now known as Arahael
crisfm has quit [Quit: WeeChat 2.7.1]
seaef has joined #ruby
seaef has quit [Quit: ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnsvc has joined #ruby
djdduty has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 260 seconds]
batisi[m] has joined #ruby
_whitelogger has joined #ruby
greypack has quit [Quit: All your IRC are belong to ZNC]
greypack has joined #ruby
cd has quit [Quit: cd]
llua` has joined #ruby
llua has quit [Ping timeout: 246 seconds]
llua` is now known as llua
sauvin has joined #ruby
llua` has joined #ruby
llua has quit [Ping timeout: 246 seconds]
llua` is now known as llua
phaul has quit [Quit: :wq]
d3bug has quit [Quit: Connection closed for inactivity]
jinmiaoluo has quit [Ping timeout: 256 seconds]
jinmiaoluo has joined #ruby
phaul has joined #ruby
jinmiaoluo has quit [Ping timeout: 260 seconds]
jinmiaoluo has joined #ruby
imode has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
vondruch has joined #ruby
jetchisel has quit [Ping timeout: 256 seconds]
hadifarnoud has joined #ruby
masticass has joined #ruby
<rapha> havenwood: you guessed 100% correctly; barracuda is the one i hadn't discovered yet. The boss bought me an RTX2060 and I've had some fun figuring out how to PCI-Passthrough it into a VM and
<rapha> stress testing it (goes up to something like 6.5TFLOP/s, which seems like a lot to me who's never used a GPU for anything but gaming) and now the configuration fiddling and stress testing got boring and I want to learn how to do something with it.
<rapha> But seems like this will lead to me learning some more Python. Girlfriend will be happy...
<rapha> (That wasn't sarcastic; she's been learning Python herself and likes it a lot. Which is understandable considering she's coming from Matlab)
masticass has quit [Client Quit]
masticass has joined #ruby
masticass has quit [Client Quit]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
gaussblurinc1 has joined #ruby
conta has joined #ruby
ellcs has joined #ruby
_aeris_ has quit [Remote host closed the connection]
gitter1234 has quit [Quit: Connection closed for inactivity]
mikecmpbll has joined #ruby
_aeris_ has joined #ruby
r29v has quit [Ping timeout: 246 seconds]
evdubs has quit [Quit: Leaving]
evdubs has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
cnsvc has joined #ruby
alexherbo2 has joined #ruby
gitter1234 has joined #ruby
hadifarnoud has quit [Quit: Textual IRC Client: www.textualapp.com]
jinmiaoluo has quit [Ping timeout: 258 seconds]
ldepandis has joined #ruby
jinmiaoluo has joined #ruby
ur5us has joined #ruby
fanta1 has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
conta1 has joined #ruby
conta has quit [Ping timeout: 265 seconds]
conta1 is now known as conta
<rapha> havenwood: By the way of doing long-running things. If I start something external through Ruby (``, %x(), system(), exec()), is there a way with one of those to keep monitoring the output line by line and sending, say, SIGINT, to that process based on some of its output?
TCZ has joined #ruby
cnsvc_ has joined #ruby
darkstardevx has quit [Ping timeout: 265 seconds]
cnsvc_ has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 260 seconds]
<leftylink> that sounds like something in open3 would be called for. or at the very least, IO.popen
<rapha> open3? Oh, that sounds like it'll become my TIL.
<rapha> Ah, the 3 is because it distinguishes between stdin, err, out.
<rapha> Cool, thanks leftylink!
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
conta has quit [Quit: conta]
noboruma has joined #ruby
venmx has joined #ruby
rhe has quit [Read error: Connection reset by peer]
chalkmonster has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
seaef has joined #ruby
drincruz has joined #ruby
conta has joined #ruby
alexherbo2 has joined #ruby
alexherbo2 has quit [Client Quit]
gitter1234 has quit [Quit: Connection closed for inactivity]
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
burningserenity has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
<rapha> leftylink: I give up :-( ... how does this thing work? (https://gist.github.com/sixtyfive/be00c30938e2fbd279c23d262c31665c is not how it works)
burningserenity has quit [Quit: Leaving.]
<rapha> Damn, whenever I ask, then I find. Need to use Thread.new {}. Sorry.
jinmiaoluo has quit [Ping timeout: 246 seconds]
jinmiaoluo has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has joined #ruby
<rapha> Yesss, all working ... needed to set Thread.report_on_exception = false. TIL much! :-D
wymillerlinux has joined #ruby
hololeap has quit [Ping timeout: 256 seconds]
Secret-Fire has joined #ruby
greenbagels has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
ldepandis has joined #ruby
impermanence has quit [Quit: Connection closed]
conta has quit [Ping timeout: 272 seconds]
greenbagels has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
seaef has quit [Quit: ZZZzzz…]
banisterfiend has joined #ruby
seaef has joined #ruby
mibr has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
seaef has quit [Quit: ZZZzzz…]
jinmiaoluo has quit [Ping timeout: 256 seconds]
leitz has joined #ruby
conta has joined #ruby
wymillerlinux has quit [Ping timeout: 246 seconds]
conta has quit [Ping timeout: 264 seconds]
TCZ has joined #ruby
conta has joined #ruby
conta has quit [Client Quit]
seaef has joined #ruby
conta has joined #ruby
wymillerlinux has joined #ruby
TomyWork has joined #ruby
TomyWork has quit [Remote host closed the connection]
rippa has joined #ruby
xco has joined #ruby
akem_ is now known as akem
woodruffw has quit [Ping timeout: 260 seconds]
woodruffw has joined #ruby
davispuh has joined #ruby
TCZ has quit [Quit: Leaving]
SeepingN has joined #ruby
cd has joined #ruby
cnsvc_ has joined #ruby
howdoi has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
kinduff has joined #ruby
cow[moo] has quit [Ping timeout: 246 seconds]
ChmEarl has joined #ruby
renich has joined #ruby
imode has joined #ruby
stryek has joined #ruby
orbyt_ has joined #ruby
extrowerk has joined #ruby
<extrowerk> Hi. A question: do i see it correctly that ruby needs ruby to compile it?
fanta1 has quit [Quit: fanta1]
<havenwood> extrowerk: Nope.
<adam12> extrowerk: Kinda. There is a mini ruby that is packaged with it that does some tooling.
<adam12> extrowerk: But this should be transparent to you. Just compile like you normally would; ./configure; make; make install.
<havenwood> extrowerk: miniruby | ruby
<extrowerk> i think something fishy then.
<havenwood> extrowerk: It's an implementation detail, but there doesn't need to be any existing install of Ruby.
<extrowerk> Building ruby 2.7.1 i got this error: "executable host ruby is required. use --with-baseruby option."
<extrowerk> Build log: http://0x0.st/i9Wy.txt
<havenwood> extrowerk: Try: distclean
<havenwood> extrowerk: make distclean
<havenwood> extrowerk: Then does it work?
<extrowerk> Do you think it would make any difference? it is a clean tarball from the official site, downloaded and extracted literally during the portscript run, it tells in the 11. line: "Unpacking source of ruby-2.7.1.tar.xz"
<havenwood> extrowerk: I do suspect it will make a difference.
<extrowerk> lets try then... the compiler already crunching the bits...
<extrowerk> havenwood: http://0x0.st/i9WY.txt
<extrowerk> here is my current recipe: http://0x0.st/i9WE.recipe
<extrowerk> notice the extra make distclean at the beginning of the BUILD() section, that's got inserted to test your theory, will ofc later...
<havenwood> extrowerk: Hrm, I'm confused by what's going on here.
<extrowerk> haikuporter builds ruby in a chroot, therefore it doesn't see anything from the live system, only what defined in the recipe. I definetely don't want to add ruby as dependency to build ruby.
<extrowerk> idk what to do now.
<havenwood> extrowerk: The last haiku miniruby i see on the bug tracker was a while back: https://bugs.ruby-lang.org/issues/15788
seaef has quit [Quit: I am functioning within established parameters.]
<havenwood> extrowerk: You might want to post a bug if nobody here has a lead.
go|dfish has quit [Remote host closed the connection]
go|dfish has joined #ruby
<extrowerk> yeah, i reported that.
conta has quit [Quit: conta]
rhe has joined #ruby
<extrowerk> can't login at the ruby bugtracker :(
<extrowerk> I tried to reset my password 3 times in a row, got emails, reseted my password, still can't login.
chalkmon1 has joined #ruby
chalkmonster has quit [Read error: Connection reset by peer]
<extrowerk> now it works
venmx has quit [Ping timeout: 256 seconds]
venmx has joined #ruby
shokohsc7 has quit [Ping timeout: 260 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
impermanence has joined #ruby
sauvin has quit [Remote host closed the connection]
shokohsc7 has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
leitz has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
cthulchu_ has joined #ruby
burningserenity has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
kristian_on_linu has joined #ruby
duckpuppy has joined #ruby
troulouliou_div2 has joined #ruby
chalkmon1 has quit [Quit: WeeChat 2.8]
reyfi9e has joined #ruby
impermanence has quit [Quit: Connection closed]
burningserenity has quit [Quit: Leaving.]
burningserenity has joined #ruby
burningserenity has quit [Remote host closed the connection]
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
duckpuppy has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
mahlon has joined #ruby
belak has joined #ruby
<belak> Is there anything like "ruby for python developers"? I have a number of jobs I'm interested in that use ruby, but I'm a ton more familiar with python... in particular looking for differences and best practices
ur5us has joined #ruby
cnsvc has quit [Quit: WeeChat 2.8]
noboruma has quit [Remote host closed the connection]
gaussblurinc1 has left #ruby [#ruby]
<havenwood> belak: I don't know of a longer missive particularly for the Python-to-Ruby migration.
<havenwood> belak: Happy to answer any questions here.
<belak> I mean, it's a bit overwhelming - there's a lot of surface area
<belak> I appreciate the offer
<belak> In particular I'm curious about best practices, stuff like that which might be different and not as well defined
<havenwood> belak: Here's something to consider regarding the choice of class or module depending on whether you're tracking internal state: https://gist.github.com/havenwood/a81401724cbcbf1f78e79f42ed4b0e33
<gitter1234> havenwood sorry to interrupt but real quick - you're the one who turned me onto Leaflet.js and again thanks for that!
<adam12> belak: Getting familiar with Enumerable is likely one of the better things to do. I'm not sure if there's an equivalent in Python but chaining methods that build on Enumerable is fairly powerful.
<havenwood> gitter1234: You're welcome!
<gitter1234> But is there any chance there's more we can do with that than just show maps?
<havenwood> gitter1234: Like what?
<gitter1234> Like immerse the user in some other way as well, with the mapped streets him or her are watching?
<havenwood> belak: +1 Enumerable
<adam12> belak: Ruby's mechanism of modules / scoping is different than Python, so getting used to the way constants are global is probably a bit different too.
<gitter1234> Well, I was thinking like VR
<belak> adam12: that's one thing that's bitten me in the past - I'm really used to explicit imports
<havenwood> belak: Never define your own class variable (@@) or global variable ($). Just pretend they don't exist.
<adam12> belak: Ruby might get something opt-in but as it stands now, it's a huge part of the design of Ruby.
<gitter1234> Goole Street View? Idk I'm using Mapbox
<belak> It looks like the difference between mixins and inheritance are huge too
<havenwood> gitter1234: You could have some VR that happens when you click on a Leaflet popup, but Leaflet.js is just 38 KB of JavaScript for pretty flat maps.
<gitter1234> I just can't shake the idea of the map somehow being able to take the user on a far greater journey than what's normal today.
<gitter1234> You're the first guy I asked
<gitter1234> Aha...
<havenwood> belak: Mixins are generally preferred.
<gitter1234> Maybe the user can access the map through some semi-virtual reality in order to "hang out" or at least be as "present" as we're all here on IRC right now?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<belak> Also, what books or resources are good for just learning ruby in general and/or getting into the details?
<gitter1234> Like everybody starting to hang out on maps instead because then they can at least see nature as opposed to computer screens
<havenwood> gitter1234: Sure, you could do that.
clemens3 has quit [Read error: No route to host]
<gitter1234> havenwood: Wait, for real??
<havenwood> belak: Some links here: https://ruby-community.com/pages/links
<havenwood> gitter1234: For real what?
<gitter1234> havenwood: The thought of "progressing my Rails app" into the next dimension by sending it into maps is quite a fascinating one.
<gitter1234> Especially ever since you and your girl introduced me to Leaflet, I've been obsessed :)
<gitter1234> But the thought that at the end of the day, they're all just maps, just doesn't seem right.
<gitter1234> Getting a next frontier kinda vibe from them thats all, like there's gotta be more to it. Pardon the interruption!
<gitter1234> English isnt my first language. Anyway my competitors have billions of dollars and thousands of employees, and their apps are pretty spectacular.
<gitter1234> My app is too, however all I got going for me is this trade secret I found within the maps. So I'm trying to figure out a way to immerse my users deeper into it, if that makes sense.
factormystic has quit [Quit: The Lounge - https://thelounge.chat]
factormystic has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has quit [Client Quit]
stryek has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
cnsvc has joined #ruby
orbyt_ has joined #ruby
drincruz has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]