huxley.openprojects.net changed the topic of #ocaml to: www.ocaml.org
malc has quit ["no reason"]
JGibson___ has joined #ocaml
JGibson has quit [Read error: 110 (Connection timed out)]
<awwaiid> doobe do be do
comatoast has quit ["Whoosh!"]
pHa has joined #ocaml
graydon has quit []
clog has quit [^C]
clog has joined #ocaml
mellum has quit [Read error: 110 (Connection timed out)]
mellum has joined #ocaml
Cryptor has joined #ocaml
Cryptor has quit ["Leaving"]
smkl has quit [Read error: 104 (Connection reset by peer)]
smkl has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
pHa has quit [Read error: 104 (Connection reset by peer)]
pHa has joined #ocaml
smkl has joined #ocaml
samx has left #ocaml []
samx has joined #ocaml
__DL__ has joined #ocaml
Helix has joined #ocaml
<Helix> anyone home?
Helix has quit [Excess Flood]
Helix has joined #ocaml
Helix has quit ["(I was using Polaris IRC 2001) Version:(4.0 Platinum) Webpage:(http://www.polaris-central.com) "]
graydon has joined #ocaml
Flyer has joined #ocaml
<awwaiid> ding dong
<JGibson___> eh
JGibson___ is now known as JGibson
Flyer has quit ["Client Exiting"]
<samx> pong
<Taaus> pøng
<mellum> pöng
<awwaiid> poing
<awwaiid> hm. I'm not so cool.
<Taaus> Hehe.
<awwaiid> I'm taking a compiler class and the teacher let us use whatever language we want, so I'm using ocaml. My lexer is only two pages long (we had to directly translate from a DFA) compaired to others who did it in java who are running on 4 to 5 pages.
<awwaiid> just thought I'd share
<Taaus> Hehe, serves them right... I bet the O'Caml version outperforms the Java version as well ;)
<awwaiid> most definately
<mellum> Hm, I think two pages for a lexer os pretty much... what the hell are you lexing?
<awwaiid> a mini language called c-minus
<mellum> Or do you mean two pages including all lexing functions?
<awwaiid> is the assignment. http://134.114.183.105/projects/school/cse481/lexer/ is my work-in-progress.
<awwaiid> hm. maybe slightly more than two.
<awwaiid> if I was allowed to use lex it would be much less than a single page
<mellum> Well, but then it would be boring :)
<awwaiid> yep :)
<awwaiid> alight, I
<awwaiid> er
<awwaiid> all right I'm off, talk to you all later.
<Taaus> See ya :)
awwaiid has left #ocaml []
__DL__ has quit [Read error: 104 (Connection reset by peer)]
graydon has quit []
GnuVince has joined #ocaml
<GnuVince> Hello people
<Taaus> Hey.
<GnuVince> Taaus: I am new to O'Caml, can you help me with big_int's?
<Taaus> Ah, I'm afraid not... I'm new to O'Caml myself :/
<GnuVince> Heh
<GnuVince> I tried O'Caml a couple of months ago
<GnuVince> couldn't get a grip of it
<GnuVince> I'm trying again
<Taaus> Heh :)
<GnuVince> I especially had a problem with its typing system and the fact that variables are immutable
<Taaus> Yes.. It's quite different from, say, Ruby ;)
<GnuVince> Did I see you on #ruby-lang?
<GnuVince> Or did I troll you with it?
<Taaus> I'm on #ruby-lang :)
<GnuVince> [18:41:52] --- [Taaus] (~Taaus@cpe.atm0-0-0-196156.0x3ef21ebe.boanxx5.customer.tele.dk) : Taaus
<GnuVince> [18:41:52] --- [Taaus] #ocaml
<GnuVince> Weird... invisible option maybe?
<Taaus> Probably.
<Taaus> Try again, now that you've joined the channel.
<GnuVince> and yeah, O'Caml is much tougher than Ruby
<GnuVince> yep, I see #ruby-lang now too
<Taaus> I wouldn't say tougher... It's just a different approach ;)
<GnuVince> let me rephrase
<GnuVince> The O'Caml approach seems tougher to me than Ruby's
<Taaus> Agreed... Functional style takes some getting used to, if you're an imperative kind of guy ;)
<GnuVince> yeah
<GnuVince> and O'Caml's syntax confuses me
<GnuVince> I always wonder "Will that compile? Did I put the semi-colons where they had too?"
<Taaus> Well, usually it's pretty easy to place the semicolons...
<GnuVince> consider this:
<GnuVince> let _ =
<GnuVince> if (Array.length Sys.argv < 2) then begin
<GnuVince> Printf.printf "Usage: %s <Integer>\n", Sys.argv.(1);
<GnuVince> exit 1;
<GnuVince> end
<GnuVince> I wouldn't know if this's right
<Taaus> Hmm...
<GnuVince> so?
<Taaus> I can see what you mean... :)
<GnuVince> heh
<GnuVince> I can't figure it out :(
<GnuVince> Any idea?
<Taaus> I'm looking at it right now... The error is quite... Interesting ;)
<GnuVince> Not the kind of thing we get in Ruby, heh?
<Taaus> Well, there are some points where Ruby irritates me, so.... ;)
<GnuVince> Yeah me too
<GnuVince> but one in particular
<GnuVince> People seem not to be interested with it :(
<GnuVince> So?
<GnuVince> Any idea?
<Taaus> Well, that isn't a problem with Ruby ;)
<Taaus> Are you sure you're using Printf properly?
<GnuVince> wait a second
<GnuVince> Nope
<GnuVince> there's no comma
<Taaus> Well, that removed one of the errors :)
<GnuVince> it compiles here
<Taaus> Hmm.. Okay...
<Taaus> I'm using the toplevel loop thingy.
<GnuVince> Oh yeah
<GnuVince> add a ';' after exit 1
<GnuVince> oh