havenwood changed the topic of #ruby to: Ruby 3.3.6 (3.4.0-preview2) https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
cappy has quit [Quit: Leaving]
hwpplayer1 has joined #ruby
Sampersand has joined #ruby
hwpplayer1 has quit [Quit: tomorrow I'll come again !]
tuxcrafter has quit [Quit: Client closed]
tuxcrafter has joined #ruby
niv has quit [Read error: Connection reset by peer]
niv has joined #ruby
jhass has quit [Remote host closed the connection]
jhass has joined #ruby
CRISPR has joined #ruby
CRISPR has quit [Ping timeout: 252 seconds]
konsolebox has joined #ruby
qiaoran has joined #ruby
qiaoran has left #ruby [AndroIRC]
lunarkitty has quit [Remote host closed the connection]
jhass has quit [Remote host closed the connection]
__DuBPiRaTe__ has quit [Quit: Leaving]
jhass has joined #ruby
tuxcrafter has quit [Quit: Client closed]
tuxcrafter has joined #ruby
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #ruby
lunarkitty has joined #ruby
konsolebox has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
<ih8u> havenwood: which ruby?
<johnjaye> what do you call $: and $/
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #ruby
<Sampersand> special global variables johnjaye
<johnjaye> ok. the source code calls them virtual variables
cappy has joined #ruby
<johnjaye> but i hadn't seen that terminology
<Sampersand> oh interesting
<Sampersand> they're called "hooked variables" internally
<Sampersand> `rb_define_hooked_variable("$/", &rb_rs, 0, deprecated_str_setter);`
<Sampersand> also im so sad theyre getting rid of `$/` and co
<johnjaye> they are?
<johnjaye> i just read about $/ right now!
<Sampersand> yeah, it's sad
<johnjaye> i thought they were so charming. one of the reasons I thought ruby was cool to learn!
<Sampersand> they come from the perl days. All of `$;` `$,` `$/` and `$\` (and their alises eg `$-F` == `$;` ) are being deprecated
<Sampersand> yeah, right??
<Sampersand> hey havenwood checkout this person that also agrees with me lol
<johnjaye> lol
<Sampersand> there's a lot of really fun and charming stuff in ruby like that though
<Sampersand> and like. lots of really arcane things you can do haha
<johnjaye> yeah. i was trying to write something to consume ARGV
<johnjaye> i saw an example where instead of checking its length you just repeatedly call .shift until it' sempty
<Sampersand> fwiw, as far as i understand they're stickign around for oneliner scripts
<johnjaye> ah i see
<johnjaye> well i'm a bit of an odd person. i just want to learn ruby so i have something to script on windows with
<Sampersand> scriptintg in ruby is very enjoyable
<johnjaye> (I have macs windows and linux pcs in my house so I wanted something for all of them)
<johnjaye> lol
<johnjaye> so strange. why in class.c does it undefine macro names first?
<johnjaye> e.g. rb_define_method is undefined as a macro first before defining it
<Sampersand> johnjaye in case somehow something did `#define rb_define_method_id haha` or whatever, `void rb_define_method_id` woudl become `void haha`
<Sampersand> it's more of a defensive technique
Linux_Kerio has joined #ruby
<johnjaye> defensive coding. i learned a new thing today
<Sampersand> people are idiots, so you have to code around them
<johnjaye> we agree on so much. i wish i could friend you on irc
<johnjaye> sadly irc has no such function
_whitelogger_ has quit [Remote host closed the connection]
<mange> I just had a look at where the undefine of the macro is, and rb_define_method and rb_define_method_id are defined as macros in include/ruby/internal/anyargs.h (which ends up included in ruby/ruby.h). I don't really understand how it holds together, but it seems like the #undef is slightly more than just defensive programming.
_whitelogger_ has joined #ruby
<johnjaye> hmm^
<mange> Presumably what happens is that the macros get included when class.c is being compiled, so the undef is needed to keep the syntax valid. The macro is used to dispatch between different functions based on the arity of the call (or something), but keeping the call sites using the same name.
Sampersand has quit [Ping timeout: 256 seconds]
grenierm has joined #ruby
sphex has quit [Read error: Connection reset by peer]
sphex has joined #ruby
grenierm has quit [Ping timeout: 256 seconds]
c10l has quit [Ping timeout: 252 seconds]
weaksauc_ has joined #ruby
weaksauce has quit [Ping timeout: 252 seconds]
konsolebox has quit [Quit: .]
royo25 has joined #ruby
konsolebox has joined #ruby
royo25 has quit [Quit: Goodbye cruel world]
c10l has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tumdum1 has joined #ruby
tumdum has quit [Ping timeout: 265 seconds]
tumdum1 is now known as tumdum
Linux_Kerio has quit [Ping timeout: 260 seconds]
Munto has joined #ruby
SaveFerris5 has joined #ruby
SaveFerris5 is now known as SaveFerris
SaveFerris has quit [Ping timeout: 245 seconds]
Artea has joined #ruby
cappy has quit [Quit: Leaving]
donofrio has joined #ruby
c10l has quit [Ping timeout: 248 seconds]
c10l has joined #ruby
Thanzex02 has quit [Ping timeout: 260 seconds]
<havenwood> ih8u: 3.4.0-dev
donofrio has quit [Ping timeout: 276 seconds]
tuxcrafter has quit [Quit: Client closed]
tuxcrafter has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
royo25 has joined #ruby
royo25 has quit [Quit: Goodbye cruel world]
donofrio has joined #ruby
mange has quit [Remote host closed the connection]
donofrio has quit [Ping timeout: 260 seconds]
dstein64 has quit [Ping timeout: 252 seconds]
mweckbecker has quit [Quit: leaving]
mweckbecker has joined #ruby
desnudopenguino has quit [Ping timeout: 252 seconds]
<J_B> !seen
donofrio has joined #ruby
TomyWork has joined #ruby
carpincho has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
hwpplayer1 has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
tuxcrafter has quit [Quit: Client closed]
tuxcrafter has joined #ruby
dstein64 has joined #ruby
duderonomy has joined #ruby
dstein64- has joined #ruby
dstein64 has quit [Ping timeout: 248 seconds]
dstein64- is now known as dstein64
__DuBPiRaTe__ has joined #ruby
Linux_Kerio has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
joako has quit [Quit: quit]
joako has joined #ruby
kludger has joined #ruby
kludger_ has joined #ruby
kludger has quit [Remote host closed the connection]
_whitelogger has joined #ruby
kludger_ has quit [Ping timeout: 248 seconds]
kludger has joined #ruby
Guest37 has joined #ruby
Guest37 has quit [Client Quit]
desnudopenguino has joined #ruby
kludger_ has joined #ruby
kludger has quit [Ping timeout: 260 seconds]
tuxcrafter has quit [Quit: Client closed]
tuxcrafter has joined #ruby
_whitelogger_ has quit [Remote host closed the connection]
kludger has joined #ruby
kludger__ has joined #ruby
kludger_ has quit [Ping timeout: 265 seconds]
_whitelogger_ has joined #ruby
kludger has quit [Ping timeout: 272 seconds]
carpincho has quit [Quit: Leaving.]
kludger has joined #ruby
kludger__ has quit [Ping timeout: 246 seconds]
hwpplayer1 has quit [Quit: Take care friends see you again !]
Rounin has quit [Ping timeout: 265 seconds]
Rounin has joined #ruby
kludger_ has joined #ruby
kludger has quit [Ping timeout: 252 seconds]
cappy has joined #ruby
kludger has joined #ruby
kludger has quit [Read error: Connection reset by peer]
kludger has joined #ruby
kludger_ has quit [Ping timeout: 245 seconds]
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
__DuBPiRaTe__ has quit [Quit: Leaving]
lunarkitty has quit [Remote host closed the connection]
tuxcrafter has quit [Quit: Client closed]
tuxcrafter has joined #ruby
kludger has quit [Quit: kludger]
lunarkitty8 has joined #ruby
lunarkitty8 has quit [Client Quit]
donofrio has quit [Ping timeout: 252 seconds]
CRISPR has joined #ruby
admin1234 has joined #ruby
<admin1234> Me and my friend are worried our Apple devices (macOS, iOS) might be infected by stalkers. I wrote this Ruby script that attempts to locate any suspicious behavior: https://gist.github.com/anon987654321/f9836e479c4c8339004a974a00a5793f
<admin1234> Any thoughts/suggestions? Constructive criticism welcome.
ruby[bot] has quit [Remote host closed the connection]
<weaksauc_> why python
ruby[bot] has joined #ruby
hwpplayer1 has joined #ruby
<admin1234> weaksauc_: Wasn't aware of any other way
<weaksauc_> should work
<weaksauc_> just seems odd to have python intermixed with ruby
hwpplayer1 has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
CRISPR has quit [Ping timeout: 260 seconds]
<o0x1eef> As if everything about that message isn't odd :D
<weaksauc_> lol
admin1234 has quit [Ping timeout: 246 seconds]