havenwood changed the topic of #ruby to: Ruby 3.3.0, 3.2.2, 3.1.4 https://www.ruby-lang.org | Rules https://ruby-community.com | Logs https://libera.irclog.whitequark.org/ruby
073AAK8DA has joined #ruby
rvalue has quit [Ping timeout: 260 seconds]
073AAK8DA has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
teclator has quit [Ping timeout: 255 seconds]
rvalue has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
nbdy has joined #ruby
plujon has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
nbdy has quit [Quit: Leaving]
edr has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
entropie has quit [Ping timeout: 252 seconds]
entropie has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
reset has quit [Quit: reset]
MalusVulgaris has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]
plujon has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
fercell_ has quit [Ping timeout: 256 seconds]
axsuul has quit [Quit: 👋]
axsuul has joined #ruby
Linux_Kerio has joined #ruby
constxqt_ has quit [Ping timeout: 276 seconds]
hernan has quit [Remote host closed the connection]
constxqt_ has joined #ruby
jenrzzz has joined #ruby
MalusVulgaris has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
joako has quit [Quit: quit]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
joako has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
Linux_Kerio has quit [Ping timeout: 264 seconds]
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
_ht has joined #ruby
grenierm has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
Linux_Kerio has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
rvalue has quit [Ping timeout: 260 seconds]
constxqt_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
vinc has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
xdminsy has joined #ruby
xdminsy has quit [Remote host closed the connection]
xdminsy has joined #ruby
rvalue has joined #ruby
jenrzzz has joined #ruby
rvalue- has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
rvalue has quit [Ping timeout: 246 seconds]
rvalue- is now known as rvalue
rvalue has quit [Client Quit]
rvalue has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
rvalue has quit [Ping timeout: 256 seconds]
vinc has quit [Read error: Connection reset by peer]
vinc has joined #ruby
barak has quit [Ping timeout: 255 seconds]
roger_rabbit has joined #ruby
roger_rabbit has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
grenierm has quit [Ping timeout: 250 seconds]
<moo> $"<<$".pop
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz_ has quit [Ping timeout: 276 seconds]
reset has joined #ruby
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
kapil has joined #ruby
henk has quit [Quit: henk]
henk has joined #ruby
phryk has quit [Quit: ZNC 1.8.2 - https://znc.in]
phryk has joined #ruby
szkl has joined #ruby
jas-maelstrom has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
MomosOrDeath2 has joined #ruby
MomosOrDeath has quit [Ping timeout: 260 seconds]
MomosOrDeath2 is now known as MomosOrDeath
vinc has quit [Read error: Connection reset by peer]
vinc has joined #ruby
jenrzzz has joined #ruby
jas-maelstrom has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
markov_twain has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
szkl has joined #ruby
Vonter has quit [Ping timeout: 255 seconds]
Vonter has joined #ruby
constxqt_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
<adam12> O_O
jenrzzz has quit [Ping timeout: 246 seconds]
plujon has joined #ruby
hernan has joined #ruby
brokkoli_origin has quit [Ping timeout: 264 seconds]
Linux_Kerio has quit [Ping timeout: 268 seconds]
brokkoli_origin has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
c10l has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
c10l has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
RetroPunk has quit [Quit: cya]
RetroPunk has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
<ewoud> https://github.com/ruby/openssl/issues/709 was also some kind of "fun"
<adam12> ewoud: Nice detective work!
<adam12> I'm just cleaning up emails from b.r-l.org and I deleted 3 memory leak emails :O
<adam12> String.grapheme_clusters, one for Regexp, and one for IPSocket. Oof.
<ewoud> it's not like those classes are used often, so no worries ;)
<adam12> LOL. I think String.grapeheme_clusters is havenwood's favourite.
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jenrzzz has joined #ruby
Linux_Kerio has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
infinityfye has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
vinc has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 256 seconds]
vinc has joined #ruby
<Al2O3> lol, A grapheme cluster is a collection of symbols that together represent an individual character that the user will see within a string on the screen.
<Al2O3> but a grapeheme cluster sounds like something left after using the restroom.
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
vinc has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Guest99 has joined #ruby
<Guest99> hello
<Guest99> hello
<Guest99> Who can help me create a second constructor in C API?
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
rvalue has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
<havenwood> adam12: I do love `grapheme_clusters` but still want a `graphemes` alias. :) Yeah, merge it! https://github.com/ruby/ruby/pull/9414
<adam12> Heh
<Guest99> wow
Linux_Kerio has quit [Ping timeout: 252 seconds]
<havenwood> I think `chars` is overused and `grapheme_clusters` is underused, mostly because `chars` has been around much longer. I'd prefer defaults to be UTF-8 friendly. We have some oddness around `chars`, `size`, `codepoints`.
<havenwood> Guest99: Just curious, but what's a second constructor? Like overriding initialize?
jenrzzz has quit [Ping timeout: 268 seconds]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
<Guest99> again: Who can help me create a second constructor in C API?
<Guest99> I need creating a 2 constructor in C
jenrzzz_ has quit [Ping timeout: 268 seconds]
<Guest99> I must using rb_obj_call_init() and allocate a object, but how?
<Guest99> Any working example?
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
<havenwood> Guest99: See my question above? You're doing something like `rb_obj_alloc` followed by `rb_obj_call_init`? Normally on the Ruby side we'd have secondary constructors use `new` unless we need to `allocate` instead and do some parts of `new` manually, which is rare.
<Guest99> No I can see ;(
<Guest99> my library have 2 different way to create obkect
<Guest99> object
<Guest99> with 2 differend set of arguments
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
<havenwood> Guest99: Just for future reference you can check messages you missed in the logs: https://libera.irclog.whitequark.org/ruby/
<Guest99> I create my own alloc function ;)
<Guest99> question is how setup it with init constructor
<adam12> Guest99: Could you share some code?
jenrzzz has joined #ruby
<ruby[bot]> Guest99: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
jenrzzz has quit [Ping timeout: 252 seconds]
vinc has joined #ruby
<adam12> Guest99: What's not working about it?
<adam12> Maybe you want rb_define_singleton_method
<Guest99> ooo.rb:5:in `<main>': undefined method `neww' for MuOWN:Class (NoMethodError)
<Guest99> e = MuOwn.neww
<Guest99> Did you mean? new
TomyWork has quit [Remote host closed the connection]
Guest99 has quit [Quit: Client closed]
vinc has quit [Read error: Connection reset by peer]
Vetheon has joined #ruby
Vetheon has quit [Changing host]
Vetheon has joined #ruby
<adam12> I wonder if that worked...
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
jenrzzz has joined #ruby
Vetheon has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]
Linux_Kerio has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<leftylink> damn. my irb crashes on an autocomplete in the middle of a long line. but, maybe it is just because my irb version is too old. if it is then it doesn't make sense for me to report it as a bug
<adam12> :\
<adam12> Upgrade!
<leftylink> would if I could.
<adam12> :)
<adam12> Is it a limitation to the project?
jenrzzz_ has joined #ruby
<havenwood> leftylink: Add `irb` to your Gemfile.
<havenwood> You can use newer IRB without newer Ruby.
<leftylink> I don't have a Gemfile, but perhaps we can fix that, if I were to create a Gemfile, where should it go?
<havenwood> leftylink: Run `bundle init` from the root of the project directory.
jenrzzz_ has quit [Ping timeout: 256 seconds]
<leftylink> does this still apply if I'm just running irb not within the context of a project (e.g. just in my home dir) because I want to run some ruby code?
<havenwood> I like `bundle init --gemfile gems.rb` just since I slightly prefer the optional `gems.rb` to the yelling `Gemfile` default alias.
<havenwood> leftylink: Ahh, I misunderstood. Can you `gem update irb` or already on latest supported for your Ruby?
<havenwood> leftylink: You might consider updating RubyGems itself and all gems with `gem update --system` followed by `gem update`.
<havenwood> Default gems can be updated without updating Ruby, which is quite nice.
<havenwood> Latest stable IRB is: irb 1.11.0 (2023-12-19)
<leftylink> hmm so this is interesting. so now on irb 1.11.0, I do not have autocomplete at all. honestly I think I'll just leave it like that. I never got any use out of the autocomplete anyway. and no autocomplete means no chance of the crash (though of course now I won't be able to test whether the crash would happen)
vinc has joined #ruby
<havenwood> leftylink: A `irb_info` from within `irb` might give you some clues on the autocomplete issue.
<havenwood> An*
<havenwood> InputMethod: RelineInputMethod with Reline 0.4.2
<havenwood> Completion: Autocomplete, RegexpCompletor
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz_ has quit [Ping timeout: 256 seconds]
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
jenrzzz has joined #ruby
rvalue has quit [Client Quit]
rvalue has joined #ruby
jenrzzz_ has joined #ruby
_ht has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz_ has quit [Ping timeout: 252 seconds]
rvalue has quit [Quit: ZNC - https://znc.in]
jenrzzz has joined #ruby
rvalue has joined #ruby
jenrzzz_ has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 260 seconds]
rvalue- has quit [Ping timeout: 260 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
weaksauce has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Al2O31 has joined #ruby
Al2O31 has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Paris has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
Paris has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
dalan038228332 has joined #ruby
dalan03822833 has quit [Ping timeout: 256 seconds]
dalan038228332 is now known as dalan03822833
jenrzzz_ has quit [Ping timeout: 252 seconds]
infinityfye has quit [Quit: Leaving]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
vinc has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby