vect changed the topic of #ocaml to: OCaml 3.07 ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn, ICFP'03 http://www.icfpcontest.org/, A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/, A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list
brwill_zzz is now known as brwill_tv
skub has left #ocaml []
Kinners has joined #ocaml
gim has quit ["dodo"]
buggs is now known as buggs|afk
brwill_tv is now known as brwill
lus|wazze has quit ["If we don't believe in freedom of expression for people we despise, we don't believe in it at all -- Noam Chomsky"]
GreyLensmen has joined #ocaml
<Smerdyakov> Can anyone recommend a good way to do write a deep copy method of a class that inherits from another that also provides a deep copy method?
<Riastradh> What? You're actually using the object system?
<Smerdyakov> It's actually someone else's question.
<Smerdyakov> I don't think he is initiated into the ways of IRC.
<Riastradh> Oh.
<Smerdyakov> However, it's for a project that we are both part of.
<Riastradh> Initiate him, then, duh.
<Smerdyakov> I don't think he's really a hacker. Wouldn't be his style. :)
<Riastradh> IRC doesn't mandate hackerliness.
Kinners has left #ocaml []
<ayrnieu> I IRC'd well enough at 12. Surely this random non-hacker can handle it.
<Smerdyakov> You can be a hacker at 12.
<Riastradh> Yes, but he might not have been.
<ayrnieu> Well, I had an HP48G -- but I qualified more as a gamer at the time.
* Riastradh still has his trusty HP 48G.
<ayrnieu> I have an HP49G, now -- only on the other side of the country =(
<Smerdyakov> What does geographic location have to do with calculators? (if that is what HP**G's are)
<ayrnieu> The traditional way to use an HP49G calculator requires its physical nearness to the user.
<Smerdyakov> Oh, I get it. I thought you were saying _you_ are on the other side of the country _with_ the calculator in question.
brwill is now known as brwill_zzz
Kinners has joined #ocaml
wegweg has joined #ocaml
wegweg has quit [tolkien.freenode.net irc.freenode.net]
Kinners has quit [tolkien.freenode.net irc.freenode.net]
GreyLensmen has quit [tolkien.freenode.net irc.freenode.net]
carm has quit [tolkien.freenode.net irc.freenode.net]
The-Fixer has quit [tolkien.freenode.net irc.freenode.net]
mw has quit [tolkien.freenode.net irc.freenode.net]
Hadaka has quit [tolkien.freenode.net irc.freenode.net]
wegweg has joined #ocaml
Kinners has joined #ocaml
GreyLensmen has joined #ocaml
carm has joined #ocaml
The-Fixer has joined #ocaml
mw has joined #ocaml
Hadaka has joined #ocaml
Defcon7 has quit [Remote closed the connection]
Defcon7 has joined #ocaml
brwill_zzz is now known as brwill
Herrchen has quit [Read error: 60 (Operation timed out)]
GreyLensmen has quit ["Client Exiting"]
brwill has quit [Read error: 54 (Connection reset by peer)]
brwill has joined #ocaml
brwill is now known as brwill_zzz
Bunny_351 has joined #ocaml
Bunny_351 has quit [Client Quit]
Kinners has left #ocaml []
wegweg has quit [Read error: 110 (Connection timed out)]
arty has joined #ocaml
Herrchen has joined #ocaml
Defcon7 has quit [Remote closed the connection]
Defcon7 has joined #ocaml
arty has quit ["foo"]
gim has joined #ocaml
Smerdy has joined #ocaml
mimosa has joined #ocaml
Smerdyakov has quit [Read error: 110 (Connection timed out)]
karryall has quit ["quit"]
two-face has joined #ocaml
srv has joined #ocaml
lam has quit [Remote closed the connection]
lam has joined #ocaml
Bunny_351 has joined #ocaml
Bunny_351 has quit [Client Quit]
karryall has joined #ocaml
<two-face> salut karryall
<karryall> 'llo
<two-face> je serais ce soir au Sous-bock, il y aura Sven Luther
<karryall> un truc debian ?
<two-face> les first jeudi
<two-face> oui il y aura des gens de debian mais des ocamlists
<two-face> ocamlistes
<karryall> ah ouais. c'est cool ça.
<karryall> c'est où le sous-bock ?
<karryall> et il habite Paris Sven ?
<two-face> 49, rue saint honor'e, dans le 2eme
<two-face> Sven vient a paris pour l'occasion
<two-face> enfin, a l'occasion
<two-face> donc, on en profite pour le voir :)
<karryall> bon, j'ai le droit de venir meme si j'utilise pas Debian ?
<karryall> :)
<two-face> bah oui :)
<two-face> mais bon, il faut t'attendre à ce qu'on en parle un peu :)
<two-face> il y aura aussi sylvain le gall
<two-face> enfin, je te dis ca, fait comme tu veux hein :)
<karryall> c'est à quelle heure ?
<two-face> la semaine derniere, il y avait alin frish
<two-face> alain frisch
srv has quit ["Lost terminal"]
systems has joined #ocaml
systems has quit ["Client Exiting"]
<vect> les first jeudi c'est de nouveau au sous bock
<vect> ?
brwill_zzz is now known as brwill_work
<two-face> vect: oui
kjs3 has joined #ocaml
<kjs3> morning...
lus|wazze has joined #ocaml
kain__ has quit ["leaving"]
kjs3 has quit [Read error: 110 (Connection timed out)]
kjs3 has joined #ocaml
listener has joined #ocaml
<listener> Is there a way of using ocamlc to create an object file with symbol information in it?
<listener> So I can debug the C code?
<smkl> with a c debugger? symbols from ocaml runtime library?
<listener> smkl: I want to debug C code called from OCaml.
<listener> So I have mycode.ml and wrappercode.c.
<Demitar> listener, is the C code compiled with -g?
<listener> Yes.
<listener> But it's Windows.
<mellum> ocamlc doesn't create object files at all, so no. But ocamlopt can do that.
<listener> mellum: Yeah it does. ocamlc -c wrappercode.c does just that.
<smkl> listener: do you have the same -ccopt in the link command?
<karryall> listener: ocamlc -c wrappercode.c just calls the C compiler
<karryall> if you add -ccopt -g it will have debugginf info
<karryall> (that's for gcc of course)
<listener> tHE -G DOESN;'T WORK i ALREADY SAID THAT.
<listener> Sorry. ( Caps lock)
<listener> -ccopt doesn't seem to help either.
<mellum> It's -g and not -G ;)
<Demitar> listener, what debugger are you using?
<listener> VisualC++.
<Demitar> listener, well can't help you there, install Debian and I'll see what I can do. ;-)
<smkl> just to make sure, you used -ccopt <whatever is the debug flag for vc++>, both in compiling c, and linking stuff?
<smkl> you could try recompiling caml with debugging flags
<listener> I'll have to try later.
listener has quit []
phubuh has joined #ocaml
<phubuh> hmm... the finalizer of my custom block isn't being called, even though I'm sure it's gone out of scope, and I'm calling Gc.major ()
<phubuh> oh, it does get called with full_major, so I guess it's not a problem :-)
<Maddas> hey phubuh
<phubuh> hi maddas!
<Maddas> will your ocaml/java thing let me write java applets in ocaml?
<phubuh> nope
<Maddas> damn
<Maddas> ...so I'll have to do my java assignments in Java :(
<phubuh> that'd require compiling ocaml to java bytecode or embedding an ocaml bytecode interpreter in java -- I'm doing the reverse, embedding a jvm in ocaml
<Maddas> ah, ok
<phubuh> I can create Swing JFrames, though :-)
<Maddas> heh
<Maddas> Isn't there any asm->java bytecode thing (for one platform at least)?
<Maddas> probably not
<phubuh> compiling ocaml to java bytecode probably wouldn't be -that- hard
<karryall> phubuh: try Gc.full_major ()
<phubuh> it's practically what the F# guys did, except with .NET CLR instead of Java
<phubuh> karryall: yeah, I did, and it worked :-)
<smkl> there was a caml bytecode interpreter for java
<karryall> ah yes
<two-face> anyone tried C# with mono here?
<phubuh> smkl: oh, cool
<mellum> Why would one want a java caml bytecode interpreter? Java isn't even as portable as C, and 10 times slower.
<phubuh> the sandbox thing might be desirable
<Etaoin> languages aren't slow; language implementations are
<two-face> mellum: doesn't make sense, Java is a language
<two-face> Etaoin: yup
<smkl> mellum: to make java applets in caml or something. but i don't think it was used much
<mellum> Unfortunately, that doesn't matter in practice.
<phubuh> if it doesn't, why don't you run all your ocaml code in that java caml bytecode interpreter thing?
<Maddas> mellum: Java applets have their uses
<phubuh> after all, ocaml is a fast language
<Maddas> and regarding portability, I can't code C for my cell phone quite yet
<mellum> *shrug*
<phubuh> I like how this little program that just starts the JVM and enters an infinite loop of System#out#println "foo" takes about 200MB of memory
<Maddas> mellum: I'm not saying I like Java much, that's exactly why I want to convert to bytecode :-)
<mellum> Well, I don't have a cell phone, so I don't need Java :P
Smerdy is now known as Smerdyakov
<Maddas> mellum: It would be fun anyway ;)
<phubuh> can I tell the gc that it should never release a certain object?
<phubuh> or somehow fool it that there's a reference to it in the root set
<phubuh> (there is, but it's concealed in a native struct)
<karryall> you can store it in a toplevel ref
arty has joined #ocaml
<karryall> or on the C side, create a global root and store it there
<phubuh> oh, how do I do that?
<phubuh> ah, never mind, found it in the docs
<karryall> register_global_root and remove_global_root in caml/memory.h
<phubuh> yeah, thanks!
det has quit [Read error: 104 (Connection reset by peer)]
owll has joined #ocaml
owll has quit [Client Quit]
<karryall> two-face: bon, c'est à quelle heure alors ?
<two-face> karryall: a 20:30
<two-face> karryall: tu ne crains pas les debianistes ? :)
<two-face> karryall: je serai la entre 20:30 et 21:00 mais ralf treinen et sylvain le gall seront surement la vers 20:30
<vect> oh, ralf treinen, je l'avais comme prof quand j'etais en DEUG :~)
* vect se souvient, emu.
<two-face> :)
<karryall> bon, je passerais peut-etre
<karryall> ou pas
<two-face> comme tu veux
<two-face> karryall: si tu ne connais pas sven http://www.i21k.de/ldt2003/pic1027-27.9.2003.ol.linuxmeeting.jpg
<karryall> ah ouais
<karryall> il a une moustache
<Smerdyakov> Grr. Dirty Frenchies.
<two-face> karryall: et alors ? :)
<two-face> Smerdyakov: what ? :)
<Smerdyakov> We all speak English, but only a small fraction speak French, so you are being meanies by speaking French!
<karryall> karryall: il fait du caml ralf treinen ?
<two-face> karryall: oui
<two-face> Smerdyakov: speaking one's mother tongue is so neat, especially when it's not English
mattam_ has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]
<phubuh> jag håller inte med
<phubuh> am I supposed to use CAMLreturn in -all- functions that return value, or just those that are used directly by ocaml?
<karryall> your are supposed to use CAMLreturn when you used CAMLparam or CAMLlocale befaore
<phubuh> ah, okay. should I use CAMLlocal for -all- local values? :-)
<karryall> only those that need to be "protected" from the GC
<karryall> actually you often simplt don't need those macros
<karryall> but using them does no harm :)
<two-face> a+
two-face has quit ["Fermeture du client"]
<phubuh> I'll just use them all the time :-)
The-Fixer has quit [Remote closed the connection]
The-Fixer has joined #ocaml
chrisu has joined #ocaml
mattam_ is now known as mattam
<Maddas> I wish I could speak my mothertongue
<karryall> :)
<karryall> which is ?
<Maddas> Tamil :)
chrisu has left #ocaml []
jrosdahl has quit [Read error: 110 (Connection timed out)]
det has joined #ocaml
karryall has quit ["home"]
<carm> is there a dax present?
<mellum> a what?
owll has joined #ocaml
owll has quit [Client Quit]
arty has left #ocaml []
kjs3 is now known as kjs3|away
<dax> carm: now there is
__buggs has joined #ocaml
buggs|afk has quit [Read error: 110 (Connection timed out)]
__buggs is now known as buggs
rox has quit [Remote closed the connection]
rox has joined #ocaml