<Drakken>
pippijn that looks okay as far as I can tell, except it doesn't use the out param.
lggr has quit [Ping timeout: 265 seconds]
<Drakken>
And of course it doesn't output the "type t =" part.
<pippijn>
oh right
<pippijn>
Drakken: that's because it needs to end up in both sig and str
darkf has quit [Ping timeout: 245 seconds]
darkf__ is now known as darkf
Neros has quit [Ping timeout: 245 seconds]
<pippijn>
and out is old, because it used to print directly
<pippijn>
now I'm building an AST, first
darkf_ has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
cdidd has joined #ocaml
lggr has quit [Ping timeout: 272 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 276 seconds]
f[x] has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
answer_42 has quit [Remote host closed the connection]
answer_42 has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
GnomeStoleMyBike has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
GnomeStoleMyBike has quit [Ping timeout: 265 seconds]
lggr has joined #ocaml
<pippijn>
can I use sexplib.syntax in quotations?
Cyanure has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
lggr has joined #ocaml
ankit9 has quit [Ping timeout: 245 seconds]
astropirate has quit [Quit: Leaving]
lggr has quit [Ping timeout: 240 seconds]
thomasga has joined #ocaml
cago has joined #ocaml
lggr has joined #ocaml
f[x] has joined #ocaml
ankit9 has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
<flux>
first I thought that the Vector2/Vector3-use of GADTs is useless (on the mailing list), but actually it seems pretty nice, because you can use same functions for all vectors and the types are guaranteed
<flux>
too bad you need to use constructors with gadts, it won't work with plain tuples ;)
darkf has quit [Quit: Leaving]
lggr has quit [Ping timeout: 272 seconds]
ontologiae has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
hkBst has quit [Ping timeout: 245 seconds]
djcoin has joined #ocaml
hkBst has joined #ocaml
tufisi has joined #ocaml
hkBst has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 252 seconds]
GnomeStoleMyBike has joined #ocaml
lggr has joined #ocaml
hkBst_ has joined #ocaml
chambart has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ocaml
pngl has joined #ocaml
<madroach_>
Hi, what is the difference between the standard library Weak Hashtable and the batteries InnerWeaktbl?
ankit9 has quit [Ping timeout: 245 seconds]
ocp has joined #ocaml
madroach_ is now known as madroach
<flux>
InnerWeakTbl sounds to me something internal for Batteries, there is probably an external name for it as well?
<flux>
but my guess is there should be little difference, maybe Batteries' provides some additional operations..
<madroach>
flux: that's what I thought, too, but I cannot find anything.
hkBst_ has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
ankit9 has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
hkBst_ has joined #ocaml
lggr has joined #ocaml
Kakadu has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
sepp2k has joined #ocaml
hkBst_ has quit [Remote host closed the connection]
hkBst_ has joined #ocaml
lggr has joined #ocaml
Marqin has quit [Changing host]
Marqin has joined #ocaml
Marqin has quit [Changing host]
Marqin has joined #ocaml
lggr has quit [Ping timeout: 265 seconds]
lggr has joined #ocaml
chambart has quit [Ping timeout: 240 seconds]
Jeaye has quit [Quit: WeeChat 0.3.9]
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
hkBst_ has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
lggr has joined #ocaml
chambart has joined #ocaml
fraggle_ has quit [Read error: Connection reset by peer]
astertronistic has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 244 seconds]
ocp1 has joined #ocaml
ocp has quit [Read error: Connection reset by peer]
lggr has joined #ocaml
lggr has quit [Ping timeout: 272 seconds]
lggr has joined #ocaml
answer_42 has quit [Quit: WeeChat 0.3.9]
lggr has quit [Ping timeout: 240 seconds]
hkBst_ has quit [Read error: Connection reset by peer]
lggr has joined #ocaml
hkBst_ has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
ottbot has joined #ocaml
lggr has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
<GnomeStoleMyBike>
Hello
ansx_ has quit [Quit: No Ping reply in 180 seconds.]
ansx has joined #ocaml
lggr_ has joined #ocaml
Dettorer has quit [Ping timeout: 240 seconds]
lggr_ has quit [Ping timeout: 276 seconds]
madroach has quit [*.net *.split]
emias has quit [*.net *.split]
Guest46294 has quit [*.net *.split]
thelema has quit [*.net *.split]
BiDOrD_ has quit [*.net *.split]
julm has quit [*.net *.split]
Derander has quit [*.net *.split]
_habnabit has quit [*.net *.split]
Kakadu has quit [*.net *.split]
djcoin has quit [*.net *.split]
hiredman has quit [*.net *.split]
ocp1 has quit [*.net *.split]
ontologiae has quit [*.net *.split]
cago has quit [*.net *.split]
rwmjones has quit [*.net *.split]
joewilliams has quit [*.net *.split]
Drakken has quit [*.net *.split]
deavid has quit [*.net *.split]
ben_zen has quit [*.net *.split]
zzz_ has quit [*.net *.split]
ivan\ has quit [*.net *.split]
braibant has quit [*.net *.split]
maufred has quit [*.net *.split]
adrien has quit [*.net *.split]
vincentbalat has quit [*.net *.split]
iZsh has quit [*.net *.split]
mcclurmc_away has quit [*.net *.split]
shajen has quit [*.net *.split]
diml has quit [*.net *.split]
thizanne has quit [*.net *.split]
nimred has quit [*.net *.split]
Obfuscate has quit [*.net *.split]
tchell has quit [*.net *.split]
orbitz has quit [*.net *.split]
hcarty has quit [*.net *.split]
tlockney has quit [*.net *.split]
wahnfried has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
Ptival has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
abeaulieu has quit [*.net *.split]
lggr has quit [*.net *.split]
samposm_ has quit [*.net *.split]
svenl has quit [*.net *.split]
wormphlegm has quit [*.net *.split]
cdidd has quit [*.net *.split]
pippijn has quit [*.net *.split]
jlouis has quit [*.net *.split]
pheredhel has quit [*.net *.split]
mal`` has quit [*.net *.split]
jonathandav has quit [*.net *.split]
ftrvxmtrx has quit [*.net *.split]
milki has quit [*.net *.split]
shinnya has quit [*.net *.split]
pangoafk has quit [*.net *.split]
dwmw2_gone has quit [*.net *.split]
noj has quit [*.net *.split]
olasd has quit [*.net *.split]
yezariaely has quit [*.net *.split]
milosn_ has quit [*.net *.split]
hyperboreean has quit [*.net *.split]
lopex has quit [*.net *.split]
yroeht has quit [*.net *.split]
dgfitch has quit [*.net *.split]
othiym23 has quit [*.net *.split]
snarkyboojum has quit [*.net *.split]
Haseo has quit [*.net *.split]
pngl has quit [*.net *.split]
f[x] has quit [*.net *.split]
jave_ has quit [*.net *.split]
sgnb has quit [*.net *.split]
jpdeplaix has quit [*.net *.split]
bitbckt has quit [*.net *.split]
arsatiki has quit [*.net *.split]
Qrntz has quit [*.net *.split]
hnrgrgr has quit [*.net *.split]
pr has quit [*.net *.split]
nicoo has quit [*.net *.split]
flux has quit [*.net *.split]
CmrPantoufle has quit [*.net *.split]
fasta has quit [*.net *.split]
jonafan has quit [*.net *.split]
NaCl has quit [*.net *.split]
kba has quit [*.net *.split]
pou_ has quit [*.net *.split]
notdan has quit [*.net *.split]
hkBst_ has quit [Write error: Connection reset by peer]
lggr has joined #ocaml
ocp1 has joined #ocaml
Kakadu has joined #ocaml
pngl has joined #ocaml
djcoin has joined #ocaml
ontologiae has joined #ocaml
f[x] has joined #ocaml
cago has joined #ocaml
cdidd has joined #ocaml
ftrvxmtrx has joined #ocaml
madroach has joined #ocaml
Guest46294 has joined #ocaml
thelema has joined #ocaml
BiDOrD_ has joined #ocaml
flux has joined #ocaml
milki has joined #ocaml
ben_zen has joined #ocaml
shajen has joined #ocaml
yezariaely has joined #ocaml
pippijn has joined #ocaml
julm has joined #ocaml
jave_ has joined #ocaml
rwmjones has joined #ocaml
hcarty has joined #ocaml
samposm_ has joined #ocaml
zzz_ has joined #ocaml
milosn_ has joined #ocaml
sgnb has joined #ocaml
hiredman has joined #ocaml
emias has joined #ocaml
ivan\ has joined #ocaml
jpdeplaix has joined #ocaml
braibant has joined #ocaml
hyperboreean has joined #ocaml
maufred has joined #ocaml
bitbckt has joined #ocaml
arsatiki has joined #ocaml
shinnya has joined #ocaml
adrien has joined #ocaml
lopex has joined #ocaml
joewilliams has joined #ocaml
nimred has joined #ocaml
pangoafk has joined #ocaml
_habnabit has joined #ocaml
Derander has joined #ocaml
Qrntz has joined #ocaml
Obfuscate has joined #ocaml
dwmw2_gone has joined #ocaml
tlockney has joined #ocaml
Drakken has joined #ocaml
vincentbalat has joined #ocaml
wahnfried has joined #ocaml
svenl has joined #ocaml
hnrgrgr has joined #ocaml
CoverSlide has joined #ocaml
iZsh has joined #ocaml
yroeht has joined #ocaml
pr has joined #ocaml
wormphlegm has joined #ocaml
CmrPantoufle has joined #ocaml
mcclurmc_away has joined #ocaml
tchell has joined #ocaml
othiym23 has joined #ocaml
dgfitch has joined #ocaml
kba has joined #ocaml
orbitz has joined #ocaml
diml has joined #ocaml
snarkyboojum has joined #ocaml
Ptival has joined #ocaml
Haseo has joined #ocaml
Asmadeus has joined #ocaml
deavid has joined #ocaml
thizanne has joined #ocaml
noj has joined #ocaml
jlouis has joined #ocaml
fasta has joined #ocaml
abeaulieu has joined #ocaml
jonafan has joined #ocaml
pheredhel has joined #ocaml
NaCl has joined #ocaml
mal`` has joined #ocaml
jonathandav has joined #ocaml
notdan has joined #ocaml
pou_ has joined #ocaml
olasd has joined #ocaml
nicoo has joined #ocaml
Neros has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
hkBst_ has joined #ocaml
hkBst_ has quit [Changing host]
hkBst_ has joined #ocaml
srcerer has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
hkBst__ has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
Cyanure has quit [Remote host closed the connection]
lggr has joined #ocaml
mcclurmc_away is now known as mcclurmc
ankit9 has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 260 seconds]
flux has quit [Read error: Connection reset by peer]
lggr has joined #ocaml
flux has joined #ocaml
flux has quit [Read error: Connection reset by peer]
Dettorer has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
flux has joined #ocaml
lggr has joined #ocaml
ankit9 has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
reynir-laptop has joined #ocaml
lggr has joined #ocaml
<reynir-laptop>
Big_int's string_of_big_int seems to be unreasonably slow
reynir-laptop is now known as reynir
reynir has quit [Changing host]
reynir has joined #ocaml
<pippijn>
reynir: stringising big ints is slow
<pippijn>
but I don't know how unreasonably slow Big_int is, as I've never used it
<reynir>
It took about eight minutes to print 20,000,000th fibonacci number but only 30 seconds to compute it
<reynir>
In go it took three minutes doing both and a bit more than one minute to compute it
<reynir>
one minute and 20 seconds
<adrien>
it's slower as the strings get longer iirc
lggr has quit [Ping timeout: 272 seconds]
<reynir>
I'm just surprised it takes so long and wanted to know if anyone had an explanation :-)
lggr has joined #ocaml
<flux>
if it works by /10, %10, then it is O(n^2) ?
<f[x]>
quadratic concatenation?
<flux>
I mean, first you divide a number of length N, then you divide a number of length N-1x, then N-1x, etc
<flux>
but perhaps there's a better algorithm
<flux>
than the naive way people do int-to-string conversion
<f[x]>
no, looks like it is allocating string once
<adrien>
I doubt you get below O(n) anyway :-)
lggr has quit [Ping timeout: 240 seconds]
<f[x]>
reynir, could you share the code to profile it?
<reynir>
Would it make sense to use lazy instead of my cache?
hkBst__ has quit [Read error: Connection reset by peer]
hkBst__ has joined #ocaml
chturne has joined #ocaml
<f[x]>
when printing it spends most of time in division..
gnuvince_ has quit [Ping timeout: 245 seconds]
<reynir>
braibant: Should I write to the caml-list?
lggr has quit [Ping timeout: 276 seconds]
<f[x]>
also, did you try zarith?
lggr has joined #ocaml
<reynir>
No, I have never heard of it before
<f[x]>
it's an officially endorsed replacement for num library
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
<reynir>
f[x]: Thanks, I will try that
hkBst__ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
hkBst__ has joined #ocaml
lggr has joined #ocaml
larhat has joined #ocaml
<reynir>
Holy crap that's *much* faster
<reynir>
0.87 seconds
ankit9 has quit [Read error: Connection reset by peer]
<f[x]>
that faster?
<reynir>
Yes
<ousado>
reynir: just for printing?
<reynir>
It's ridiculous
<reynir>
No, printing and computing
<ousado>
woot
<f[x]>
and result is correct?
<reynir>
Yea seems so
<reynir>
The md5sum is the same at least :P
<f[x]>
Awesome!
<ousado>
sounds like magic
<ousado>
zarith
<reynir>
That is pretty awesome
<ousado>
it's using GMP
lggr has quit [Ping timeout: 252 seconds]
<reynir>
Now I have the fastest code :P
larhat1 has joined #ocaml
larhat has quit [Read error: Connection reset by peer]
lggr has joined #ocaml
larhat has joined #ocaml
larhat1 has quit [Read error: Connection reset by peer]
<reynir>
That's a factor 600 improvement
lggr has quit [Ping timeout: 276 seconds]
ankit9 has joined #ocaml
lggr has joined #ocaml
<braibant>
is there a list somewhere of the prefix/infix/postfix symbols that can be redefined by the user in ocaml? (like, I like redefining ! in my code, but I need a bit more than this)
<reynir>
Yes, there's a list in the manual, I believe. I will find it for you
hkBst__ has quit [Read error: Connection reset by peer]
hkBst has joined #ocaml
Yoric has quit [Ping timeout: 245 seconds]
answer_42 has joined #ocaml
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ocaml
<pippijn>
does anybody know how I can use sexplib within camlp4 quotations?
fraggle_laptop has joined #ocaml
lggr has quit [Ping timeout: 276 seconds]
<braibant>
reynir: thanks
hkBst has quit [Ping timeout: 245 seconds]
hkBst has joined #ocaml
lggr has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
larhat1 has joined #ocaml
larhat has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 272 seconds]
lggr has joined #ocaml
mjonsson has quit [Remote host closed the connection]
hkBst has quit [Read error: Connection reset by peer]
larhat1 has quit [Ping timeout: 245 seconds]
hkBst has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
larhat has joined #ocaml
iago has joined #ocaml
lggr has joined #ocaml
hkBst has quit [Read error: Connection reset by peer]
hkBst has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
<reynir>
braibant: No problem. I believe you have helped me a few times in #coq :-)
tufisi has quit [Read error: Operation timed out]
tufisi has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
larhat1 has joined #ocaml
larhat has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
hkBst has quit [Remote host closed the connection]
hkBst_ has joined #ocaml
reynir has quit [Quit: Bye!]
tlockney has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 246 seconds]
ftrvxmtrx has joined #ocaml
tlockney has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
lggr has joined #ocaml
smondet has joined #ocaml
lggr has quit [Ping timeout: 248 seconds]
lggr has joined #ocaml
answer_42 has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 256 seconds]
Snark has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
hkBst_ has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
benny_ has joined #ocaml
f[x] has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 244 seconds]
benny_ has left #ocaml []
lggr has joined #ocaml
samposm_ is now known as samposm
lggr has quit [Ping timeout: 240 seconds]
ankit9 has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
pngl has quit [Ping timeout: 246 seconds]
Matthieu1 has joined #ocaml
lggr has quit [Ping timeout: 255 seconds]
Matthieu1 has left #ocaml []
hkBst_ has quit [Ping timeout: 245 seconds]
hkBst_ has joined #ocaml
hkBst_ has quit [Changing host]
hkBst_ has joined #ocaml
lggr has joined #ocaml
ankit9 has joined #ocaml
Cyanure has joined #ocaml
tac has joined #ocaml
hkBst_ has quit [Ping timeout: 246 seconds]
jamii has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
hkBst_ has joined #ocaml
ankit9 has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
avsm has joined #ocaml
hkBst_ has quit [Ping timeout: 255 seconds]
hkBst_ has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
cago has quit [Quit: Leaving.]
ankit9 has joined #ocaml
hkBst_ has quit [Client Quit]
lggr has joined #ocaml
ankit9 has quit [Client Quit]
lggr has quit [Ping timeout: 260 seconds]
pima has joined #ocaml
testcocoon has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
<pima>
Hi, I can't compile a .ml (this one http://goo.gl/VcNJt), it works on ocamlc 3.11.2 (debian 6) but not on 4.0 (osx 10.8), here's the output on both computers http://pastie.org/5044445
<pima>
Can anyone help me please ?
<hcarty>
pima: It works here under Linux + OCaml 4.00.1
<thelema>
pima: broken ocaml install?
<pima>
I installed OCaml with homebrew at first, it gave me the same error, then I tried to uninstall it, and to install it via the package for osx on http://caml.inria.fr/download.fr.html
lggr has quit [Ping timeout: 245 seconds]
<thelema>
I'm guessing the uninstall was unsuccessful and you're running the remenants of that install
<thelema>
`which ocamlc` on osx
<pima>
\/usr/local/bin/ocamlc
<thelema>
is that where the package installed to?
<pima>
let me check
<pima>
but, i don't think so, because brew gave me 4.0.0 ocamlc and after the install i got v4.00.1
<thelema>
ok, other possibility is that your ocaml library dir is borked
<thelema>
`ocamlc -where`
<thelema>
is there an arg.* in that dir?
Neros has quit [Remote host closed the connection]
lggr has joined #ocaml
<pima>
Yes, arg.cmi, cmx, ml, mli, p.cmx
<pima>
but no cma, maybe that's why ?
<thelema>
no, cma is an archive; similar to .a
<thelema>
.cmi is the critical one for compilation
<thelema>
it's the compiled interface
<pima>
here's what i got for the module Graphics : a, cma, cmi, cmx, cmxa, cmxs, mli
<pima>
and the graphics module works
<pima>
that's why i thought about the missing .a/.cma
<thelema>
Graphics, Unix, Str and a few more are special, as they're not really part of the stdlib
<thelema>
they're otherlibs that are distributed with the compiler
jamii has quit [Ping timeout: 245 seconds]
<thelema>
what happens if you type `List.hd;;` into the ocaml toplevel
<pima>
i get - : 'a list -> 'a = <fun>
Neros has joined #ocaml
<thelema>
`Arg.Unit` ?
<pima>
Error: The files /usr/local/bin/ocaml and arg.cmi make inconsistent assumptions over interface Arg
<thelema>
your arg.cmi file is from the old install, and ocaml is very picky about interface compatibility
lggr has quit [Ping timeout: 245 seconds]
<thelema>
try deleting it and re-installing the new version.
<thelema>
well, all the arg.* files, just in case
lggr has joined #ocaml
<pima>
Done. No changes.
<pima>
Tried deleting also /usr/local/bin/ocaml and reinstalling, no changes.
<thelema>
I guess it's possible that the osx package of ocaml has a broken arg module somehow.
<_habnabit>
fwiw on os x i always install ocaml by using godi
<thelema>
I think ocamlbrew works on osx
<thelema>
_habnabit: can you take some time to verify this arg issue in the official installer?
<_habnabit>
sure
<_habnabit>
let me make sure i know where it's installing itself first
<_habnabit>
i don't want it to clobber my working environment
<thelema>
quite
<pima>
i have to go, anyway thanks for the help, will return later
pima has quit [Quit: Page closed]
<_habnabit>
hm. it's trying to install to /usr/local and i can't change it to /opt/ocaml or anything else
lggr has quit [Ping timeout: 246 seconds]
<thelema>
:(
<_habnabit>
i have stuff in there!!
lggr has joined #ocaml
ontologiae has quit [Ping timeout: 246 seconds]
ontologiae has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ocaml
answer_42 has joined #ocaml
GnomeStoleMyBike has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ocaml
avsm has quit [Quit: Leaving.]
chturne has quit [Read error: Operation timed out]
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ocaml
ontologi1e has joined #ocaml
ontologiae has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 276 seconds]
tane has joined #ocaml
lggr has joined #ocaml
jamii has joined #ocaml
ppseafield has joined #ocaml
lggr has quit [Ping timeout: 272 seconds]
Kakadu has joined #ocaml
lggr has joined #ocaml
avsm has joined #ocaml
Jeaye has joined #ocaml
lggr has quit [Ping timeout: 265 seconds]
lggr has joined #ocaml
lopex has quit [Remote host closed the connection]
joewilliams has quit [Remote host closed the connection]
f[x] has joined #ocaml
emmanuelux has joined #ocaml
lggr has quit [Ping timeout: 246 seconds]
<wieczyk>
wmeyer:
<wieczyk>
thelema:
<wieczyk>
I have checked LWT
<wieczyk>
It uses system thread to utilize more CPU
<wieczyk>
but only main thread can run Ocaml code.
<wieczyk>
[by obvious reasons]
<thelema>
ok...
<wieczyk>
I have speaked with you about SMP
lggr has joined #ocaml
<wieczyk>
Or it is my imagination.
<wieczyk>
It is why I have highlighted you.
<wieczyk>
more CPUs*
srcerer has joined #ocaml
<thelema>
only C threads can run in those other CPUs
<thelema>
?
<thelema>
it's possible that C threads could run in other CPUs
<thelema>
they'd have to be careful about interacting with the OCaml world
pangoafk is now known as pango
<wieczyk>
Yes, only C-threads.
<wieczyk>
Well, no one will check if you do something bad.
<thelema>
This function must not: access or allocate OCaml block values (tuples, strings, ...), call OCaml code.
<wieczyk>
due to not mpsafe runtime.
lggr has quit [Ping timeout: 260 seconds]
Cyanure has quit [Remote host closed the connection]
lggr has joined #ocaml
ontologi1e has quit [Read error: Operation timed out]
<thelema>
yes
<wieczyk>
It is how LWT can, with additional effort, defeat some problems with blocking calls in external libraries etc (look that lwt provides support for glib, which makes possible to use GTK which has own event-loop, which cannot be wrapped by Ocaml runtime)
<wieczyk>
Still, I would like to have multicore runtime.
sepp2k1 has joined #ocaml
avsm has quit [Quit: Leaving.]
sepp2k has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 255 seconds]
<wieczyk>
Does Perl support multicore?
lggr has joined #ocaml
<wieczyk>
I have seen Perl 5.8, I remember it had thread module. But I did not remember if those threads was system thread or emulated.
BiDOrD has joined #ocaml
<bitbckt>
iirc, the Perl threading model is multiple interpreters per process.
<wieczyk>
Nice trick.
BiDOrD_ has quit [Ping timeout: 272 seconds]
<adrien>
I think ocamlnet does it similarly
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ocaml
<wmeyer>
wieczyk: remember that Perl has nothing to lose.
<yezariaely>
anyone tried BatCharParser? anyone has an idea how I can get parsing started. I tried BatCharParser.parse (BatCharParser.source_of_string s) however the type parse requires is different from the type source_of_string yields.
<wmeyer>
in other words, first thing is that, it's slow and have reference counted memory management
f[x] has quit [Ping timeout: 244 seconds]
<wmeyer>
second thing is that Perl has no infrastructure for SMP not using locks
<wmeyer>
so SMP actually makes sense
<thelema>
yezariaely: yes, the Source has to be used by BatParserCo.run
<thelema>
yezariaely: the parse function in BatCharParser bypasses the source_of process
lggr has quit [Ping timeout: 265 seconds]
<wieczyk>
wmeyer: Yes, if you speak about performance perl does not have anything to lose.
<wieczyk>
wmeyer: But I Still think that you are under some anti-lock propaganda. Even without SMP you need to have synchronization (locks) when using shared memory etc.
<thelema>
yezariaely: you build your parser in BatParserCo and then apply it to a string with BatCharParser.parse or apply it to a source with ParserCo.run
<wieczyk>
It is weird in ocaml
<wieczyk>
that it don't have SMP and I wam very interrested to have fun with it... I still think that programming in ocaml is the right choice for me ;d
thomasga has quit [Quit: Leaving.]
<wmeyer>
wieczyk: yep. OCaml does not need SMP to be fun.
lggr has joined #ocaml
<wmeyer>
wieczyk: I'm not an opponent tho, but believer it's a minor annoyance
mcclurmc is now known as mcclurmc_away
<yezariaely>
thelema: thanks , I missed the run function
<thelema>
yezariaely: it really needs some examples
<yezariaely>
I will write some when it works...
<yezariaely>
or should I say 'if it works'
chambart has quit [Ping timeout: 240 seconds]
<yezariaely>
;-)
<thelema>
:)
BiDOrD has quit [Quit: No Ping reply in 180 seconds.]
Cyanure has joined #ocaml
lggr has quit [Ping timeout: 245 seconds]
joewilliams has joined #ocaml
bzzbzz has joined #ocaml
lggr has joined #ocaml
lopex has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
iago has quit [Quit: Leaving]
lggr has joined #ocaml
avsm has joined #ocaml
lggr has quit [Ping timeout: 240 seconds]
lopex has quit []
lopex has joined #ocaml
<wmeyer>
`\o
lggr has joined #ocaml
lusory has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 245 seconds]
<adrien>
o/'
<wieczyk>
!o!
<adrien>
¡0l
<Qrntz>
¡ø¡
lggr has joined #ocaml
avsm has quit [Ping timeout: 265 seconds]
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
joewilliams has quit [Remote host closed the connection]
Yoric has joined #ocaml
lggr has quit [Ping timeout: 256 seconds]
lopex has quit [Remote host closed the connection]
lopex has joined #ocaml
lggr has joined #ocaml
BiDOrD has joined #ocaml
lopex has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ocaml
mcclurmc_away is now known as mcclurmc
lopex has joined #ocaml
joewilliams has joined #ocaml
lggr has quit [Ping timeout: 260 seconds]
ocp1 has left #ocaml []
GnomeStoleMyBike has joined #ocaml
lggr has joined #ocaml
lggr has quit [Ping timeout: 252 seconds]
<yezariaely>
thelema: I really like the Qt documentation because they work with code examples, a lot. Is there any argument agains extending the batteries doc in this way?
<thelema>
none at all; please contribute as much examples as you can
<thelema>
if there's some other barrier to your contribution, let me know so I can lower it
lggr has joined #ocaml
chambart has joined #ocaml
<thelema>
I got started writing examples for some of the functions in... Substring, iirc. It's a bit tedious to just sit down and do.
Snark has quit [Quit: Quitte]
<yezariaely>
I would integrate these examples directly in the documentation of the functions not in an extra examples directory as I just saw in the repo.
<thelema>
I think there's a place for examples in the examples directory too.
<thelema>
but you're right, we need more example code in the docs.
<wmeyer>
yezariaely: thelema what would be really great, a usage patterns for common things that people can do using batteries
<yezariaely>
hmm I don't totally agree with building an additional documentation here.
<yezariaely>
I don't know if you are aware of the Qt documentation, but there, autogenerated doc and examples are combined into one html which I find very helpful.
<thelema>
I'm fine with the community adding whatever documentation it is willing to write.
<thelema>
I'm not able to sit down and document everything in batteries
<thelema>
with examples
<yezariaely>
ok, than we are walking in the same direction :)
<thelema>
:)
<yezariaely>
is there a mailinglist for batteries?