00:57
<
Xaseron >
does somebody know how to use the ocaml-gnuplot bindings?
01:27
alfa_y_omega has quit [Ping timeout: 246 seconds]
01:30
alfa_y_omega has joined #ocaml
01:54
wagle has quit [Read error: Connection reset by peer]
01:55
joewilliams is now known as joewilliams_away
02:24
wagle has joined #ocaml
03:06
jamii has joined #ocaml
03:33
joewilliams_away is now known as joewilliams
03:40
tauntaun has joined #ocaml
03:41
tauntaun has left #ocaml []
03:55
jamii has quit [Quit: Leaving]
03:57
alexyk has joined #ocaml
04:16
ulfdoz has joined #ocaml
04:32
jamii has joined #ocaml
04:32
wolverian has quit [Ping timeout: 260 seconds]
04:32
flux has quit [Ping timeout: 276 seconds]
04:33
Lor has quit [Ping timeout: 276 seconds]
04:33
flux has joined #ocaml
04:33
Lor has joined #ocaml
04:33
joewilliams is now known as joewilliams_away
04:34
wolverian has joined #ocaml
04:40
alexyk_ has joined #ocaml
04:40
alexyk has quit [Read error: Connection reset by peer]
04:40
alexyk_ is now known as alexyk
04:41
sgnb has quit [Remote host closed the connection]
04:41
sgnb has joined #ocaml
04:45
philtor has joined #ocaml
04:47
dnolen has quit [Quit: dnolen]
04:48
alexyk has quit [Quit: alexyk]
05:03
philtor has quit [Ping timeout: 250 seconds]
05:10
ulfdoz has quit [Ping timeout: 258 seconds]
05:23
iratsu has joined #ocaml
05:35
ikaros has joined #ocaml
05:37
ygrek has joined #ocaml
05:41
Skitter has joined #ocaml
05:46
vivanov has joined #ocaml
05:55
Modius has quit [Quit: "Object-oriented design" is an oxymoron]
06:03
ygrek has quit [Ping timeout: 250 seconds]
06:17
ygrek has joined #ocaml
06:21
Snark has joined #ocaml
06:29
vivanov has quit [Quit: Lost terminal]
06:43
wkr-aw has quit [Quit: Quitte]
06:44
iratsu has quit [Ping timeout: 250 seconds]
06:45
ygrek has quit [Ping timeout: 250 seconds]
07:05
ankit9 has quit [Quit: Leaving]
07:07
rgee has quit [Read error: Connection reset by peer]
07:18
edwin has joined #ocaml
07:37
larhat has joined #ocaml
07:42
sgnb has quit [Remote host closed the connection]
07:52
sgnb has joined #ocaml
08:05
alfa_y_omega has quit [Read error: Operation timed out]
08:08
alfa_y_omega has joined #ocaml
08:11
alfa_y_omega has quit [Max SendQ exceeded]
08:15
alfa_y_omega has joined #ocaml
08:41
Amorphous has quit [Read error: Connection reset by peer]
08:42
vivanov has joined #ocaml
08:44
ankit9 has joined #ocaml
08:47
alfa_y_omega has quit [Ping timeout: 240 seconds]
08:50
alfa_y_omega has joined #ocaml
09:00
Amorphous has joined #ocaml
09:14
wolverian has quit [Read error: Operation timed out]
09:15
wolverian has joined #ocaml
09:38
lopex has joined #ocaml
09:42
Tobu has quit [Remote host closed the connection]
09:42
Tobu has joined #ocaml
09:52
Skitter has quit [Ping timeout: 244 seconds]
09:55
ygrek has joined #ocaml
09:55
avsm has joined #ocaml
10:42
ygrek has quit [Ping timeout: 250 seconds]
10:49
UncleVasya has joined #ocaml
10:53
_andre has joined #ocaml
11:40
Pepe_ has quit [Read error: Operation timed out]
11:42
alpounet has quit [Excess Flood]
11:42
alpounet has joined #ocaml
11:43
Pepe_ has joined #ocaml
11:50
Skitter has joined #ocaml
11:51
sepp2k has joined #ocaml
12:14
avsm has quit [Quit: Leaving.]
12:15
avsm has joined #ocaml
12:17
Modius has joined #ocaml
12:31
dnolen has joined #ocaml
12:39
sergio1 has joined #ocaml
12:41
Boscop has quit [Ping timeout: 255 seconds]
12:43
<
sergio1 >
Hi there!
12:43
<
sergio1 >
I'd like to know if there is a way to change the depth of the display in the REPL
12:44
<
sergio1 >
the infamous "..." come too early in my case
12:45
KDr2 has joined #ocaml
12:45
<
thelema_ >
sergio1: yes it's possible - there's a magic variable
12:45
* thelema_
looks up its name
12:46
<
f[x] >
hm, no, that's another
12:47
<
sergio1 >
Glad you said! I was scratching my head ;-)
12:47
<
thelema_ >
#print_depth n;;
12:47
<
thelema_ >
Limit the printing of values to a maximal depth of n. The parts of values whose depth exceeds n are printed as ... (ellipsis).
12:47
<
thelema_ >
#print_length n;; Limit the number of value nodes printed to at most n. Remaining parts of values are printed as ... (ellipsis).
12:48
<
thelema_ >
KDr2: probably not
12:48
<
thelema_ >
old documentation is only mostly correct
12:48
lamawithonel has joined #ocaml
12:49
<
KDr2 >
Many thanks !
12:51
<
sergio1 >
thelema_: Thanks! (there is also #print_length that does something related...)
12:53
avsm has quit [Quit: Leaving.]
13:05
rby_ has quit [Ping timeout: 258 seconds]
13:06
rby has joined #ocaml
13:09
ankit9 has quit [Quit: Leaving]
13:11
Boscop has joined #ocaml
13:11
Boscop has quit [Changing host]
13:11
Boscop has joined #ocaml
13:17
iratsu has joined #ocaml
13:20
<
hcarty >
thelema_: Would you be interested in a printf-like, Perl-y "say" and "warn" for Batteries?
13:21
<
thelema_ >
hcarty: warn for the logger?
13:21
<
hcarty >
thelema_: They would be printf and eprintf wrapped up with the automatic addition of a newline character.
13:21
<
hcarty >
warn could be for the logger, but I was thinking more for inclusion in the pervasive section of Batteries
13:22
<
thelema_ >
I'd rather have an interpolating say and warn
13:22
<
hcarty >
thelema_: That's doable with xstrp4 :-)
13:22
<
hcarty >
Otherwise it's printf-like say and warn
13:23
<
flux >
would that make 'say' a reserved word then?
13:23
<
hcarty >
let say = print_endline
13:23
<
flux >
so where does the interpolation go?
13:23
<
thelema_ >
flux: the interpolating say would be a kind of uber-variable, defined in all namespaces and not overrideable
13:23
<
hcarty >
And use xstrp4.syntax.batteries when compiling
13:24
<
thelema_ >
not quite a keyword
13:24
<
thelema_ >
although if you see no difference, there's probably no difference
13:25
<
hcarty >
thelema_: Ah, so are you thinking 'say "Hello $foo"' would be replaced by the extension, not just the '"Hello $foo"' part?
13:26
<
thelema_ >
hcarty: I was, but you're right - that's not necessary
13:27
<
hcarty >
thelema_: It would be largely a matter of interpolation everywhere or interpolation only with say/warn
13:45
fraggle_laptop has joined #ocaml
13:54
dnolen has quit [Quit: dnolen]
13:56
KDr2 has quit [Quit: Leaving.]
14:01
Vinnipeg has joined #ocaml
14:15
iratsu has quit [Ping timeout: 250 seconds]
14:16
zorun has quit [Quit: leaving]
14:25
zorun has joined #ocaml
14:34
iratsu has joined #ocaml
14:36
UncleVasya has quit [Ping timeout: 260 seconds]
14:40
iratsu has quit [Read error: Operation timed out]
14:44
<
Xaseron >
does somebody know a good tutorial/example to use PIPE in ocaml?
14:45
<
Xaseron >
to pipe something from one programm into another
14:45
<
flux >
you write output to standard output in one program, you read from standard input in another
14:45
<
flux >
or there is Unix.open_process_*
14:47
alexyk has joined #ocaml
14:48
<
Xaseron >
ok i will try this
14:50
<
flux >
that looks a pretty good read
14:50
<
Xaseron >
the second link is not so good for my purpose
14:51
<
thelema_ >
fair enough - it seemed a bit more theoretical than you might want.
14:56
SoftTimur has joined #ocaml
14:58
<
SoftTimur >
Hello all, in a parser.mly file, I often see "fromto $1 $5", could anyone tell me what does "fromto" mean?
14:59
iratsu has joined #ocaml
15:00
<
thelema_ >
SoftTimur: it's not defined in that file?
15:01
<
SoftTimur >
thelema_: no...
15:03
<
thelema_ >
I'm pretty sure there's no builtin function fromto
15:05
<
SoftTimur >
I see... it is a defined function for localizing...
15:05
<
rproust >
SoftTimur: any 'open' directives in the prelude of the file?
15:05
lopex has joined #ocaml
15:06
<
SoftTimur >
rproust: Indeed, I found it...
15:06
<
SoftTimur >
thank you all
15:06
<
Xaseron >
when i try to use some methods form unix i get this error "Error: Reference to undefined global `Unix'"
15:06
<
thelema_ >
Xaseron: make sure to link in the unix library - it's not quite part of the stdlib
15:07
larhat has quit [Quit: Leaving.]
15:08
SoftTimur has left #ocaml []
15:09
sergio1 has quit [Remote host closed the connection]
15:13
alexyk has quit [Quit: alexyk]
15:16
<
Xaseron >
and how do i do that?
15:16
<
thelema_ >
what build system are you using?
15:17
<
Xaseron >
ocamlopt avl.ml btree.ml ubtree.ml redblack.ml bench.ml
15:17
<
thelema_ >
ocamlopt unix.cmxa ...
15:18
<
thelema_ >
Xaseron: any chance of putting your code on github?
15:19
<
thelema_ >
sure, after the due date.
15:20
joewilliams_away is now known as joewilliams
15:40
avsm has joined #ocaml
15:44
iratsu has quit [Read error: Operation timed out]
16:15
avsm has quit [Ping timeout: 240 seconds]
16:18
ulfdoz has joined #ocaml
16:19
ankit9 has joined #ocaml
16:24
zorun has quit [Read error: Operation timed out]
16:27
zorun has joined #ocaml
16:30
avsm has joined #ocaml
16:37
alexyk has joined #ocaml
16:42
Transformer has joined #ocaml
16:44
Transformer has quit [Excess Flood]
16:58
<
Xaseron >
but now im done with coding
17:09
mejalx has quit [Ping timeout: 250 seconds]
17:11
mejalx has joined #ocaml
17:13
Vinnipeg has quit [Ping timeout: 240 seconds]
17:26
Modius has quit [Read error: Connection reset by peer]
17:27
Modius has joined #ocaml
17:30
yezariaely has joined #ocaml
17:38
alfa_y_omega has quit [Read error: Operation timed out]
17:39
Anarchos has joined #ocaml
17:41
alfa_y_omega has joined #ocaml
17:42
sepp2k1 has joined #ocaml
17:43
nannto_ has quit [Quit: Leaving...]
17:43
sepp2k has quit [Ping timeout: 250 seconds]
17:45
ztfw has joined #ocaml
18:05
yezariaely has left #ocaml []
18:05
Skitter has quit [Read error: Connection timed out]
18:09
Skitter has joined #ocaml
18:10
Skitter has quit [Max SendQ exceeded]
18:11
Skitter has joined #ocaml
18:13
Skitter has quit [Max SendQ exceeded]
18:14
Skitter has joined #ocaml
18:15
fraggle_laptop has quit [Ping timeout: 255 seconds]
18:16
Skitter has quit [Max SendQ exceeded]
18:17
Skitter has joined #ocaml
18:20
Skitter has quit [Max SendQ exceeded]
18:21
Skitter has joined #ocaml
18:22
Skitter has quit [Max SendQ exceeded]
18:23
Skitter has joined #ocaml
18:25
Skitter has quit [Max SendQ exceeded]
18:26
Skitter has joined #ocaml
18:26
<
Anarchos >
Is the tests of the compiler updated ?
18:27
philtor has joined #ocaml
18:48
<
thelema_ >
Anarchos: you mean ocaml's test cases? Bug-triggering code is usually added to the test cases, yes
18:51
<
Anarchos >
thelema_ yes, cause the hash function has been updated to MURMUR3 but not the test case
18:51
<
thelema_ >
bad xavier
18:52
<
Anarchos >
thelema_ it is the only test failed on my port to HaikuOS :)
18:52
<
thelema_ >
hmm, testsuite/tests/lib-hashtbl was added with the new hash function changes
18:53
<
thelema_ >
is it one of those tests that fails?
18:55
<
Anarchos >
thelema_ maybe, my revision should be older than 29th may
18:55
<
NaCl >
how would I go about submitting a support request to the ocamlcore forge?
18:59
<
thelema_ >
Anarchos: if your revision is older than 29 may, it doesn't have the murmur3 hash
18:59
<
NaCl >
conveniently, I never activated my account and it got nuked.
18:59
<
Anarchos >
thelema_ my revision is tagged ocaml-3.13.0+dev3
19:00
<
thelema_ >
well, it could be from any time up to June 20
19:00
<
thelema_ >
any time 3-07 to 6-20
19:00
alexyk has quit [Quit: alexyk]
19:06
alexyk has joined #ocaml
19:08
Snark has quit [Quit: Ex-Chat]
19:12
<
gildor >
NaCl: I remove unactivated from time to time
19:12
<
gildor >
NaCl: mostly because there is a lot of spammers trying to subscribe
19:15
<
NaCl >
would there be any interest in actually pointing out where the compiler errors are in the actual line of the file?
19:16
<
NaCl >
like how java does it?
19:19
<
thelema_ >
NaCl: i.e. printing the error line and a ^ on the next line indented to point to the error?
19:19
rgee has joined #ocaml
19:20
<
NaCl >
I have managed to get ocaml to say that the error was on characters 0-4000 of a line where some preprocessor statement started
19:21
<
thelema_ >
I doubt you could get such a patch included in the official compiler, but the ocamlpro people are collecting compiler patches, so if you make it, it can have a long term home
19:21
<
NaCl >
although the same thing done could probably be done with a script
19:22
<
thelema_ >
yes, the main argument against it would be that a sufficiently smart IDE could do the same thing better.
19:22
<
thelema_ >
(and in fact, emacs-tuareg does a good job of this for me.)
19:24
<
NaCl >
this means that I am using tuareg wrong
19:24
<
thelema_ >
(that's backquote)
19:27
* NaCl
is using emacs very wrong
19:27
<
NaCl >
amusingly, I did a talk on emacs at a conference earlier this month
19:27
<
thelema_ >
the blind leading the blind
19:28
<
NaCl >
and the blind is a sparrow with brittle bone disease that gets pounded into the dirt
19:31
_andre has quit [Quit: Lost terminal]
19:40
jamii has quit [Ping timeout: 240 seconds]
19:42
vivanov has quit [Quit: Lost terminal]
19:45
lamawithonel has quit [Ping timeout: 255 seconds]
19:51
iratsu has joined #ocaml
19:52
_andre has joined #ocaml
19:53
iratsu has quit [Client Quit]
19:53
iratsu1 has joined #ocaml
20:01
<
NaCl >
tuareg's autoindent seems to be lying to me
20:01
<
thelema_ >
NaCl: you're probably programming wrong.
20:02
<
NaCl >
wouldn't surprise me, but the compiler isn't complaining
20:06
impy has quit [Quit: impy]
20:08
<
NaCl >
it expects a different type of indentation for if / else / else if
20:09
impy has joined #ocaml
20:09
<
thelema_ >
put `else if` together on the same line
20:09
<
NaCl >
I did. that's what caused the problem
20:09
iratsu has joined #ocaml
20:09
iratsu1 has quit [Quit: Leaving.]
20:10
<
thelema_ >
really? this works for me.
20:10
impy has quit [Client Quit]
20:10
impy has joined #ocaml
20:12
<
NaCl >
if I combine lines 7 and 8 then the "2" will want to be indented 4 levels
20:16
<
thelema_ >
odd, I get the same thing on your text...
20:17
<
sheets >
i get the correct behavior on an older ubuntu in a vm but the wrong behavior on macports emacs+tuareg
20:18
<
thelema_ >
but if I add "let z =" before the "if a then", everything works
20:18
<
NaCl >
I'm running the (afaict) most recent tuareg in 23.2 in SuSE
20:19
<
sheets >
NaCl: if you do "let foo = 3 in\nbar" how does bar indent?
20:19
BiDOrD_ has joined #ocaml
20:20
<
sheets >
i believe bar should be 1 level deeper than let but it is not on the same buggy tuareg
20:21
BiDOrD has quit [Ping timeout: 258 seconds]
20:21
ztfw has quit [Remote host closed the connection]
20:24
<
NaCl >
yeah, that does it
20:24
<
sheets >
is there a way to inform ocamlbuild that a set of cmos should be compiled into a single package?
20:25
<
sheets >
yay! thank you
20:25
<
thelema_ >
NaCl: yup, it's broken for me too
20:26
edwin has quit [Remote host closed the connection]
20:26
<
thelema_ >
unless you separate the else if onto two lines
20:26
<
NaCl >
bug report time
20:28
<
avsm >
sheets: or .mlpack if you need -pack
20:28
* thelema_
dislikes -pack
20:28
iratsu has quit [Read error: No route to host]
20:28
iratsu1 has joined #ocaml
20:30
<
sheets >
-pack is to prevent namespace collisions so each archived module isn't imported directly into the global namespace when the lib is linked?
20:31
<
thelema_ >
more or less - every module is moved in the namespace to be a child of a single parent module
20:37
jamii has joined #ocaml
20:38
ulfdoz has quit [Ping timeout: 240 seconds]
20:38
_andre has quit [Quit: leaving]
20:38
iratsu1 has quit [Ping timeout: 250 seconds]
20:44
<
avsm >
only major drawback is that ocamldoc doesnt work well with -pack
20:48
jamii_ has joined #ocaml
20:48
jamii has quit [Ping timeout: 258 seconds]
21:01
Associat0r has joined #ocaml
21:02
Associat0r has quit [Quit: Associat0r]
21:35
jamii_ has quit [Ping timeout: 258 seconds]
21:36
jamii_ has joined #ocaml
21:40
lamawithonel has joined #ocaml
21:42
lamawithonel has quit [Remote host closed the connection]
21:44
lamawithonel has joined #ocaml
21:48
ikaros has quit [Quit: Ex-Chat]
22:00
lamawithonel has quit [Ping timeout: 255 seconds]
22:00
lamawithonel has joined #ocaml
22:23
joewilliams is now known as joewilliams_away
22:28
lamawithonel has quit [Ping timeout: 255 seconds]
22:29
lamawithonel has joined #ocaml
22:35
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
22:40
KDr2 has joined #ocaml
23:04
avsm has quit [Quit: Leaving.]
23:08
jamii_ has quit [Ping timeout: 258 seconds]
23:19
BiDOrD has joined #ocaml
23:20
BiDOrD_ has quit [Ping timeout: 255 seconds]
23:23
KDr2 has quit [Quit: Leaving.]
23:27
sepp2k1 has quit [Quit: Leaving.]
23:28
mjonsson has joined #ocaml
23:28
BiDOrD has quit [Ping timeout: 258 seconds]
23:37
ftrvxmtrx has quit [Ping timeout: 252 seconds]
23:42
BiDOrD has joined #ocaml
23:44
dnolen has joined #ocaml
23:47
Skitter has quit [Ping timeout: 240 seconds]
23:59
<
sheets >
when using ocamlfind ocamldep, it appears that referenced external functions are called. I have C stubs that get replaced later but execute and fail with "Preprocessing error on file foo.mli". Why is this?