00:54
malc has quit ["no reason"]
02:14
JGibson___ has joined #ocaml
02:32
JGibson has quit [Read error: 110 (Connection timed out)]
03:19
<
awwaiid >
doobe do be do
04:26
comatoast has quit ["Whoosh!"]
05:29
pHa has joined #ocaml
06:49
graydon has quit []
07:46
clog has joined #ocaml
11:52
mellum has quit [Read error: 110 (Connection timed out)]
11:57
mellum has joined #ocaml
11:58
Cryptor has joined #ocaml
12:53
Cryptor has quit ["Leaving"]
13:15
smkl has quit [Read error: 104 (Connection reset by peer)]
13:16
smkl has joined #ocaml
14:18
smkl has quit [Read error: 110 (Connection timed out)]
14:35
pHa has quit [Read error: 104 (Connection reset by peer)]
14:40
pHa has joined #ocaml
14:40
smkl has joined #ocaml
19:37
samx has left #ocaml []
19:37
samx has joined #ocaml
20:01
__DL__ has joined #ocaml
20:07
Helix has joined #ocaml
20:08
<
Helix >
anyone home?
20:08
Helix has quit [Excess Flood]
20:08
Helix has joined #ocaml
21:02
graydon has joined #ocaml
21:27
Flyer has joined #ocaml
21:32
<
awwaiid >
ding dong
21:34
JGibson___ is now known as JGibson
21:35
Flyer has quit ["Client Exiting"]
21:54
<
awwaiid >
hm. I'm not so cool.
21:56
<
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.
21:57
<
awwaiid >
just thought I'd share
21:57
<
Taaus >
Hehe, serves them right... I bet the O'Caml version outperforms the Java version as well ;)
21:58
<
awwaiid >
most definately
21:58
<
mellum >
Hm, I think two pages for a lexer os pretty much... what the hell are you lexing?
21:59
<
awwaiid >
a mini language called c-minus
21:59
<
mellum >
Or do you mean two pages including all lexing functions?
22:00
<
awwaiid >
hm. maybe slightly more than two.
22:01
<
awwaiid >
if I was allowed to use lex it would be much less than a single page
22:01
<
mellum >
Well, but then it would be boring :)
22:02
<
awwaiid >
alight, I
22:02
<
awwaiid >
all right I'm off, talk to you all later.
22:02
awwaiid has left #ocaml []
22:19
__DL__ has quit [Read error: 104 (Connection reset by peer)]
23:05
graydon has quit []
23:32
GnuVince has joined #ocaml
23:33
<
GnuVince >
Hello people
23:34
<
GnuVince >
Taaus: I am new to O'Caml, can you help me with big_int's?
23:34
<
Taaus >
Ah, I'm afraid not... I'm new to O'Caml myself :/
23:35
<
GnuVince >
I tried O'Caml a couple of months ago
23:35
<
GnuVince >
couldn't get a grip of it
23:35
<
GnuVince >
I'm trying again
23:36
<
GnuVince >
I especially had a problem with its typing system and the fact that variables are immutable
23:36
<
Taaus >
Yes.. It's quite different from, say, Ruby ;)
23:37
<
GnuVince >
Did I see you on #ruby-lang?
23:37
<
GnuVince >
Or did I troll you with it?
23:38
<
Taaus >
I'm on #ruby-lang :)
23:38
<
GnuVince >
[18:41:52] --- [Taaus] (~Taaus@cpe.atm0-0-0-196156.0x3ef21ebe.boanxx5.customer.tele.dk) : Taaus
23:38
<
GnuVince >
[18:41:52] --- [Taaus] #ocaml
23:38
<
GnuVince >
Weird... invisible option maybe?
23:39
<
Taaus >
Try again, now that you've joined the channel.
23:39
<
GnuVince >
and yeah, O'Caml is much tougher than Ruby
23:39
<
GnuVince >
yep, I see #ruby-lang now too
23:39
<
Taaus >
I wouldn't say tougher... It's just a different approach ;)
23:40
<
GnuVince >
let me rephrase
23:40
<
GnuVince >
The O'Caml approach seems tougher to me than Ruby's
23:41
<
Taaus >
Agreed... Functional style takes some getting used to, if you're an imperative kind of guy ;)
23:43
<
GnuVince >
and O'Caml's syntax confuses me
23:43
<
GnuVince >
I always wonder "Will that compile? Did I put the semi-colons where they had too?"
23:43
<
Taaus >
Well, usually it's pretty easy to place the semicolons...
23:44
<
GnuVince >
consider this:
23:44
<
GnuVince >
if (Array.length Sys.argv < 2) then begin
23:44
<
GnuVince >
Printf.printf "Usage: %s <Integer>\n", Sys.argv.(1);
23:44
<
GnuVince >
I wouldn't know if this's right
23:47
<
Taaus >
I can see what you mean... :)
23:47
<
GnuVince >
I can't figure it out :(
23:50
<
GnuVince >
Any idea?
23:50
<
Taaus >
I'm looking at it right now... The error is quite... Interesting ;)
23:51
<
GnuVince >
Not the kind of thing we get in Ruby, heh?
23:51
<
Taaus >
Well, there are some points where Ruby irritates me, so.... ;)
23:52
<
GnuVince >
Yeah me too
23:52
<
GnuVince >
but one in particular
23:52
<
GnuVince >
People seem not to be interested with it :(
23:53
<
GnuVince >
Any idea?
23:53
<
Taaus >
Well, that isn't a problem with Ruby ;)
23:53
<
Taaus >
Are you sure you're using Printf properly?
23:54
<
GnuVince >
wait a second
23:54
<
GnuVince >
there's no comma
23:57
<
Taaus >
Well, that removed one of the errors :)
23:57
<
GnuVince >
it compiles here
23:58
<
Taaus >
Hmm.. Okay...
23:58
<
Taaus >
I'm using the toplevel loop thingy.
23:58
<
GnuVince >
add a ';' after exit 1