Taaus changed the topic of #ocaml to: http://caml.inria.fr/oreilly-book/
kjs3 has joined #ocaml
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
gl has quit ["La foule est une somme d'erreurs qu'il faut corriger."]
<kjs3> feh!
tmcm has quit ["using sirc version 2.211+ssfe"]
Yurik has quit ["Client Exiting"]
mr_bubbs has joined #ocaml
mr_bubbs is now known as bbdab
Yurik has joined #ocaml
gl has joined #ocaml
<Yurik> gl: hi
<gl> hu yurik
<gl> hi
Yurik has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
gl has quit [carter.openprojects.net irc.openprojects.net]
bbdab has quit [carter.openprojects.net irc.openprojects.net]
timmy has quit [carter.openprojects.net irc.openprojects.net]
Dieb has quit [carter.openprojects.net irc.openprojects.net]
kjs3 has quit [carter.openprojects.net irc.openprojects.net]
Dybbuk has quit [carter.openprojects.net irc.openprojects.net]
Dieb has joined #ocaml
Dybbuk has joined #ocaml
timmy has joined #ocaml
smkl has joined #ocaml
kjs3 has joined #ocaml
bbdab has joined #ocaml
Yurik has joined #ocaml
gl has joined #ocaml
smkl has quit [carter.openprojects.net irc.openprojects.net]
gl has quit [carter.openprojects.net irc.openprojects.net]
Yurik has quit [carter.openprojects.net irc.openprojects.net]
Dybbuk has quit [carter.openprojects.net irc.openprojects.net]
kjs3 has quit [carter.openprojects.net irc.openprojects.net]
timmy has quit [carter.openprojects.net irc.openprojects.net]
bbdab has quit [carter.openprojects.net irc.openprojects.net]
Dieb has quit [carter.openprojects.net irc.openprojects.net]
gl has joined #ocaml
Yurik has joined #ocaml
bbdab has joined #ocaml
kjs3 has joined #ocaml
smkl has joined #ocaml
timmy has joined #ocaml
Dybbuk has joined #ocaml
Dieb has joined #ocaml
* gl is away: work in progress..
malc has joined #ocaml
malc has quit ["no reason"]
Cryptor has joined #ocaml
smkl has quit [carter.openprojects.net irc.openprojects.net]
smkl has joined #ocaml
Cryptor has quit [Read error: 104 (Connection reset by peer)]
TimFreeman has joined #ocaml
<TimFreeman> Does anyone use the ocaml alternative syntax described in the camlp4 manual?
<Yurik> revised?
<Yurik> i use it
<TimFreeman> Let's be sure we're talking about the same thing. There's a section called "The Revised syntax" in the camlp4 manual that describes an entirely different syntax for ocaml. I'm not asking whether you use camlp4 in general.
<Yurik> yes, you're right, I use revised syntax
<Yurik> value f x = x;
<Yurik> :)
<TimFreeman> Does the gnu-emacs package do a decent job of indenting it?
<TimFreeman> Am I going to be entirely on my own if I want to use it with preexisting packages like lablgtk?
<Yurik> well, may be, i'm not sure
<Yurik> it highlights 'value'
<Yurik> revised syntax is only syntax
<Yurik> you'll be able to use all libraries written in general syntax
<TimFreeman> Hmm, I suppose if I compile one .cmo in the revised syntax, it ought to interoperate with .cmo's compiled the other way. Right.
<Yurik> yes, since it is just *syntax*
<Yurik> you could even use Lispish or SML syntax for OCaml, no matter
<TimFreeman> I find that I'm constantly fighting with the automatic indentation in gnu-emacs with the normal syntax..
<TimFreeman> Is that normally the case? I don't have battles when I'm writing Java or C; in that case, indentation irregularities are almost always due to syntax errors in my code.
<Yurik> what are the problems with emacs mode for ocaml?
<TimFreeman> I'll rip out an example here in a minute or so.
<TimFreeman> Okay, here's one. It wants to indent "type" in this:
<TimFreeman> let event_tag_string (x:event_tag):string =
<TimFreeman> match x with
<TimFreeman> | STRINGMODAFTER -> "STRINGMODAFTER";;
<TimFreeman> type logpointer;;
<Yurik> automatic indent sets it in way you show and you want it at the beginning of line?
<Yurik> which mode do you use in emacs (generic from ocaml, tuareg, etc.)?
<TimFreeman> Right, I want the "type" under the "let".
<Yurik> i tried this example in caml mode it works fine
<Yurik> may be the problems is that you don't need | there
<Yurik> or need?
<TimFreeman> I would guess my ocaml mode came from /usr/share/emacs21/site-lisp/ocaml/caml.elc.
<TimFreeman> I get rid of the "|" and it doesn't change.
<Yurik> hm
<TimFreeman> Do you recommend tuareg?
<Yurik> well... i like both caml mode and tuareg
<Yurik> but caml mode is better for revised and now I don't use tuareg
<TimFreeman> Which emacs version do you use?
<Yurik> xemacs 21.1
<TimFreeman> Hmm. I'm using gnuemacs 21.2.1.
<Yurik> one sec
<Yurik> yeah, i have that problem with xemacs too
<TimFreeman> You mean you have the problem with gnuemacs, right?
<Yurik> with xemacs. (the above indent problem)
<Yurik> hah!
<Yurik> very interesting
<TimFreeman> But you said earlier "i tried this example in caml mode it works fine"?
<Yurik> when I made pattern matching in revised style, it indents it well!
<Yurik> yeah, it was my mistake, i thought (tuareg habit) that it was indenting automatically
<Yurik> so [ STRINGMODAFTER -> "STRINGMODAFTER" ] seems to be cool for indenting type
<Yurik> but only if one ';' after it
<Yurik> if two ';', it fails to indent well
<Yurik> aha
<Yurik> if even w/o [ ], but w/ one ';', it indents well
<Yurik> heh
<Yurik> try tuareg, i remember its indenting was better
<Yurik> (afair)
<TimFreeman> If I have one ";" the compiler complains. If I have no ";", the compiler is happy and the indentation is right. I'll have a go at tuareg if I'm not happy after ripping out the ";"'s.
<TimFreeman> Thanks much.
TimFreeman has left #ocaml []
owll has joined #ocaml
TimFreeman has joined #ocaml
MeisterP has joined #ocaml
TimFreeman has left #ocaml []
MeisterP has quit [Read error: 104 (Connection reset by peer)]
<Dybbuk> Damn.
<Dybbuk> How do I create an exception so I can 'raise' it?
<Yurik> exception MyException of string
<Yurik> or just exception MyException
<Yurik> or whatever type you want
<Dybbuk> Ok, cool.
<Dybbuk> Next question: How do I convert an array to a list? :)
<Yurik> one sec
<Yurik> Array.to_list
<Dybbuk> Ok, cool. Thanks!
<Yurik> and .of_list to convert back
<Dybbuk> Ahhh, neat. I guess I should have just checked the .mli file for that one. :)
<Yurik> :)
<Dybbuk> OCaml kicks ass.
<Yurik> heh
<Dybbuk> How is OCaml's threading? Is it stable?
<Yurik> Thread module? I suppose yes
<Yurik> there is also mutexes and events in library
Miwong has joined #ocaml
<Miwong> hello
<Yurik> Miwong: hi
<Miwong> how you doing? :)
<Yurik> quite well, thanks. and how are you doing? :)
<Miwong> doing fine, thanqu ;)
<Dybbuk> Ok...reading from stdin...line_in?
<Yurik> there are a lot of variants
<Yurik> look in pervasivers.mli
<Yurik> look in pervasives.mli
<Yurik> read_line
<Yurik> read_int
<Yurik> and so on
<Dybbuk> Ok, I think read_line is what I want...let's see if it works as expected. :)
<gl> there's no topic ?
Yurik changed the topic of #ocaml to: OCaml kicks ass
<Yurik> :-)
<gl> =)
<Yurik> just kidding
Yurik changed the topic of #ocaml to: OCaml rules da world
<Yurik> or previous one was better? :))))
<Yurik> :-))
Yurik changed the topic of #ocaml to: www.ocaml.org | http://caml.inria.fr/oreilly-book/ | http://www.bagley.org/~doug/shootout/ | http://icfp2002.cs.brown.edu/ | Ocaml kicks ass (c) Dybbuk
<gl> yeah
<Dybbuk> That shootout page is what inspired me to start looking at OCaml. :)
<Yurik> heh
<gl> really ?
<gl> univsersity inspired me to start O'Caml
<Yurik> in my case i just was searching for a high-performance functional and GP language. i found it :-)
<gl> with a gun near in my mouth.. i didn't have the choice :)
<gl> -near
<Dybbuk> Well, we're a Perl and C shop here. Perl is horrible and slow, and C is horrible to write. I went looking for some good language benchmarks. :)
* gl is back (gone 05:44:17)
<gl> error
* gl is away: work in progress..
<Dybbuk> Yes, the error is 'Not_found'. :)
<Yurik> :)
Miwong_ has joined #ocaml
<Miwong_> re
<Dybbuk> Howdy.
Miwong has quit [Read error: 113 (No route to host)]
<Dybbuk> Is there a good BerkeleyDB interface for OCaml?
<Dybbuk> I need a way to access a BerkeleyDB environment.
<Yurik> even if there is no bdb interface for ocaml
<Yurik> you can make it quite easy
<Yurik> just using external
<Dybbuk> Yeah, I guess I'll have to do that.
<Dybbuk> I grokk fold_left and fold_right!
<Dybbuk> But I don't understand the difference between 'fun' and 'function'. Is there one?
MeisterP has joined #ocaml
gl- has joined #ocaml
gl- has left #ocaml []
owll has quit ["Client Exiting"]
Miwong_ is now known as Miwong
MeisterP has left #ocaml []
<bbdab> yahoo!! ocaml
malc has joined #ocaml
<Dybbuk> bbdab: Well, I don't know about that...but they do use CL. :)
<bbdab> lol
<bbdab> damn that company
<bbdab> how they can take an expression and forbid anyone else to use it!
<Dybbuk> bbdab: Welcome to America!
blaine has joined #ocaml
spip has joined #ocaml
tekcsound has joined #ocaml
blaine has quit ["Client Exiting"]
<Dybbuk> Wow, type declarations are groovy.
spip has quit []
<Dybbuk> Records are cool!
tekcsound has left #ocaml []
<Dybbuk> Is anybody here familiar with UncommonSQL or CommonSQL for Common Lisp?
<malc> i know a bit of CL but not [U]CommonSQL
<Dybbuk> It's kind of tough to describe how it works, but essentially, CommonSQL allows you to define an object that is wrapped around an SQL table.
<Dybbuk> So it allows you to store object definitions straight into an RDBMS.
<malc> and your question is...
<Dybbuk> Is there anything like it for OCaml?
<Dybbuk> Because it'd be very handy.
<Dybbuk> I suppose with the Ocamlodbc stuff, it wouldn't be incredibly tough to write.
<malc> Dybbuk: no idea, look at DBForge or whatever its called
<Dybbuk> Oh yeah, I remember seeing that on the humps page.
<Dybbuk> I'll take a look at it.
malc has quit ["no reason"]
malc has joined #ocaml
<Dybbuk> Does anybody know if there's a timetable on the publication of the O'Reilly book in English?
gl has quit [Read error: 113 (No route to host)]
Miwong has quit ["."]