Banana changed the topic of #ocaml to: OCaml 3.08.1 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ | 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/
mrvn_ has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
gim has quit [Read error: 110 (Connection timed out)]
TylerE has joined #ocaml
* TylerE just wrote his first real ocaml program ;)
<TylerE> a fractal generator ;)
<TylerE> right now it can only generate the mandelbrot set in ascii
<TylerE> but both the interated fucntion and output routine can be easily changed ;)
<neale> right on
<TylerE> now I've got a primitive graphics interface ;)
<TylerE> man I'm loving this
Smerdyakov has quit ["reboot"]
<TylerE> it's easy to develop in like python
<TylerE> fast like c
Smerdyakov has joined #ocaml
<neale> yeah, but it takes a couple of months to figure out how it works, like Unix.
<TylerE> yep
<Excedrin> I'm having a problem with the socket stuff, if you send to an unconnected socket, it exits instead of throwing an exception
<TylerE> I've done a little haskell and lisp though
<TylerE> so it's not tooooo foreign
<neale> ;)
<Excedrin> I've made a test program that's short if anyone could take a look
<neale> oh.
<neale> I came into it never having seen a functional language.
<TylerE> o'caml meets my 4 requirments for the ideal language
<TylerE> 1. no free()
<TylerE> 2. printf()
<TylerE> 3. regexps...
<neale> I had to learn scheme before I could figure out ML ;)
<TylerE> 4. compiles to (fast) native code
<neale> Excedrin: I'd like to see that
<TylerE> neale, same for me
<Smerdyakov> TylerE, you're using a poor language if it needs "regexps" built into the language.
<TylerE> neale, I actually tried to learn o'caml a year or two ago
<TylerE> never 'got' it
<TylerE> Smerdyakov, I don't think so. They're just so useful that having them always available is good
<Riastradh> Why does the language need to have regexps built-in?
<TylerE> Not that EVERY problem needs regexps, but I do a fair of text processing, so tend to use 'em a fair bit
<Riastradh> I can understand the utility of having a regexp library around, but why build them into the language?
<TylerE> Riastradh, because then I can distribute a program without it requiring some random 3rd party regex lib
<Riastradh> You don't like using third party libraries?
<Smerdyakov> TylerE, regular expressions are supported by OCaml in the standard library.
<neale> Smerdyakov: I disagree. Having regexps built-in merely means it's a language heavily geared toward text processing.
<Smerdyakov> TylerE, they are not built into the language.
<TylerE> Smerdyakov, well, by "built in" I mean always available on all supported playform
<Smerdyakov> neale, you'll see the light some day. :)
<TylerE> not nessesarily core syntax as such
<TylerE> (and by "always" I mean can be used)
<TylerE> not nessesarily preloaded ;)
<TylerE> oooh
* TylerE prepares to rewrite his graphics routine to use double buffering ;)
<neale> awk, for example.
<neale> I think TylerE was just saying that he appreciates having a library available :)
<TylerE> neale, that's the idea ;)
<TylerE> same as printf() really
<Smerdyakov> I think he was calling your mother fat.
<TylerE> It's not that every program needs the functionality, but it's so useful when it is, it should be always available
<TylerE> that's one reason I can't stand Java
<TylerE> it's so verbose to do any kind of thing that would be done with printf in a sane language ;)
<Smerdyakov> I don't think OCaml is sane in that respect.
<Smerdyakov> It has _language_support_ built in for printf. Rather kludgey.
<neale> Smerdyakov: them's fighting words!
<TylerE> now to get really fancy
<TylerE> and allow clicks in the graphics window to zoom in ;)
<neale> Excedrin: lerp.com is very slow for me.
<TylerE> aww, crud
<TylerE> I'm gonna have to do some rewriting ;)
<TylerE> oh well
<TylerE> I'll come back to this later
<TylerE> probably inefficient as all heck anyway
<TylerE> If I want to get serious I'll redo it with all integer math ;)
<TylerE> still, i'm in chapter 8 of the orielly book translation, and wanted to make sure I had the general idea ;)
<Smerdyakov> Integers are expensive. I only use imaginary numbers.
<neale> gosh, maybe it's my crummy router
TylerE has quit ["Leaving"]
menace has quit [" HydraIRC -> http://www.hydrairc.com <- The dawn of a new age"]
<Excedrin> neale: did you get it? should I paste it somewhere instead?
<neale> Excedrin: yes, I just now got it.
<Excedrin> neale: sweeks solved it, the program gets sigpipe and dies because there's no handler
<neale> ah hm
<neale> see, I'm still trying to remember how to get it to compile :)
<Excedrin> ocaml unix.cma connect2b.ml # to use the bytecode
<neale> I was using ocamlfind
<Excedrin> ocamlopt unix.cmxa -o connect2b connect2b.ml # to compile to native
<neale> I forgot -linkpkg
<neale> ocamlfind ocamlc -o foo -package unix foo.ml -linkpkg
<neale> okay, yeah, sigpipe :)
<neale> Excedrin: if you're on a linux box, you should know about the strace program
<neale> bsd has something similar called ptrace
<neale> you can run "strace myprogram" and it will show you all the system calls the program makes. And the signals :)
<Excedrin> neale: yea, it was a mental blindspot on my part
<neale> they happen to everyone, especially when dealing with a new environment.
gim has joined #ocaml
kinners has joined #ocaml
GreyLensman has joined #ocaml
Tarka has joined #ocaml
Tarka has quit [Client Quit]
gim has quit []
kinners has quit [Read error: 110 (Connection timed out)]
skylan_ has quit ["leaving"]
skylan has joined #ocaml
GreyLensman has quit ["Leaving"]
mlh has quit [Client Quit]
mrsolo_ has joined #ocaml
mrsolo has quit [Read error: 104 (Connection reset by peer)]
Submarine has quit [Remote closed the connection]
vezenchio has joined #ocaml
pango has quit ["Client exiting"]
pango has joined #ocaml
Submarine has joined #ocaml
Submarine is now known as SubAtWork
Excedrin has quit [Read error: 110 (Connection timed out)]
mlh has joined #ocaml
mlh_ has joined #ocaml
Excedrin has joined #ocaml
Excedrin_ has joined #ocaml
Excedrin has quit [Read error: 60 (Operation timed out)]
Excedrin has joined #ocaml
_fab has quit [Read error: 113 (No route to host)]
xerox has quit []
det has quit ["leaving"]
det has joined #ocaml
Excedrin_ has quit [Read error: 110 (Connection timed out)]
det has quit ["Lost terminal"]
det has joined #ocaml
det has quit [Client Quit]
det has joined #ocaml
mlh_ has quit [Client Quit]
xerox has joined #ocaml
xerox has quit ["Changing server"]
xerox has joined #ocaml
Iter has joined #ocaml
mlh has quit [leguin.freenode.net irc.freenode.net]
mlh has joined #ocaml
mlh has quit [Connection timed out]
mlh has joined #ocaml
eugos has joined #ocaml
det has quit ["Lost terminal"]
det has joined #ocaml
karryall has joined #ocaml
mlh has quit [Client Quit]
CosmicRay has joined #ocaml
_fab has joined #ocaml
agentgt has joined #ocaml
CosmicRay has quit [Read error: 104 (Connection reset by peer)]
CosmicRay has joined #ocaml
agentgt has quit ["Miranda IM! Smaller, Faster, Easier. http://miranda-im.org"]
CosmicRay has quit ["Client exiting"]
agentgt has joined #ocaml
CosmicRay has joined #ocaml
<agentgt> asdf
skyr4ce has joined #ocaml
skyr4ce has left #ocaml []
eugos has quit ["Leaving"]
blugleblogle has joined #ocaml
Godeke has joined #ocaml
blugleblogle has quit [Client Quit]
blugleblogle has joined #ocaml
blugleblogle has quit [Read error: 113 (No route to host)]
<neale> agentgt: aoeu
<avlondono> naah .... hjkl
agentgt has quit [Read error: 110 (Connection timed out)]
vincenz has quit [Read error: 104 (Connection reset by peer)]
karryall has quit ["tcho"]
monochrom has joined #ocaml
SubAtWork is now known as SubVocoder
SubVocoder is now known as SubMetallica
zigong_ has quit ["Leaving"]
SubMetallica is now known as Submarine
srv has joined #ocaml
Submarine has quit ["Leaving"]
zigong has joined #ocaml
Excedrin has quit [Read error: 110 (Connection timed out)]
Excedrin has joined #ocaml
vincenz has joined #ocaml
slashvar[lri] has quit [Read error: 104 (Connection reset by peer)]
sam_affable has joined #ocaml
<sam_affable> hi all
<sam_affable> hey dose nyone use creative pd1001 webcam .....need help in getting it work in linux
<Lemmih> How is this O'Caml related?
<sam_affable> oh sorry i misstook it for Ocam
<sam_affable> whts abt this room lemmih
<Lemmih> Read the topic.
<sam_affable> ok
sam_affable has left #ocaml []
pango has quit ["Leaving"]
pango has joined #ocaml
Submarine has joined #ocaml
gim has joined #ocaml
smimou has joined #ocaml
<oracle1> are some CIL people here?
<oracle1> I wonder what
<oracle1> char a[10];
<oracle1> int i;
<oracle1> a[i] = 'c';
<oracle1> the last lval, gets parsed into
<oracle1> it's clearly an Array Type ..but with NoOffset
<neale> well, since you're not assigning a value to i, it will probably segfault.
<oracle1> I'm talking about CIL and it's representation
<oracle1> its
<neale> ah. I'll shut back up, then :)
<oracle1> I expected the Offset to be Index(Lval(l), NoOffset). but it's not.
* Submarine sumons Smerdyakov
<Submarine> summons
<Submarine> whatever
<Demitar> Can I abstract a functor using another functor?
<Submarine> yes
<Demitar> Is there a good example in the manual? I get an "Unbound module type" error when I try it the naive approach.
<Demitar> module Foo = functor (...) -> struct ... end; module Bar = functor (M : Foo) -> struct ... end;
<Demitar> Submarine, so, what is the obvious thing I'm missing? :)
<Demitar> Do I need to add an additional module type?
<Submarine> module type Foo = functor (....) -> sig ... end
<Submarine> module Bar = functor (M : Foo) -> ...
<Submarine> doesn't it work?
<Demitar> Well I wanted to define a few functions inside foo of course. But thanks.
* Demitar figured he'd better move the functions up a level anyway.
shuttlecock has joined #ocaml
karryall has joined #ocaml
<Submarine> karryall, salut
<Submarine> j'ai une question stupide
Submarine has left #ocaml []
<karryall> oui ?
<karryall> aut pu là
Submarine has joined #ocaml
<karryall> Submarine: ?
<Submarine> oh, just a silly question
<Submarine> I was wondering if you worked at INRIA.
<karryall> ah non
<karryall> pas du tout
karryall has quit ["tcho"]
gim has quit [Read error: 113 (No route to host)]
gim has joined #ocaml
TheDracle has joined #ocaml
Submarine has left #ocaml []
TheDracle has quit ["Client exiting"]
gim has quit [Read error: 113 (No route to host)]
gim has joined #ocaml
<Nutssh> Demitar, a functor can create any module struct, including one containing a functor.
vezenchio has quit ["smile, Rakka ..."]
CosmicRay has quit ["Client exiting"]
mlh has joined #ocaml
Hanji has joined #ocaml
mlh has quit [Client Quit]
mlh has joined #ocaml
xerox has quit [Read error: 104 (Connection reset by peer)]
xerox has joined #ocaml
xerox has quit [Read error: 104 (Connection reset by peer)]
xerox has joined #ocaml
smimou has quit ["?"]
moonfish has left #ocaml []