00:24
CosmicRay has joined #ocaml
00:44
jlouis has quit ["Leaving"]
00:48
jynxzero has quit [clarke.freenode.net irc.freenode.net]
00:48
bla has quit [clarke.freenode.net irc.freenode.net]
00:48
jdev has quit [clarke.freenode.net irc.freenode.net]
00:53
jdev has joined #ocaml
00:54
jynxzero has joined #ocaml
00:57
mbishop has quit ["Konversation terminated!"]
01:00
mbishop has joined #ocaml
01:04
Morphous_ has joined #ocaml
01:06
Axioplase is now known as Axioplase_
01:07
bla has joined #ocaml
01:09
redocdam has quit []
01:20
Morphous has quit [Connection timed out]
01:23
delamarche has joined #ocaml
01:28
delamarche has quit []
01:28
delamarche has joined #ocaml
01:32
Kopophex has quit [Read error: 110 (Connection timed out)]
01:33
Kopophex has joined #ocaml
01:38
pango_ has quit [Remote closed the connection]
01:40
pango_ has joined #ocaml
01:45
delamarche has quit [Connection timed out]
01:47
delamarche has joined #ocaml
01:48
delamarche has quit [Read error: 60 (Operation timed out)]
01:58
delamarche has joined #ocaml
01:58
peck has quit ["Leaving."]
01:59
delamarche has quit [Read error: 60 (Operation timed out)]
02:09
delamarche has joined #ocaml
02:21
thanhvu has joined #ocaml
02:22
thanhvu is now known as tvn1981
02:25
<
tvn1981 >
I have written a function f in a file called f.ml , how would I consult function f from the interactive mode ?
02:25
delamarche has quit [Connection timed out]
02:27
delamarche has joined #ocaml
02:28
marmotine has quit ["mv marmotine Laurie"]
02:31
tvn1981 is now known as tvn1981a
02:33
delamarche_ has joined #ocaml
02:34
<
tvn1981a >
I have written a function f in a file called f.ml , how would I consult function f from the interactive mode ?
02:40
<
hcarty >
tvn1981a: #use "f.ml";;
02:40
<
tvn1981a >
thanks -- I was using "open"
02:41
Axioplase has joined #ocaml
02:41
<
tvn1981a >
it says unbound value use
02:42
<
hcarty >
You need the # in front of #use
02:42
<
hcarty >
"#use" is a command specific to the toplevel
02:42
<
tvn1981a >
ah got it --
02:42
<
tvn1981a >
also the interactive mode is not very convenient -- like I cannot backspace or repeat commands
02:42
<
tvn1981a >
is there a better one?
02:43
<
hcarty >
Most people seem to use either rlwrap or ledit
02:43
<
hcarty >
Both act as wrappers around the toplevel
02:43
<
hcarty >
So rather than running "ocaml" you would run "rlwrap ocaml"
02:44
<
tvn1981a >
ic, thanks
02:44
<
hcarty >
tuareg-mode for emacs also apparently provides special support for the OCaml toplevel, though I have not used it
02:44
delamarche has quit [Read error: 110 (Connection timed out)]
02:44
Kopophex_ has joined #ocaml
02:44
<
hcarty >
You are quite welcome
02:44
<
tvn1981a >
I need to find rlwrap -- it's not installed by default on my mac
02:45
<
hcarty >
I'm not sure of the proper way to install it on a mac
02:45
Kopophex has quit [Connection timed out]
02:45
<
hcarty >
There is, I think, a Mac-specific toplevel wrapper
02:45
<
hcarty >
I don't remember the name though
02:46
<
tvn1981a >
oh it's avail at darwinport
02:46
<
tvn1981a >
so I should be able to get it
02:46
<
tvn1981a >
thanks !
02:49
<
hcarty >
I hope it helps
03:11
struktured has joined #ocaml
03:17
<
tvn1981a >
another question, is it possible to make call to ocaml libraries in a language like C++ ?
03:31
<
struktured >
tvn1981a, yes.
03:33
<
tvn1981a >
thanks -- what's wrong with this definition ? let printList l = List.iter (fun s -> Printf.printf "%d" s) l;; ?
03:54
<
struktured >
nothing
03:54
<
struktured >
works for me
04:05
Kopophex_ has quit [Read error: 110 (Connection timed out)]
04:06
Kopophex_ has joined #ocaml
04:17
Axioplase has quit ["leaving"]
04:19
Associat0r has joined #ocaml
05:12
Kopophex_ has quit [Read error: 110 (Connection timed out)]
05:12
Kopophex_ has joined #ocaml
05:21
seafood has quit []
05:23
seafood has joined #ocaml
05:26
CosmicRay has quit ["Client exiting"]
06:04
Kopophex_ has quit ["Leaving"]
06:05
Mr_Awesome has joined #ocaml
06:16
mishok13 has quit [Read error: 110 (Connection timed out)]
06:18
l_a_m has joined #ocaml
06:46
Proteus has joined #ocaml
07:16
ygrek has joined #ocaml
07:26
<
flux >
tvn1981a, maybe your problem is that you don't flush the output
07:42
asmanur has joined #ocaml
07:55
Proteus_ has joined #ocaml
07:55
struktured_ has joined #ocaml
07:55
munga_ has joined #ocaml
07:59
Proteus__ has joined #ocaml
08:02
vixey has quit [Read error: 104 (Connection reset by peer)]
08:08
Proteus has quit [Read error: 110 (Connection timed out)]
08:15
Proteus_ has quit [Read error: 110 (Connection timed out)]
08:19
GustNG has joined #ocaml
08:21
struktured has quit [Read error: 110 (Connection timed out)]
08:22
tomh has joined #ocaml
08:26
mishok13 has joined #ocaml
08:30
guillem has joined #ocaml
08:34
OChameau has joined #ocaml
08:48
ygrek has quit [Remote closed the connection]
09:12
ygrek has joined #ocaml
09:48
OChameau has quit [Read error: 113 (No route to host)]
09:49
DacTheHork has joined #ocaml
09:54
redocdam has joined #ocaml
10:00
seafood has quit []
10:00
seafood has joined #ocaml
10:01
hml has joined #ocaml
10:01
<
hml >
in interpreted ocaml; when i get to an error; is it possible for me to modify the code and continue; smalltalk style?
10:02
<
asmanur >
what do you mean ?
10:07
hml has left #ocaml []
10:08
<
flux >
he's gone, but in any case: it isn't
10:09
<
GustNG >
Well it depends.
10:09
<
GustNG >
You could have a function reference.
10:09
<
GustNG >
Metaocaml even.
10:12
Jedai has joined #ocaml
10:21
szell` has joined #ocaml
10:27
<
flux >
well, you're not modifying the code in that case; you're creating new code and changing your references to point that code ;)
10:28
<
GustNG >
Well his 'modify' was a bit ambiguous so yeah.
10:30
szell has quit [Read error: 110 (Connection timed out)]
10:32
redocdam has quit []
10:36
l_a_m has quit ["leaving"]
10:37
l_a_m has joined #ocaml
10:42
Yoric[DT] has joined #ocaml
10:42
zhoupp has joined #ocaml
10:46
<
zhoupp >
I thought the OCaml channel would be much hotter than Haskell channel...
10:47
<
GustNG >
Well, start a discussion.
10:48
<
zhoupp >
Can I write macro in OCaml, like the ones in Common Lisp?
10:48
<
zhoupp >
sorry I'm a noob
10:50
<
flux >
yes can, with camlp4
10:50
<
flux >
hm, s/yes/you/
10:50
<
flux >
it's a preprocessor for ocaml
10:50
<
flux >
(comes with the distribution)
10:51
<
flux >
regrettably it's not quite as simple as it is in lisp, I suspect mostly because the syntax is more complex than lisp's
10:52
<
zhoupp >
Will the code evolve with design, as the lisp community advocates?
10:53
<
DacTheHork >
flux what does s/yes/you/ come from I see a lot of people do that
10:53
<
flux >
dacthehork, sed or vi
10:54
<
DacTheHork >
sed or vi?
10:54
<
flux >
both are standard unix tools
10:54
<
flux >
sed is a stream editor that can, among other things ,perform search and replace
10:55
<
zhoupp >
and s/yes/you/ means subsitute 'yes' with 'you'
10:56
<
zhoupp >
flux: Can u recommend me an OCaml book? I wanted to buy Pratical OCaml but I read the comments...
10:57
<
flux >
I think there's been one that's available free online and has been praised
10:57
<
flux >
I can't remember its name though, perhaps some of the other regulars can remember it :)
10:57
<
flux >
however, an excellent starting point is the documentation that comes with ocaml
10:58
<
zhoupp >
u mean Developing Applications with Objective Caml? Docs are hard to read...
10:58
<
flux >
no, there's another one
10:58
<
flux >
and not the one for scientists either (although I understand it's not bad either, but it's very expensive)
11:03
<
zhoupp >
I checked it out, Introduction to Objective Caml(draft), do u means this? yes ocaml-tutorial.org is awesome!
11:04
<
flux >
I'm not sure if that's the one I meant. however, if it is quite a long document, starts from the basics and is well-written, it might be it :)
11:04
<
flux >
is it by jason hickey?
11:04
<
flux >
I happened to have an older version around on my hd, so I think it's very likely the one I mean
11:05
<
zhoupp >
yeah, jason hickey
11:05
<
zhoupp >
thank you:)
11:06
OChameau has joined #ocaml
11:07
<
zhoupp >
btw flux, do you really read docs? I think it's a little too dreadful:(
11:08
<
flux >
yes, I really read the docs :)
11:09
<
flux >
I think in the case of ocaml they are also well-written
11:09
<
flux >
and relatively exhaustive
11:16
<
Associat0r >
well programming is inherently dreadfull
11:33
Yoric[DT] has quit ["Ex-Chat"]
11:34
sponge45 has joined #ocaml
11:39
sporkmonger has quit []
11:44
filp has joined #ocaml
12:02
delamarche_ has quit []
12:09
bluestorm has joined #ocaml
12:13
sporkmonger has joined #ocaml
12:14
jonafan_ has joined #ocaml
12:22
seafood has quit []
12:22
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
12:22
Mr_Awesome_ has joined #ocaml
12:30
struktured_ has quit [Read error: 110 (Connection timed out)]
12:31
struktured_ has joined #ocaml
12:31
jonafan has quit [Read error: 110 (Connection timed out)]
12:44
jlouis has joined #ocaml
12:48
struktured_ has quit [Read error: 104 (Connection reset by peer)]
12:49
struktured has joined #ocaml
12:54
struktured_ has joined #ocaml
13:09
bluestorm has quit ["Leaving"]
13:09
bluestorm has joined #ocaml
13:11
struktured has quit [Read error: 110 (Connection timed out)]
13:22
struktured_ has quit [Read error: 110 (Connection timed out)]
13:43
marmotine has joined #ocaml
13:45
RobertFischer has joined #ocaml
14:15
redocdam has joined #ocaml
14:32
szell has joined #ocaml
14:36
ygrek has quit [Remote closed the connection]
14:41
szell` has quit [Read error: 110 (Connection timed out)]
15:10
mishok13 has quit [Read error: 104 (Connection reset by peer)]
15:13
ygrek has joined #ocaml
15:20
pango_ has quit [Remote closed the connection]
15:22
guillem has quit [Remote closed the connection]
15:24
pango_ has joined #ocaml
15:47
tvn1981a has quit [Remote closed the connection]
15:50
peck has joined #ocaml
15:50
Axioplase_ is now known as Axioplase
16:16
CosmicRay has joined #ocaml
16:31
pango_ has quit [Remote closed the connection]
16:31
pango_ has joined #ocaml
16:35
DacTheHork has quit [Read error: 110 (Connection timed out)]
16:50
filp has quit [Read error: 60 (Operation timed out)]
17:03
filp has joined #ocaml
17:04
fy__ has joined #ocaml
17:08
flux has quit [Read error: 60 (Operation timed out)]
17:08
CosmicRay has quit [Read error: 110 (Connection timed out)]
17:10
flux has joined #ocaml
17:13
CosmicRay has joined #ocaml
17:13
CosmicRay has quit [Read error: 131 (Connection reset by peer)]
17:13
CosmicRay has joined #ocaml
17:20
liquidcopy has joined #ocaml
17:24
Yoric[DT] has joined #ocaml
17:30
psnively has joined #ocaml
17:30
bluestorm has quit [Remote closed the connection]
17:31
bluestorm has joined #ocaml
17:51
Kopophex has joined #ocaml
17:52
fy__ has left #ocaml []
17:53
Linktim has joined #ocaml
17:57
CosmicRay__ has joined #ocaml
17:57
CosmicRay has quit [Read error: 104 (Connection reset by peer)]
17:57
CosmicRay__ has quit [Client Quit]
18:02
OChameau has quit [Read error: 113 (No route to host)]
18:03
CosmicRay__ has joined #ocaml
18:07
guillem has joined #ocaml
18:07
Linktim_ has joined #ocaml
18:08
tomh has joined #ocaml
18:13
Associat0r has quit []
18:21
Linktim has quit [Read error: 110 (Connection timed out)]
18:22
RobertFischer has quit []
18:26
Proteus__ has quit [Read error: 104 (Connection reset by peer)]
18:26
Proteus_ has joined #ocaml
18:31
GustNG1 has joined #ocaml
18:33
Linktim_ has quit [Read error: 110 (Connection timed out)]
18:33
sporkmonger has quit []
18:36
Linktim has joined #ocaml
18:48
det__ has joined #ocaml
18:48
det has quit [Read error: 104 (Connection reset by peer)]
18:50
GustNG has quit [Read error: 110 (Connection timed out)]
18:56
Linktim has quit [Read error: 110 (Connection timed out)]
19:01
det__ has quit [Remote closed the connection]
19:08
Kopophex has quit [Remote closed the connection]
19:09
det has joined #ocaml
19:16
CosmicRay__ has quit [Read error: 110 (Connection timed out)]
19:17
GustNG1 has quit [Read error: 104 (Connection reset by peer)]
19:45
RobertFischer has joined #ocaml
20:01
psnively has quit []
20:12
ygrek has quit [Remote closed the connection]
20:25
aeolist has joined #ocaml
20:27
CosmicRay has joined #ocaml
20:31
<
bluestorm >
aeolist: do you have some running example ?
20:32
<
jlouis >
aeolist, quick guess: You are installing an exception handler on the stack and it kills tail-calls
20:32
<
aeolist >
it actually hangs when it finds q1 -> assign q2 -> assign
20:45
CosmicRay has quit ["Client exiting"]
20:45
<
pango_ >
if it's not that whole aux function looping and exhausting memory (it's not tail recursive as jlouis said), it could be some operand comparison (qX.operandY = qZ.operandT stuff) getting caught in a loop (it's that's possible with your operand_type definition)
20:46
psnively has joined #ocaml
20:48
<
pango_ >
but I guess you had OOM exceptions even before you added this Out_of_memory try/with handler...
20:51
<
aeolist >
yes you are probably right
20:51
<
aeolist >
why is it not tail-rec again?
20:52
<
aeolist >
i didnt catch the tail-rec thing, sorry
20:53
<
pango_ >
recursive call is not the last instruction of the function, the external try/with must be popped up before returning
20:56
<
aeolist >
ok, i think it's actually the when thing i started using today :(. this is my instinct talking, but it's more like an "if", when i need pattern matching
21:01
<
aeolist >
i cant actually "=" or "==" 2 tokens
21:01
struktured_ has joined #ocaml
21:02
filp has quit ["Bye"]
21:03
<
aeolist >
what's a man to do then?
21:03
<
pango_ >
equality relationships don't stop with those those operators, though; for example, if they have a unique identifier as one of their components, you can compare those instead
21:05
<
aeolist >
the q#.operand# is a token, an enumeration or whatever you can call it, and i just want to check for matching tokens
21:06
<
aeolist >
(element of an enumeration)
21:07
<
pango_ >
and you can't use = on them?
21:09
smimou has joined #ocaml
21:10
<
aeolist >
not after a when it seems
21:10
<
aeolist >
i mean, i replaced that part and now it works, so...
21:10
<
aeolist >
type quad is not recursive
21:13
psnively has quit []
21:20
asmanur_ has joined #ocaml
21:21
asmanur_ has quit [Client Quit]
21:21
guillem has quit [Remote closed the connection]
21:36
asmanur has quit [Read error: 110 (Connection timed out)]
21:38
<
aeolist >
ah yes, found it thanks :)
21:38
aeolist has left #ocaml []
21:41
love-pingoo has joined #ocaml
21:41
love-pingoo has quit [Client Quit]
21:44
struktured_ has quit [Read error: 110 (Connection timed out)]
21:44
smimou has quit [Read error: 110 (Connection timed out)]
22:10
Jedai has quit [Read error: 110 (Connection timed out)]
22:12
struktured has joined #ocaml
22:16
tar_ has joined #ocaml
22:26
Yoric[DT] has quit ["Ex-Chat"]
22:44
Philonous has joined #ocaml
22:47
bluestorm has quit [Remote closed the connection]
23:04
tar_ has left #ocaml []
23:07
cmeme has quit ["Client terminated by server"]
23:07
cmeme has joined #ocaml
23:16
marmotine has quit ["mv marmotine Laurie"]
23:17
rwmjones has quit [Read error: 104 (Connection reset by peer)]
23:55
marmotine has joined #ocaml