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)]