flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
delamarche_ has joined #ocaml
delamarche has quit [Read error: 110 (Connection timed out)]
Palace has joined #ocaml
delamarche has joined #ocaml
delamarche_ has quit [Connection timed out]
<Palace> i have a type unop in a module A...and a type defined the same in a module B...can i cast/convert one to another ?
seafood has joined #ocaml
seafood has quit []
L4m3r has joined #ocaml
jeddhaberstro has quit []
snhmib has quit ["Good riddance!"]
<tsuyoshi> is it the same type defined twice?
<thelema> Palace: if the type is public in both modules, you don't need a cast - it's the same type. If either type is private, maybe provide a conversion function that does nothing to convert.
<Palace> thelema, oh thanks, i ended up doing a match lol
<L4m3r> so I'm working on a homework assignment, and one of the tasks is to make a sort of wrapper for the Random module that hides its "state based" nature
<L4m3r> I have to set the internal seed to a value that is passed to this wrapper- an int, How would I do that? the assignment says I should only use Random.get_state and Random.set_state, and the call to Random.int
<L4m3r> is there some way to convert an integer to a Random.State type?
<thelema> kinda: Random.init
<L4m3r> hm
<L4m3r> I really wish I knew how the professor intends us to do it
<L4m3r> the ability to set the seed will allow him to test and grade our work automatically, since it will have predictable results when the random functions are called
<L4m3r> thanks :)
Palace has quit ["Leaving"]
sporkmonger has quit []
ppsmimou has quit [Read error: 110 (Connection timed out)]
seafood has joined #ocaml
ppsmimou has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood_ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
seafood__ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
|Jedai| has joined #ocaml
seafood_ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
seafood_ has quit [Client Quit]
|Jedai| has quit [Success]
|Jedai| has joined #ocaml
seafood has quit [Read error: 110 (Connection timed out)]
seafood__ has quit [Read error: 110 (Connection timed out)]
delamarche has quit [Read error: 104 (Connection reset by peer)]
Palace_Chan has quit [Client Quit]
filp has joined #ocaml
filp has quit ["Bye"]
mishok13 has joined #ocaml
Palace_Chan has joined #ocaml
Camarade_Tux has joined #ocaml
seafood has joined #ocaml
seafood_ has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood_ has quit [Read error: 54 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood_ has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
batcoder-7 has quit [Read error: 104 (Connection reset by peer)]
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
Palace_Chan has quit ["Palace goes to sleep"]
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
Camarade_Tux has quit []
seafood_ has quit []
OChameau has joined #ocaml
Associat0r has joined #ocaml
rwmjones has joined #ocaml
L4m3r has left #ocaml []
marmotine has joined #ocaml
GustNG has joined #ocaml
Yoric has joined #ocaml
<Yoric> Hi
* Yoric has finally taken the time to configure a ssh tunnel at work.
rby has joined #ocaml
* Yoric has suddenly lost all his ocamldoc documentation after some unknown manipulation.
* Yoric has about 24h to get that documentation back.
* Yoric starts the timer.
<flux> ah, our very own episode of 24
<flux> yoric, do the terrorists win otherwise?
<Yoric> Yeah.
<Yoric> Mmmhh....
<Yoric> The culprit seems to be sexplib.
<flux> the plot thickens!
* Yoric is going to bash a few heads and return.
<Yoric> Heads bashed, documentation still missing.
<Yoric> thelema: ping
Submarine has joined #ocaml
Submarine has quit [Read error: 110 (Connection timed out)]
filp has joined #ocaml
rwmjones_ has joined #ocaml
Snark has joined #ocaml
sporkmonger has joined #ocaml
<Yoric> A daring rescue op successfully managed to recover part of the documentation.
<ertai[NP]> Yoric: pong
<Yoric> mmmhhh....
<Yoric> Can't remember what I had in mind.
<Yoric> Thanks for the pong, though :)
<ertai[NP]> Ok np
* Yoric enjoys immensely error messages stating that there's a typing problem at line 7710.
<Yoric> Ok, rescupe op 2 is ready.
<Yoric> Launching make doc.
seafood has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit []
seafood has joined #ocaml
Camarade_Tux has joined #ocaml
seafood_ has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
<thelema> Yoric: ping
seafood_ has quit [Read error: 104 (Connection reset by peer)]
<thelema> Yoric: one bug in your merge: first line of Rope.of_ustring should be [let lens = STRING.length s in] -- we want the length in unicode chars, not the length in bytes.
seafood has joined #ocaml
<thelema> other than that, good job.
<thelema> back in a bit.
Submarine_ has joined #ocaml
rwmjones has quit ["Closed connection"]
hkBst has joined #ocaml
<thelema> gotta go, bye
Submarine_ has quit [Read error: 110 (Connection timed out)]
seafood has quit []
rwmjones_ is now known as rwmjones
Snark has quit ["Ex-Chat"]
Yoric has quit ["Ex-Chat"]
munga has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
Camarade_Tux has quit [Remote closed the connection]
willb has joined #ocaml
Camarade_Tux has joined #ocaml
<Smerdyakov> For my new programming language, I want both an Emacs mode and syntax-highlighted pretty-printing to web pages. What's the fastest route to achieving both? Are there good ways of sharing code?
GustNG1 has joined #ocaml
mishok13 has quit [Read error: 145 (Connection timed out)]
GustNG has quit [Read error: 110 (Connection timed out)]
filp has quit ["Bye"]
Submarine has joined #ocaml
OChameau has quit ["Leaving"]
longh has joined #ocaml
ozy` has joined #ocaml
snhmib has joined #ocaml
xevz has quit [Read error: 110 (Connection timed out)]
<guyzmo> hi
tomh-- has joined #ocaml
Palace has joined #ocaml
Palace has quit [Client Quit]
Palace_Chan has joined #ocaml
xevz has joined #ocaml
<Palace_Chan> im trying to List.fold_left in ocamlyacc with code like this: http://pastebin.com/d74cae1ff
<Palace_Chan> but i keep getting this error : File "parser.mly", line 16, characters 9-70:
<Palace_Chan> This expression has type 'a list but is here used with type Cfast.exp
<Palace_Chan> think i fixed it, these type errors.....
snhmib has quit ["Good riddance!"]
<guyzmo> ugh
<guyzmo> there's something I don't get... in my lexer I put 'comment = parse: | "*)" { () }' to end the comment
GustNG has joined #ocaml
<guyzmo> but when I compile, I get : 'This expression has type unit but is here used with type Parser.token'
<guyzmo> what I don't understand is that in other lexers I wrote or took, has been done the same, and it works..
<guyzmo> so I'm certainly missing something, it's surely stupid, but I can't see what's wrong :/
Submarine has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
GustNG has quit ["Leaving."]
longh has quit [Read error: 104 (Connection reset by peer)]
GustNG1 has quit [Read error: 110 (Connection timed out)]
struktured has quit [Read error: 60 (Operation timed out)]
jeddhaberstro has joined #ocaml
Palace_Chan has quit ["Leaving"]
Asmadeus has quit [Read error: 104 (Connection reset by peer)]
Asmadeus has joined #ocaml
struktured has joined #ocaml
struktured has quit [Read error: 104 (Connection reset by peer)]
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
r0bby has quit [Client Quit]
r0bby has joined #ocaml
Yoric[DT] has joined #ocaml
seafood has joined #ocaml
Submarine has quit ["Leaving"]
<Yoric[DT]> Ok, documentation successfully rescued.
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Client Quit]
hkBst has quit [Read error: 110 (Connection timed out)]
grirgz has joined #ocaml
<grirgz> hi
<grirgz> how about ocamlbuild, is it usable in production ?
Yoric[DT] has quit ["Ex-Chat"]
tomh-- has quit ["http://www.mibbit.com ajax IRC Client"]
Camarade_Tux has quit []
r0bby has quit [Connection timed out]
marmotine has quit ["mv marmotine Laurie"]
willb has quit ["Leaving"]
r0bby has joined #ocaml
nyingen has joined #ocaml
<nyingen> so, say I compile an ocaml interface to a C library in some directory $HOME/foolib/
<nyingen> how do I include it into my ocaml program?
<nyingen> I looked at ocaml-tutorial.org and the Ocaml manual, but couldn't find this information
<nyingen> aha, forgot to read that part
<nyingen> neat, seems to work
<nyingen> thanks
pattern has quit [calvino.freenode.net irc.freenode.net]
pattern has joined #ocaml
pantsd has joined #ocaml
nyingen has quit ["leaving"]
Associat0r has quit []