ikaros has quit [Quit: Leave the magic to Houdini]
emmanuelux has joined #ocaml
gnuvince has quit [Quit: Via SOAP! VIA SOAP!!]
gnuvince has joined #ocaml
seafood has quit [Quit: seafood]
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
emmanuelux has quit [Remote host closed the connection]
Snark has joined #ocaml
Modius has joined #ocaml
rixed_ has joined #ocaml
rixed_ has quit [Ping timeout: 245 seconds]
yezariaely has joined #ocaml
yezariaely has left #ocaml []
rudi_s has quit [Quit: leaving]
ulfdoz has joined #ocaml
rudi_s has joined #ocaml
ulfdoz has quit [Ping timeout: 260 seconds]
init1 has joined #ocaml
ulfdoz has joined #ocaml
Tianon has quit [Quit: brb]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
Tianon has quit [Client Quit]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
ikaros has joined #ocaml
asmanur_ has joined #ocaml
asmanur has quit [Ping timeout: 252 seconds]
oc13 has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 240 seconds]
ulfdoz has quit [Ping timeout: 265 seconds]
ftrvxmtrx has joined #ocaml
Amorphous has quit [Ping timeout: 255 seconds]
Amorphous has joined #ocaml
pikachuyann has joined #ocaml
Yoric has joined #ocaml
rks has joined #ocaml
<
oc13>
Hi, i am playing with pa_monad, a syntax extension for monads. Is there any tutorial or howto around?
<
oc13>
(Despite the one from the haskell-community)
<
oc13>
The haskell ones are quite good, but i am looking for something ocaml-ish.
<
oc13>
anyone here?
<
adrien>
yeah, but it'd help if you asked a more precise question (and I don't use pa_monad, well, not really)
emmanuelux has joined #ocaml
<
oc13>
sorry, i would like to traverse a tree and it has to pass some state arround. the non monadic version is quite straight.
<
oc13>
But a get some noob errors and like to look at some examples to learn. there are some in the dist, but there are no comments etc.
mal`` has quit [Quit: Coyote finally caught me]
mal`` has joined #ocaml
<
oc13>
ok, i will try it by myself.
avsm has joined #ocaml
gnuvince has quit [Ping timeout: 245 seconds]
gnuvince has joined #ocaml
oc13 has quit [Ping timeout: 255 seconds]
mattam has quit [Ping timeout: 255 seconds]
pikachuyann has quit [Ping timeout: 276 seconds]
rmitt_ has joined #ocaml
rmitt__ has joined #ocaml
rmitt__ has quit [Client Quit]
joewilliams_away is now known as joewilliams
Indian-2010 has joined #ocaml
ulfdoz has joined #ocaml
emmanuelux has quit [Quit: =>[]]
hcube has joined #ocaml
<
hcube>
how can i make an ocaml local variable a gc root from c primitive function?
<
hcube>
i'd like to prevent local var garbage collection, because the c side will use it
<
adrien>
register_global_roots?
joewilliams is now known as joewilliams_away
<
hcube>
ok, i've just solved :)
hcube has quit [Quit: leaving]
rmitt_ has quit [Quit: Page closed]
Indian-2010 has left #ocaml []
redfire has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
albacker_ has joined #ocaml
ulfdoz_ has joined #ocaml
rixed_ has joined #ocaml
jlouis_ has joined #ocaml
redfire has quit [Quit: Changing server]
rwmjones has quit [Ping timeout: 245 seconds]
albacker has quit [Ping timeout: 245 seconds]
ulfdoz has quit [Ping timeout: 245 seconds]
rixed has quit [Ping timeout: 245 seconds]
jlouis has quit [Ping timeout: 245 seconds]
ulfdoz_ is now known as ulfdoz
palomer has joined #ocaml
<
palomer>
how are references hashed?
<
mfp>
palomer: the hash function hashes its contents recursively
<
palomer>
oh, same as (=), huh
rwmjones has joined #ocaml
<
palomer>
# let tbl = Hashtbl.create 0;;
<
palomer>
val tbl : ('_a, '_b) Hashtbl.t = <abstr>
<
palomer>
# Hashtbl.add tbl (ref None) 1;;
<
palomer>
- : unit = ()
<
palomer>
# Hashtbl.find tbl (ref None);;
<
palomer>
- : int = 1
ulfdoz has quit [Ping timeout: 276 seconds]
<
thelema>
palomer: btw, mutating hashtable keys is generally a bad thing(tm)
rgrig has joined #ocaml
<
rgrig>
Is there an easy way to report which tokens are matched by ocamlyacc's built-in non-terminal `error'?
<
thelema>
rgrig: not that I know, I usually just report the position of the error
<
thelema>
I guess you could write a printer for all your lex tokens and print $1
<
palomer>
thelema, ah yes, since their hash values change
<
thelema>
palomer: yep. similarly for any map except association lists
jonafan_ has joined #ocaml
Snark has quit [*.net *.split]
fraggle_ has quit [*.net *.split]
jsk has quit [*.net *.split]
hto has quit [*.net *.split]
hyperboreean has quit [*.net *.split]
cthuluh has quit [*.net *.split]
npouillard has quit [*.net *.split]
avsm2 has quit [*.net *.split]
init1 has quit [*.net *.split]
ski has quit [*.net *.split]
kaustuv_ has quit [*.net *.split]
fremo__ has quit [*.net *.split]
patronus has quit [*.net *.split]
noj has quit [*.net *.split]
Elench has quit [*.net *.split]
thieusoai has quit [*.net *.split]
Modius has quit [*.net *.split]
dug_ has quit [*.net *.split]
theDroggl has quit [*.net *.split]
rwmjones has quit [*.net *.split]
joewilliams_away has quit [*.net *.split]
_nejimban has quit [*.net *.split]
Tobu has quit [*.net *.split]
mehdid has quit [*.net *.split]
rudi_s has quit [*.net *.split]
mbac has quit [*.net *.split]
gildor has quit [*.net *.split]
Axioplase_ has quit [*.net *.split]
brendan has quit [*.net *.split]
CoryDambach has quit [*.net *.split]
srcerer has quit [*.net *.split]
ninegrid has quit [*.net *.split]
rgrig has quit [*.net *.split]
rixed_ has quit [*.net *.split]
kerneis has quit [*.net *.split]
BiDOrD has quit [*.net *.split]
coucou747 has quit [*.net *.split]
explodus has quit [*.net *.split]
thelema has quit [*.net *.split]
_2x2l has quit [*.net *.split]
asmanur_ has quit [*.net *.split]
julm has quit [*.net *.split]
melwtech35 has quit [*.net *.split]
thomasga has quit [*.net *.split]
iratsu` has quit [*.net *.split]
svenl has quit [*.net *.split]
albacker_ has quit [*.net *.split]
gnuvince has quit [*.net *.split]
ftrvxmtrx has quit [*.net *.split]
nimred has quit [*.net *.split]
cods has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
avsm has quit [*.net *.split]
mal`` has quit [*.net *.split]
Yoric has quit [*.net *.split]
boscop has quit [*.net *.split]
jonafan has quit [*.net *.split]
maskd has quit [*.net *.split]
eldragon has quit [*.net *.split]
f[x] has quit [*.net *.split]
jlouis_ has quit [*.net *.split]
mfp has quit [*.net *.split]
bitbckt has quit [*.net *.split]
arturh has quit [*.net *.split]
mcclurmc has quit [*.net *.split]
adrien has quit [*.net *.split]
pheredhel has quit [*.net *.split]
manveru has quit [*.net *.split]
xl0 has quit [*.net *.split]
hcarty has quit [*.net *.split]
strlen has quit [*.net *.split]
emias has quit [*.net *.split]
rks has quit [*.net *.split]
Amorphous has quit [*.net *.split]
palomer has quit [*.net *.split]
flux has quit [*.net *.split]
fabjan has quit [*.net *.split]
vk0 has quit [*.net *.split]
Leonidas has quit [*.net *.split]
bacam has quit [*.net *.split]
mikemc has quit [*.net *.split]
orbitz has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
haelix has quit [*.net *.split]
Obfuscate has quit [*.net *.split]
shachaf has quit [*.net *.split]
rossberg has quit [*.net *.split]
krktz has quit [*.net *.split]
cthuluh has joined #ocaml
julm has joined #ocaml
jsk1 has joined #ocaml
vk0 has joined #ocaml
noj_ has joined #ocaml
avsm has joined #ocaml
drksd has joined #ocaml
cods_ has joined #ocaml
boscop_ has joined #ocaml
nimred_ has joined #ocaml
svenl_ has joined #ocaml
Elench has joined #ocaml
Pepe__ has joined #ocaml
maskd- has joined #ocaml
patronus_ has joined #ocaml
gnuvince_ has joined #ocaml
fx_ has joined #ocaml
flux has joined #ocaml
albacker__ has joined #ocaml
asmanur has joined #ocaml
ski_ has joined #ocaml
rgrig has joined #ocaml
rwmjones has joined #ocaml
jlouis_ has joined #ocaml
rixed_ has joined #ocaml
mal`` has joined #ocaml
Amorphous has joined #ocaml
ftrvxmtrx has joined #ocaml
rudi_s has joined #ocaml
Modius has joined #ocaml
Snark has joined #ocaml
fraggle_ has joined #ocaml
mfp has joined #ocaml
mbac has joined #ocaml
haelix has joined #ocaml
_nejimban has joined #ocaml
avsm2 has joined #ocaml
npouillard has joined #ocaml
hyperboreean has joined #ocaml
hto has joined #ocaml
kaustuv_ has joined #ocaml
fremo__ has joined #ocaml
BiDOrD has joined #ocaml
patronus has joined #ocaml
bitbckt has joined #ocaml
brendan has joined #ocaml
dug_ has joined #ocaml
arturh has joined #ocaml
thieusoai has joined #ocaml
coucou747 has joined #ocaml
fabjan has joined #ocaml
srcerer has joined #ocaml
Leonidas has joined #ocaml
bacam has joined #ocaml
CoryDambach has joined #ocaml
mcclurmc has joined #ocaml
mikemc has joined #ocaml
explodus has joined #ocaml
gildor has joined #ocaml
Tobu has joined #ocaml
Obfuscate has joined #ocaml
joewilliams_away has joined #ocaml
shachaf has joined #ocaml
rossberg has joined #ocaml
ninegrid has joined #ocaml
theDroggl has joined #ocaml
thelema has joined #ocaml
orbitz has joined #ocaml
kerneis has joined #ocaml
adrien has joined #ocaml
mehdid has joined #ocaml
pheredhel has joined #ocaml
manveru has joined #ocaml
xl0 has joined #ocaml
hcarty has joined #ocaml
Asmadeus has joined #ocaml
krktz has joined #ocaml
Axioplase_ has joined #ocaml
strlen has joined #ocaml
emias has joined #ocaml
_2x2l has joined #ocaml
patronus has quit [Ping timeout: 240 seconds]
Amorphous has quit [Ping timeout: 240 seconds]
palomer has joined #ocaml
Amorphous has joined #ocaml
melwtech35 has joined #ocaml
iratsu has joined #ocaml
eldragon has joined #ocaml
thomasga has joined #ocaml
init1 has joined #ocaml
srcerer has quit [Ping timeout: 255 seconds]
drksd is now known as rks
albacker__ has quit [Max SendQ exceeded]
rwmjones has quit [Ping timeout: 245 seconds]
rwmjones has joined #ocaml
avsm1 has joined #ocaml
palomer_ has joined #ocaml
avsm1 has quit [Client Quit]
avsm has quit [Ping timeout: 245 seconds]
mal`` has quit [Ping timeout: 245 seconds]
palomer has quit [Ping timeout: 245 seconds]
albacker__ has joined #ocaml
mal`` has joined #ocaml
redfire has joined #ocaml
<
redfire>
has anyone ever used the lib bitstring ?
<
redfire>
oh great, because I'm having some troubles with the bitmatch
<
redfire>
I have an error with the 'with' of the bitmatch but I don't know why...
<
redfire>
I compile it with ocamlc unix.cma bitstring.cma
<
thelema>
you'll need bitstring's syntax extension too
<
thelema>
you're not compiling properly
<
mbac>
whoa, bitstring is awesome
<
thelema>
mbac: yes it is.
* mbac
inflicts on coworkers
<
redfire>
thelema: where can I find documentation about how compiling ?
<
thelema>
redfire: do you have findlib (ocamlfind) installed?
<
thelema>
ocamlfind ocamlc \
<
thelema>
-package bitstring,bitstring.syntax -syntax bitstring.syntax \
<
thelema>
-linkpkg test.ml -o test
<
thelema>
gotta go, good luck
joewilliams_away has quit [Ping timeout: 324 seconds]
Pepe__ has quit [Write error: Connection reset by peer]
Pepe_ has joined #ocaml
<
redfire>
thelema: than you !
joewilliams_away has joined #ocaml
<
palomer_>
that's pretty flipping cool
<
thelema>
thank rwmjones sometime
<
palomer_>
that's probably the first non typeconv good use of camlp4 I've seen
* adrien
loves mikmatch
<
palomer_>
mikmatch is pretty cool
<
redfire>
yes, thanks to his work, I'm going to save a lot of time
<
palomer_>
then again, it isn't hard to do something like:
<
palomer_>
match extract [4;4;8;16;...] str with [x1;x2;...] ->
<
palomer_>
oh wait, it can handle many cases
<
palomer_>
it can even reference variables bound in the match
<
palomer_>
very nice
<
adrien>
I've used mikmatch enough not to want to do it by hand
<
palomer_>
I meant for bitstring
<
adrien>
but same for bitstring :P
thomasga1 has joined #ocaml
thomasga has quit [Ping timeout: 264 seconds]
thieusoai has quit [Ping timeout: 240 seconds]
jonafan__ has joined #ocaml
rwmjones has quit [Ping timeout: 245 seconds]
cods_ is now known as cods
bacam_ has joined #ocaml
Leonidas_ has joined #ocaml
thieusoai has joined #ocaml
vk0_ has joined #ocaml
fremo___ has joined #ocaml
Leonidas_ has quit [Changing host]
Leonidas_ has joined #ocaml
fremo__ has quit [Ping timeout: 240 seconds]
bacam has quit [Ping timeout: 240 seconds]
vk0 has quit [Ping timeout: 240 seconds]
mikemc has quit [Ping timeout: 240 seconds]
ftrvxmtrx has quit [Ping timeout: 264 seconds]
Leonidas has quit [Ping timeout: 240 seconds]
mikemc has joined #ocaml
orbitz has quit [Ping timeout: 240 seconds]
Asmadeus has quit [Ping timeout: 240 seconds]
Asmadeus has joined #ocaml
orbitz has joined #ocaml
palomer_ has quit [Ping timeout: 240 seconds]
jonafan_ has quit [Ping timeout: 245 seconds]
palomer_ has joined #ocaml
julm has quit [Ping timeout: 240 seconds]
ftrvxmtrx_ has joined #ocaml
jsk1 has quit [Ping timeout: 240 seconds]
ski_ has quit [Read error: Connection reset by peer]
rwmjones has joined #ocaml
jsk has joined #ocaml
julm has joined #ocaml
ski_ has joined #ocaml
<
rgrig>
thelema, thanks, I'm reporting the position. not sure what you meant with `print $1' as the `error' non-terminal carries no data.
Snark has quit [Quit: Ex-Chat]
maskd- is now known as maskd
thieusoai has quit [Quit: Leaving]
ski_ is now known as ski
mfp has quit [Ping timeout: 276 seconds]
mfp has joined #ocaml
thieusoai has joined #ocaml
cods has quit [Changing host]
cods has joined #ocaml
jlouis_ is now known as jlouis
boscop_ has quit [Ping timeout: 272 seconds]
boscop_ has joined #ocaml
ftrvxmtrx_ has quit [Quit: Leaving]
rmitt_ has joined #ocaml
Tobu has quit [Ping timeout: 276 seconds]
Tobu has joined #ocaml
thieusoai has quit [Quit: Leaving]
seafood has joined #ocaml
ftrvxmtrx has joined #ocaml
seafood has quit [Read error: Connection reset by peer]
rgrig has quit [Quit: Leaving]
seafood has joined #ocaml
seafood_ has joined #ocaml
seafood has quit [Read error: Connection reset by peer]
seafood_ is now known as seafood
redfire has left #ocaml []
bacam_ is now known as bacam
Tobu has quit [Ping timeout: 260 seconds]
seafood has quit [Quit: seafood]
seafood has joined #ocaml
Tobu has joined #ocaml
Tobu has quit [Remote host closed the connection]
nimred_ has quit [Quit: leaving]