systems changed the topic of #ocaml to: Archive of Caml Weekly News http://pauillac.inria.fr/~aschmitt/cwn/ | ICFP Programming Contest 2003 http://www.dtek.chalmers.se/groups/icfpcontest/ | A tutorial http://merjis.com/richj/computers/ocaml/tutorial/ | Good free book http://cristal.inria.fr/~remy/cours/appsem/ | Mailing list (best mailing list ever for any computer language) http://caml.inria.fr/bin/wilma/caml-list
Smerdy has joined #ocaml
rox has quit [leguin.freenode.net irc.freenode.net]
teratorn has quit [leguin.freenode.net irc.freenode.net]
teratorn has joined #ocaml
rox has joined #ocaml
Smerdyakov has quit [Read error: 110 (Connection timed out)]
rox has quit [leguin.freenode.net irc.freenode.net]
teratorn has quit [leguin.freenode.net irc.freenode.net]
teratorn has joined #ocaml
rox has joined #ocaml
brwill|coffee has quit [Read error: 110 (Connection timed out)]
Smerdy is now known as Smerdyakov
Xcalibor has quit ["Terminando cliente"]
bk_ has quit ["I'll be back"]
bk_ has joined #ocaml
rox has quit [leguin.freenode.net irc.freenode.net]
teratorn has quit [leguin.freenode.net irc.freenode.net]
teratorn has joined #ocaml
rox has joined #ocaml
rox has quit [No route to host]
bk_ has quit ["I'll be back"]
jdrake has joined #ocaml
brwill|coffee has joined #ocaml
brwill|coffee is now known as brwill
ez4 has left #ocaml []
brwill has quit [Read error: 104 (Connection reset by peer)]
brwill has joined #ocaml
jdrake has quit ["Oops. This machine just fell asleep"]
foxster has quit [leguin.freenode.net irc.freenode.net]
foxster has joined #ocaml
foxster has quit [leguin.freenode.net irc.freenode.net]
foxster has joined #ocaml
mattam_ has joined #ocaml
buggs has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
polin8 has quit [Read error: 110 (Connection timed out)]
srv has joined #ocaml
rox has joined #ocaml
bk_ has joined #ocaml
ita|dead has quit ["kill me"]
<Yurik> is it SBCL-specific problem?
<Yurik> oops, sorry
buggs is now known as buggs|afk
brwill is now known as brwill_zzz
srv has quit [Remote closed the connection]
karryall has joined #ocaml
bk_ has quit ["I'll be back"]
lophty__ has joined #ocaml
lophty__ has quit ["ChatZilla 0.8.31 [Mozilla rv:1.4/20030624]"]
buggs|afk is now known as buggs
buggs|afk has joined #ocaml
buggs has quit [Nick collision from services.]
buggs|afk is now known as buggs
bk_ has joined #ocaml
Maddas has quit [Remote closed the connection]
srv has joined #ocaml
systems has joined #ocaml
polin8 has joined #ocaml
mrvn has joined #ocaml
srv has quit [Read error: 104 (Connection reset by peer)]
Xcalibor has joined #ocaml
srv has joined #ocaml
<Xcalibor> hiyas
<bk_> hey
<Xcalibor> what's up?
<bk_> not much
<Xcalibor> oh, i see :)
<bk_> :>
Vincenz has joined #ocaml
mrvn_ has quit [Read error: 110 (Connection timed out)]
<Vincenz> what's the io-library?
<Vincenz> (if I want to read binary files)
<bk_> pardon ?
<Vincenz> how do I read a binary file from ocaml?
<bk_> val in_channel_of_descr : file_descr -> Pervasives.in_channel
<bk_> Create an input channel reading from the given descriptor. The channel is initially in binary mode; use set_binary_mode_in ic false if text mode is desired.
<bk_> Unix module
<Vincenz> ah thanks
<bk_> file are opened initially in binary mode
<bk_> files
<Vincenz> thank you :)
<Vincenz> too bad it's not possible to read bytes :/
<Vincenz> Pervasives only has read_int and read_float
<bk_> val read : file_descr -> string -> int -> int -> int
<bk_> read fd buff ofs len reads len characters from descriptor fd, storing them in string buff, starting at position ofs in string buff. Return the number of characters actually read.
<mrvn> bytes are chars
<Vincenz> 8 bit?
<Vincenz> or 7 bit?
<bk_> 8
<Vincenz> ah thank you :)
* mrvn wouldn't use input_channel though.
<Vincenz> what would you use mrvn?
<bk_> read i guess
<mrvn> the Unix.file_descr
<Vincenz> ah, input_byte
<mrvn> Unix.read
<Vincenz> what do you think is faster to parse a binary file?
<Vincenz> inputting a byte at a time and interpreting?
<Vincenz> or reading a string and iterating over the string
<bk_> i'd read a string
* Vincenz nods
<mrvn> Read a string into a buffer
<bk_> buffers really have ... what was it .. 4 MB limit imposed on them ?
<Vincenz> hmm
<Vincenz> that'll be more than enough
<Vincenz> :)
<Vincenz> I assume the buffer must be an already existing string
<bk_> there's a buffer module
<bk_> Buffer.create
* Vincenz nods
<Vincenz> :)
<Vincenz> thnx for all the help
<bk_> :>
<Vincenz> Now just figure out a way to get 32 bit ints and 64 bit longs
<mrvn> Int32.t / Int64.t
<Vincenz> ah :)
<Vincenz> heh..
<mrvn> Write some C functions to read/write them though. Never understood why ocaml doesn't have them.
* Vincenz looks back through the module list wondering why there's now Float and Double, or are they 32 and 64 bit?
<mrvn> There is Float?
<mrvn> Or rather there is an extra Double module?
<mrvn> Is one host floating point and one IEEEE FP?
<Vincenz> there is no Double module
* Vincenz grrs
<Vincenz> I guess I should implement a Short, Byte Float and Double module :/
jdrake has joined #ocaml
systems has quit ["Client Exiting"]
<Vincenz> too bad there's no doc specifying the exact limits of all numbers
bk_ has quit ["I'll be back"]
<Vincenz> night
Vincenz has quit []
bk_ has joined #ocaml
jdrake has quit ["Oops. This machine just fell asleep"]
karryall has quit ["yes"]
Riastradh has quit [Connection timed out]
srv has quit [Read error: 104 (Connection reset by peer)]