goldfish has quit [Remote host closed the connection]
ur5us_ has joined #ruby
jacktar has quit [Ping timeout: 244 seconds]
jacktar has joined #ruby
ansimita has left #ruby [#ruby]
neshpion has joined #ruby
ansimita has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
<nakilon>
how am I supposed to make native extensions if there is no one to ask how to make them?
<nakilon>
these C errors never make any sense
<nakilon>
like I'm the only person trying to make them for last two years
<nakilon>
I'm not even saying that native extensions are broken on alpine since 2.4
<nakilon>
how it appears to be impossible to even add a single method to Math module
<nakilon>
dyld: lazy symbol binding failed: Symbol not found: _rb_num_to_dbl
<nakilon>
this rb_num_to_dbl is in object.h and object.c, but "object.h not found" and with object.c it throws: Symbol not found: _rb_mod_deprecate_constant (LoadError)
<nakilon>
how it is in variable.c but it throws: Symbol not found: _rb_obj_hash (LoadError)
<nakilon>
it is in hash.c but now it throws "error: redefinition of 'inspect_i'" in object.c because "note: previous definition is here" in hash.c
<nakilon>
and no one ever helps with native extensions
<nakilon>
and there is nowhere to ask
<nakilon>
because emails don't reach the maillist
<nakilon>
and questions get deleted from SO
<nakilon>
what's the point of having the whole native extensions thing if no one helps with it and it works for only like 5 people in the world and there is no way to ask them how they did it?
<nakilon>
it frustrates me for 2 years already, I've spent weeks on it
skali has joined #ruby
skali has quit [Client Quit]
cimpressi has joined #ruby
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
ignorand has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 252 seconds]
patrick has quit [Read error: Connection reset by peer]
menace has quit [Quit: menace]
neshpion has quit [Quit: neshpion]
lucf117 has quit [Quit: Leaving]
_ht has joined #ruby
jetchisel has joined #ruby
<leftylink>
sigh... my editor mishighlights certain sequences of Ruby code... perhaps I should file a bug with them...
<leftylink>
minimal reproduction sequence of code is "#{?+ if 5}#{whatever}" - it thinks the second # starts a comment when it obviously doesn't
<leftylink>
highlights correctly if it's ?a or something, but not ?+ or ?( or ?% and maybe some other characters that I won't all check exhaustively
Qchmqs_ has joined #ruby
<nakilon>
sublime is fine with this
Qchmqs_ has quit [Client Quit]
<leftylink>
it also doesn't understand "#{%}#{%}%}}}}" because it mismatches the brackets, but I guess I'm okay with that because nobody would ever write this string in real code anyway
<gr33n7007h>
leftylink: i can confirm this is also broken in nano & vim too.
<leftylink>
oh and what's worse with the "#{?+ if 5}#{}" thing is my editor then gets confused about the proper indentation level of subsequent code... slight PITA that, but I think after I manually corrected one or two lines subsequent lines had no problem
<gr33n7007h>
nakilon: have you considered using FFI?
<nakilon>
gr33n7007h I'm not making bindings
<gr33n7007h>
nakilon: out of curiosity, what are you making?
<nakilon>
this one was just hypot3, i.e. sqrt(x^2+y^2+z^2)
<nakilon>
ended up copypasting three functions from ruby source and then editing them eliminating if branches to just avoid these errors
<nakilon>
while with my bigint-based extensions this trick didn't work
<gr33n7007h>
nakilon: I've not used C extensions before, mind sharing your code?
<havenwood>
nakilon: something to do with it being the return value?
Garb0 has joined #ruby
<nakilon>
but why
<nakilon>
and it was the reason why implementing the hypot3 didn't give any profit -- the call stack just spends time on it for no obvious reason, even if I do t = .... ; return t it will spend time on return t
bandithijo has quit [Read error: Connection reset by peer]
cimpressi has quit [Ping timeout: 252 seconds]
bandithijo has joined #ruby
Danishman has joined #ruby
cimpressi has joined #ruby
_aeris_ is now known as aeris
goldfish has joined #ruby
leah2 has quit [Ping timeout: 240 seconds]
leah2 has joined #ruby
bandithijo has quit [Ping timeout: 240 seconds]
ignorand has quit [Read error: Connection reset by peer]
ignorand has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
lunarkitty has joined #ruby
crankharder has joined #ruby
AriT93 has joined #ruby
lucf117 has joined #ruby
lucf117_ has joined #ruby
lucf117 has quit [Remote host closed the connection]
gr33n7007h has quit [Killed (zirconium.libera.chat (Nickname regained by services))]
gr33n7001 is now known as gr33n7007h
jetchisel has quit [Ping timeout: 246 seconds]
jetchisel has joined #ruby
ignorand has joined #ruby
_ht has quit [Remote host closed the connection]
lucf117_ has quit [Ping timeout: 246 seconds]
Garb0 has quit [Ping timeout: 272 seconds]
RougeR has joined #ruby
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
ollysmith has joined #ruby
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 252 seconds]
Garb0 has joined #ruby
qunzhong_luxian has joined #ruby
yosafbridge has quit [Ping timeout: 265 seconds]
yosafbridge has joined #ruby
niv has quit [Ping timeout: 240 seconds]
rhe has quit [Ping timeout: 268 seconds]
congratulated has joined #ruby
ignorand has quit [Ping timeout: 252 seconds]
pgib has joined #ruby
drincruz_ has quit [Read error: Connection reset by peer]
pgib has quit [Client Quit]
niv has joined #ruby
drincruz_ has joined #ruby
ur5us has joined #ruby
jwr has joined #ruby
<jwr>
i installed ruby (via rbenv) and did `bundle install` to install my gems, which all seemed fine. but now when i try to invoke most anything, i'm getting an error that it can't find gem dependency files, but the files its referencing do indeed exist. what am i missing here? https://pastebin.com/raw/FjvHzdZP
<jwr>
aighearach: i think i did. ~/.rbenv/shims is in my $PATH, and that's where it's found via `which ruby`, for example.
<aighearach>
also check that `which bundler` and `rbenv which bundler` are the same
<aighearach>
and if not, you can either fix your path, or do rbenv exec bundler
<aighearach>
jwr: It's not enough to think you did, you have to follow the instructions very correctly, and in order
<jwr>
aighearach: oh, hmm, `which bundler` is /root/.rbenv/shims/bundler and `rbenv which bundler` is /root/.rbenv/versions/2.6.6/bin/bundler. perhaps that means i missed something. am i supposed to have /root/.rbenv/versions/2.6.6/bin in my PATH?
<aighearach>
jwr: Don't install as rroot
<aighearach>
with rbenv you're installing the user's home dir
<aighearach>
so on your dev box it will run as you, and on the server it will run as your project user
Garb0 has quit [Quit: Garb0]
<jwr>
aighearach: this is in the context of building a docker container, not the usual context of rbenv being used by humans. but fair point.
<jwr>
how does one make it so that `which bundler` and `rbenv which bundler` point to the same thing? i would have thought that to be a function of `rbenv rehash`, but perhaps not?
neshpion has joined #ruby
<aighearach>
You still don't use rbenv as root
<aighearach>
jwr: Why are you using rbenv instead of rvm?
<aighearach>
rbenv is the bare bones, old-school *nix one. RVM is the features and stuff one.
<nakilon>
rbenv > rvm
<jwr>
is that the reason why `which bundler` and `rbenv which bundler` evaluate differently?
<aighearach>
I use rbenv, but it isn't "better" unless you're a unix nerd.
<nakilon>
what features?
<nakilon>
TIL: I'm unix nerd
<jwr>
i don't really have a strong preference between them and i'm fine with whichever one i can get working. i tried rvm previously and found it more complicated for the context of building a stripped down docker image. but i'm not opposed to linux nerdism either.
<aighearach>
Well, for one thing, it doesn't require you to know how to fix whatever you did wrong in your shell. It also has features for system installation, rvmsudo
<nakilon>
jwr do eval "$(jenv init -)" or add it to your bash_profile and restart the shell and check again
<nakilon>
doesn't rvm or anything else at all require you to know how to fix whatever you did wrong?
RougeR has quit [Remote host closed the connection]
<aighearach>
rvm is modern, normal, user-friendly software
<aighearach>
I mean, it was 10 years ago, and had more devs
[jamez] has quit [Quit: WeeChat 2.3]
<jwr>
nakilon: tried `eval "$(rbenv init -)"`, and `which bundler` and `rbenv which bundler` still evaluate to different values, and using any kind of `bundle exec ...` commands in my project still result in the same error about msgpack missing.
<nakilon>
how is rvm modern if it's from 2009 while rbenv is from 2011 and appeared exactly because rvm wasn't good enough?
<nakilon>
that error about msgpack is weird, I doubt it's because of ruby manager
<jwr>
FWIW `bundle list` shows the expected version of msgpack is installed... but `bundle exec` still complains about it.
<nakilon>
the only thing I've found in google with this error is when msgpack was somehow installed for 32 bit on 64 bit machine or something like that
<nakilon>
is /app a directory mounted to docker container that is running on different linux?
Nyeogmi has joined #ruby
<jwr>
nakilon: /app isn't a docker volume, it exists only within the container. though if cpu architecture weirdness is in play, i am running an apple M1 (arm) macbook.
ignorand has joined #ruby
postmodern has joined #ruby
<nakilon>
if not mounted then maybe you've built it in such way? copying the installed gems stuff from M1 machine
<nakilon>
*built the image
<jwr>
when building the image i used `--platform linux/amd64`, so i'm expecting it to use that architecture. but perhaps that doesn't play nicely with this gem or with rbenv or something... i'm rerunning a build on an old macbook now to see if perhaps that's where the issue lies.
<postmodern>
dumb string encoding question: why does `0x4241.chr(Encoding::UTF_8)` return a chinese UTF character, but `"\x42\x41".force_encoding(Encoding::ASCII_8BIT).encode(Encoding::UTF_8)` returns "BA"?
<postmodern>
oh i see, so Integer#chr is looking up the character ID, not literal unsigned integer value
<jwr>
nakilon: welp, i still don't know what's breaking msgpack on this M1 macbook, but the same exact docker build is able to do `bundle exec rake -T` as expected when i build it on an old intel macbook. so it does indeed seem to be related to cpu architecture. good shout, thanks.
swaggboi has joined #ruby
<nakilon>
yeah, weird, maybe something docker related
mrkz_c has quit [Quit: Connection closed for inactivity]
jwr has quit [Remote host closed the connection]
qunzhong_luxian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
infernix has quit [Ping timeout: 268 seconds]
neshpion has quit [Remote host closed the connection]
neshpion has joined #ruby
mrkz_c has joined #ruby
infernix has joined #ruby
splud has quit [Ping timeout: 258 seconds]
AriT93` has joined #ruby
AriT93 has quit [Ping timeout: 240 seconds]
jacktar has quit [Remote host closed the connection]
jacktar has joined #ruby
ignorand has quit [Ping timeout: 272 seconds]
AriT93`` has joined #ruby
AriT93`` has quit [Remote host closed the connection]