ChanServ changed the topic of #ocaml to: http://icfpcontest.cse.ogi.edu/ -- OCaml wins | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/ | SWIG now supports OCaml
TachYon25 has quit [benford.freenode.net irc.freenode.net]
merriam has quit [benford.freenode.net irc.freenode.net]
TachYon25 has joined #ocaml
merriam has joined #ocaml
<Yurik_> merriam: hi
TachYon25 has quit [Read error: 104 (Connection reset by peer)]
<Yurik_> TachYon25: hi
<merriam> hello
Yurik__ has joined #ocaml
Yurik__ is now known as Yurik
jao has quit ["ERC v2.93 $Revision: 1.305 $ (IRC client for Emacs)"]
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
<Yurik> gl: wb
Yurik_ has quit [Read error: 104 (Connection reset by peer)]
skylan has quit [Read error: 104 (Connection reset by peer)]
Yurik has quit [Read error: 110 (Connection timed out)]
skylan has joined #ocaml
<whee> hrmf can't get Arg.parse_argv to work correctly :\
<whee> doesn't appear to be actually parsing. gah
<whee> can I not call Arg.parse or Arg.parse_argv multiple times?
<whee> nope. apparently I can't. there's a current ref in arg.ml that doesn't get reset
<whee> :|
<whee> hopefully I can modify it
<whee> and I can. nevermind. works now :)
graydon has quit ["xchat exiting.."]
Yurik has joined #ocaml
<Yurik> re
Yurik_ has joined #ocaml
Yurik__ has joined #ocaml
Yurik has quit [Read error: 54 (Connection reset by peer)]
Yurik_ has quit [Read error: 104 (Connection reset by peer)]
Yurik__ has quit [Read error: 104 (Connection reset by peer)]
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
merriam has quit [SendQ exceeded]
merriam has joined #ocaml
karryall has joined #ocaml
mrvn_ has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
systems has joined #ocaml
mattam has joined #ocaml
systems has quit [Read error: 110 (Connection timed out)]
Petruchio has joined #ocaml
systems has joined #ocaml
systems has quit ["Client Exiting"]
graydon has joined #ocaml
gl has quit [Read error: 54 (Connection reset by peer)]
gl has joined #ocaml
<mrvn_> # Array.make 4200000 0;;
<mrvn_> Exception: Invalid_argument "Array.make".
<mrvn_> Can anyone explain that to me?
<karryall> # Sys.max_array_length ;;
<karryall> - : int = 4194303
<karryall> your array's too big
nerdlor has joined #ocaml
nopcode has joined #ocaml
<nopcode> hey
<nopcode> whats the deal with having to use different ocaml interpreter executables when using gtk ?
<xtrm> lablgtk
<nopcode> _why_ ?
<nopcode> why does the interpreter i need to use depend on what libraries i'm using ?
gl has quit [Read error: 54 (Connection reset by peer)]
gl has joined #ocaml
karryall has quit ["bye .."]
<Segora> nopcode: convenience
<Segora> nopcode: you could also use the plain vanilla toplevel in combination with some #loads
<Segora> custom toplevels are only mandatory when you need statically linked C objects
smkl has quit [Remote closed the connection]
smkl has joined #ocaml
<nopcode> hm
<nopcode> Segora: and the loads would need to be removed when compiling ?
<nopcode> which debian package do i need for ocaml opengl bindings ?
<Segora> apt-get install liblablgl-dev
<nopcode> k
<Segora> nopcode: the load commands don't go in the source files
<nopcode> segora: but ?
<Segora> nopcode: they're only valid for the interactive prompt of the toplevel
<nopcode> hm
<Segora> % ocaml
<Segora> Objective Caml version 3.06
<Segora> # #load "unix.cma";;
<Segora> or in your case:
<Segora> % ocaml -I +lablgtk
<Segora> Objective Caml version 3.06
<Segora> # #load "lablgtk.cma";;
<Segora> this is roughly equivalent to starting the lablgtk toplevel as far as I can see
<nopcode> hm
<nopcode> so how do i open an opengl window (without gtk) ?
<Segora> I don't know. Didn't do much with OpenGL yet.
<Segora> look at the examples
<nopcode> right :)
<Segora> this is /usr/share/doc/liblablgl-ocaml-dev/examples on a Debian system
<nopcode> ok thanks :)
<nopcode> what is ocamlopt.opt ?
<nopcode> and where do i get it ?
nerdlor has left #ocaml []
merriam has quit [Excess Flood]
merriam has joined #ocaml
TachYon25 has joined #ocaml
<Segora> nopcode: apt-get install ocaml-native-compilers
<Segora> ocamlopt is the native code compiler. all the *.opt ocaml tools are native code versions of the respective tools.
<Segora> that means: ocamlopt.opt is the native code compiler compiled to native code
malc has joined #ocaml
nopcode has quit [Read error: 113 (No route to host)]
malc has quit ["no reason"]
TachYon25 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
mattam has quit ["reboot"]
mattam has joined #ocaml
Miwong has joined #ocaml
Nicolas has joined #ocaml
<Nicolas> hello
<gl> 'lo
<Nicolas> does someone know if there is a way to do extensible records in Ocaml?
<gl> des enregistrement extensibles? t'as pas un exemple ?
Torquemada has joined #ocaml
Nicolas has quit [Read error: 110 (Connection timed out)]
Petruchio has quit ["[x]chat"]
Torquemada has quit ["Lost terminal"]
gl has quit ["remember the girl, abused with forks, knives and razor blades!"]
gl has joined #ocaml
taw has joined #ocaml
skylan has quit ["Reconnecting"]
skylan has joined #ocaml
gl has quit ["remember the girl, abused with forks, knives and razor blades!"]
gl has joined #ocaml
<whee> anyone know of an example or tutorial of using the Stream module/streams for parsing?
<whee> all I can seem to find are "this is how they work, you figure out how to use them"
Miwong has quit [Remote closed the connection]
Yurik has joined #ocaml
Yurik_ has joined #ocaml
Yurik__ has joined #ocaml
Yurik has quit [Read error: 54 (Connection reset by peer)]
Yurik_ has quit [Read error: 104 (Connection reset by peer)]
Yurik__ is now known as Yurik
gl has quit [Connection timed out]
mattam has quit ["zzzZZZZzzz"]
RichiH_ has joined #ocaml
* RichiH_ waves
RichiH_ is now known as RichiH
<Yurik> RichiH: hi
<RichiH> how can i tell ocaml "foo is of type bar" without actually assigning any value to it?
<RichiH> i.e. m is int
<mrvn_> (foo:bar)
<RichiH> # (m:int);;
<RichiH> Unbound value m
<mrvn_> Of cause you can't have unbound values.
<mrvn_> let foo (x:int) = 1;;# let foo (x:int) = 1;;
<mrvn_> val foo : int -> int = <fun>
<RichiH> so i have to actually use it in the same <start> ... ;; sequence?