00:47
malc has joined #ocaml
01:01
malc has quit ["no reason"]
01:04
Kinners has joined #ocaml
01:04
sproctor has quit ["I like core dumps"]
01:42
systems has joined #ocaml
02:00
Kinners has left #ocaml []
02:02
systems has quit [Read error: 60 (Operation timed out)]
02:27
lament has joined #ocaml
03:03
redcrosse has joined #ocaml
03:17
foxen has quit [Connection reset by peer]
03:21
foxster has joined #ocaml
03:34
mattam has quit [Read error: 110 (Connection timed out)]
03:38
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
04:00
<
pattern >
what do you guys think of f# ?
04:08
<
pattern >
"F# is a mixed functional/imperative programming language based on the design of the functional language Caml and the .NET language C#."
04:14
<
pattern >
...not that i'd want to get within a hundred meters of anything that was associated with microsoft
04:15
<
pattern >
but i'm curious if anyone knows what the real story is, behind all the hype
04:24
skylan has quit ["Reconnecting"]
04:24
skylan has joined #ocaml
04:59
<
redcrosse >
pattern: i've played around with f# a bit
04:59
<
redcrosse >
anything specific you wanted to know?
05:02
<
pattern >
just hoping to get a general ocaml lover's oppinion of f#
05:02
<
pattern >
does it suck? is it great? and why? in general terms...
05:03
<
redcrosse >
hmm. it's interesting if you need to .net
05:03
<
redcrosse >
to use .net
05:03
<
redcrosse >
they've written some additions to the clr to support some functional paradigm things
05:04
<
redcrosse >
but it's still developing
05:05
<
redcrosse >
there seemed to be some initial interest (based on the mailing list traffic), but it's died down to nothing
05:07
<
pattern >
interesting
05:08
<
redcrosse >
yeah, it's neat if you, like I said, need to use the .net framework
05:10
<
redcrosse >
i believe the same guys did the coming generics implementation for c# too
05:19
redcrosse has quit ["using sirc version 2.211+KSIRC/1.2.4"]
05:21
<
pattern >
i don't need to use .net
05:22
<
pattern >
but i was interested to hear if microsoft could get anything right ;)
05:43
lament has joined #ocaml
06:27
asquii has joined #ocaml
06:28
asqui has quit [Read error: 60 (Operation timed out)]
06:28
asquii is now known as asqui
06:30
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
07:10
Zadeh has joined #ocaml
08:26
TachYon76 has joined #ocaml
08:30
TachYon76 has quit [Remote closed the connection]
08:45
TachYon76 has joined #ocaml
08:51
TachYon76 has quit [Remote closed the connection]
08:56
xxd has quit [Remote closed the connection]
09:04
foxen has joined #ocaml
09:13
foxen has quit [Read error: 60 (Operation timed out)]
09:21
foxster has quit [Read error: 110 (Connection timed out)]
09:45
async has quit [Remote closed the connection]
09:45
async_ has joined #ocaml
10:00
foxster has joined #ocaml
10:44
mattam has joined #ocaml
10:45
async_ has quit [leguin.freenode.net irc.freenode.net]
10:45
asqui has quit [leguin.freenode.net irc.freenode.net]
10:45
skylan has quit [leguin.freenode.net irc.freenode.net]
10:45
polin8 has quit [leguin.freenode.net irc.freenode.net]
10:45
mrvn has quit [leguin.freenode.net irc.freenode.net]
10:45
Riastradh has quit [leguin.freenode.net irc.freenode.net]
10:45
rox has quit [leguin.freenode.net irc.freenode.net]
10:45
mellum has quit [leguin.freenode.net irc.freenode.net]
10:45
whee has quit [leguin.freenode.net irc.freenode.net]
10:45
smkl has quit [leguin.freenode.net irc.freenode.net]
10:45
gl has quit [leguin.freenode.net irc.freenode.net]
10:45
xkb has quit [leguin.freenode.net irc.freenode.net]
10:45
xtrm has quit [leguin.freenode.net irc.freenode.net]
10:45
emu has quit [leguin.freenode.net irc.freenode.net]
10:46
async_ has joined #ocaml
10:46
asqui has joined #ocaml
10:46
skylan has joined #ocaml
10:46
polin8 has joined #ocaml
10:46
rox has joined #ocaml
10:46
Riastradh has joined #ocaml
10:46
mrvn has joined #ocaml
10:46
mellum has joined #ocaml
10:46
emu has joined #ocaml
10:46
whee has joined #ocaml
10:46
smkl has joined #ocaml
10:46
xkb has joined #ocaml
10:46
xtrm has joined #ocaml
10:46
gl has joined #ocaml
10:46
asqui has quit [Excess Flood]
10:46
pattern is now known as pattern_
10:47
asqui has joined #ocaml
11:35
pattern_ has quit ["..."]
11:35
pattern_ has joined #ocaml
12:18
<
pattern_ >
and now i'm off to sleep
13:00
Yurik has joined #ocaml
13:20
mellum has quit [Read error: 110 (Connection timed out)]
13:23
mellum has joined #ocaml
13:25
Yurik has quit ["÷ÙÛÅÌ ÉÚ XChat"]
14:30
Yurik has joined #ocaml
15:08
Yurik has quit [Read error: 54 (Connection reset by peer)]
15:12
Yurik has joined #ocaml
16:10
Yurik has quit ["÷ÙÛÅÌ ÉÚ XChat"]
16:11
redcrosse has joined #ocaml
17:03
skylan has quit [Read error: 54 (Connection reset by peer)]
17:12
skylan has joined #ocaml
17:55
phubuh has joined #ocaml
17:55
steele has quit [Read error: 104 (Connection reset by peer)]
18:33
steele has joined #ocaml
18:37
mrvn_ has joined #ocaml
18:42
mrvn has quit [Read error: 60 (Operation timed out)]
19:08
coolduck has joined #ocaml
19:10
steele has quit ["ircII EPIC4-1.1.2 -- Are we there yet?"]
19:15
Kinners has joined #ocaml
19:49
<
Kinners >
is there a ghostscript previewer written in ocaml?
20:04
<
mellum >
I don't think so.
20:05
<
mellum >
Really? A complete postscript interpreter?
20:05
<
emu >
it sounds funny though
20:15
<
Kinners >
hmm, I must have been thinking of WhizzyTex
20:18
<
phubuh >
whizzytex can use advi, which is a DVI viewer written in o'caml.
20:22
<
Kinners >
right, I visited the page a while back, and it lodged in my brain as a ghostscript previewer for some reason
20:25
<
Kinners >
1 2 check check 1 2 :)
20:29
coolduck has quit ["Client Exiting"]
21:25
palomer has joined #ocaml
21:58
xxd has joined #ocaml
22:47
<
phubuh >
why does this give a stack overflow when called on a very simple
22:47
<
phubuh >
gah, darn auto-fill!
22:47
<
phubuh >
let show_of_string str =
22:47
<
phubuh >
let elts = Str.split (Str.regexp "\\|") str in
22:47
<
phubuh >
match elts with
22:47
<
phubuh >
| i :: name :: desc :: tl -> ((interval_of_string i), name, desc)
22:47
<
phubuh >
| _ -> raise (Invalid_show str)
22:47
<
Riastradh >
Is interval_of_string tail recursive?
22:48
<
Riastradh >
That might explain it, then.
22:48
<
Riastradh >
Er, is it recursive at all?
22:48
<
phubuh >
oops, I read that as "Is interval_of_string recursive?"
22:48
<
Riastradh >
Ah, ok, never mind.
22:49
<
Riastradh >
Are Str.split and Str.regexp recursive, and if so, are they tail recursive?
22:51
<
phubuh >
i'd guess they are recursive, but i don't know. Str is the string manipulation library that comes with ocaml
23:00
<
palomer >
whats the ocaml emacs mode called?
23:00
<
Riastradh >
Most likely 'caml-mode' or something.
23:00
<
phubuh >
tuareg-mode
23:01
<
palomer >
tried caml-mode
23:01
<
palomer >
what extension should my files have?
23:01
<
Riastradh >
.ml for source files, .mli for interface files.
23:02
<
palomer >
ohmy, I guess it's just not part of portage yet
23:03
<
Riastradh >
Is the Tuareg mode better than the Caml mode?
23:03
<
Riastradh >
That is, vastly superiour, not just 'better.'
23:04
<
phubuh >
i love emacs with tuareg. it can run an inferior o'caml toplevel, and it syntax highlights it, and you can use regular emacs buffer editing to edit input to it.
23:04
<
Riastradh >
Er...you can do the same with the Caml mode.
23:04
<
palomer >
and how do I associate an extension with an elisp file?
23:04
<
phubuh >
oh. then i suppose tuareg is just 'better' :-)
23:04
<
Riastradh >
.el for source, .elc for bytecode.
23:05
<
phubuh >
(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
23:05
<
phubuh >
(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
23:05
<
phubuh >
(autoload 'camldebug "camldebug" "Run the Caml debugger" t)
23:06
<
phubuh >
you might need to do something like (add-to-list 'load-path "~/.elisp/tuareg") where ~/.elisp/tuareg is the directory where tuareg is unpacked
23:06
Kinners has left #ocaml []
23:06
<
palomer >
I unpacked it directly in elisp
23:08
<
palomer >
nhouldn it be (autoload 'tuareg-mode "tuareg.el" "Major mode for editing Caml code" t)?
23:11
det has joined #ocaml
23:13
<
palomer >
would it be wise to have emacs automatically end a line with a ;; if needed?
23:15
<
mrvn_ >
palomer: It does
23:15
<
mrvn_ >
.oO( since its never needed )
23:19
<
asqui >
Whats the difference betwee "and" and "&&", "or" and "||" in caml light?
23:19
<
asqui >
And are these called boolean
*operators* or boolean *functions*, within the context of caml?
23:20
<
mrvn_ >
and is for lets and && for logical. & and && and || and or are the same. (in ocaml)
23:20
<
Riastradh >
& isn't bitwise-and?
23:20
<
asqui >
for "lets" ?
23:20
<
Riastradh >
let x = "x" and y = "y" in z
23:20
<
mrvn_ >
let a = 15 and b = 16;
23:21
<
mrvn_ >
- : bool -> bool -> bool = <fun>
23:21
<
mrvn_ >
- : bool -> bool -> bool = <fun>
23:21
<
Riastradh >
Humph, -is- there a bitwise and in OCaml?
23:21
<
whee >
Riastradh: yes
23:22
<
asqui >
And is it correct to refer to them as operators or functions?
23:22
<
Riastradh >
What is it in OCaml?
23:23
<
Riastradh >
Gack, it's a syntax and not a function?
23:23
<
whee >
asqui: they're functions, except applied infix by default
23:23
<
whee >
Riastradh: refer to it as (land) if you want it as a function
23:23
<
Riastradh >
Oh, I see.
23:23
* Riastradh
grumbles at infixy stuff.
23:23
<
whee >
it's just like + or * or any other infix operator, you use parens when you want to refer to the function
23:24
Hellfried has joined #ocaml
23:24
<
asqui >
whee: In poor old caml-light you have to use "prefix foo" :\
23:25
<
asqui >
okay so "&&" is boolean AND, "||" and "or" are boolean OR, "not" is boolean NOT. Is that the exhaustive list?
23:26
<
whee >
cherk the pervasives docs
23:26
<
Riastradh >
Is there no boolean xor built in?
23:26
<
whee >
Riastradh: <>
23:27
<
Riastradh >
OK, asqui, add that one.
23:28
<
whee >
<> is really not = but it has the same behavior as a xor would
23:29
<
whee >
then there's != for not ==
23:29
<
asqui >
how is "not =" equivalent to XOR?
23:29
<
whee >
asqui: it is.
23:29
<
asqui >
oh yeah it is...
*cough*
23:30
<
asqui >
whats a concise way fo saying "are short-circuitable"?
23:37
<
emu >
so long as you accept 0 as false and not 0 as true =)
23:37
<
whee >
not = is the same as boolean xor, integers don't come into the picture
23:38
<
whee >
assuming not = in this case is bool -> bool -> bool
23:38
<
emu >
ah, boolean xor
23:38
<
emu >
oops, didn't read that
23:38
<
whee >
there's lxor for handling numbers
23:40
<
emu >
where's my fregeian quantifiers, dammit
23:45
<
palomer >
fortran.net is far superior to anything
23:47
* palomer
cashes up to emu and kicks him in the cobol
23:48
* emu
lisps his way out
23:48
<
palomer >
s/cashes/caches
23:49
* palomer
uses his basic instinct to bash him again
23:53
* emu
sets forth malbolge
23:53
<
emu >
the world has ended
23:54
* palomer
hops on his caml and runs away
23:54
<
asqui >
I dont suppose there is any way to achieve the functionality of the "implies" logical connective using caml builtins?
23:55
<
asqui >
ie 1 1 0; 1 0 0; 0 1 1; 0 0 1; truth-table
23:56
<
mellum >
not a || a and b?
23:56
<
mellum >
erm, s,and,&&,
23:56
<
asqui >
thats just "not B or A"...
23:57
<
asqui >
B or NOT A...
23:57
<
palomer >
hrm, I'm following a tutorial and they don't say what the . operator does, anyone have any idea?
23:57
<
mellum >
I don't think there is one
23:58
<
mellum >
Oh. That adds floats.
23:59
<
whee >
asqui: whip out a k-map, easy way to figure that out
23:59
<
whee >
or use some algorithm that I've never learned entirely :)