ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
shark_SGE has quit [Read error: Connection reset by peer]
sharkee has joined #ruby
Oxfuxxx has joined #ruby
sharkee has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 245 seconds]
Rounin has quit [Remote host closed the connection]
postmodern has quit [Read error: Connection reset by peer]
Oxfuxxx has quit [Quit: Never underestimate the power of the butt.[]OX/...ON. (Playst...i mean.. Pir@tA$$)]
jpw has quit [Ping timeout: 252 seconds]
menace has joined #ruby
Deknos has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
Qchmqs has joined #ruby
menace_ has joined #ruby
<Qchmqs>
hello
menace has quit [Ping timeout: 245 seconds]
menace_ has quit [Remote host closed the connection]
<adam12>
Qchmqs: hello
<tbaeder>
Is compiling Ruby with clang (and running the test suite like this) a suported setup? The JIT test cases fail for us because it's trying to jit via clang, which doesn't support the same setup of command line parameters
<Qchmqs>
adam12: what's up ?
<adam12>
Qchmqs: Not much. HBU?
<Qchmqs>
tbaeder: wouldn't be easier to use one of the available setups for a pre-compiled ruby ?
<adam12>
tbaeder: I'd presume so? Since clang is default on FreeBSD, no?
<Qchmqs>
not officially supported, but at least backed by tinkerers
<Qchmqs>
adam12: at work, writing ruby
<adam12>
tbaeder: This might be a bug. Can you paste the error somewhere?
<adam12>
Qchmqs: living the dream I see.
<tbaeder>
adam12: Does it also use clang for JITing ruby code, or just for building ruby itself?
<tbaeder>
This is the first failing test case, but they all fail with the same error message
<adam12>
tbaeder: I think it remembers setting of CC and then re-uses it.
<adam12>
tbaeder: OS? Distro (if linux?)
<adam12>
That clang-13 looks odd. I thought 12 was the last major release.
<tbaeder>
adam12: This is on Fedora, I'm using the current 13rc
<adam12>
My guess is that clang-13 has a breaking change and it's not detected by Ruby right now. It might be worth reporting to bugs.ruby-lang.org or just wait and see if someone else picks up on it.
<adam12>
If you can force clang-12 and then provide CC= it might work.
<tbaeder>
adam12: I don't have the exact command that Ruby runs when JITing code, but clang 12 has the same behavior: https://paste.centos.org/view/67ed6218
<adam12>
tbaeder: Hmm interesting.
<adam12>
tbaeder: Do you have gcc installed?
<tbaeder>
adam12: Yes, swapping clang and gcc in that example prints "gcc: fatal error: cannot specify ‘-o’ with ‘-c’, ‘-S’ or ‘-E’ with multiple files" though
<tbaeder>
Do you maybe know where the JIT code is in Ruby?
<adam12>
tbaeder: You're compiling from ruby-3.0.2 src? distributed from ruby-lang.org?
<tbaeder>
Do you also know how I can just run that one test case from above in the ruby test suite?
<tbaeder>
adam12: Looks like it, yes
<adam12>
tbaeder: Not off the top of my head, but I'd start with `ruby test/test_jit.rb -n test_attr_reader` and if that doesnt' work, I'd do `ruby -Ilib test/test_jit.rb -n test_attr_reader`
sharkee has quit [Remote host closed the connection]
eddof13 has joined #ruby
jmcgnh has quit [Ping timeout: 245 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
jmcgnh has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
keinbock has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Toledo has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
justache has quit [Read error: Connection reset by peer]
eddof13 has joined #ruby
justache has joined #ruby
<rapha>
huh, wait
<rapha>
ruby has no built-in something to return an array of substrings of strings a and b which changed from a to b?
Oxfuxxx has quit [Ping timeout: 264 seconds]
<rapha>
as in a="Peter and Mary"; a="Paul and Margot"; diffs(a,b) => [['Peter', 'Paul'], ['Mary', 'Margot']]
<rapha>
sorry, b= for the second, obvi
Oxfuxxx has joined #ruby
<adam12>
rapha: That's something you'd expect to be built-in?
Oxfuxxx__ has joined #ruby
Oxfuxxx has quit [Ping timeout: 246 seconds]
Qchmqs has quit [Ping timeout: 252 seconds]
gggpkm has quit [Ping timeout: 252 seconds]
tbaeder has quit [Ping timeout: 252 seconds]
RougeR has joined #ruby
FriendofPatchyth has joined #ruby
<rapha>
adam12: after having now fiddled with this for 30 minutes, not anymore. i think i was just stressed. should have kept my mouth shut, sorry :-(
jpw has joined #ruby
<rapha>
i was also stupid to believe this would be universally useful. it is of course not, because for my purposes, some context needs to be preserved (ideally, one word before and one after, if present).
jpw_ has joined #ruby
<rapha>
(the difference could be as minute as a semicolon instead of a comma ... and you wouldn
FriendofPatchyth is now known as FriendOfPatchy
<rapha>
't want to end up replacing _all_ semicolons with commas)
<rapha>
(my problem is a huge, very old, replacement table with full sentences for both original and replacement strings, but outside of the changes it makes, large parts of the original strings don't fit anymore)
<FriendOfPatchy>
yarr
<FriendOfPatchy>
Where is my friend Patchy the Pirate
jpw has quit [Ping timeout: 250 seconds]
jpw_ has quit [Ping timeout: 246 seconds]
Guest35 has joined #ruby
jpw has joined #ruby
jpw has quit [Ping timeout: 250 seconds]
postmodern has quit [Read error: Connection reset by peer]
Guest35 has quit [Quit: Client closed]
FriendOfPatchy has quit [Ping timeout: 256 seconds]
bit4bit has quit [Ping timeout: 264 seconds]
Oxfuxxx__ has quit [Ping timeout: 246 seconds]
FriendofPatchyth has joined #ruby
orbyt has joined #ruby
darkstardevx has quit [Read error: Connection reset by peer]
<zph1nx>
Hello, im trying to set up an sssd delegation fact within puppet with ruby but seem to be unable to concat a variable inside of a function, a variable i defined at the start of the script. i get undefined method `+' for nil:NilClass