cremes has quit [Read error: Connection reset by peer]
cremes has joined #rubinius
amclain has quit [Quit: Leaving]
dmilith2 is now known as dmilith
havenwood has quit []
goyox86 has joined #rubinius
goyox86 has quit [Client Quit]
heroux has joined #rubinius
|jemc|_ has quit [Ping timeout: 256 seconds]
djinni has quit [Ping timeout: 256 seconds]
benlovell has joined #rubinius
txus has joined #rubinius
djinni has joined #rubinius
benlovell has quit [Ping timeout: 240 seconds]
benlovell has joined #rubinius
benlovell has quit [Ping timeout: 265 seconds]
nirvdrum has joined #rubinius
benlovell has joined #rubinius
benlovell has quit [Ping timeout: 264 seconds]
txus` has joined #rubinius
txus has quit [Read error: Connection reset by peer]
txus` is now known as txus
benlovell has joined #rubinius
benlovell has quit [Ping timeout: 264 seconds]
txus has quit [Remote host closed the connection]
havenwood has joined #rubinius
benlovell has joined #rubinius
txus has joined #rubinius
|jemc| has joined #rubinius
cremes has quit [Remote host closed the connection]
cremes has joined #rubinius
cremes has quit [Client Quit]
cremes has joined #rubinius
benlovell has quit [Ping timeout: 272 seconds]
txus has quit [Remote host closed the connection]
kfpratt has joined #rubinius
meh` has joined #rubinius
lopex has quit [Quit: Connection closed for inactivity]
DireFog has quit [Ping timeout: 272 seconds]
DireFog has joined #rubinius
DireFog has quit [Read error: Connection reset by peer]
DireFog has joined #rubinius
wasnotrice_ has joined #rubinius
pd_ has joined #rubinius
brixen_ has joined #rubinius
ahkurtz_ has joined #rubinius
rakaur has quit [*.net *.split]
bakkdoor has quit [*.net *.split]
pd has quit [*.net *.split]
brixen has quit [*.net *.split]
ahkurtz has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
|jemc| has quit [*.net *.split]
havenwood has quit [*.net *.split]
Spakman__ has quit [*.net *.split]
pd_ is now known as pd
pd has joined #rubinius
pd has quit [Changing host]
wasnotrice_ is now known as wasnotrice
rakaur_ has joined #rubinius
|jemc| has joined #rubinius
havenwood has joined #rubinius
Spakman__ has joined #rubinius
_kfpratt has joined #rubinius
kfpratt has quit [Read error: No route to host]
_kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #rubinius
kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #rubinius
_kfpratt has joined #rubinius
kfpratt has quit [Read error: Connection reset by peer]
_kfpratt has quit [Read error: No route to host]
kfpratt has joined #rubinius
kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #rubinius
bakkdoor has joined #rubinius
pd has quit [Ping timeout: 256 seconds]
pd has joined #rubinius
lbianc has quit [Quit: ChatZilla 0.9.91.1 [Firefox 31.5.2/20150320072957]]
mustmodify has joined #rubinius
<mustmodify>
You may ban me for this, but I'm here with a non-rubinius question... the question is "How does it do that?" https://github.com/mieko/rbclipper so this guy has some cpp files and the instructions say, "require 'clipper'.... blah blah stuff in ruby... " and it works. Could someone explain to me how we get from "require 'clipper' " to "hey look ma, C"
<mustmodify>
because it seems like that would be super-helpful to know.
<mustmodify>
I see ext/clipper/rbclipper.cpp which I'm guessing is the main entry point.
<|jemc|>
mustmodify: try googling 'ruby c extension' - there's lots of reading material out there on the subject
<mustmodify>
ok. Mind blown.
<|jemc|>
just be warned that C extensions have spotty support on Rubinius and JRuby because the C API is often ill-defined and ill-specified
<mustmodify>
blah.
<|jemc|>
the recommended way to interact with C code is via FFI instead of as a C extension
<|jemc|>
google "ruby FFI"
<|jemc|>
basically, rather than compiling an extension library that depends on Ruby, FFI lets you call arbitrary C library calls from Ruby
<|jemc|>
that includes libraries you build as well as existing C libraries
mustmodify has left #rubinius [#rubinius]
lopex has joined #rubinius
tenderlove has quit [Quit: Leaving...]
tenderlove has joined #rubinius
tenderlove has quit [Remote host closed the connection]