havenwood changed the topic of #ruby to: Ruby 3.3.0, 3.2.3, 3.1.4 https://www.ruby-lang.org | Rules https://ruby-community.com | Logs https://libera.irclog.whitequark.org/ruby
SunClonus has quit [Read error: Connection reset by peer]
Goodbye_Vincent has quit [Ping timeout: 256 seconds]
Goodbye_Vincent has joined #ruby
Goodbye_Vincent has quit [Ping timeout: 252 seconds]
bambanxx has joined #ruby
<[0x1eef_]> hramrach: You could do that in Ruby instead. Otherwise rb_funcall + rb_YourClass + rb_mEnumerable might work. You should be able to get a reference to the Enumerable module via rb_const_get.
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
nil78 has joined #ruby
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
brokkoli_origin has quit [Ping timeout: 256 seconds]
brokkoli_origin has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
hammond has joined #ruby
jenrzzz_ has joined #ruby
grenierm has joined #ruby
Goodbye_Vincent has joined #ruby
dalan038228335 has quit [Ping timeout: 246 seconds]
dalan038228335 has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
reset has joined #ruby
nil78 has quit [Remote host closed the connection]
nil78 has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
nil78 has quit [Remote host closed the connection]
nil78 has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
<hramrach> [0x1eef_]: That 'Extending ruby with C' chapter is hopelessly inadequate
<hramrach> Apparently I need to implement the 'each' method, which I canot do in ruby because the returned opbjects don't have a ruby constructor - or won't if I manage to construct them whic is not something that chapter covers
jenrzzz_ has joined #ruby
<hramrach> Also it focuses on allocating objects in the allocator which almost never heppens - objects need to be allocated in the 'initialize' method that gets arguments, the allocator does not so it cannot do the allocation
jenrzzz_ has quit [Ping timeout: 255 seconds]
_ht has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
schne1der has joined #ruby
<[0x1eef_]> I would try to implement as much as I could in Ruby. You can setup the environment from Ruby before you require the shared library, and from there drop to C only when you have to. It could save time.
FetidToot3 has joined #ruby
FetidToot has quit [Read error: Connection reset by peer]
FetidToot3 is now known as FetidToot
jenrzzz_ has joined #ruby
otisolsen70 has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
schne1der has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]
nmollerup has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<hramrach> [0x1eef_]: that's certainly an option for parts of code that can be equally well implemented in ruby and c. There is, however, the part that uses C data which cannot be implemented in ruby unless ffi is used.
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
grenierm has quit [Ping timeout: 250 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
schne1der has joined #ruby
jenrzzz_ has joined #ruby
ht_ has joined #ruby
_ht has quit [Ping timeout: 256 seconds]
ht_ is now known as _ht
jenrzzz_ has quit [Ping timeout: 256 seconds]
ht_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
_ht has quit [Ping timeout: 256 seconds]
ht_ is now known as _ht
jenrzzz has joined #ruby
<henk> FWIW: https://github.com/alexdalitz/dnsruby/ seems better
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ruby
tPOkQniyc has joined #ruby
tPOkQniyc has quit [Ping timeout: 260 seconds]
LfSSpMTHVmM has joined #ruby
szkl has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
jenrzzz has quit [Ping timeout: 252 seconds]
___nick___ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
donofrio has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
donofrio has quit [Ping timeout: 260 seconds]
donofrio has joined #ruby
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
LfSSpMTHVmM has quit [Quit: zzz]
jenrzzz has quit [Ping timeout: 246 seconds]
donofrio has quit [Ping timeout: 260 seconds]
ht_ has joined #ruby
_ht has quit [Ping timeout: 252 seconds]
ht_ is now known as _ht
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
bambanxx has joined #ruby
jenrzzz has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
szkl has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
infinityfye has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
donofrio has joined #ruby
RJBwhDtRk has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
rvalue has quit [Ping timeout: 264 seconds]
jenrzzz_ has quit [Ping timeout: 264 seconds]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
havenwood has quit [Client Quit]
desnudopenguino1 has joined #ruby
havenwood has joined #ruby
havenwood has quit [Client Quit]
rvalue has joined #ruby
havenwood has joined #ruby
desnudopenguino has quit [Ping timeout: 256 seconds]
desnudopenguino1 is now known as desnudopenguino
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jenrzzz_ has joined #ruby
infinity_fye has joined #ruby
infinityfye has quit [Ping timeout: 260 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
donofrio has joined #ruby
jenrzzz_ has joined #ruby
donofrio has quit [Ping timeout: 276 seconds]
jenrzzz_ has quit [Ping timeout: 240 seconds]
RJBwhDtRk has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
donofrio has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
<henk> gr33n7007h: hm, I don’t see that/how this does updates. but I’m also still a bit confused how/where to find API docs for libraries … can you point me in the right direction, please?
ultralan has joined #ruby
ultralan has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
bambanxx has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
<[0x1eef_]> hramrach: AFAIK - whatever you yield from each has to be a VALUE. I'm not sure there's much to gain from doing it in C with C data structures that can't travel into Ruby land.
jenrzzz_ has joined #ruby
donofrio has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 264 seconds]
otisolsen70 has quit [Quit: Leaving]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
<henk> adam12: hm, yeah, I found dnsruby on rubydoc.info too, but I was looking for docs for async-dns
<henk> rubydoc.info and gemdocs.org look suspiciously similar o_O
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
donofrio has joined #ruby
bambanxx has joined #ruby
___nick___ has quit [Ping timeout: 260 seconds]
bambanxx has quit [Client Quit]
jenrzzz_ has joined #ruby
<adam12> henk: they both use YARD (the ruby documentation tool). I built gemdocs.org. The difference is that rubydoc.info generates documentation on demand, and I generate it once and store it. rubydoc.info had some availability issues in the past where as I've had nearly 100% availability (but with some caveats)
<adam12> (I store ~ 1.5 TB uncompressed of docs currently)
<henk> adam12: oh, ok. thanks
<henk> adam12: gemdocs.org does not have async-dns either, it seems, right?
jenrzzz_ has quit [Ping timeout: 264 seconds]
SunClonus has joined #ruby
Vonter has quit [Ping timeout: 256 seconds]
Vonter has joined #ruby
<hramrach> [0x1eef_]: that kind of sounds like you have no idea what C extensions are
SunClonus has quit [Read error: Connection reset by peer]
donofrio has quit [Ping timeout: 252 seconds]
Vonter has quit [Ping timeout: 256 seconds]
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
Vonter has joined #ruby
havenwood has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
reset has quit [Quit: reset]
infinity_fye has quit [Quit: Leaving]
jenrzzz_ has joined #ruby
_ht has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 246 seconds]
pgib has joined #ruby
<[0x1eef_]> Fair enough :))
<[0x1eef_]> adam12: When did you switch to yard ? Good choice btw :)
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
<[0x1eef_]> Nice that the docs are built with their own .yardopts as well.
<[0x1eef_]> That might be dangerous though. You could include your own javascript onto gemdocs.org. I think that's why rubydoc.info disallows it.
jenrzzz_ has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
SunClonus has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]