sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
mnemonic has joined #ocaml
<mnemonic> hi
malc_ has joined #ocaml
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
smimou has quit ["bli"]
david_koontz has joined #ocaml
dkoontz has quit [Connection timed out]
Balakirev has joined #ocaml
ludwig- has quit [Read error: 110 (Connection timed out)]
david_koontz has quit ["Leaving"]
love-pingoo has quit ["Connection reset by pear"]
ikaros_ has quit ["Leaving"]
ikaros has joined #ocaml
romanoffi has quit [Read error: 110 (Connection timed out)]
malc_ has quit ["leaving"]
descender has quit [Remote closed the connection]
mnemonic has quit ["leaving"]
mbishop has quit [Remote closed the connection]
david_koontz has joined #ocaml
gim_ has quit ["zzz"]
er has quit []
Balakirev has quit [Remote closed the connection]
Smerdyakov has quit ["Leaving"]
jeffs has joined #ocaml
<jeffs> hello!
<jeffs> :(
joshcryer has joined #ocaml
ludwig has joined #ocaml
ludwig is now known as ludwig-
david_koontz has quit ["This computer has gone to sleep"]
joshcryer has quit [Connection timed out]
david_koontz has joined #ocaml
jeffs has quit []
johnnowak has joined #ocaml
pstickne has joined #ocaml
david_koontz has quit ["This computer has gone to sleep"]
diffbavis has quit [Read error: 104 (Connection reset by peer)]
johnnowak has quit []
diffbavis has joined #ocaml
swater has joined #ocaml
Mr_Awesome has quit ["...and the Awesome level drops"]
alcojol has joined #ocaml
alcojol has left #ocaml []
swater has quit ["Quat"]
swater has joined #ocaml
love-pingoo has joined #ocaml
diffbavis has quit [Read error: 131 (Connection reset by peer)]
diffbavis has joined #ocaml
bluestorm_ has joined #ocaml
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
love-pingoo has quit ["Connection reset by pear"]
smimou has joined #ocaml
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
smimou has quit ["bli"]
as has joined #ocaml
as has quit ["Meritocracy"]
ikaros_ has joined #ocaml
mefyl__ has joined #ocaml
mefyl has quit [Read error: 110 (Connection timed out)]
mefyl__ is now known as mefyl
slipstream has quit [Read error: 110 (Connection timed out)]
mefyl_ has joined #ocaml
mefyl has quit [Nick collision from services.]
mefyl_ is now known as mefyl
smimou has joined #ocaml
jlouis_ has quit [Remote closed the connection]
david_koontz has joined #ocaml
Smerdyakov has joined #ocaml
malc_ has joined #ocaml
trisiak has quit ["leaving"]
lihaitao has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
ikaros_ has quit [No route to host]
lihaitao has quit []
benny has joined #ocaml
benny_ has quit [Read error: 110 (Connection timed out)]
Mr_Awesome has joined #ocaml
slipstream has joined #ocaml
a-priori has joined #ocaml
david_koontz_ has joined #ocaml
bluestorm_ has quit ["Konversation terminated!"]
david_koontz has quit [Read error: 110 (Connection timed out)]
david_koontz_ has quit [Client Quit]
User428 has joined #ocaml
User428 is now known as jeffs
bluestorm_ has joined #ocaml
<jeffs> howdy
ikaros_ has joined #ocaml
<jacobian> howdy partner
<jeffs> i'm looking for projects :)
<jacobian> hehe
<jacobian> no dearth of those
<jacobian> how difficult?
<jacobian> and what are you interested in?
<jacobian> I'll tell you what I'd like people to write in ocaml for me
<jeffs> sure!
<jacobian> somebody should write a blog engine
<jacobian> and a supercompiler for a subset of the language
<bluestorm_> a Qt binding
<jacobian> oh, and xapian bindings
jeffs has quit [Remote closed the connection]
<jacobian> and if you have a couple hundred man years, you might want to write a database...
<jacobian> damn.. I missed
<jacobian> It would be nice to have a tutorial D like language in ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
jeffs has joined #ocaml
<jeffs> I was using a stupid java irc client and it crashed.
<jeffs> most of those projects sounded way over my head. If i were to do any sort of bindings to c it would have to be something simple.
<jacobian> collections of datastructures can be really useful
<jeffs> I'm best with text processing.
<jacobian> try looking around and seeing what is missing
<jeffs> One thing I've thought about doing is a functional regular expression library.
<jacobian> well, they already have a good regexp lib
<jeffs> Ya... it'd be just an excercise really.
<jacobian> for an exercise how about a combinator parser
<jeffs> hm, lemme look up exactly what that is. I've written a couple types of parsers already.
<jacobian> it's a kind of top down parser that is relatively easy to implement and very easy to use
<jeffs> is it related to a chart parser?
malc_ has quit ["leaving"]
bluestorm_ has quit ["Konversation terminated!"]
<jeffs> if you could point me to a definition or example that'd get me started
<jacobian> It's a library of combinators that implement parsing, you construct a parser for a language by composition of combinators
<jeffs> I think I found a paper that describes it.
<jacobian> it is very close to using DCGs in prolog
<jacobian> except you can get better performance and have better control over non determinism
<jeffs> It seems that haskell is very popular for this sort of work
<jacobian> yup
<jacobian> since they have syntactic sugar for monads
<jeffs> I've looked at haskell, but I haven't taken the time to learn it yet.
<jeffs> Same with TCL.
<jacobian> haskell is kind of hard to learn, at least it took me longer to start writing non-trivial programs then pretty much any other language I've learned
<jeffs> the standard library looks daunting in itself
<jacobian> My first day writing ocaml I wrote a replacement for a maximal substring matching algorithm that was written in python
<jacobian> The program is still in use... I can't say my first day in haskell was productive at all :)
<jeffs> It's great how caml supports so many styles of programming - translating things can be easy.
<jeffs> translating into caml tha tis
<jacobian> thats true
<jacobian> In the above case however I translated an imperative algorithm to a purely functional one
<jacobian> it still ran 600 times faster though
<jacobian> :)
malc_ has joined #ocaml
hs has joined #ocaml
<hs> good night everyone
<jeffs> g'night
<hs> is there an easy way to code a String.split in ocaml ?
<jeffs> yes
<jeffs> in fact i'm pretty sure I have
<hs> I haven't got to regex and stuff (if there is support) but i need this soon
<jeffs> want me to look for it?
<hs> no, just give me a hint
<jeffs> ok 1 sec
<hs> is it regular expressions etc?
<hs> of parsing like c ? i hope not
<jeffs> no, i wrote it without any regex stuff
<hs> Cool
<hs> also, is there a place where i find methods for classes(modules?), specially Array ?
<hs> or should I say specifically
<hs> ...
<jeffs> Does this have what you're looking for with respect to arrays? http://caml.inria.fr/pub/docs/manual-ocaml/manual034.html
<jeffs> And actually... how did you want to split the string? by specific characters or something more complex such as substrings that pass a test?
<hs> since the input is not defined yet, i am going for the easier way, either csv or just space-separated numeric values
<hs> I just want to read a bunch of vector coordinates
<hs> (0.0, 1.2, 4.0, 5.1)
<hs> oh and the link is what I was looking for, yes
<jeffs> ah
<hs> tks for being so helpfuk
<hs> helpful
<jeffs> no problem
<jeffs> And I think Scanf might have what you're looking for.
<jeffs> so you can do something like
<jeffs> Scanf.sscanf inputstring "(%f, %f, %f, %f)" (fun a b c d -> do stuff on the floats)
<hs> nice, this solution will do it for now!
<jeffs> you're welcome and good luck!
<hs> in the future i`d like a function that returns a list, so it doesn`t look so fixed, but for now it`s great
<hs> see ya
<jeffs> 1 sec
<jeffs> Scanf.sscanf inputstring "(%f, %f, %f, %f)" (fun a b c d -> [a;b;c;d])
<jeffs> it returns a list ;)
<hs> great
<hs> thank you so much
<jeffs> you're welcome
<hs> see ya !
<jeffs> see you
hs has quit ["uhaaaaaaaa"]
jeffs has quit ["Quit"]
ircleuser has joined #ocaml
<ircleuser> back
jlouis has joined #ocaml
ircleuser is now known as jeffs
<jeffs> test
<jeffs> ok
trisiak has joined #ocaml
diffbavis has quit [Read error: 131 (Connection reset by peer)]
mbishop has joined #ocaml
mbishop has quit [Client Quit]
mbishop has joined #ocaml