Garb0 has quit [Quit: Garb0]
graywolf has quit [Quit: WeeChat 3.1]
konsolebox has quit [Quit: .]
konsolebox has joined #ruby
gr33n7001 has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
lfalcao has joined #ruby
Guest65 has joined #ruby
FluffyMask has quit [Quit: WeeChat 2.9]
<nakilon> is it possible to specify exact version in "bundle update somegem"?
bastienleonard has quit [Quit: WeeChat 3.1]
gr33n7001 is now known as gr33n7007h
gr33n7007h has quit [Quit: WeeChat 3.1]
<lfalcao> @nakilon You have to edit the gemfile with the version of the gem you want then run bundle update gem_name
gr33n7007h has joined #ruby
<nakilon> yep, that's what I did; hoped there is a command line flag for that
<nakilon> not sure though if you really have to do "bundle update" or rather "bundle install"
<nakilon> because the update even with --conservative updated some other gems for no obvious reason
konsolebox has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
jetchisel has joined #ruby
slothby is now known as josh
josh is now known as slothby
d0htem has quit [Quit: Connection closed for inactivity]
nakilon has quit [Read error: Connection reset by peer]
nakilon has joined #ruby
lfalcao has quit [Ping timeout: 264 seconds]
lfalcao has joined #ruby
d0htem has joined #ruby
lfalcao has quit [Ping timeout: 252 seconds]
r0bby has joined #ruby
Bounga has joined #ruby
Bounga has quit [Ping timeout: 248 seconds]
<gr33n7007h> why is the parallel version slower than the sequential version? https://gist.github.com/gr33n7007h/e8b11421b2270f1fd30618bba04bb48e
<gr33n7007h> that doesn't make sense. the execution time should be a least half for 2 cores.
Guest65 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
royo25 has joined #ruby
<jhass> nakilon: iirc there's a --strict or something which is even more conservative
mikess has quit [Ping timeout: 264 seconds]
gearnode has joined #ruby
postmodern has quit [Quit: Leaving]
Garb0 has joined #ruby
Garb0 has quit [Quit: Garb0]
Garb0 has joined #ruby
graywolf has joined #ruby
gr33n7007h has quit [Ping timeout: 272 seconds]
Garb0 has quit [Ping timeout: 244 seconds]
Mohsen has joined #ruby
Mohsen has quit [Client Quit]
gr33n7007h has joined #ruby
Garb0 has joined #ruby
<nakilon> jhass havenwood I've found something interesting https://github.com/andyobtiva/glimmer
<nakilon> README forces you to go through the explanation how it works under the hood, and it's complex but probably needed to use it right
<jhass> ah I heard the word before but never looked into
<jhass> oh SWT...
<jhass> the one time I had to touch SWT in university, I was not a happy person.
Cata has joined #ruby
Wanderer has left #ruby [Leaving]
rapha has left #ruby [WeeChat 2.3]
<nakilon> you chose either SWT or Opal or Tk
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
Garb0 has quit [Quit: Garb0]
lfalcao has joined #ruby
simao has joined #ruby
royo25 has quit [Quit: Bye]
chonkbit has joined #ruby
involans has quit [Ping timeout: 272 seconds]
tree has joined #ruby
involans has joined #ruby
rapha has joined #ruby
<rapha> hi all
<gr33n7007h> o/
<rapha> `glob = glob.split('/')[-2..].join('/')` ... why does that work fine in pry and an .rb file, but fails with "syntax error, unexpected '{ arg'" in a method inside a Rakefile?
<lfalcao> o/
<lfalcao> whats the content of glob?
<rapha> lfalcao: '../Basra/gt3_display/*.txt'
<nakilon> doesn't rake provide backtrace? with --trace probably
<rapha> what i don't get is, it errors out even before/without running that code, just parsing it
<rapha> org/jruby/RubyKernel.java:1009:in `load' ... what in the world?!!
<rapha> who even allowed it to use jruby?!
<jhass> :D
<jhass> check the hashbang?
<jhass> head $(which rake)
<rapha> jruby indeed
<rapha> and i do have to have it instaleld
<jhass> probably overwrote it
<rapha> but how do i get my regular ruby back :-(
<jhass> how did you install everything?
<rapha> er
<rapha> pacman?!
<jhass> oh?
<rapha> (hopefully?!?)
<jhass> pacman -Qo "$(which rake)"
lfalcao has quit [Ping timeout: 264 seconds]
<rapha> aha, indeed no. rake was installed via gem, and only for the user.
<rapha> that's why i hate jruby, it always makes me jump through hoops and messes everythign else up.
jmcgnh has quit [Ping timeout: 264 seconds]
<jhass> what I do is I disable --user-install, install chruby and then create symlinks in .rubies/<alias>/bin/ruby
<rapha> interesting, okay
<jhass> with that you can even add more with ruby-install and switch between everything with chruby
<rapha> only knew rvm
<jhass> then just have your shellrc select one of them by default (but not system)
involans has quit [Ping timeout: 252 seconds]
<rapha> that sounds much more robust than what i have at the moment
<jhass> the current iteration of the ruby-2.7 package in community messes a bit with those assumptions though, didn't look into it yet
<rapha> for now, back to system-ruby, system-rake, system-nokogiri ... and guess what, everything loads 100 million times faster again all of a sudden!
<jhass> haha
<nakilon> "TypeError: {:keyword_init=>true} is not a symbol"
<rapha> jhass: "hi" to berlin from leipzig btw :)
<jhass> ohai :D
<jhass> should we go and annoy txdv in ##ruby-de? :D
<nakilon> what minimal Ruby I need for this syntax?
<rapha> there's ##ruby-de?
<rapha> and who's txdv?
<jhass> there's txdvs ##ruby-de
<gr33n7007h> nakilon: 2.5
<jhass> somebody that managed to get themselves banned a couple of times from freenode's version of this channel :P
<rapha> jhass: 8 ppl in there!
<rapha> (9 for a few seconds now)
<nakilon> rapha you didn't see #ruby-ru yet!
<rapha> nakilon: it seems you're a man on a mission there!
<nakilon> yes comrade
tree has quit [Quit: tree]
<rapha> glasnost! perestroika!
jmcgnh has joined #ruby
involans has joined #ruby
<nakilon> make all methods public and refactor?
jec has joined #ruby
jec has left #ruby [#ruby]
<rapha> yes, no more capitalist bullshit, freedom and communism for al methods!
lfalcao has joined #ruby
geewiz has joined #ruby
<havenwood> Like module_function is.
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
jec has joined #ruby
<nakilon> gr33n7007h it worked, thanks
<gr33n7007h> nakilon: 👍
<jhass> now I have questions about why you were using ruby < 2.5
<nakilon> because even 2.4 isn't being fixed?
lfalcao has quit [Ping timeout: 264 seconds]
<jhass> mh. Alpine is weird :P
gcd_ is now known as gcd
pusewicz has joined #ruby
<nakilon> I also posted it to the ruby maillist but it didn't appear there idk why
<nakilon> I also mailed the guy who is responsible for maillist, asking why my mail didn't appear, but got no answer
<nakilon> so what's the point of incrementing versions up to >3 if 2.4 isn't being fixed...
<jhass> well now 2.4 and 2.5 will never get fixed, 2.6 very maybe might get fixed, 2.7 maybe get fixed, 3.0 would be the first right now to get the fix
<nakilon> this bug is still there, no matter if it's 2.6 or 3.0
<nakilon> it's still not fixed
<nakilon> incrementing the version just to get even more unfixed bugs? no thanks
<nakilon> I mean the alpine ruby is just broken
<nakilon> but most of the people don't know it because use ruby to host rails websites and stuff
<jhass> tbf a good part of it is probably to blame on musl-libc
<nakilon> guy from alpine said that ruby's image seems to include binaries built on glibc instead of musl
<nakilon> since he's not rubyist it's the farthest he could guess
<jhass> huh
<nakilon> everything I use actually works on alpine, I never need to take anything else, except of this case that reveals it's broken
<jhass> that image is by docker themselves though as far as I see
<nakilon> and there are logs that show that the breaking didn't happen on alpine version upgrade but on ruby;s
Garb0 has joined #ruby
<nakilon> FROM ruby:${RUBY_VERSION}-alpine${ALPINE_VERSION}
<jhass> https://github.com/docker-library/ruby/blob/3904524e5d9e538b33525a602a4bcb7618aff8b6/2.6/alpine3.12/Dockerfile#L81-L85 looks a little weird but otherwise I don't see it pulling binaries outside alpine's repos
<nakilon> IIRC I also even tried to take pure alpine image, then install ruby (from packages that are made by ruby team as I understand and IIRC), and it was the same error
<jhass> but then the alpine's guy story about gnu binaries in there doesn't seem to quite match up
<nakilon> /shrug
<nakilon> that's his guess based on the exception message I guess
<jhass> just saying I've seen enough stuff break in weird ways because musl-libc "improved" something
<jhass> also personally I'd probably rather give up on alpine than maintained ruby versions, but whatever 🤷
<nakilon> if you go back in git history and compare ruby 2.3 alpine 3.8 and ruby 2.4 alpine 3.8 they only differ like this https://dpaste.org/cqT0/slim -- what are those hashes? -- they are from https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz
<nakilon> as I said everything works on alpine, it's defacto a standard
<nakilon> something changed in ruby and was broken in 2.4 and not fixed since then
Garb0 has quit [Ping timeout: 264 seconds]
<nakilon> no one cares because no one makes native extentions
<nakilon> only so few people that they either don't know each other or don't want to help
<nakilon> if you ask about native extensions on SO the question just gets deleted
Garb0 has joined #ruby
Guest65 has joined #ruby
lfalcao has joined #ruby
jetchisel has quit [Ping timeout: 248 seconds]
jetchisel has joined #ruby
pusewicz has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest65 has quit [Ping timeout: 252 seconds]
lfalcao has quit [Ping timeout: 252 seconds]
coda has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.1]
gr33n7007h has joined #ruby
lfalcao has joined #ruby
<CalimeroTeknik> talking kind of high level, is there anything to statically prove assertions on ruby code?
<havenwood> CalimeroTeknik: As in types? Or what are you thinking?
<havenwood> CalimeroTeknik: Minitest ships with Ruby for tests and RBS type signatures were introduced in Ruby 3.
bastienleonard has joined #ruby
<havenwood> You can type check RBS files with Steep.
<CalimeroTeknik> indeed, nice! I thought type signatures were completely out of the question
<havenwood> CalimeroTeknik: The two main options are Sorbet and RBS/typeprof/Steep.
<CalimeroTeknik> this really helps, as the libraries in use for our IRC service bot over at ##japanese include mecab, eb-library and nokogiri
<leftylink> hm, interesting, they compare it to header files. I used to have a very negative opinion of header files but perhaps I should take some time to re-evaluate and see whether my opinion has changed
<leftylink> I used to get criticised about my negative opinion
Garb0 has quit [Quit: Garb0]
<leftylink> ah interesitng, I thought sorbet was just an arbitrary meaningless name, but there's soemthing to it. it abbreviates to srb
<leftylink> I do not know what the s stands for. possibly stripe
aigoo has joined #ruby
aigoo has left #ruby [#ruby]
graywolf has quit [Quit: WeeChat 3.1]
coda has quit [Ping timeout: 248 seconds]
Garb0 has joined #ruby
chonkbit has quit [Ping timeout: 264 seconds]
marahin has quit [Ping timeout: 244 seconds]
marahin has joined #ruby
geewiz has quit [Ping timeout: 264 seconds]
Cata has quit [Quit: Leaving]
<nakilon> jruby does not install -- I'm not sure where I should ask: in jenv, jruby or rbenv: https://dpaste.org/3ikV/slim
glider has quit [Quit: ZNC 1.9.x-git-111-f2cdc3db - https://znc.in]
<jhass> haha
<jhass> just overwrite the /Users/nakilon/.jenv/versions/system/bin/java symlink for the moment?
<nakilon> but there is no versions/system
<nakilon> it's kind of virtual name for system java
<jhass> put one there for now? :P
<nakilon> same as there is no versions/system for rbenv
<nakilon> ok, just a sec
gearnode has quit [Ping timeout: 248 seconds]
<nakilon> shoud I chmod it?
<jhass> no the target's modes shoud apply iirc
<jhass> I mean not that running chmod on it would do any harm
<nakilon> Installed jruby-9.2.17.0
<nakilon> wtf
<nakilon> it worked
glider has joined #ruby
jmcgnh has quit [Remote host closed the connection]
<jhass> now the question is does it keep functioning if you remove that link again to not confuse jenv :D
jmcgnh has joined #ruby
<jhass> smells like the same issue, yeah
gearnode has joined #ruby
Garb0 has quit [Read error: Connection reset by peer]
Garb0 has joined #ruby
<nakilon> but the program starts soooooooo slow
<nakilon> 5-7 seconds for hello world
goldfish has joined #ruby
ecso has joined #ruby
Garb0 has quit [Quit: Garb0]
Garb0 has joined #ruby
lfalcao has quit [Ping timeout: 252 seconds]