neferty has quit [Read error: Connection reset by peer]
neferty has joined #ocaml
nullcatxxx_ has joined #ocaml
cojy has quit [Ping timeout: 264 seconds]
cojy has joined #ocaml
madroach has quit [Ping timeout: 246 seconds]
andreypopp has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
andreypopp has joined #ocaml
yegods has quit [Read error: Connection reset by peer]
alpen has quit [Ping timeout: 264 seconds]
raphaelss has joined #ocaml
Leonidas has joined #ocaml
alpen has joined #ocaml
jonludlam has quit [Ping timeout: 276 seconds]
alpen has quit [Ping timeout: 264 seconds]
moei has quit [Read error: Connection reset by peer]
alpen has joined #ocaml
mawuli has joined #ocaml
<dr_toboggan>
ok, so, i'm debugging this package. i can build a test version in the git repo directory
<dr_toboggan>
i can use this test version in ocamlscript with the flags: Ocaml.ocamlflags := ["-I"; "path_to_repo/_build/src/"; "package_name_here.cmxa"]
<dr_toboggan>
is there an easy way to do that in utop?
mietek has quit [Ping timeout: 264 seconds]
mietek has joined #ocaml
<Druup>
the same options ?
<nullcatxxx_>
uu ...
<dr_toboggan>
File "/tmp/sociaml-tumblr-api/_build/src/sociaml_tumblr_api.cmxa", line 1, characters 12-13:
<dr_toboggan>
Error: Illegal character (\132)
mawuli has quit [Ping timeout: 264 seconds]
<dr_toboggan>
let me see if -require works...
<Druup>
give it the .cma
<Druup>
instead of the cmxa
<Druup>
(require is for ocamlfind packages, which you don't have if you haven't installed it)
mawuli has joined #ocaml
cojy_ has joined #ocaml
cojy has quit [Ping timeout: 264 seconds]
cojy_ is now known as cojy
<dr_toboggan>
bingo, using the cma worked
<dr_toboggan>
thanks
cojy_ has joined #ocaml
cojy has quit [Ping timeout: 264 seconds]
cojy_ is now known as cojy
cojy has quit [Client Quit]
boegel has quit [Remote host closed the connection]
alpen has quit [Ping timeout: 264 seconds]
mattrepl has quit [Ping timeout: 245 seconds]
mattrepl has joined #ocaml
andreypopp has quit [Ping timeout: 264 seconds]
boegel has joined #ocaml
alpen has joined #ocaml
andreypopp has joined #ocaml
Algebr has joined #ocaml
mawuli has quit [Ping timeout: 264 seconds]
jave has quit [Ping timeout: 245 seconds]
mawuli has joined #ocaml
FreeBirdLjj has joined #ocaml
alpen has quit [Ping timeout: 264 seconds]
mietek has quit [Ping timeout: 264 seconds]
mietek has joined #ocaml
igitoor has quit [Ping timeout: 264 seconds]
alpen has joined #ocaml
cojy has joined #ocaml
alpen has quit [Ping timeout: 264 seconds]
alpen has joined #ocaml
cojy has quit [Write error: Connection reset by peer]
baum has quit [Ping timeout: 264 seconds]
cojy has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
mietek has joined #ocaml
baum has joined #ocaml
Guest37866 has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
Druup is now known as Drup
yegods has joined #ocaml
nullcatxxx_ has quit [Read error: Connection reset by peer]
<Algebr>
I'm using bitstring and confused a little bit about results that are differing from just using C. Code in pastebin with more info http://pastebin.com/R5nq8PJr
yegods has quit [Client Quit]
Algebr has quit [Read error: Network is unreachable]
FreeBirdLjj has joined #ocaml
mawuli has quit [Ping timeout: 264 seconds]
cojy has quit [Read error: Connection reset by peer]
cojy has joined #ocaml
struktured has joined #ocaml
<cody`>
Algebr: You probably want to leave it as Int32, you can print it directly with "%lx"
<cody`>
(Int32.to_int x land 0xffffffff) would work on 64 bit systems
igitoor has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
<Drup>
(or just Int32.logand x 0xffffffffl)
mietek has joined #ocaml
<cody`>
What's happening is sign-extension, by the way
mawuli has joined #ocaml
igitoor has quit [Changing host]
igitoor has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
mietek has joined #ocaml
Anarchos has quit [Ping timeout: 276 seconds]
Algebr has joined #ocaml
<Algebr>
freenode is having trouble?..
d0nn1e has joined #ocaml
boegel has quit [Read error: Network is unreachable]
pierpa has quit [Ping timeout: 246 seconds]
boegel has joined #ocaml
abbe has joined #ocaml
iZsh has quit [Ping timeout: 260 seconds]
baum has quit [Ping timeout: 264 seconds]
mcmillhj has quit [Quit: Lost terminal]
Leonidas has quit [Ping timeout: 264 seconds]
Leonidas has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
baum has joined #ocaml
rom1504 has quit [Ping timeout: 264 seconds]
mietek has joined #ocaml
FreeBirdLjj has quit []
tmtwd has joined #ocaml
alpen has quit [Ping timeout: 264 seconds]
rom1504 has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
mietek has joined #ocaml
alpen has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
Leonidas has quit [Remote host closed the connection]
Algebr` has joined #ocaml
mietek has joined #ocaml
Algebr has quit [Ping timeout: 264 seconds]
FreeBirdLjj has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
nullcatxxx_ has joined #ocaml
Leonidas has joined #ocaml
mietek has joined #ocaml
cojy has quit [Ping timeout: 264 seconds]
igitoor has quit [Ping timeout: 264 seconds]
cojy has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
cojy has quit [Ping timeout: 264 seconds]
cojy has joined #ocaml
ygrek has joined #ocaml
baum has quit [Ping timeout: 264 seconds]
tmtwd_ has joined #ocaml
mietek has joined #ocaml
baum has joined #ocaml
abbe has quit [Ping timeout: 240 seconds]
Sorella has quit [Quit: Connection closed for inactivity]
Leonidas has quit [Ping timeout: 264 seconds]
alpen has quit [Ping timeout: 264 seconds]
alpen has joined #ocaml
mattrepl has quit [Ping timeout: 245 seconds]
Leonidas has joined #ocaml
Algebr` has quit [Remote host closed the connection]
mawuli has quit [Ping timeout: 264 seconds]
mietek has quit [Ping timeout: 264 seconds]
mietek has joined #ocaml
igitoor has joined #ocaml
raphaelss has quit [Ping timeout: 245 seconds]
mawuli has joined #ocaml
boegel has quit [Quit: No Ping reply in 180 seconds.]
cody` is now known as copy`
boegel has joined #ocaml
igitoor has quit [Changing host]
igitoor has joined #ocaml
cojy has quit [Ping timeout: 264 seconds]
cojy has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
rom1504 has quit [Ping timeout: 264 seconds]
Leonidas has quit [Ping timeout: 264 seconds]
rom1504 has joined #ocaml
mietek has joined #ocaml
baum has quit [Ping timeout: 264 seconds]
cojy has quit [Ping timeout: 264 seconds]
baum has joined #ocaml
nullcatxxx_ has quit [Read error: Connection reset by peer]
mietek has quit [Ping timeout: 264 seconds]
jeroud has quit [Ping timeout: 245 seconds]
jeroud has joined #ocaml
struktured has quit [Ping timeout: 245 seconds]
darkf has joined #ocaml
rom1504 has quit [Ping timeout: 264 seconds]
baum has quit [Ping timeout: 264 seconds]
baum has joined #ocaml
mietek has joined #ocaml
jave has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
JacobEdelman has quit [Quit: Connection closed for inactivity]
mietek has joined #ocaml
darkf_ has joined #ocaml
jeroud_ has joined #ocaml
jeroud has quit [Ping timeout: 264 seconds]
jeroud_ is now known as jeroud
darkf has quit [Ping timeout: 272 seconds]
iosys has quit [Ping timeout: 245 seconds]
iocx has joined #ocaml
jeroud has quit [Read error: Connection reset by peer]
darkf__ has joined #ocaml
jeroud has joined #ocaml
mietek has quit [Ping timeout: 264 seconds]
darkf_ has quit [Ping timeout: 272 seconds]
mietek has joined #ocaml
d0nn1e has quit [Ping timeout: 276 seconds]
alpen has quit [Ping timeout: 264 seconds]
nullcatxxx_ has joined #ocaml
mattrepl has joined #ocaml
alpen has joined #ocaml
tmtwd_ has quit [Ping timeout: 245 seconds]
tmtwd has quit [Ping timeout: 245 seconds]
iZsh has joined #ocaml
alpen has quit [Ping timeout: 264 seconds]
darius93 has quit [Ping timeout: 260 seconds]
alpen has joined #ocaml
darius93 has joined #ocaml
iocx has quit [*.net *.split]
mietek has quit [Ping timeout: 264 seconds]
enamex has joined #ocaml
Cypi_ is now known as Cypi
mietek has joined #ocaml
<reynir>
Yes
damason has quit [Ping timeout: 244 seconds]
Haudegen has quit [Ping timeout: 276 seconds]
Mandus_ is now known as Mandus
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enamex has quit [Ping timeout: 245 seconds]
darkf__ is now known as darkf
Haudegen has joined #ocaml
fluter has quit [Ping timeout: 264 seconds]
mawuli has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Read error: Connection reset by peer]
iosys has joined #ocaml
d0nn1e has joined #ocaml
FreeBirdLjj has joined #ocaml
shinnya has joined #ocaml
rom1504 has joined #ocaml
rand has joined #ocaml
ely-se_ has joined #ocaml
Simn has joined #ocaml
copy` has joined #ocaml
n1ftyn8_ has joined #ocaml
copy` has quit [Changing host]
n1ftyn8_ has quit [Changing host]
yminsky has joined #ocaml
yminsky has quit [Changing host]
andreypopp has joined #ocaml
andreypopp has quit [Changing host]
jeroud has quit [Changing host]
jeroud has joined #ocaml
andreypopp has quit [Ping timeout: 245 seconds]
mawuli has joined #ocaml
cartwright has quit [Ping timeout: 264 seconds]
freehck has joined #ocaml
baum has quit [Ping timeout: 264 seconds]
Guest64300 has quit [Ping timeout: 260 seconds]
rand has quit [Quit: leaving]
andreypopp has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
cartwright has joined #ocaml
mawuli has quit [Ping timeout: 264 seconds]
enamex has joined #ocaml
igitoor has quit [Ping timeout: 264 seconds]
larhat1 has quit [Quit: Leaving.]
johnelse has joined #ocaml
johnelse is now known as Guest6265
mawuli has joined #ocaml
baum has joined #ocaml
jave has quit [Ping timeout: 245 seconds]
mietek has quit [Ping timeout: 264 seconds]
mietek has joined #ocaml
fluter has joined #ocaml
jave has joined #ocaml
alpen has quit [Ping timeout: 264 seconds]
jeroud has quit [Ping timeout: 264 seconds]
jeroud has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
alpen has joined #ocaml
averell has joined #ocaml
alpen has quit [Ping timeout: 264 seconds]
mietek has quit [Ping timeout: 264 seconds]
Sim_n has joined #ocaml
Simn has quit [Ping timeout: 260 seconds]
alpen has joined #ocaml
mietek has joined #ocaml
Leonidas has joined #ocaml
igitoor has joined #ocaml
igitoor has joined #ocaml
igitoor has quit [Changing host]
mattrepl has quit [Ping timeout: 245 seconds]
iZsh has quit [Ping timeout: 245 seconds]
iZsh has joined #ocaml
companion_square is now known as companion_cube
nojb has joined #ocaml
FreeBirdLjj has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
demonimin has joined #ocaml
enamex has quit [Ping timeout: 260 seconds]
fluter has quit [Ping timeout: 264 seconds]
sz0 has joined #ocaml
sepp2k has joined #ocaml
darkf_ has joined #ocaml
ygrek has quit [Ping timeout: 244 seconds]
darkf has quit [Disconnected by services]
darkf_ is now known as darkf
fluter has joined #ocaml
darkf_ has joined #ocaml
darkf has quit [Ping timeout: 270 seconds]
Guest6265 is now known as johnelse
_andre has joined #ocaml
shinnya has quit [Ping timeout: 245 seconds]
octachron has joined #ocaml
darkf_ is now known as darkf
dsheets has joined #ocaml
shinnya has joined #ocaml
kolko has quit [Ping timeout: 245 seconds]
ontologiae_ has joined #ocaml
ely-se_ has quit [Quit: leaving]
demonimin has quit [Ping timeout: 260 seconds]
zol has quit [Quit: WeeChat 0.4.2]
zol has joined #ocaml
Sim_n is now known as Simn
jonludlam has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ocaml
JacobEdelman has joined #ocaml
badon has quit [Disconnected by services]
badon_ has joined #ocaml
badon_ is now known as badon
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Maelan has quit [Ping timeout: 260 seconds]
tobiasBora has quit [Ping timeout: 245 seconds]
sgnb` has quit [Read error: Connection reset by peer]
bobry has joined #ocaml
sgnb` has joined #ocaml
luigy has quit [Ping timeout: 260 seconds]
luigy has joined #ocaml
tobiasBora has joined #ocaml
jave has quit [Ping timeout: 260 seconds]
freehck` has joined #ocaml
freehck has quit [Ping timeout: 245 seconds]
mort___ has joined #ocaml
MercurialAlchemi has joined #ocaml
mort___ has left #ocaml [#ocaml]
Maelan has joined #ocaml
jave has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
larhat has joined #ocaml
Haudegen has quit [Ping timeout: 244 seconds]
larhat has quit [Quit: Leaving.]
iocx has joined #ocaml
struk|desk has quit [Remote host closed the connection]
Haudegen has joined #ocaml
contempt has quit [Disconnected by services]
contempt has joined #ocaml
FreeBirdLjj has joined #ocaml
pierpa has joined #ocaml
ril has joined #ocaml
Sorella has joined #ocaml
ril is now known as ril[away]
ril[away] is now known as ril
cojy has joined #ocaml
kolko has joined #ocaml
sgnb` has quit [Ping timeout: 259 seconds]
sgnb` has joined #ocaml
d0nn1e has quit [Ping timeout: 260 seconds]
agumonkey has quit [Read error: Connection reset by peer]
FreeBirdLjj has quit [Ping timeout: 257 seconds]
luigy has quit [Ping timeout: 259 seconds]
ril has quit [Excess Flood]
igitoor has quit [Ping timeout: 264 seconds]
igitoor has joined #ocaml
companion_cube has quit [Disconnected by services]
luigy has joined #ocaml
luigy has quit [Ping timeout: 262 seconds]
kushal has joined #ocaml
kushal has joined #ocaml
igitoor has joined #ocaml
igitoor has quit [Changing host]
bobry has quit [Quit: Connection closed for inactivity]
companion_cube has joined #ocaml
companion_cube has left #ocaml [#ocaml]
companion_cube has joined #ocaml
iocx has quit [*.net *.split]
Kakadu has joined #ocaml
jeroud_ has joined #ocaml
jeroud has quit [Ping timeout: 264 seconds]
jeroud_ is now known as jeroud
shinnya has quit [Ping timeout: 260 seconds]
mort___ has joined #ocaml
kushal has quit [Ping timeout: 260 seconds]
pierpa has quit [Ping timeout: 260 seconds]
contempt has quit [Ping timeout: 260 seconds]
averell has quit [Ping timeout: 240 seconds]
jonludlam has quit [Ping timeout: 260 seconds]
zol has quit [Ping timeout: 260 seconds]
ontologiae_ has quit [Ping timeout: 260 seconds]
nojb has quit [Ping timeout: 260 seconds]
nojb has joined #ocaml
averell has joined #ocaml
shinnya has joined #ocaml
octachron has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 260 seconds]
rpg has joined #ocaml
jeroud has quit [Ping timeout: 264 seconds]
jeroud has joined #ocaml
octachron has joined #ocaml
nojb1 has joined #ocaml
nojb has quit [Ping timeout: 260 seconds]
nojb1 is now known as nojb
agumonkey has joined #ocaml
luigy has joined #ocaml
mattrepl has joined #ocaml
FreeBirdLjj has joined #ocaml
octachron has quit [Quit: Leaving]
ceryo has joined #ocaml
d0nn1e has joined #ocaml
BitPuffin has joined #ocaml
bernardofpc has quit [Ping timeout: 260 seconds]
bernardofpc has joined #ocaml
enamex has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
zol has joined #ocaml
ygrek has joined #ocaml
seliopou has quit [Ping timeout: 260 seconds]
seliopou has joined #ocaml
slash^ has joined #ocaml
manizzle has joined #ocaml
trystero has quit [Quit: trystero]
copy` has joined #ocaml
mort___ has quit [Quit: Leaving.]
ontologiae_ has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 245 seconds]
lostman has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
sgnb` has quit [Remote host closed the connection]
sgnb has joined #ocaml
chnyda_ has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
^elyse^ has joined #ocaml
nullcatxxx_ has joined #ocaml
FreeBirdLjj has joined #ocaml
nullcatxxx_ has quit [Client Quit]
nullcatxxx_ has joined #ocaml
^elyse^ has quit [Client Quit]
enamex has quit [Ping timeout: 245 seconds]
enquora has joined #ocaml
enamex has joined #ocaml
^elyse^ has joined #ocaml
freehck` has quit [Ping timeout: 245 seconds]
Denommus has joined #ocaml
Guest38 has joined #ocaml
enquora has quit [Ping timeout: 260 seconds]
moei has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tane has joined #ocaml
tristero has joined #ocaml
hcarty has joined #ocaml
nullcatxxx_ has joined #ocaml
Haudegen has quit [Ping timeout: 244 seconds]
enquora has joined #ocaml
<Leonidas>
does anyone know how constructors are represented in OCaml?
<Leonidas>
after the compiler runs, the types are eliminated, but how are different constructors represented at runtime?
<Drup>
Leonidas: integers
<Drup>
There is a good chapter about memory representation in RWO
darkf has quit [Quit: Leaving]
ygrek has quit [Ping timeout: 260 seconds]
<hcarty>
Leonidas: This FFI tutorial also has some nice descriptions and examples
<zozozo>
Drup: is there somewhere an explanation of how exceptions are represented ? I didn't find anything
<Drup>
zozozo: hum, I don't now exactly
<Drup>
the constructor itself is still an int, but there are other things
<zozozo>
Drup: from what I can see, it seems like exceptions have the same tag as objects (i.e Obj.object_tag), and also store their name as a string