<philtor>
But then I try to do this and it doesn't:
<philtor>
# Lwt_io.read_char;;
<philtor>
# Error: Reference to undefined global `Lwt_io'
<philtor>
so the require of "lwt" worked, but couldn't find the Lwt_io module, it seems.
alexyk has quit [Read error: Connection reset by peer]
<philtor>
I'm running 3.12 and according to godi_console I've got the 2.2.1 version of lwt installed.
<thelema>
philtor: hmm... maybe that's in a different findlib module
<thelema>
at the command line, try ocamlfind list | grep lwt
<thelema>
is there a lwt_io (or lwt.io) package?
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
philtor has quit [Ping timeout: 240 seconds]
coucou747 has quit [Ping timeout: 255 seconds]
alexyk has joined #ocaml
AxleLonghorn has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
lopex has quit [Ping timeout: 240 seconds]
lopex has joined #ocaml
fraggle_ has quit [Ping timeout: 276 seconds]
alexyk has quit [Quit: alexyk]
groovy2shoes has left #ocaml []
fraggle_ has joined #ocaml
lopex has quit []
Amorphous has quit [Ping timeout: 272 seconds]
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
philtor has joined #ocaml
AxleLonghorn has left #ocaml []
Amorphous has joined #ocaml
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
eye-scuzzy has quit [Remote host closed the connection]
eye-scuzzy has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
alexyk has quit [Quit: alexyk]
ModusPwnens has joined #ocaml
<ModusPwnens>
Hello. Can someone help me with...well I don't really know what it's called
<ModusPwnens>
I'm working with .mly and .mll files
arubin has quit [Quit: arubin]
<ModusPwnens>
it's for an assignment, but it wasn't really explained at all and I don't understand the syntax
<ModusPwnens>
I've googled and found some documents but I am still confusewd.
<ModusPwnens>
I'm creating my own lexicon and parser I think..
<ModusPwnens>
Anyways, I've defined some tokens like <int> Num, and <string> Id
<ModusPwnens>
and then the start variable is of type <Nano.exp> exp
<ModusPwnens>
and when I try to define the rules for Id, it yells at me because it's not of type Nano.exp
<ModusPwnens>
Anyways, I don't really understand this and I was hoping someone could explain it to me..
<mrvn>
you need to ask your TA. Those types are something they defined.
ModusPwnens has quit [Ping timeout: 276 seconds]
ikaros has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ttamttam has joined #ocaml
tnguyen has joined #ocaml
ttamttam has quit [Remote host closed the connection]
philtor has quit [Ping timeout: 240 seconds]
edwin has joined #ocaml
ygrek has joined #ocaml
edwin has quit [Quit: Leaving.]
edwin has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
drunK has quit [Remote host closed the connection]
bacam has quit [Ping timeout: 276 seconds]
Snark has joined #ocaml
Associat0r has quit [Quit: Associat0r]
Yoric has joined #ocaml
tony_ has joined #ocaml
myu2 has joined #ocaml
bacam has joined #ocaml
Yoric has quit [Quit: Yoric]
cyanure has joined #ocaml
avsm1 has joined #ocaml
avsm3 has joined #ocaml
avsm1 has quit [Read error: Connection reset by peer]
ikaros has joined #ocaml
boscop has joined #ocaml
Obfuscate has quit [Ping timeout: 276 seconds]
Obfuscate has joined #ocaml
coucou747 has joined #ocaml
lopex has joined #ocaml
tony_ has quit [Ping timeout: 240 seconds]
RyanRN has joined #ocaml
avsm3 has quit [Quit: Leaving.]
Edward has joined #ocaml
tony_ has joined #ocaml
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
harrisonpartch has joined #ocaml
avsm has joined #ocaml
alexyk has joined #ocaml
sepp2k has quit [Quit: Leaving.]
RyanRN has quit [Quit: Leaving.]
ulfdoz has quit [Quit: deprecated]
alexyk has quit [Read error: Connection reset by peer]
ulfdoz has joined #ocaml
tnguyen has quit [Remote host closed the connection]
alexyk has joined #ocaml
RyanRN has joined #ocaml
alexyk has quit [Client Quit]
alexyk has joined #ocaml
orbitz has quit [Ping timeout: 240 seconds]
alexyk has quit [Read error: Connection reset by peer]
orbitz has joined #ocaml
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
Edward has quit [Ping timeout: 240 seconds]
alexyk has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
alexyk has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
alexyk has joined #ocaml
krktz has joined #ocaml
<krktz>
hi
<krktz>
i'm looking for a way to know if, during an integer addition/multiplication/division etc., a bit overflow happened
<krktz>
I first thought I could check the sign of the result, but it doesn't work in all cases (in max_int * 3, both sides are positive and the result is too, but it's still wrong)
<flux>
there are bit tricks for that
<flux>
or, rather, good recipes for detecting such situations
<flux>
I don't have a pointer, though, but perhaps google is your friend :)
<krktz>
:)
<thelema>
krktz: batteries has some code for doing this, iirc.