irc.freenode.net changed the topic of #ocaml to: OCaml 3.08 "Bastille Day" Release available ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn , 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
<vincenz> still don't get why it's giving issues with the Pcre
<vincenz> *shrugs*
dan2 has joined #ocaml
<vincenz> woot
<vincenz> step one, dun
<pango> $ ocaml -I +pcre pcre/pcre.cma
<vincenz> still unbound value
<pango> # let amp_re = Pcre.regexp "&" ;;
<pango> val amp_re : Pcre.regexp = <abstr>
* vincenz blinks
<vincenz> ledit ocaml -I +pcre site-lib/pcre/pcre.cma
<vincenz> ledit ocaml -I +pcre site-lib/pcre/pcre.cma
<vincenz> # Pcre.regexp;;
<vincenz> Unbound value Pcre.regex
<vincenz> you have pcre?
<pango> I used Debian package, pcre is installed in /usr/lib/ocaml/3.08/pcre/
<vincenz> ooh
<vincenz> noice
<vincenz> I have mandrake
<vincenz> ocaml is still at 3.07
<vincenz> so I got it in local
<vincenz> (manually installed 3.08)
<pango> maybe you need another path with -I
<vincenz> yup :)
<vincenz> +site-lib/pcre
<vincenz> why tho?
<vincenz> you've already opened the cma with site-lib/pcre/pcre.cma
<vincenz> I'm lucky tho
<vincenz> the pcre's aren't too complex
<pango> ah, ocaml -I +pcre pcre.cma works too
<vincenz> hmm
<vincenz> do you know what w+ matches?
<jason__> Hm..
<vincenz> space, tab
<vincenz> also newline?
<jason__> They don't work with my Ocaml either.
<jason__> w+ is any word.
<jason__> Probably [a-zA-Z]+
<vincenz> it's not whitespace?
<jason__> Oh wait.
<jason__> Yeah, maybe whitespace.
<jason__> Lol.
<jason__> Forgot.
<Hadaka> \s is whitespace
<Hadaka> \w is word
<jason__> Okay, I was right then.
<vincenz> thnx
<vincenz> word is
<jason__> Yay for me.
<jason__> Lol.
<vincenz> [a-zA-Z_0-9]+
<vincenz> ?
<jason__> Maybe.
<Hadaka> no, but close
* vincenz checks with vim
<Hadaka> vim uses pcre?
<vincenz> something similar
<jason__> I tried "ocaml pcre.cma"
<Hadaka> well similar != the same
<vincenz> |/\w|\w\wword character:[0-9A-Za-z_]
<jason__> Then, "Pcre.regexp" Unbound value
<Hadaka> and the subtle differences are exactly in these kind of things
<vincenz> Hadaka: I'm just parsing html crap
<vincenz> |/\w|\w\wword character:[0-9A-Za-z_]
<vincenz> ack
<vincenz> let tag_re = Pcre.regexp "^::(\\w+)::$"
<vincenz> most likely what I said
<vincenz> ?
<jason__> Hm, I'm going home now.
<Hadaka> whoops
<vincenz> I so wish konsole had clickable links
<Hadaka> ECHAN :)
<jason__> Yeah, what's with this python stuff? We don't take kindly to python stuff here.
<Hadaka> I have to code python at work :(
<jason__> Now skeeter.
<jason__> Hehe.
<jason__> Ever tried Ruby?
<vincenz> yah
<jason__> Much better than Python, in my opinion.
<jason__> Although Python has its strong points.
<avlondono> \w is any word character in UTF-8 (just in case). It's more than [a-zA-Z0-9]
<Hadaka> well, I'm going to convert it all to ocaml, bit by bit ;)
<jason__> Man, have fun :P Heh.
<Smerdyakov> avlondono, I can picture a voice over saying that in a television ad for \w: "It's more than just [a-zA-Z0-9].
<avlondono> hehehe
<jason__> I'm really not good enough with Ocaml to use it practicaly.
<avlondono> it's important though, so it can continue like:
<jason__> Well, not without effort.
<avlondono> in the internationalization days .... you need \w for international regexes
<jason__> There are a lot of instruments I need to make certain have good strongly defined software; and it seems like a reasonable solution to at least that niche of problem.
<jason__> Those days are over?
<jason__> Heh.
<Smerdyakov> jason__, you're talking about Ruby?
<jason__> Smerdyakov: Hell no :P Ocaml.
<jason__> Smerdyakov: Ruby is far from well defined.
<Smerdyakov> jason__, are you TheDracle?
<jason__> Yes.
<jason__> Why?
<Smerdyakov> Just making sure I have my records properly cross-referenced.
<jason__> Lol.
<Smerdyakov> Dude, I totally converted you.
<jason__> To Ocaml? Lol, no, I was using it before I met you :)
<jason__> I really like it, a lot though.
<jason__> I like smalltalk and Ruby a lot too.
<Smerdyakov> I'm eating maggots and horseflies.
<jason__> Ashanks has gone off into C++ land.
<jason__> It's sad :p
<jason__> That kid has some mental stability issues.
* vincenz continues porting Pcre.regexps to Str.regexsps
* vincenz mutters
<vincenz> Hey Smerdyakov Str.regexp doesn't use libpcre does it?
<vincenz> it's got it's own ocaml code?
<jason__> vincenz: The libraries are different, I'd test each regexp one at a time :p
<Smerdyakov> vincenz, dunno
<vincenz> jason__: it looks simple enough :)
<jason__> No, it's an Ocaml library. It's part of Str.
<vincenz> jason__: coded in ocaml?
<jason__> Probably.
<jason__> It's part of the standard Ocaml library.
<vincenz> almost there
<vincenz> :)
<jason__> libpcre is not to my understanding.
<vincenz> this is fun:)
<jason__> Smerdyakov: Yeah, Ocaml does a lot more than just strict typing to tie up all of the lose ends in your program.
<Smerdyakov> jason__, that was an example of why commas are important. You needed one between "not" and "to my."
<jason__> Yeah yeah :p Hehe.
<Smerdyakov> I'd say you needed one between those two "yeahs," as well.
<jason__> I'm not sure about that one.
<pango> Unbound constructor Yeah
<Smerdyakov> I will now present a problem equivalent to the halting problem.
<Smerdyakov> let happen = 1 in
<Smerdyakov> if halts P then waitForAWhile ();
<Smerdyakov> let it = happen in ...
<Smerdyakov> Now, the problem is:
<Smerdyakov> Was it bound to happen sooner or later?
<Smerdyakov> {That was technically dubious. I should have had something slightly different for the 'if' condition. :)}
<vincenz> woo
<jason__> Is it working Vinc?
<vincenz> don't know yet
<vincenz> gonna compile now :)
<vincenz> lemme change the Makefile
<vincenz> Damn
<vincenz> stupid ivm syntax highlighting
<vincenz> imagine this
<vincenz> (*
<vincenz> some stuff = "...(.*)"
<vincenz> vim sees that *) as a comment ender, ocaml doesn't
<Smerdyakov> No one liked my amazing joke?!
<Smerdyakov> vincenz, use emacs.
<jason__> Cute.
<dan2> anybody have any experience working with numerix
<vincenz> it compiles :)
<jason__> Working is different than compiling :)
<jason__> But that's a step in the right direction.
<jason__> Heh.
<vincenz> getting closer :)
<vincenz> no more crashing on pcre stuff
<vincenz> now it says
<vincenz> unknown tag in template ::title_html::
<vincenz> which means one of my regexps is messed
<vincenz> got it
<vincenz> had a spurious \\
<vincenz> Woot
<vincenz> apache boots
<jason__> Excelente'.
<vincenz> :)
<jason__> Eww.. I just pushed the mouse on the terminal next to me and MS VS.NET popped up with Visual Basic.
<jason__> Private Sub Button2_Click(ByVal sender As System.Object
<dan2> whats the module name for numerix on debian
<dan2> Numerix doesn't work
<jason__> Num?
<dan2> I'll try that
<jason__> Operations on arbitray precision numbers?
gim has quit [Read error: 110 (Connection timed out)]
gim has joined #ocaml
<dan2> jason__: whats a gettimeofday function in ocaml
<jason__> Unix.gettimeofday
<dan2> neat
cjohnson has quit [Connection timed out]
<dan2> jason__: is there some central list of ocaml library documentation
<vincenz> damn
cjohnson has joined #ocaml
<pango> the use of float for time values is debatable...
<jason__> How so?
<pango> will time get more coarse in the future ?
<jason__> Well, you can store a time value with precision better than a second.
<pango> sure, but why not use some larger integer value in microsec., or something like that ?
<Riastradh> It will get more coarse in the future, yes, but it takes a long time to get coarse, and by the time it's too coarse to be useful, you won't care any more.
<jason__> pango: What's the difference?
<jason__> Besides, you don't have to do a transition back to seconds.
<jason__> It could be more efficient, or less.
<jason__> Depending on what you're doing.
<pango> it looks harder to prove that an algorithm is correct when you work with a variable precision... But I suppose it's true of all numerical algos...
<Smerdyakov> I hear that numerical methods are a morass of horrendous pitfalls.
<pango> I can believe that
<Smerdyakov> You know, something doesn't get to be a whole subfield of CS if it's easy. :P
<pango> or the other way, things becoming more and more complex as you look deeper into it ;)
<Smerdyakov> Just today I remarked on the resume-building power of presenting a paper at the 15th Annual Brainfuck Conference! There is an example of something without much depth for lookin'.
<pango> is it possible to use vmthreads in native-compiled programs ? (to compete with erlang's lightweight threads)
<dan2> what does this mean
<dan2> Reference to undefined global `Num'
<pango> dan2: you haven't loaded or linked the module
<dan2> pango: hmm
<vincenz> GREAT!
<vincenz> f*CK
<vincenz> mod_caml is an apache 1.3 module
<dan2> pango: but I am using ocaml interpreter
<vincenz> apache 2 expects different things
<vincenz> so I get to port it
<pango> dan2: try #load "nums.cma" ;; open Num ;; or something like that
* vincenz sighs
<dan2> k
vezenchio has quit ["I thought what I'd do was, I'd pretend to be one of those deaf-mutes"]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
<dan2> pango: how do I create a specific type signature in ocaml
gim has quit ["dodo"]
kinners has joined #ocaml
avlondono has quit [""Reboot!!!""]
avlondono has joined #ocaml
<kinners> dan2: do you mean a module type signature?
<dan2> sure
<kinners> module type Foo = sig type t val frobnicate : t -> int end ?
cjohnson has quit [Connection timed out]
<kinners> and a .mli file is just what's between the sig and end
cjohnson has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
mrsolo has joined #ocaml
clog has joined #ocaml
slashvar[lri] has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
mlh has quit ["must sleep"]
shawn_ has joined #ocaml
shawn has quit [Read error: 104 (Connection reset by peer)]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
Iter has quit [Read error: 110 (Connection timed out)]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
Zaius has joined #ocaml
tea has quit [Read error: 60 (Operation timed out)]
tea has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
vezenchio has quit ["I thought what I'd do was, I'd pretend to be one of those deaf-mutes"]
vezenchio has joined #ocaml
cjohnson has quit [Success]
cjohnson has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
Anvil_Vapre has joined #ocaml
mrsolo has quit [Read error: 110 (Connection timed out)]
Anvil_Vapre has quit [Client Quit]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
zigong__ has quit ["Leaving"]
zigong has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
monochrom has joined #ocaml
reltuk has joined #ocaml
Nutssh has joined #ocaml
reltuk has quit [Connection reset by peer]
mlh has joined #ocaml
cjohnson has quit [Connection timed out]
_shawn has joined #ocaml
shawn_ has quit [Read error: 110 (Connection timed out)]
GreyLensman has joined #ocaml
cjohnson has joined #ocaml
Iter has joined #ocaml
<Hadaka> question: ocaml doesn't seem to be able to inline sqrt, since it is implemented as a C external function which calls the C sqrt function - is there any way around this?
<Hadaka> ahha! found the reason
<Hadaka> ocamlopt -ffast-math
<vidvandre> newbie question: does ocaml support unciode ?
alex-i has joined #ocaml
monochrom has quit ["Don't talk to those who talk to themselves."]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml