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.
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.
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]