<merijn>
Is there a way to define functions similar to the haskell style (http://hpaste.org/54048) or can it only be done using "match" and the style in the second half of my paste?
<_habnabit>
the latter.
vivanov has joined #ocaml
<vivanov>
i use oasis for my project. i define a library there. but i get an error when `open My_project`. instead i can call the functions from modules of the library directly: `Module_of_library.foo` is ok. how to put the modules in the project to call them `My_project.Module_of_library.foo`
<_habnabit>
directory structure is irrelevant to module names; you'd have to make a my_project.ml that has each of those modules in it
eikke has joined #ocaml
ttamttam has quit [Remote host closed the connection]
avsm has quit [Quit: Leaving.]
<merijn>
If I want to manually specify type signatures I have to do those in a separate .mli file, right? Is there a way to make the REPL check my code against the signatures I specified? Naively having both files with the same name in my working dir seems to not be enough.
<vivanov>
_habnabit: thx
<_habnabit>
merijn, what, are you including the .ml file from the REPL?
<merijn>
_habnabit: I'm using #use and just running "ocaml file.ml" both
<_habnabit>
yeah, AFAIK that doesn't bother with mli files at all
<_habnabit>
you have to use ocamlc or ocamlopt
<merijn>
_habnabit: ok, too bad. Thanks anyway :)
avsm has joined #ocaml
ttamttam has joined #ocaml
<flux>
heh, ocaml installation (non)survival-story on the mailing list
<flux>
I suppose it shouldn't be that hard even on windows..
destrius has quit [Quit: Leaving.]
sepp2k has joined #ocaml
ttamttam has quit [Remote host closed the connection]
<edwin>
why is cygwin needed?
<edwin>
is that just due to the eclipse plugin not working with mingw?
<f[x]>
bash is needed
<f[x]>
for ocamlbuild
<f[x]>
and for building ocaml itself
<f[x]>
cygwin bash is known to work
<f[x]>
iirc mingw recentrly is ok too, but ocaml README states the contrary
musically_ut has joined #ocaml
<adrien>
msys' bash work
<adrien>
oh, btw, /me hugs f[x]
<adrien>
(for the 3.12.1 ocaml build)
ttamttam has joined #ocaml
ttamttam has quit [Remote host closed the connection]
<f[x]>
adrien, hug jenkins instead :)
merijn has left #ocaml []
<adrien>
right, could hug both ;-)
avsm has quit [Quit: Leaving.]
ttamttam has joined #ocaml
ttamttam has quit [Remote host closed the connection]
ygrek has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
avsm has joined #ocaml
ttamttam has joined #ocaml
sebz_ has joined #ocaml
ygrek has quit [Ping timeout: 248 seconds]
ttamttam has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
ygrek has joined #ocaml
sebz_ has quit [Ping timeout: 252 seconds]
vivanov has quit [Quit: Lost terminal]
<adrien>
if I create an object and one of its method creates a copy of the object with the {< >} syntax, will "if old_obj = new_obj then ..." work?
ttamttam has joined #ocaml
sebz has joined #ocaml
ttamttam has quit [Remote host closed the connection]
ttamttam has joined #ocaml
ikaros has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sebz has quit [Client Quit]
avsm has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 248 seconds]
Boscop has joined #ocaml
ttamttam has quit [Remote host closed the connection]
thomasga has quit [Ping timeout: 244 seconds]
thomasga has joined #ocaml
musically_ut has quit [Read error: Connection reset by peer]
musically_ut has joined #ocaml
vivanov has joined #ocaml
avsm has joined #ocaml
<flux>
I don't think you can compare objects in any way
<flux>
or did you mean == ?
<flux>
(that wouldn't be true)
<f[x]>
objects are compare by id
<f[x]>
* compared
<f[x]>
when using =
edwin has quit [Ping timeout: 240 seconds]
ttamttam has joined #ocaml
dsheets has quit [Ping timeout: 260 seconds]
edwin has joined #ocaml
edwin has quit [Ping timeout: 244 seconds]
musically_ut has quit [Ping timeout: 252 seconds]
musically_ut has joined #ocaml
<adrien>
f[x]: ok, thanks
<adrien>
I started seeing an operator "==" in my objects, like in C++
ankit9 has quit [Remote host closed the connection]
<adrien>
felt like a nightmare ='(
edwin has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Read error: Connection reset by peer]
larhat has quit [Quit: Leaving.]
raichoo has quit [Quit: leaving]
avsm1 has quit [Quit: Leaving.]
dsheets has joined #ocaml
avsm has joined #ocaml
Drakken has joined #ocaml
<Drakken>
Good morning, camlers.
<adrien>
l
<adrien>
moo
<thelema>
baa
<Drakken>
So who needs help with an open-source project? I wanna do some codin'.
<thelema>
Drakken: BatBench needs a graphical output to plot runtimes
<thelema>
hcarty: yes, more likely the second. Except I probably want a bar plot with one-pixel-wide bars
<hcarty>
thelema: Quick_plot.impulses [xs, ys];
<thelema>
hcarty: impressive.
<hcarty>
Where Quick_plot.impulses has not been written :-)
<thelema>
:P
<hcarty>
But it would be very straightforward
<hcarty>
And probably useful... or .bars with ?impulses as an option.
<thelema>
Drakken: hello?
<thelema>
adrien: you're right that CSV output is also important
<adrien>
I actually had json in mind ;-)
<thelema>
adrien: really?
<hcarty>
adrien, thelema: Those are both probably easier to handle with external support functions
<adrien>
thelema: but csv is probably beter ;-)
<hcarty>
Or maybe BatBench should be an external library that depends on Batteries, OCaml's CSV library, one of the OCaml JSON options, a plotting library...
<adrien>
csv should be doable by hand too for this kind of data
<adrien>
should be simple
<adrien>
also, I love .cmxs files :P
<Drakken>
thelema I'm checking out the project page
<thelema>
hcarty: since I'm marshalling about the simplest datatype possible, I'm thinking that I can do the right thing with `List.print` using the right ~first, ~last, ~sep
<adrien>
recompiled lablgtk2, didn't have to recompile cairo2 or archimedes
<hcarty>
thelema: True
<thelema>
Drakken: at the moment, batbench is embedded in the batteries library; it'll become a separate project when it has external deps
<thelema>
hcarty: I think both JSON CSV can be done with `List.print` for a float array
ikaros has quit [Quit: Ex-Chat]
<thelema>
let print_csv oc res = List.print Float.print ~first:"Times\n" ~sep:"\n" ~last:"\n" res.times
<thelema>
let print_json oc res = List.print Float.print ~first:"[" ~sep:", " ~last:"]\n" res.times
sebz has joined #ocaml
yezariaely has joined #ocaml
sumanah has joined #ocaml
yezariaely has quit [Client Quit]
hashar has joined #ocaml
sumanah has left #ocaml []
ulfdoz has joined #ocaml
thomasga has quit [Quit: Leaving.]
ikaros has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
ttamttam has quit [Read error: Connection reset by peer]
eikke has quit [Ping timeout: 240 seconds]
maufred has quit [Quit: leaving]
avsm has quit [Quit: Leaving.]
sebz_ has joined #ocaml
thomasga has joined #ocaml
thomasga has quit [Client Quit]
sebz_ has quit [Quit: Computer has gone to sleep.]
hashar has quit [Quit: hashar]
sebz has joined #ocaml
fschwidom has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
eikke has joined #ocaml
hashar has joined #ocaml
hashar has quit [Changing host]
hashar has joined #ocaml
raichoo has joined #ocaml
rwmjones has joined #ocaml
vivanov has quit [Remote host closed the connection]
ygrek has joined #ocaml
Cyanure has joined #ocaml
ztfw has joined #ocaml
ttamttam has joined #ocaml
eikke has quit [Ping timeout: 248 seconds]
hto_ has quit [Quit: Lost terminal]
hto_ has joined #ocaml
eikke has joined #ocaml
Boscop has quit [Ping timeout: 240 seconds]
Boscop has joined #ocaml
probst has quit [Quit: probst]
ttamttam has quit [Remote host closed the connection]
<Drakken>
thelema are you around?
hto_ has quit [Quit: Lost terminal]
hto_ has joined #ocaml
maufred has joined #ocaml
hto_ has quit [Client Quit]
hto_ has joined #ocaml
maufred has quit [Client Quit]
hto_ has quit [Client Quit]
iris1 has quit [Quit: iris1]
hto_ has joined #ocaml
hto_ has quit [Client Quit]
hto_ has joined #ocaml
hto_ has quit [Quit: Lost terminal]
hashar is now known as hashar-OCAML-MAT
sepp2k has quit [Remote host closed the connection]
mlh has quit [Ping timeout: 252 seconds]
mlh has joined #ocaml
hashar-OCAML-MAT is now known as hashar
fschwidom has quit [Ping timeout: 252 seconds]
hto_ has joined #ocaml
raichoo has quit [Quit: leaving]
hto_ has quit [Quit: Lost terminal]
hto_ has joined #ocaml
hto_ has quit [Quit: Lost terminal]
hto_ has joined #ocaml
hto_ has quit [Client Quit]
hto_ has joined #ocaml
edwin has quit [Remote host closed the connection]
hto_ has quit [Client Quit]
hto_ has joined #ocaml
sebz has joined #ocaml
ygrek has quit [Ping timeout: 248 seconds]
hto_ has quit [Quit: Lost terminal]
hto_ has joined #ocaml
hto_ has quit [Client Quit]
hashar is now known as hasharZzz
ztfw has quit [Ping timeout: 252 seconds]
sebz has quit [Quit: Computer has gone to sleep.]
ikaros has quit [Quit: Ex-Chat]
scrappy_doo_ has joined #ocaml
scrappy_doo_ has left #ocaml []
Drakken has quit [Ping timeout: 245 seconds]
hasharZzz has quit [Quit: hasharZzz]
ikaros has joined #ocaml
Morphous has quit [Ping timeout: 240 seconds]
ftrvxmtrx has joined #ocaml
Morphous has joined #ocaml
Cyanure has quit [Remote host closed the connection]
astory has joined #ocaml
<astory>
is there a good library for solving 2-sat? I'd rather not roll my own if I don't have to.
srcerer has quit [Quit: ChatZilla 0.9.87 [Firefox 3.6.20/20110803131630]]
eikke has quit [Ping timeout: 240 seconds]
srcerer has joined #ocaml
sebz has joined #ocaml
* NaCl
wonders why a "hello world" program links against libm
srcerer has quit [Read error: Connection reset by peer]