adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
ur5us has joined #ruby
splud has quit [Quit: Leaving]
splud has joined #ruby
CrazyEddy has quit [Ping timeout: 264 seconds]
krishnac has joined #ruby
vit has quit [Ping timeout: 265 seconds]
CrazyEddy has joined #ruby
krishnac has quit [Remote host closed the connection]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
swaggboi has quit [Quit: C-x C-c]
BSaboia has quit [Quit: This computer has gone to sleep]
roadie` has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
Pixi has quit [Quit: Leaving]
Rounin has quit [Ping timeout: 250 seconds]
Pixi has joined #ruby
guardian has quit [Remote host closed the connection]
duds- has quit [Ping timeout: 276 seconds]
duds- has joined #ruby
miah has quit [Remote host closed the connection]
miah has joined #ruby
<newton> saw someone ask somewhere why ruby doesn't have special naming conventions for special methods (initialize, inherited, included, etc)
<newton> compared to python __init__ etc. told them there probably isn't a reason
<newton> but throwing that out there if someone knows something I don't, was an interesting question
swaggboi has joined #ruby
<weaksauce> probably because __init__ looks like ass
<weaksauce> and their special naming is weird
<Al2O3> }o{ maybe looks more like 3 ASCII ASS
<Al2O3> or better yet... https://www.nerdgranny.com/ascii-goatse/ for more detailed versions, meaning, and entertainment/weird.
crankharder has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 250 seconds]
ralu has quit [Ping timeout: 250 seconds]
ralu has joined #ruby
_ht has joined #ruby
<nakilon> weaksauce lol
Guest1099 has quit [Quit: Leaving]
gr33n7007h has quit [Ping timeout: 256 seconds]
Inline has quit [Quit: Leaving]
gr33n7007h has joined #ruby
sagax has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
_ht has quit [Remote host closed the connection]
crankharder has quit [Ping timeout: 250 seconds]
Pixi has quit [Ping timeout: 256 seconds]
Pixi has joined #ruby
sagax has joined #ruby
cuppajoeman has quit [Ping timeout: 268 seconds]
josephl has quit [Ping timeout: 268 seconds]
jposer has quit [Ping timeout: 268 seconds]
pusewic|away_ has quit [Ping timeout: 256 seconds]
josephl has joined #ruby
jposer has joined #ruby
cuppajoeman has joined #ruby
pusewic|away_ has joined #ruby
jpw has quit [Remote host closed the connection]
roadie` has quit [Remote host closed the connection]
roadie` has joined #ruby
fef has joined #ruby
trillp has quit [Quit: nyaa~]
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
ur5us has joined #ruby
fef has quit [Quit: Leaving]
dohtem has quit [Quit: Connection closed for inactivity]
gr33n7007h has quit [Quit: WeeChat 3.3]
Rounin has joined #ruby
hololeap has quit [Read error: Connection reset by peer]
hololeap has joined #ruby
taupiqueur has joined #ruby
frodl has quit [Ping timeout: 245 seconds]
frodl has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
ivzhh has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 268 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
roadie` has joined #ruby
roadie`` has joined #ruby
roadie` has quit [Remote host closed the connection]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
siasmj has quit [Ping timeout: 256 seconds]
siasmj has joined #ruby
fef has joined #ruby
ivzhh has joined #ruby
reset has joined #ruby
BSaboia has joined #ruby
vit has joined #ruby
donofrio has quit [Remote host closed the connection]
integral has quit [Ping timeout: 268 seconds]
joenoon has quit [Ping timeout: 256 seconds]
r3my has quit [Ping timeout: 256 seconds]
r0bby has quit [Ping timeout: 256 seconds]
joenoon has joined #ruby
r3my has joined #ruby
JayDoubleu has quit [Ping timeout: 268 seconds]
r0bby has joined #ruby
integral has joined #ruby
JayDoubleu has joined #ruby
roadie`` is now known as roadie
rubin55 has quit [Ping timeout: 256 seconds]
rubin55 has joined #ruby
rubin55 has quit [Max SendQ exceeded]
rubin55 has joined #ruby
<leah2> we have __send__ ;)
<leah2> or do we oO
<leah2> ah yeah
<leah2> and __FILE__ etc but that's from C
BSaboia has quit [Quit: This computer has gone to sleep]
fef has quit [Remote host closed the connection]
ua_ has quit [Ping timeout: 250 seconds]
ua_ has joined #ruby
fef has joined #ruby
duds- has quit [Remote host closed the connection]
berkhan has joined #ruby
donofrio has joined #ruby
seisatsu has quit [Quit: ZNC 1.8.2 - https://znc.in]
seisatsu has joined #ruby
fef has quit [Ping timeout: 276 seconds]
berkhan has quit [Ping timeout: 256 seconds]
robotmay has quit [Quit: Be excellent to each other]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
duds- has joined #ruby
crankharder has joined #ruby
BSaboia has joined #ruby
legit has quit [Quit: WeeChat 2.8]
robotmay has joined #ruby
petru has joined #ruby
petru is now known as legit
dohtem has joined #ruby
<ox1eef> i'm glad there's "__send__" - when dealing with something like messages, "send" is a good word to have available to use.
<leah2> it's not super robust for metaprogramming tho. better to get #send from object and rebind it
<ox1eef> Kernel.instance_method(:send).bind(obj_implementing_send).call("hello") - in this way?
<leah2> yeah
voltage_ has joined #ruby
robotmay has quit [Ping timeout: 268 seconds]
<adam12> Remember when Ruby owned Object#id? Good times.
BSaboia has quit [Quit: This computer has gone to sleep]
JayDoubleu has quit []
robotmay has joined #ruby
BSaboia has joined #ruby
ivz_hh has joined #ruby
BSaboia has quit [Client Quit]
ivzhh_ has joined #ruby
ivzhh has quit [Ping timeout: 256 seconds]
ivz_hh has quit [Ping timeout: 250 seconds]
tempate has joined #ruby
<tempate> Is there something like numpy but for Ruby?
<tempate> I would just like to solve a linear system of equations
<leah2> look for numo
<tempate> Thanks
ivzhh_ has quit [Remote host closed the connection]
Guest779 has joined #ruby
<tempate> I'm having a lot of trouble installing it
Guest779 has quit [Client Quit]
<tempate> I manage to install the gem properly (numo-linalg) but it doesn't let me import it
<tempate> It says it can't be found or whatever
danielsousaio has joined #ruby
voltage_ has quit [Remote host closed the connection]
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
voltage_ has joined #ruby
kapil has joined #ruby
BSaboia has joined #ruby
tempate has quit [Quit: Leaving.]
robotmay has quit [Ping timeout: 268 seconds]
robotmay has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
kapil has joined #ruby
robotmay has quit [Ping timeout: 250 seconds]
robotmay has joined #ruby
vit has quit [Quit: Konversation terminated!]
BSaboia has joined #ruby
dhruvasagar has quit [Quit: WeeChat 3.3]
dorei has joined #ruby
___nick___ has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
dorei has quit [Quit: Client closed]
BSaboia has joined #ruby
danielsousaio has quit [Remote host closed the connection]
BSaboia has quit [Quit: This computer has gone to sleep]
dorei has joined #ruby
_ht has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
BSaboia has joined #ruby
Inline has joined #ruby
e2 has joined #ruby
roadie has joined #ruby
lunarkitty has joined #ruby
Inline has quit [Remote host closed the connection]
ur5us has joined #ruby
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #ruby
Inline has joined #ruby
<nakilon> we also have __dir__
<isene> A collection of my Ruby/Curses applications: https://isene.org/2021/11/Programming.html
<ox1eef> yeah __dir__ is great, i use to hate File.join(File.dirname(__FILE__), '..', ...)
___nick___ has quit [Ping timeout: 265 seconds]
lembron has quit [Ping timeout: 256 seconds]
_ht has quit [Remote host closed the connection]
<nakilon> isene, cool; you also can use my tool to test them ..D
<isene> nakilon: your tool?
<isene> Btw; Can't find any bugs in them, even after extensive testing and everyday use.
<nakilon> the tool is intended to makes you able to test curses
<isene> Interesting
Pixi has quit [Ping timeout: 265 seconds]
<ox1eef> isene: what did you use to write the curses applications? curses from stdlib, or another wrapper?
<nakilon> need to figure out yet how it would work in some Github Actions environment; basically it would need 1. ensuring the extension works in headless (or add the xvfb service that would definitely make it work) 2. to have an sshd on the build agent 3. just pass the key
<havenwood> curses actually isn't in stdlib anymore. it was gemified.
<isene> Curses from stdlib + my curses extension (https://rubygems.org/profiles/isene)
<isene> Yes, I depend on the gem
<ox1eef> havenwood: great link, maybe i'm confused, there is two types of gems and both types are installed by default, only type cannot be removed (default). is it not still available without using 'gem install' in that case?
<ox1eef> only one type*
<nakilon> there are three kinds of gems )
<ox1eef> the third being user gems?
<nakilon> you can find their classification in some changelog where they get moved from one class to another
<nakilon> smth like 1. bundled gems 2. default gems 3. stdlib
Pixi has joined #ruby
roadie has quit [Ping timeout: 265 seconds]
<ox1eef> well, on neither 2.x or 3.x does "require 'curses'" work for me. it looks to be a gem living outside of the default and bundled gems.
ivzhh has joined #ruby
<ox1eef> isene: looks cool
tempate has joined #ruby
<isene> ox1eef: So you got them to work?
<ox1eef> i did not try them, i was only curious about the librarie(s) being used because i would like to create something similar to the telescope application.
Inline has quit [Remote host closed the connection]
<ox1eef> btw it wasn't clear but "looks cool" was in reference to https://github.com/isene/Ruby-Curses-Class-Extension
<isene> Ah, OK
<isene> I needed those extensions since the standard gem is sorely lacking in features
<isene> I did the telescope application in 15 hours, so it's getting quite efficient.
Inline has joined #ruby
roadie has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
taupiqueur has quit [Ping timeout: 260 seconds]
<ox1eef> it reminds me of htop, is it responsive to window resizes?
JayDoubleu_ has joined #ruby
roadie has quit [Ping timeout: 265 seconds]
JayDoubleu_ is now known as JayDoubleu
JayDoubleu has quit [Client Quit]
Inline has quit [Ping timeout: 265 seconds]
teclator has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 250 seconds]
crankharder has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 256 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 265 seconds]
duds- has quit [Ping timeout: 276 seconds]
<nakilon> I have some dejavu; why doesn't Struct provide a good #values_at method that would accept the attribute names?... why does it expect the integers?...
<ox1eef> I don't think that is a good API, reading the documentation gives me the impression it was done in relevance to #values, where it is an array - that would be my wild guess.
<tempate> I asked before but I couldn't get it working. How can I solve a linear system of equations in ruby?
<ox1eef> tempate: please paste the error you see, i assume the library works but there's a misconfiguration or understanding in relation to your ruby installation.
<tempate> I don't know what library to use for starters, frankly
<tempate> There doesn't appear to be a clear replacement to numpy
<ox1eef> i have no suggestions for that beyond the one you were recommended earlier
<nakilon> there is a built-in class matrix
<nakilon> that might be useful
<tempate> I couldn't install the one I was recommended earlier after trying for two hours
<tempate> Could you just say which one you use?
<nakilon> you didn't tell exactly how it didn't install
<weaksauce> tempate post the error that you got installing it
<ox1eef> I tried the gem, and indeed it doesn't look to be requirable: ../linalg/loader.rb:162:in `load_library': cannot find backend library for Numo::Linalg (RuntimeError)
<tempate> Yeah, that's what I got
<weaksauce> install instructions said install https://github.com/ruby-numo/numo-narray
<ox1eef> do you have the mentioned dynlibs available?
mahlon has quit [Ping timeout: 250 seconds]
<nakilon> lol three links within a second
<weaksauce> and you need to install lapack
<ox1eef> weaksauce: numo-narray is a runtime dependency, this looks to be a failure to bind to C code.
ged has quit [Ping timeout: 240 seconds]
<weaksauce> yeah it binds to the C interface
<weaksauce> or atlas or openblas or intel mkl
<tempate> I'm surprised there isn't an easier way. Isn't there a goto library for things like this? As there's numpy in python?
<ox1eef> it's not as well developed in ruby as python, as you can see from the github repository that project has under 40 stars
<nakilon> tempate millions of students are forced to make wrapper sin pithon for you
<nakilon> no one is forced to make one in ruby
<nakilon> be the first
<nakilon> I force you
<nakilon> _^^
<weaksauce> it seems that sciruby is most akin to numpy
<weaksauce> in that it bundles a ton of other gems
<tempate> The only thing I really care about is solving a system of equations using gaussian elimination. I only mentioned numpy because it's the goto when you want to do anything math-related in python.
<ox1eef> why did you pick ruby
<tempate> because it's the language I like to code in the most
<tempate> (and I didn't know I'd have to solve linear systems of equations)
<ox1eef> makes sense, but not a well developed space in ruby, most people are just using what already works and is well established, and that's python.
<nakilon> so "if --with-backend option is not specified, try to load mkl,openblas,atlas,lapack."
<tempate> Should I just translate my code to python?
<tempate> It'd be kind of sad
<nakilon> that probably means you have to install either of these in your machine besides the gem
<nakilon> homebrew has them
<ox1eef> you could try to install the backend it is trying to load, that's the cause of the failure. if you don't have the backends already, the fix might be as easy as installing them.
<tempate> Regarding the links, I don't really know what the first one is about, the second one doesn't seem to concern the problem, and I had already seen and followed the third one, arriving at my current problem
<nakilon> have you installed any of the libs I quoted?
<tempate> so just gem install mkl and all the others?
<ox1eef> the library looks to be ruby binding's to C libraries - the C libraries are missing, and because of that the require fails.
<tempate> nakilon: on it
mahlon has joined #ruby
jetchisel has quit [Ping timeout: 265 seconds]
lesihctej has joined #ruby
<tempate> nakilon: I didn't really know what to install so I installed the gems numo-openblas, lapack, and atlas. I still get the same error message though.
<nakilon> you need a library that isn't related to ruby
<nakilon> those libraries are just C/C++ stuff that may be used by either Ruby or anything else; the gem expects your machine to have them installed already
<nakilon> they are the "backend libraries", not gems
<tempate> oh, nice
<tempate> I installed lapack and openblas and it's now working
<nakilon> cool