fraggle_ has quit [Remote host closed the connection]
Associ8or has quit [Quit: Associ8or]
fraggle_ has joined #ocaml
alfa_y_omega has quit [Read error: Connection reset by peer]
Associat0r has joined #ocaml
dnolen has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
zorun has quit [Ping timeout: 240 seconds]
zorun has joined #ocaml
jamii has joined #ocaml
jamii has quit [Ping timeout: 260 seconds]
jamii has joined #ocaml
vivanov has joined #ocaml
philtor has joined #ocaml
philtor has quit [Ping timeout: 260 seconds]
joewilliams is now known as joewilliams_away
ygrek has joined #ocaml
Anarchos has joined #ocaml
mcclurmc_home has joined #ocaml
boscop has quit [Ping timeout: 240 seconds]
boscop has joined #ocaml
Snark_ has joined #ocaml
Snark_ is now known as Snark
edwin has joined #ocaml
Yoric has joined #ocaml
<vivanov>
are there any econometrics/statistics modules?
<Anarchos>
vivanov in ocaml ?
<vivanov>
yes
<Anarchos>
vivanov i don't think so
<Anarchos>
vivanov but you can write one !
ikaros has joined #ocaml
munga has joined #ocaml
lopex has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
lopex has quit []
jamii has quit [Ping timeout: 252 seconds]
ulfdoz has joined #ocaml
<vivanov>
Anarchos: :) nice idea
<adrien>
I expected the C functions would show up in the gprof's output, it looks like they don't: I had calls to Graphics.* and they didn't show as first time-takes and moving them elsewhere made the test run 10 times faster
pdhborges has joined #ocaml
<adrien>
and another surprise: ocamlbuild foo.native builds foo.cm*o*
EM03 has left #ocaml []
cthuluh has quit [Remote host closed the connection]
cthuluh has joined #ocaml
mnabil has joined #ocaml
dnolen has quit [Quit: dnolen]
jamii has joined #ocaml
mnabil has quit [Ping timeout: 258 seconds]
Tobu has quit [Ping timeout: 260 seconds]
chegibari has joined #ocaml
<chegibari>
Hello. Is there any difference in purpose in declaring a function let f _ = .... instead of let f () = ....?
<adrien>
"let f _" will ignore the argument while "let f ()" will only accept an argument of type "unit" (which has to be "()")
<adrien>
in the first case, the argument can be whatever but will never be used, which can be misleading
<adrien>
to the "user"
<adrien>
# let f _ = 42;;
<adrien>
val f : 'a -> int = <fun>
<adrien>
# f 5;;
<adrien>
- : int = 42
<adrien>
# f "a";;
<adrien>
- : int = 42
<Reaganomicon>
Is there a Haskell-like (x:xs) pattern for automatically getting a list's head?
mnabil has joined #ocaml
<Reaganomicon>
Polluting my code with head/tail calls is unpleasant. :(
<chegibari>
adrien, (in particular the setup and teardown functions)
<chegibari>
adrien, I agree with what you said
<adrien>
chegibari: it could be that it is to be used as a function that could take and use an argument
Snark has quit [Remote host closed the connection]
<adrien>
like Array.iter's argument, I had to fill an array with random values, I used Array.init which expects a "int -> 'a" for an "'a array", and I made the first argument of my function "_"
<adrien>
(bbs)
Tobu has joined #ocaml
<chegibari>
adrien, ok. I checked the ounit API and it's a bit of both: "setup" takes unit but teardown takes a real parameter that is not used
<chegibari>
thanks
mnabil has quit [Ping timeout: 252 seconds]
ftrvxmtrx has quit [Ping timeout: 252 seconds]
ftrvxmtrx has joined #ocaml
michael_boy has joined #ocaml
mnabil has joined #ocaml
ymasory has quit [Quit: Leaving]
Yoric has quit [Quit: Leaving.]
mnabil has quit [Ping timeout: 276 seconds]
vivanov has quit [Ping timeout: 276 seconds]
impy has quit [Read error: Connection reset by peer]
impy has joined #ocaml
sepp2k has joined #ocaml
mnabil has joined #ocaml
olauzon has joined #ocaml
michael_boy has quit [Ping timeout: 250 seconds]
michael_boy has joined #ocaml
michael_boy has quit [Quit: Ex-Chat]
olauzon has quit [Quit: olauzon]
Anarchos has joined #ocaml
ymasory has joined #ocaml
Cyanure has joined #ocaml
mnabil has quit [Read error: Operation timed out]
likebike has joined #ocaml
Yoric has joined #ocaml
Anarchos has quit [Ping timeout: 240 seconds]
mnabil has joined #ocaml
<likebike>
Hi guys, I am trying to learn OCaml, and I'm stuck on a very easy problem, trying to define a recursive function. Can someone please take a look at this 5-line example and help me understand what I am doing wrong? http://dpaste.com/550475/
<thelema_>
likebike: hmm
<thelema_>
ah, you need to separate your function definition from your printing function
Snark has joined #ocaml
<thelema_>
put "let () = " at the start of L5 (before print_float)
<thelema_>
or put ";;" at the end of L3
Anarchos has joined #ocaml
<likebike>
ok, i'll try that.
<likebike>
That worked. Thanks thelema_
<thelema_>
no problem
thelema_ is now known as thelema
sepp2k has quit [Ping timeout: 252 seconds]
sepp2k has joined #ocaml
avsm has joined #ocaml
<adrien>
I guess several people here use latex; I was looking for something to make diagrams but the best I could find was dia + png export; I just found http://latexdraw.sourceforge.net/screenshots.html which is way nicer (takes some time to get used to but only 5 minutes) (only sharing =) )
<adrien>
if you make an arrow point to a box, when you move the box, it won't update the arrow but apart from that, it has everything I need I think
<thelema>
adrien: I tend to just use inkscape to make my diagrams
<adrien>
(there was mlpost too but it's harder to use)
<adrien>
I haven't really tried inkscape: thought it would be pretty much like dia
<thelema>
I'm not too familiar with dia, but probably.
<adrien>
pdhborges: it looks interesting, I'll try it when I come back (bbl)
jamii has quit [Ping timeout: 250 seconds]
<chegibari>
whoever picked the name for "ocamlfind" should have his/her hand hit with a wooden stick
<adrien>
why?
<chegibari>
it's like if every unix command had to be invoked using "find"
<chegibari>
find ls
<chegibari>
find rm this
<chegibari>
find gcc
<chegibari>
find exit
<chegibari>
:)
<adrien>
oh, use ocamlopt.opt -I $(ocamlfind query yourpackage) -c yoursource.ml
<adrien>
;-)
<chegibari>
oh, thanks cool
<chegibari>
*that's*
<chegibari>
thanks
<adrien>
but the reason it's used as a wrapper is because it does much more than what can be achieved through "query"
<adrien>
so you're still better off with "ocamlfind ..."
<adrien>
you could say it should be used like "ocamlopt.opt $(ocamlfind buildmycommandline -package ...) -c myfile.ml" but then, there's little different
<adrien>
have to go, see you
<chegibari>
thanks again, bye!
<thelema>
chegibari: why are you calling ocamlfind directly? ocamlbuild? make?
avsm1 has joined #ocaml
avsm has quit [Ping timeout: 250 seconds]
<chegibari>
thelema, I more or less just discovered ocamlfind for using ounit. I think I'll add support for packages to my build system
<thelema>
chegibari: good idea, except why aren't you using ocamlbuildyes, packages are good.
<thelema>
Just don't do them by hand
<chegibari>
thelema, I'm learning and using many languages. I tend to not spend much time that are not very well documented unless they are meaningful from a "language design" point of view
dnolen has joined #ocaml
<chegibari>
...not spent much time into features...
<chegibari>
I'm also programming parsing and unicode code, even if ocaml has its standard libraries for that. Just to use the language in depth
<thelema>
fair enough. We do need to improve the whole ocaml build system experience - hopefully oasis will paper over most of the problems
<chegibari>
are ocamlfind packages related to GODI?
<thelema>
not other than that the same person wrote both programs
<chegibari>
ok. thanks :)
george_z0rwell has joined #ocaml
Reaganomicon has quit [Ping timeout: 250 seconds]
zorun has quit [Ping timeout: 250 seconds]
emmanuelux has joined #ocaml
vivanov has joined #ocaml
boscop has quit [Read error: Connection reset by peer]
<chegibari>
What does DIET mean in Batteries' documentation?
boscop has joined #ocaml
<thelema>
chegibari: it's a particular kind of range tree
boscop has quit [Read error: Connection reset by peer]
<thelema>
"Discrete Inverval Encoding Tree"
boscop has joined #ocaml
<chegibari>
ah
<chegibari>
I'll google that. Googling DIET yields another kind of pages :)
clog has joined #ocaml
bacam has quit [Ping timeout: 276 seconds]
bacam has joined #ocaml
<adrien>
pdhborges: thanks for mentionning tikz; I think I'm going to use both tikz and latexdraw: latexdraw is much simpler, tikz is more powerful
smerz has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
thieusoai has joined #ocaml
edwin has quit [Remote host closed the connection]