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