two-face changed the topic of #ocaml to: OCaml 3.05 released: http://caml.inria.fr/ocaml/distrib.html (expect 3.06 soon) | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/
gl has joined #ocaml
gene9 has joined #ocaml
gene9 has quit ["."]
yangsx has joined #ocaml
yangsx has quit ["Client Exiting"]
door has quit ["leaving"]
Yurik has joined #ocaml
Yurik has left #ocaml []
Yurik-- has joined #ocaml
<Yurik--> re
jaene has quit [vinge.openprojects.net irc.openprojects.net]
smkl has quit [vinge.openprojects.net irc.openprojects.net]
smkl has joined #ocaml
jaene has joined #ocaml
karryall has joined #ocaml
* Yurik-- is meditating on recursive classes + type problem. ummm
xtrm has joined #ocaml
<xtrm> hello world
Yurik-- has quit [Read error: 104 (Connection reset by peer)]
Dalroth has joined #ocaml
derfy has joined #ocaml
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
kruskal has joined #ocaml
TimFreeman has joined #ocaml
<TimFreeman> Does lablgtk support writing new widgets in OCAML?
karryall has quit ["bye .."]
derfy has quit []
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
<smkl> TimFreeman: see examples/tictactoe.cmo
<TimFreeman> I see. Thanks.
<smkl> i don't know why it would be useful, though
<TimFreeman> The widget I want to make is like the text widget, except you can highlight any set of characters on the screen.
TimFreeman has left #ocaml []
xtrm has quit [Read error: 110 (Connection timed out)]
kruskal has left #ocaml []
Dalroth has quit [Read error: 104 (Connection reset by peer)]
xtrm has joined #ocaml
Dalroth has joined #ocaml
heaveng has joined #ocaml
heaveng has left #ocaml []
gl is now known as Torquemada
jankr_ has joined #ocaml
<jankr_> Hi... is there any shorter way to do this? : (let f x = x + x in f)
<exarkun> is that a list comprehension?
<exarkun> oh wait nvm, parse error in my head
<smkl> (fun x -> x + x)
<jankr_> nice! thanks!
<jankr_> another question... is it possible to assign a function to an object val with access to internal vals?
<smkl> only if the val is mutable .. then it can be assigned in the initializer section
<jankr_> like object val mutable f = fun x -> x + x val mutable a = 0 method setf f1 = f <- f1 end; let x = new ... ; x#setf (fun z -> z + a) ;;
<jankr_> not during runtime?
<smkl> you can also define the "internal" values in the section before "object"
<jankr_> ok, but no way of doing what I wrote above?
<smkl> no
<smkl> that is completely impossible because the internal values are not parts of the types of the objects
<jankr_> ok... no way of making values public?
<jankr_> anyway, I can live with that :)
<smkl> nope. best approximation is to use ref as a value and make a method returing that ref
<smkl> returning
<jankr_> yet another question, to make this a high traffic evening... how does ocaml perform compared to a.e. java and c for large applications with a great deal of IO?
<jankr_> I ask because I'm sort of planning to implement an O'Caml application server... :)
<smkl> hard to say. i guess an important thing is to avoid GC when there is a lot of data that is handled by IO
<exarkun> avoid unecessary string copying :)
clog has quit [^C]
clog has joined #ocaml
Dalroth has quit []
Dalroth has joined #ocaml
Dalroth has left #ocaml []
xtrm has quit [Read error: 110 (Connection timed out)]
xtrm has joined #ocaml
Torquemada has quit [Read error: 113 (No route to host)]