dark_light changed the topic of #ocaml to: OCaml 3.09.2 available! Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
dfranke_laptop has joined #ocaml
<dfranke_laptop> Regarding the flat namespace for labels on field names...
<dfranke_laptop> Is there a technical reason for doing that it way? Because it seems very annoying.
<fluxx> I believe it's for type inference
<pango> it's not a flat namespace, it's just the same namespaces for everything, modules
<dfranke_laptop> case matters though, so I can say: type foo = ...;; type bar = | Foo of foo;; and that's fine, right?
BetaTEST has quit []
dfranke_laptop has quit ["bbiab"]
khaladan has quit [Read error: 104 (Connection reset by peer)]
jcreigh has joined #ocaml
jcreigh has quit ["while(1) { fork(); }"]
Revision17 has joined #ocaml
pango_ has joined #ocaml
jcreigh has joined #ocaml
pango has quit [Remote closed the connection]
jcreigh has quit ["while(1) { fork(); }"]
khaladan has joined #ocaml
jcreigh has joined #ocaml
Revision17 has quit ["Ex-Chat"]
jcreigh has quit ["while(1) { fork(); }"]
pango has joined #ocaml
pango_ has quit [Remote closed the connection]
therp has joined #ocaml
shawn has quit ["This computer has gone to sleep"]
shawn has joined #ocaml
therp has quit [Remote closed the connection]
Revision17 has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
love-pingoo has joined #ocaml
dark_light has joined #ocaml
<dark_light> how can i tell if a file is a directory? so i can choose between Unix.openfile or Unix.opendir
<dark_light> and i making a function that searches recursively so i have to handle with the two cases..
<pango> Unix.stat, then st_kind field
<dark_light> thanks
<fluxx> another approach would be to simply opendir everything, and if it fails, try openfile :-)
<pango> that may not work with reiser4 ;)
<fluxx> well, it depends on your point of view
<fluxx> it might be that stat doesn't work ;)
<fluxx> otoh, you could just do both
<fluxx> but then there are some old os'es that allow opening a directory
<dark_light> fluxx, i was thinking in open as a file, and if fails open as a dir, but apparently dirs can be treated as a file
revision17_ has joined #ocaml
shining_ has joined #ocaml
love-pingoo has quit ["Connection reset by pear"]
smimou has joined #ocaml
shining has quit [Read error: 110 (Connection timed out)]
Revision17 has quit [Read error: 110 (Connection timed out)]
shining_ is now known as shining
descender has joined #ocaml
<dark_light> isn't ocaml suitable to graphical/gtk programs? i am asking because mldonkey is very slow at simple tasks like switching between screens
<fluxx> yes it is, that sounds more like an mldonkey problem
<fluxx> I'm guessing it maybe does many roundtrips to the server on screen change
<pango> dark_light: I think mlgui used lots of CPU, so the author modified it to use "idle tasks" to do most displays update in background... as a result, it uses less CPU, but is even slower than before...
descender has quit ["Why has elegance found so little following? Elegance has the disadvantage that hard work is needed to achieve it and a good e]
<pango> since I'm not in GUI coding, I can't tell what's wrong in mlgui code...
<dark_light> :(
<dark_light> i have no idea how gui programs keep running without cosuming a lot of cpu, but c programs generally does it very well.. i can't see why a ocaml program should use another approach
<pango> mlgui keeps receiving data published by the core, so it's seldom idle
<fluxx> it's hardly a language issue, more likely a design issue
<pango> it's rather how efficient it reacts that must be the problem
<fluxx> but then there aren't that many ocaml-gui-programs around
<fluxx> to compare
<fluxx> hm, there's cameleon
<pango> unison-gtk, cameleon,...
<pango> at least the gtk1 version of mlgui was fast
<pango> lablgtk page has other examples: http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk.html
_JusSx_ has joined #ocaml
descender has joined #ocaml
_JusSx_ has quit ["leaving"]
_JusSx_ has joined #ocaml
_jol_ has joined #ocaml
_jol_ has quit ["leaving"]
pango has quit [Remote closed the connection]
pango has joined #ocaml
mnemonic has joined #ocaml
<mnemonic> hi all
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: 110 (Connection timed out)]
slipstream-- has quit [Read error: 104 (Connection reset by peer)]
slipstream has joined #ocaml
shekmalhen has joined #ocaml
<dark_light> hi mnemonic
<dark_light> nice nickname
<dark_light> hey people, how can user can trigger EOF in stdin? i though it was ctrl+d, but ctrl+d also means 0x04 character, so interpret ox04 as EOF would cause problems with binary files...
<ketty> dark_light: it is triggered by ctrl+d
<ketty> you could try it to see for yourself
<dark_light> (but and what about 0x04?)
<ketty> dark_light: you tell me =)
<ketty> i dont know...
<ketty> so, maybe EOT = EOF ?
<pango> ^d is interpreted by the terminal, the application usually never sees it
<pango> (in interactive use, that is)
<dark_light> nice
<shekmalhen> dark_light, are you on windows or unix-like?
<dark_light> shekmalhen, unix-like
<dark_light> ubuntu:)
<shekmalhen> and where do you press the ctrl-d?
<dark_light> bash
<shekmalhen> eof is a state of the file, not a value that you read
<pango> I think it depends on how the terminal is setup
<pango> # (Unix.tcgetattr Unix.stdout).Unix.c_veof ;;
<pango> - : char = '\004'
kral has joined #ocaml
<pango> so it must be possible the modify terminal configuration so that ^d loses its special handling, but I never needed that so far
revision17_ has quit ["Ex-Chat"]
pango has quit ["brb"]
kral has quit ["Live fast, die young."]
pango has joined #ocaml
shining has quit ["leaving"]
finelemon has joined #ocaml
finelemo1 has joined #ocaml
finelemo2 has quit [Read error: 110 (Connection timed out)]
finelemon has quit [Read error: 110 (Connection timed out)]
BetaTEST has joined #ocaml
shekmalhen has quit ["Get Educated!!!"]
buggs has joined #ocaml
<buggs> hoi
<buggs> anyone got a camomile example code for me ?
shawn has quit [Connection timed out]
shawn has joined #ocaml
mnemonic has quit [Read error: 104 (Connection reset by peer)]
shawn has quit [Connection timed out]
shawn has joined #ocaml
pango_ has joined #ocaml
ulfdoz_ is now known as ulfdoz
shawn has quit [Connection timed out]
danly has quit [Read error: 110 (Connection timed out)]
_JusSx_ has quit ["leaving"]
shawn has joined #ocaml
Revision17 has joined #ocaml
Revision17 has quit ["Ex-Chat"]
kuribas has joined #ocaml
<kuribas> How can I use the Set library in the interpreter?