gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
cabbageb1t has quit [Ping timeout: 248 seconds]
cabbagebot has joined #ocaml
cabbagebot has quit [Ping timeout: 240 seconds]
ImAlsoGreg has quit [Ping timeout: 264 seconds]
Playground has quit [Quit: test]
yroeht has joined #ocaml
cdidd has joined #ocaml
serialk has joined #ocaml
ImAlsoGreg has joined #ocaml
thizanne has quit [Ping timeout: 246 seconds]
cabbagebot has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
scri has joined #ocaml
madroach has quit [Ping timeout: 265 seconds]
<scri> i'm having trouble getting list comprehensions to work in the toplevel
<scri> and can't find the documentation
madroach has joined #ocaml
<thelema> scri: using batteries?
<scri> yes, but also camlp4
<scri> i tried batteries fist
<scri> first*
<scri> after #require "batteries.pa_comprehensions.syntax";;
<scri> i still got syntax errors, what else do i need to do?
<thelema> first you have to enable camlp4
<thelema> try just pasting this in:
<thelema> Topfind.standard_syntax();
<thelema> Topfind.load_deeply ["dynlink"; "camlp4"; "batteries.pa_string.syntax";
<thelema> "batteries.pa_comprehension.syntax"];
<thelema> with two ; at the end
<thelema> (this is part of the batteries battop.ml file for initializing the toplevel
<thelema> (assuming you've loaded topfind)
<scri> # /usr/lib/ocaml/estring: added to search path
<scri> /usr/lib/ocaml/estring/pa_estring.cmo: loaded
<scri> Exception: Symtable.Error _.
<thelema> or you can paste the ocamlinit from batteries into your ~/.ocamlinit
<thelema> hmm... are you using ocaml 4.00?
<scri> ill try that next
<scri> yes
<thelema> ah, I'll admit that the syntax extensions are untested under 4.00
<scri> damn
<thelema> I guess they're not as fixed as I hoped.
<scri> ah it is working with the ocamlint file
<thelema> ah, nice.
<scri> thanks. it's a bit frustrating with everything being separate
<scri> yesterday i had a problem because ocamlfind wasn't compiled with 4.00
<scri> if only that were distributed with ocaml, it wouldnt be an issue...
<thelema> if you're building things by hand, you may wish to have use ocamlbrew, which automates all this building
<thelema> *used
<scri> what about ocamlbuild?
<thelema> ocamlbuild is part of ocaml
<thelema> it doesn't build ocaml itself, it builds other projects written in ocaml
<thelema> ocamlbuild is part of the OCaml standard distribution, that is.
<scri> hm, some time i will sort all of this out
<scri> for now i have a project due...
<scri> thanks again
<thelema> you're welcome.
avsm1 has quit [Quit: Leaving.]
<scri> is there something to convert a BatEnum to a list?
<thelema> List.of_enum
<scri> nice
cacho has quit [Read error: Connection reset by peer]
cacho has joined #ocaml
wtetzner has quit [Remote host closed the connection]
hcarty2 has joined #ocaml
cabbagebot has quit [Ping timeout: 264 seconds]
thizanne has joined #ocaml
sepp2k1 has quit [Remote host closed the connection]
cabbagebot has joined #ocaml
cabbagebot has quit [Ping timeout: 272 seconds]
Progster has joined #ocaml
ankit9 has joined #ocaml
jave_ has joined #ocaml
jave has quit [Read error: Connection reset by peer]
jave_ is now known as jave
Progster has quit [Ping timeout: 244 seconds]
Znudzon has quit [Quit: Leaving]
ankit9 has quit [Ping timeout: 272 seconds]
ankit9 has joined #ocaml
hcarty3 has joined #ocaml
hcarty2 has quit [Ping timeout: 260 seconds]
ulfdoz has joined #ocaml
avsm has joined #ocaml
<adrien> morning
hcarty2 has joined #ocaml
hcarty3 has quit [Read error: Connection reset by peer]
pango has quit [Remote host closed the connection]
pango has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Read error: Connection reset by peer]
ulfdoz has quit [Ping timeout: 264 seconds]
avsm has joined #ocaml
avsm1 has quit [Read error: Connection reset by peer]
ftrvxmtrx has quit [Quit: Leaving]
SuperNoeMan has joined #ocaml
<SuperNoeMan> hey, anybody here?
<_habnabit> nobody
<_habnabit> certainly not 119 people
<SuperNoeMan> ah ok
pango is now known as pangoafk
<SuperNoeMan> man alive, I'm new to functional programming
<SuperNoeMan> I'm working with coq, but the people at coq don't want to talk
<SuperNoeMan> coq is a functional language just like ocaml, so...
<SuperNoeMan> do you think you could answer?
<_habnabit> try asking a question
<SuperNoeMan> Alright
<SuperNoeMan> if you look at this
<SuperNoeMan> you will see I'm trying to find odd members of a list
<SuperNoeMan> when I trun the Proof, the system shows that [1,2,3] is returned
<SuperNoeMan> 2 should not be in there, but with my definitions
<SuperNoeMan> I can't see why it is
<SuperNoeMan> _habnabit:
cago has joined #ocaml
flx_ has joined #ocaml
SuperNoeMan has quit [Remote host closed the connection]
flux has quit [Remote host closed the connection]
flx_ is now known as flux
ankit9 has quit [Quit: Leaving]
Ptival has joined #ocaml
ontologiae has joined #ocaml
djcoin has joined #ocaml
ontologiae has quit [Ping timeout: 264 seconds]
hcarty3 has joined #ocaml
hcarty2 has quit [Ping timeout: 246 seconds]
ankit9 has joined #ocaml
cdidd has quit [Read error: Operation timed out]
avsm1 has joined #ocaml
avsm has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
avsm1 has quit [Read error: No route to host]
avsm has joined #ocaml
chambart has joined #ocaml
avsm has quit [Ping timeout: 252 seconds]
Snark has joined #ocaml
Yoric has joined #ocaml
cago has quit [Quit: Leaving.]
ontologiae has joined #ocaml
jave has quit [Read error: Connection reset by peer]
hcarty2 has joined #ocaml
hcarty3 has quit [Ping timeout: 246 seconds]
jave has joined #ocaml
eni has joined #ocaml
Yoric has quit [Ping timeout: 244 seconds]
ontologi1e has joined #ocaml
ontologiae has quit [Read error: Connection reset by peer]
avsm has joined #ocaml
err404 has joined #ocaml
jamii has joined #ocaml
leoncamel has quit [Remote host closed the connection]
hcarty2 has quit [Read error: Connection reset by peer]
hcarty2 has joined #ocaml
ontologi1e has quit [Read error: Connection reset by peer]
hcarty3 has joined #ocaml
hcarty2 has quit [Read error: Connection reset by peer]
hcarty2 has joined #ocaml
hcarty3 has quit [Read error: Connection reset by peer]
ontologiae has joined #ocaml
hcarty2 has quit [Ping timeout: 246 seconds]
cago has joined #ocaml
avsm has quit [Quit: Leaving.]
tufisi has joined #ocaml
avsm has joined #ocaml
avsm has quit [Client Quit]
larhat has quit [Quit: Leaving.]
snarkyboojum has quit [Quit: ...]
snarkyboojum has joined #ocaml
snarkyboojum has quit [Client Quit]
snarkyboojum has joined #ocaml
bddn has quit [Ping timeout: 244 seconds]
snarkyboojum has quit [Quit: ...]
snarkyboojum has joined #ocaml
dsheets_icfp has joined #ocaml
<dsheets_icfp> Hello, I am playing with GADT. I have <http://ocaml.nopaste.dk/p14242> but I get <http://ocaml.nopaste.dk/p14243>. Why?
err404 has quit [Ping timeout: 246 seconds]
<dsheets_icfp> If you know and I am not around, please <mailto:sheets@ashimaarts.com>. I would really appreciate it. ;-) thx
err404 has joined #ocaml
<dsheets_icfp> nvm i am dumb in many, many ways... ignore it all
dsheets_icfp has quit [Quit: Page closed]
avsm has joined #ocaml
cago has quit [Quit: Leaving.]
Progster has joined #ocaml
chambart has quit [Ping timeout: 246 seconds]
<ontologiae> join -fn macbidouille
ontologiae has quit [Ping timeout: 268 seconds]
_andre has joined #ocaml
miniwolf has joined #ocaml
larhat has joined #ocaml
larhat1 has joined #ocaml
larhat has quit [Read error: No route to host]
Progster has quit [Ping timeout: 246 seconds]
brendan has quit [Read error: Connection reset by peer]
brendan has joined #ocaml
avsm has quit [Quit: Leaving.]
BiDOrD has joined #ocaml
BiDOrD_ has quit [Ping timeout: 245 seconds]
Yoric has joined #ocaml
<miniwolf> my rule is expecting Ast.access * bool * bool * Ast.typeexp, but because I have a subrule it is complaining about getting Ast.access * (bool * bool) * Ast.typeexp. Can I satisfy this somehow?
<miniwolf> Anyone?
<hcarty> miniwolf: Do you have an example you could show?
<miniwolf> yea sure. Wait a sec
<hcarty> thelema: I've pushed some updates to my bounded branch. `u (for [u]nbounded]) replaces None for the min and max bounds. I also added some basic tests.
<miniwolf> ohh wait! That's wrong
<miniwolf> There we go
<hcarty> Sorry, I don't think I can help with this. Hopefully someone else can though. I'm not familiar enough with the tool to know how that translates into raw OCaml code.
<miniwolf> Yeah this menhir uses parser.mly to parse through the .java file.
err404_ has joined #ocaml
err404_ has quit [Read error: Connection reset by peer]
iZsh` has quit [Quit: Coyote finally caught me]
chambart has joined #ocaml
err404 has quit [Remote host closed the connection]
err404 has joined #ocaml
Playground has joined #ocaml
cago has joined #ocaml
miniwolf has quit [Remote host closed the connection]
err404 has quit [Ping timeout: 246 seconds]
<larhat1> is there any tool to create local opam-repo? or i should copy opam-repository and change it? can't find any docs on creating repositories yet
gnuvince has quit [Ping timeout: 252 seconds]
Playground has quit [Ping timeout: 268 seconds]
Playground has joined #ocaml
err404 has joined #ocaml
Ptivalternative has joined #ocaml
strlen has quit [Ping timeout: 240 seconds]
strlen has joined #ocaml
Ptival has quit [Ping timeout: 240 seconds]
paolooo has joined #ocaml
chispita has joined #ocaml
cabbagebot has joined #ocaml
jave has quit [Read error: Connection reset by peer]
jave has joined #ocaml
fraggle_laptop has joined #ocaml
ontologiae has joined #ocaml
gnuvince has joined #ocaml
cago has quit [Quit: Leaving.]
ankit9 has quit [Quit: Leaving]
bddn has joined #ocaml
paolooo has quit [Ping timeout: 245 seconds]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
scri has quit [Ping timeout: 276 seconds]
sepp2k has joined #ocaml
larhat has joined #ocaml
larhat1 has quit [Read error: Connection reset by peer]
larhat1 has joined #ocaml
larhat has quit [Ping timeout: 268 seconds]
eni has quit [Ping timeout: 244 seconds]
cabbagebot has quit [Ping timeout: 244 seconds]
cago has joined #ocaml
tufisi has quit [Ping timeout: 260 seconds]
emmanuelux has quit [Quit: emmanuelux]
emmanuelux has joined #ocaml
Tobu has quit [Ping timeout: 272 seconds]
Tobu has joined #ocaml
jonafan has quit [Ping timeout: 245 seconds]
cabbagebot has joined #ocaml
scri has joined #ocaml
jamii has quit [Ping timeout: 264 seconds]
Ptivalternative is now known as Ptival
cago has quit [Quit: Leaving.]
jamii has joined #ocaml
Tobu has quit [Ping timeout: 272 seconds]
cabbagebot has quit [Ping timeout: 240 seconds]
emmanuelux has quit [Remote host closed the connection]
Tobu has joined #ocaml
jamii has quit [Ping timeout: 252 seconds]
emmanuelux has joined #ocaml
err404 has quit [Remote host closed the connection]
cabbagebot has joined #ocaml
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
cabbagebot has quit [Ping timeout: 272 seconds]
cago has joined #ocaml
err404 has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
cago has quit [Client Quit]
scri has quit [Ping timeout: 246 seconds]
cago has joined #ocaml
larhat1 has quit [Quit: Leaving.]
scri has joined #ocaml
Playground has quit [Ping timeout: 246 seconds]
jonafan has joined #ocaml
cago has quit [Ping timeout: 260 seconds]
scri has quit [Ping timeout: 246 seconds]
eni has joined #ocaml
scri has joined #ocaml
chambart has quit [Ping timeout: 252 seconds]
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
sepp2k1 has joined #ocaml
sepp2k has quit [Ping timeout: 260 seconds]
ftrvxmtrx has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
fraggle_laptop has quit [Remote host closed the connection]
<thelema> hcarty: I don't understand why bounding of_ord uses two lower and upper bounds
<thelema> hcarty: what's the use case?
eni has quit [Ping timeout: 264 seconds]
Yoric has joined #ocaml
cdidd has joined #ocaml
err404 has quit [Remote host closed the connection]
iZsh has joined #ocaml
djcoin has quit [Quit: WeeChat 0.3.7]
pangoafk is now known as pango
avsm has joined #ocaml
ontologiae has quit [Ping timeout: 244 seconds]
Yoric has quit [Ping timeout: 246 seconds]
scri has quit [Ping timeout: 246 seconds]
TDJACR has quit [Read error: Operation timed out]
TDJACR has joined #ocaml
rwmjones has quit [Read error: Operation timed out]
gnuvince has quit [Ping timeout: 255 seconds]
gnuvince has joined #ocaml
gnuvince has quit [Ping timeout: 252 seconds]
rwmjones has joined #ocaml
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
larhat has joined #ocaml
Ptival has quit [Ping timeout: 245 seconds]
<thelema> hcarty: also, I can see three variants of the bounding module: saturating (take out of range and bring to max/min), modulo (out of range -> wrap around) and exception. Is the bounded_of_ord_chain function able to implement all three, and if so, why not implement bounding_of_ord using _chain?
<thelema> hcarty: maybe we should have helper functions for all three variants
<thelema> and this leads nicely to extending integer arthmetic, although that requires a different implementation than the bounding function
osa1 has joined #ocaml
avsm has quit [Quit: Leaving.]
Ptival has joined #ocaml
avsm has joined #ocaml
osa1 has quit [Quit: Konversation terminated!]
avsm has quit [Quit: Leaving.]
_andre has quit [Quit: leaving]
cago has joined #ocaml
avsm has joined #ocaml
Snark has quit [Quit: Quitte]
cago has quit [Ping timeout: 246 seconds]
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
cdidd has quit [Read error: Connection reset by peer]
Xizor has joined #ocaml
emmanuelux has quit [Quit: emmanuelux]
Yoric has joined #ocaml
wmeyer has joined #ocaml
avsm has quit [Quit: Leaving.]
Yoric has quit [Ping timeout: 246 seconds]
hyperboreean has quit [Ping timeout: 240 seconds]
hyperboreean has joined #ocaml
<mfp> has anybody used the memprof patch for 3.12.1 recently? I'm trying it on a trivial example, and heapstats.opt just dies with End_of_file
<mfp> http://pastebin.com/index/QvnqM51K (+ forgot to show that the heap dump is not empty)
chambart has joined #ocaml
Xizor has quit []
<wmeyer> damn, how painful is to fir texlive with 8GB SDD
eni has joined #ocaml
eni has quit [Client Quit]
eni has joined #ocaml
<mfp> for the record: the heapstats program included in the memprof patch for 3.12.1 is 32-bit only but works fine with a trivial patch http://pastebin.com/BQgPD7vD
rwmjones has quit [Ping timeout: 255 seconds]
chambart has quit [Ping timeout: 245 seconds]
<hcarty> thelema: default_low = the value to return when the argument is < min; default_max = the value to return when the argument is > max
<hcarty> thelema: If default_(low|high) = None then an exception is raised by the make_exn function for out of bounds values
<hcarty> thelema: If default_(low|high) = Some x then x is returned by the make_exn function for out of bounds values
eni has quit [Quit: Leaving]
<hcarty> thelema: The three cases you listed are the main cases I see for this module as well. That said, the _chain function could be used for more complex purposes if someone wanted to use it that way.
<mfp> any compiler experts around? http://pastebin.com/6KGsPeU0
<mfp> (ocaml memprof stuff again)
<mfp> I guess just Repr_unknown might do
<hcarty> thelema: bounding_of_ord could definitely be implemented using _chain. I may do that but haven't yet as I'd like to benchmark both implementations since I expect the bounding_of_ord case will cover the most common cases (out of range = min/max; out of range raises an exception)
<hcarty> thelema: I've put a bit of thought into a proper bounded integer module implementation. It would be a nice thing to have.
<hcarty> thelema: case 1- (bounding_of_ord ~default_low:min ~default_max:max Foo.ord ~min ~max)
<mfp> hcarty: btw., first use of ocamlbrew :) it ignored the -p /path/to/memprof-patch param I gave it (not that it would have worked anyway, since it involved a nonstd build sequence with an expected error in the middle), so I ended up building the patched ocaml manually atop ocamlbrew's structure
<mfp> but there might be a bug in how it handles -p (or maybe I did something stupid, as I said it's my first try)
rwmjones has joined #ocaml
avsm1 has joined #ocaml
ontologiae has joined #ocaml
avsm1 has quit [Quit: Leaving.]
emmanuelux has joined #ocaml
ontologiae has quit [Ping timeout: 246 seconds]
larhat has quit [Quit: Leaving.]
fraggle_ has quit [Read error: Connection timed out]