Taaus changed the topic of #ocaml to: http://caml.inria.fr/oreilly-book/
libertair has joined #ocaml
libertair has left #ocaml []
* Yurik is away: to sleep a bit
malc has quit ["no reason"]
amanb has joined #ocaml
tmcm has quit ["using sirc version 2.211+ssfe"]
amanb has quit [Read error: 104 (Connection reset by peer)]
Yurik has quit ["Client Exiting"]
Yurik has joined #ocaml
Demitar has joined #ocaml
Demitar has quit []
robin has joined #ocaml
robin is now known as puffin
DemiUni has joined #ocaml
Yurik has quit [Read error: 104 (Connection reset by peer)]
Yurik has joined #ocaml
DemiUni has quit ["silence.... *whaff*"]
malc has joined #ocaml
DemiUni has joined #ocaml
malc has quit ["no reason"]
<puffin> hello?
Yurik_ has joined #ocaml
skylan has quit [Read error: 110 (Connection timed out)]
Yurik has quit [Read error: 104 (Connection reset by peer)]
<smkl> hi puffin
<puffin> I've recently (re)discovered O'Caml, which is fast becoming my new Favourite Language.
<puffin> But this channel is a bit quiet to just babble excitedly into... :-)
<Yurik_> puffin: subscribe to mail list =)
<smkl> in channels like this, the discussion is mostly newbie questions or offtopic noise. this channel is too small for noise, and perhaps ocaml doesn't have enough undocumented oddities for questions
<puffin> fortunately camlp4 seems to have quite a few undocumented pieces :-)
Yurik_ is now known as Yurik
<mockturtle> ah, inria is back up :)
Yurik is now known as Bauss
Bauss is now known as Yurik
mockturtle has quit [Excess Flood]
mockturtle has joined #ocaml
skylan has joined #ocaml
DemiUni has quit [Remote closed the connection]
DemiUni has joined #ocaml
Yurik has quit ["Client Exiting"]
<DemiUni> Hmm... it would be nice if one could interface with a db in a statically typed way.. shuffling all the data into a record feels a bit inferior...
Yurik has joined #ocaml
<puffin> what is the "standard" database interface? Google isn't turning up anything that sounds right.
<puffin> is it OCamlODBC
<puffin> ?
<DemiUni> I'd recommend looking at the humps or http://www.npc.de/ocaml/linkdb/
<smkl> DemiUni: do you store your data in objects?
* DemiUni goes to investigate the various apis...
<DemiUni> smkl: Actually I'm investigating the various possibilities to use ocaml to build web applications, I haven't seen any apache modules so far though (although I could make cgis of course).
owll has joined #ocaml
<DemiUni> It would be quite nice to treat the database as a statically typed table/hash/...
<Yurik> owll: hi
<owll> re
* DemiUni ponders how expensive ocaml class method variable accessors are compared to record fields and then realizes he's optimizing prematurely again...
<DemiUni> (And compromizing design for dubious efficiency for that matter.)
<smkl> the cost of a method call should be about the same as c++ method call
<DemiUni> Then records have better efficiency? (Especially since I can't expect the functions to be inlined.)
<smkl> sure. but i don't know how big difference that makes in a real application
<DemiUni> Yes, any application is probably shuffling more data around to make it matter anyway.
* DemiUni still has his physics-engine optimization nerve active it seems... =)
Etaoin has quit [Read error: 104 (Connection reset by peer)]
<smkl> i've done some stuff to help writing graphical editors and text based IO for different datatypes. interfacing with databases and web can probably be done in similar way
<DemiUni> ocamlmysql has conversion functions to and from ml, if I just wrap up all that I can have a nice statically typed db interface I guess, the same should be done for the cgi interface probably
<smkl> my idea is to have a datatype that can save, load and edit values of a type for the base types like ints, floats and strings, and then construct editors for list and tuples from these structures. this can be extended to sums and records (or objects) by just listing their fields
<smkl> this way, you only need to write one piece of code, and that will handle both IO and graphical editing
Etaoin has joined #ocaml
owll has quit ["Client Exiting"]
Yurik has quit ["Client Exiting"]
DemiUni has quit [Remote closed the connection]
malc has joined #ocaml
ott has joined #ocaml
ott has quit [Client Quit]
smklsmkl has joined #ocaml
smkl has quit ["bbl"]
smklsmkl is now known as smkl
malc has quit ["no reason"]
skylan has quit ["bbiab; make installkernel"]
skylan has joined #ocaml
malc has joined #ocaml
gl has quit [Read error: 113 (No route to host)]