flux changed the topic of #ocaml to: 3.11.0+rc1 is out! | Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.0beta1 available from http://caml.inria.fr/pub/distrib/ocaml-3.11/ | Or grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html
struktured__ has joined #ocaml
sporkmonger has quit []
sporkmonger has joined #ocaml
sporkmonger has quit []
pumpkin has quit []
jeddhaberstro has quit []
<palomer> tries are the best.
tomh- has quit ["http://www.mibbit.com ajax IRC Client"]
Axioplase has joined #ocaml
jeddhaberstro has joined #ocaml
middayc has joined #ocaml
jlouis has quit [Read error: 131 (Connection reset by peer)]
Palace_Chan has joined #ocaml
middayc_ has quit [Read error: 110 (Connection timed out)]
hkBst has quit [Read error: 104 (Connection reset by peer)]
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
jknick has joined #ocaml
sporkmonger has joined #ocaml
sporkmonger has quit []
<thelema> http://www.hulu.com/hd/29272 <- Dr. Horrible's Sing Along Blog -- Neal Patrick Harris & Captain of Firefly in a superhero musical
jeremiah has joined #ocaml
Axioplase has quit ["bbl"]
Axioplase has joined #ocaml
jeddhaberstro has quit []
Yoric[DT] has joined #ocaml
Snark has joined #ocaml
middayc has quit []
Yoric[DT] has quit ["Ex-Chat"]
fremo has quit [Remote closed the connection]
mtrimpe has joined #ocaml
mfp has joined #ocaml
mbtrimpe has joined #ocaml
_zack has joined #ocaml
mbtrimpe has quit [Read error: 60 (Operation timed out)]
mbtrimpe has joined #ocaml
asabil has joined #ocaml
<flux> good morning
mtrimpe has quit [Connection timed out]
apples` has quit ["Leaving"]
mbtrimpe has quit [Connection timed out]
__me has joined #ocaml
Palace_Chan has quit ["Palace goes to sleep"]
Gionne has joined #ocaml
Axioplase has quit ["leaving"]
jeremiah has quit [Read error: 104 (Connection reset by peer)]
jeremiah has joined #ocaml
fschwidom has joined #ocaml
seafood has joined #ocaml
middayc has joined #ocaml
love-pingoo has joined #ocaml
vixey has joined #ocaml
Gionne has quit ["Leaving"]
seafood has quit []
hkBst has joined #ocaml
jeddhaberstro has joined #ocaml
sporkmonger has joined #ocaml
marmotine has joined #ocaml
asabil has quit [Read error: 110 (Connection timed out)]
tomh- has joined #ocaml
petchema has joined #ocaml
thelema has quit [Read error: 54 (Connection reset by peer)]
__me has left #ocaml []
pango has quit [Remote closed the connection]
sporkmonger has quit []
pango has joined #ocaml
Camarade_Tux has joined #ocaml
robocop has joined #ocaml
<robocop> Hello.
<robocop> I've got a problem to use streams with to top-level.
<robocop> I test "rlwrap camlp4o ocaml".
<robocop> But it doesn't work.
<robocop> I've you got an idea to use it ?
struktured__ has quit [Read error: 110 (Connection timed out)]
acatout has quit [Read error: 110 (Connection timed out)]
<robocop> Ho. I found it : rlwrap ocaml camlp4o.cma.
tomh- has quit ["http://www.mibbit.com ajax IRC Client"]
<Smerdyakov> Run 'ocaml' from Emacs and avoid the 'rlwrap'. ;)
acatout has joined #ocaml
struktured__ has joined #ocaml
love-pingoo has quit ["Connection reset by pear"]
acatout has quit [Read error: 60 (Operation timed out)]
olegfink has joined #ocaml
<olegfink> hi, been playing for the first time with ocamlyacc and ocamllex, and writing a simple ordered pair parser.
<olegfink> seems I'm doing something wrong with types:
<olegfink> I have type pair = Int of int | Pair of pair*pair in pair.ml and pair.mli
<olegfink> I mention %type <Pair.pair> top in .mly as said in the manual
<olegfink> but then when compiling pair.ml it says:
<olegfink> This expression has type Pair.pair but is here used with type pair
acatout has joined #ocaml
<olegfink> (the expression being the result of parsing)
<olegfink> that's pair.ml
struktured__ has quit [Read error: 104 (Connection reset by peer)]
thelema has joined #ocaml
Galdo has joined #ocaml
<Galdo> hi, i've written "open List;;" at the beggining of my file.ml but if i try to compile with "ocamlc file.ml" it won't let me use the standard function of the module List if i don't write "List." before every function
<Galdo> what can i do in order to be able to call the function of List without having to write List.*
<robocop> # open List;;
<robocop> # rev [1;2;3];;
<robocop> - : int list = [3; 2; 1]
<thelema> sounds like you're doing it right - can you try a minimal example?
<thelema> (and then pastebin the failure)
<olegfink> so, any ideas? ocamlbuild says Circular dependencies: "pair.cmo" already seen in [ "parser.cmo"; "lexer.cmo"; "pair.cmo" ]
<olegfink> but I don't yet understand what I have done wrong
<Galdo> actually i was wrong this is working great the problem was not coming from here
<Galdo> is there a graphical debugger for ocamldebug ?
<thelema> olegfink: modules can'd refer to each other in a circle - break the chain of dependencies somewhere.
<Galdo> epeire maybe
<olegfink> thelema: sure they can't, it's just that I don't understand where I am cycling the dependencies in a project analogous to the one in http://caml.inria.fr/pub/docs/manual-ocaml/manual026.html
<thelema> parser can't depend on pair.
<thelema> s/can't/shouldn't/
<Galdo> where can i download epeire the graphical version of ocamldebug ?
<Galdo> or maybe should i try camelia ? or maybe you have another idea ?
* thelema doesn't do graphical debuggers
<Galdo> i think i'll try simply with ocamldebug ..
<olegfink> aha, moving "main" from pair to main helped, thanks
fschwidom has quit [No route to host]
<olegfink> mhm, I can't get it right
<olegfink> http://pastebin.com/m750e5a34 -- lexer
<olegfink> http://pastebin.com/m105e10c2 -- parser
<olegfink> $ echo 1 | ./main.native
<olegfink> Fatal error: exception Failure("lexing: empty token")
Galdo has quit [Remote closed the connection]
* thelema has little skill at Lexer
<flux> shouldn't your lexer return EOL instead of raising Eof?
<olegfink> it returns EOL on '\n' and Eof on eof, as far as I understand
<olegfink> erm, sorry
<olegfink> flux: that was stupid, thanks
<olegfink> $ echo '(1,(2,3))' | ./main.native
<olegfink> (1, (2, 3))
<olegfink> that's inexpressibly leet.
itewsh has joined #ocaml
<vixey> olegfink, try echo '...' | sed -e 's/,/, /g'
<olegfink> ?
<flux> just a snarky comment on your accomplishment ;)
<olegfink> I know my code is that useless, but I was just learning ocaml^(lex yacc)
<olegfink> that '?' was about the fact that the sed command above is identity on the string of dots.
<flux> ... was to be replaced with your echo argument
<flux> olegfink, btw, if you get bored on some of the limitations ocamlyacc has, may I suggest to try menhir
<flux> it's a plug-in replacement for ocamlyacc, comes with excellent documentation and can do a lot of neat things
<vixey> olegfink, some examples of ocamlyacc here http://andrej.com/plzoo/
<vixey> oh
<vixey> Menhir sounds good
<flux> and it's being maintained also
<flux> iirc I saw an announcement not too long ago..
<olegfink> flux: nice, thanks
Yoric[DT] has joined #ocaml
<Yoric[DT]> hi
<Yoric[DT]> If anybody's interested, I've seen Xavier Leroy today.
<flux> wow, this must mean you're famous ;)
<flux> did you chat about batteries, other things?
<Yoric[DT]> Batteries, the pack problem and briefly cmxs.
<Yoric[DT]> Well, he seems to think good things of Batteries -- he had a few questions, he seemed to agree with out I/O revamp and the overall approach.
<flux> the pack problem is that packing makes everything get linked in?
<Yoric[DT]> I told him I wanted his blessing and it seems we have it :)
<Yoric[DT]> Yes.
<Yoric[DT]> Well, it seems he wants to address the problem but it's not simple.
<flux> using cmxs to work around that would be.. well, working around it
<flux> one benefit of the current approach is that people don't need to have anything ocaml-related installed to use ocaml binaries
<flux> (ocaml-generated binaries that is)
<Yoric[DT]> Are you sure?
* Yoric[DT] hasn't checked.
<flux> ldd says no bad dependencies
<flux> and I don't think there are any runtime dependencies either
<thelema> well, bytecode obviously needs ocaml
<flux> yeah, I was talking about native binaries, the context being *.cmxs..
<thelema> but I think you're right - binaries are quite standalone
<Yoric[DT]> ok
<flux> but there are two sides in it. if you have a distribution, where you already have all dependencies handled for you, using cmxs could reduce the global size of things
<flux> I would like to see that kind of stuff working somehow automatically, though
<flux> so, more in the domain of ocamlopt..
<flux> so all libraries would get the same treatment, not batteries specifically
<thelema> well, I'd make the case for two kinds of distribution of binaries - within package management (minimize size, shared libraries good) and for standalone software (minimize dependencies)
<flux> that sounds reasonable, but it doesn't conflict with the idea of integrating it with the compilation process
<flux> (make that "that sounds exactly what it should be")
<flux> akin to gcc -static, and gcc's default behavior
mtrimpe has joined #ocaml
fschwidom has joined #ocaml
jlouis has joined #ocaml
fschwidom has quit [Remote closed the connection]
jeddhaberstro has quit []
jeddhaberstro has joined #ocaml
MichaelGG has quit ["Leaving"]
robocop has quit [Read error: 110 (Connection timed out)]
apples` has joined #ocaml
tomh_ has joined #ocaml
tomh_ is now known as tomh--
tomh-- is now known as tomh_
tomh_ is now known as tomh
alexyk has joined #ocaml
seafood has joined #ocaml
_zack has quit [Read error: 54 (Connection reset by peer)]
fschwidom has joined #ocaml
_zack has joined #ocaml
pumpkin_ has joined #ocaml
Snark has quit ["Ex-Chat"]
sporkmonger has joined #ocaml
middayc has quit []
seafood has quit []
Camarade_Tux has quit ["Leaving"]
itewsh has quit ["KTHXBYE"]
Yoric[DT] has quit ["Ex-Chat"]
marmotine has quit ["mv marmotine Laurie"]
christo_m has joined #ocaml
<christo_m> http://pastebin.com/m1575ab38 <- anyway to let ocaml know that the a parameter is an integer
<christo_m> damn implicit types
jeddhaberstro has quit []
<palomer> let i f (n:int) a =
<alexyk> why does Calendar contain only Christian and Canadian holidays but no Jewish ones?
<alexyk> e.g. Corpus Christi but no Yom Kippur?
<alexyk> -- this is not PC and OCaml won't get US govt. funding
mbtrimpe has joined #ocaml
mtrimpe has quit [Read error: 104 (Connection reset by peer)]
jeddhaberstro has joined #ocaml