gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
lamawithonel has quit [Ping timeout: 264 seconds]
sebz has quit [Quit: Computer has gone to sleep.]
khia0 has joined #ocaml
khia0 has left #ocaml []
chrissbx has quit [Ping timeout: 260 seconds]
joewilliams_away is now known as joewilliams
chrissbx has joined #ocaml
iratsu has joined #ocaml
jamii has quit [Ping timeout: 250 seconds]
iratsu has quit [Ping timeout: 250 seconds]
thomasga has quit [Quit: Leaving.]
iratsu has joined #ocaml
mjonsson has joined #ocaml
lopex has quit []
junsuijin has joined #ocaml
Boscop_ has joined #ocaml
Boscop has quit [Ping timeout: 252 seconds]
NaCl has quit [Ping timeout: 240 seconds]
joewilliams is now known as joewilliams_away
sebz has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
NaCl has joined #ocaml
mjonsson has quit [Remote host closed the connection]
Boscop__ has joined #ocaml
Boscop_ has quit [Ping timeout: 260 seconds]
sebz has joined #ocaml
ulfdoz has joined #ocaml
khia0 has joined #ocaml
khia0 has left #ocaml []
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sebz has quit [Client Quit]
sebz has joined #ocaml
ulfdoz has quit [Ping timeout: 240 seconds]
seafood_ has joined #ocaml
bobry has quit [Quit: Leaving.]
seafood_ is now known as seafood
edwin has joined #ocaml
junsuijin has quit [Quit: Leaving.]
DimitryKakadu has joined #ocaml
<DimitryKakadu> hallo!
<DimitryKakadu> Can I write in OCaml something like `class ['a; 'b] aaa =object end ` ?
<_habnabit> I won't stop you.
<adrien> DimitryKakadu: ['a, 'b] is ok, but ['a; 'b] (with a semicolon) doesn't work
<adrien> what did you _mean_?
edwin has quit [Remote host closed the connection]
<DimitryKakadu> adrien: ooh, thanks.
<DimitryKakadu> I didn't found this syntax in http://caml.inria.fr/pub/docs/manual-ocaml/manual005.html, so I have come to you.
<adrien> it's like type ('a, 'b) t
edwin has joined #ocaml
blinky- has joined #ocaml
bobry has joined #ocaml
ankit9 has quit [Ping timeout: 250 seconds]
Boscop_ has joined #ocaml
Boscop__ has quit [Ping timeout: 252 seconds]
larhat has joined #ocaml
thomasga has joined #ocaml
ikaros has joined #ocaml
seafood has quit [Ping timeout: 268 seconds]
Tobu has joined #ocaml
BiDOrD has joined #ocaml
Boscop__ has joined #ocaml
BiDOrD_ has quit [Ping timeout: 276 seconds]
Boscop_ has quit [Ping timeout: 258 seconds]
ankit9 has joined #ocaml
ankit9 has quit [Client Quit]
avsm has joined #ocaml
thomasga has quit [Ping timeout: 252 seconds]
avsm has quit [Read error: No route to host]
avsm has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
thomasga has joined #ocaml
ankit9 has joined #ocaml
sebz has joined #ocaml
<mfp> ugh if I have an "empty" (as in std::string v;) C++ string in a scope which is left by raising an OCaml exception (caml_raise_constant), will that leak?
<flux> I'd guess it could, but not likely. depends on implementation?
<flux> can't you avoid doing that?
<mfp> hmm I'll just copy to a char[SIZE] on the stack
<flux> if you know when you're doing to raise it, you could explicitly destruct it
<flux> but sure, char[SIZE] will work :)
Snark_ has joined #ocaml
<mfp> oops, actually, I can't
<mfp> I have a Get method that wants a std::string & to return the value
<flux> the comments.. they are plentiful!
<flux> mfp, how about: { std::string v; db->Getblahblah; copy_v_into_safety(); } RAISE..
<flux> mfp, or, before doing raise, s.~string(); ?
<mfp> the latter sounds better
chrissbx has quit [Ping timeout: 258 seconds]
thomasga has quit [Quit: Leaving.]
betta_y_omega has quit [Ping timeout: 240 seconds]
betta_y_omega has joined #ocaml
sgnb has quit [Remote host closed the connection]
sgnb has joined #ocaml
Cyanure has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
Boscop_ has joined #ocaml
Boscop__ has quit [Ping timeout: 250 seconds]
betta_y_omega has quit [Ping timeout: 260 seconds]
lamawithonel has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
lamawithonel has quit [Ping timeout: 250 seconds]
jimmyrcom1 has joined #ocaml
jimmyrcom has quit [Ping timeout: 264 seconds]
jimmyrcom1 has quit [Read error: Connection reset by peer]
jimmyrcom has joined #ocaml
_andre has joined #ocaml
lopex has joined #ocaml
lamawithonel has joined #ocaml
sebz has joined #ocaml
ccasin has quit [Read error: Operation timed out]
ccasin has joined #ocaml
Boscop_ is now known as Boscop
lamawithonel has quit [Ping timeout: 250 seconds]
Cyanure has quit [Read error: Operation timed out]
Cyanure has joined #ocaml
thomasga has joined #ocaml
thomasga has quit [Remote host closed the connection]
vivanov has joined #ocaml
<flux> mfp, ..did it work?-)
<vivanov> i want to read from a file when smth is written into it. select [fd] [] [] ( -. 1.0 ) ;; returns [f_d] [] []. read f_d s 0 100 ;; returns 0
<flux> select typically (ie. in linux) doesn't work with files in a useful fashion
<flux> the way to do it is either: a) poll with stat when the file grows, read the new data or b) use inotify for asynchronous messages about file changes
DimitryKakadu has quit [Remote host closed the connection]
<mfp> flux: s.~string() seems to work fine, thanks
dahc has joined #ocaml
<vivanov> flux: thx :)
zorun_ has joined #ocaml
zorun_ has quit [Client Quit]
vivanov has quit [Quit: Lost terminal]
arubin has quit [Quit: arubin]
stephanewustner has quit [Read error: Operation timed out]
stephanewustner has joined #ocaml
avsm has quit [Quit: Leaving.]
joewilliams_away is now known as joewilliams
dnolen has joined #ocaml
dnolen has quit [Client Quit]
fraggle_laptop has joined #ocaml
yezariaely has joined #ocaml
malc_ has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
<mwm1> 0
Snark_ is now known as Snark
iratsu has quit [Ping timeout: 250 seconds]
yezariaely has quit [Quit: Leaving.]
betta_y_omega has joined #ocaml
blinky- has quit [Quit: /quat /quot]
betta_y_omega has quit [Ping timeout: 252 seconds]
lopex has quit []
avsm has joined #ocaml
ankit9 has quit [Quit: Leaving]
ikaros has joined #ocaml
iratsu has joined #ocaml
betta_y_omega has joined #ocaml
bobry has quit [Ping timeout: 258 seconds]
betta_y_omega has quit [Max SendQ exceeded]
betta_y_omega has joined #ocaml
NaCl is now known as lCaN
lCaN is now known as NaCl
betta_y_omega has quit [Max SendQ exceeded]
betta_y_omega has joined #ocaml
betta_y_omega has quit [Excess Flood]
avsm has quit [Quit: Leaving.]
betta_y_omega has joined #ocaml
betta_y_omega has quit [Ping timeout: 276 seconds]
betta_y_omega has joined #ocaml
bobry has joined #ocaml
accel_ has joined #ocaml
<accel_> does ocaml have cocoa bindings?
<hcarty> accel_: I think someone did something for using OCaml to write iPhone applications. I don't know if that involves cocoa.
<accel_> that japanese team
<accel_> that cross compiled ocmal onto the iphone?
<accel_> that was pretty badass
<hcarty> Whoever it was released their code/patches
Anarchos has joined #ocaml
<adrien> there are others cocoa bindings too I think but they're maybe not in a perfect state
betta_y_omega has quit [Ping timeout: 258 seconds]
accel_ has quit [Quit: leaving]
ulfdoz has joined #ocaml
betta_y_omega has joined #ocaml
larhat has quit [Quit: Leaving.]
betta_y_omega has quit [Max SendQ exceeded]
betta_y_omega has joined #ocaml
betta_y_omega has quit [Ping timeout: 258 seconds]
betta_y_omega has joined #ocaml
betta_y_omega has quit [Max SendQ exceeded]
Anarchos has quit [Ping timeout: 240 seconds]
ankit9 has joined #ocaml
avsm has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
ygrek has joined #ocaml
slash_ has joined #ocaml
slash_ has left #ocaml []
sebz has joined #ocaml
edwin has quit [Ping timeout: 260 seconds]
edwin has joined #ocaml
malc_ has quit [Quit: leaving]
jamii has joined #ocaml
betta_y_omega has joined #ocaml
Snark has quit [Quit: Quitte]
Boscop has quit [Ping timeout: 258 seconds]
lopex has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
fraggle_laptop has quit [Ping timeout: 240 seconds]
_andre has quit [Quit: leaving]
<_habnabit> looks like oasis is down again.
<_habnabit> does this happen often?
drunK has joined #ocaml
<_habnabit> hm, and gildor isn't here.
<thelema> _habnabit: he's on vacation at the moment
<_habnabit> drat.
<thelema> otherwise it'd probably be back up now
<_habnabit> trying to write a build script to do a full bootstrap of the environment necessary to build our software.
<_habnabit> and it uses odb.ml to install some things.
<thelema> odb servers are pretty simple things - one directory of tarballs and another directory of metadata files
<thelema> you could probably host this locally
<_habnabit> yeah, it's a possibility.
<_habnabit> is there an existing mirror?
<thelema> I think there isn't.
<_habnabit> hmm.
<thelema> it's on my todo list when oasis is back up
<_habnabit> well, I don't know what format the metadata has to be in or anything.
<thelema> key=value\nkey=value
<thelema> deps=camomile(>=0.7.0)
<thelema> tarball=batteries-1.3.0.tar.gz
<thelema> is_library=true
<thelema> That's the info file for batteries
<_habnabit> hmm. maybe I should just store all of these things in our cdn.
<_habnabit> i.e. godi rocketboost, odb.ml, etc.
<thelema> I originally ran odb server off my lab computer
<thelema> odb.ml still has commented out a second webroot that points there.
<thelema> the server seems to still be listening, even.
<thelema> it's got old packages, though. not up to date
<_habnabit> okay, so I have the go-ahead to do a minimal local odb mirror.
<_habnabit> while I'm at it, I could put the latest ocaml-csv in there.
<_habnabit> are these info files available somewhere?
<_habnabit> aha.
<_habnabit> and 00list is just a space-separated list of packages?
<thelema> yup
<_habnabit> okay, great.
<thelema> not needed except for the no-args execution of odb to list available packages
<_habnabit> ah.
<_habnabit> oh, webroot isn't specifiable on the command line?
<_habnabit> guess I'll have to make a local copy of odb.ml too.
<thelema> _habnabit: it'd be trivial to do so, but there's no real need
<_habnabit> well, once you have mirrors, ...
jamii has quit [Quit: Leaving]
ygrek has quit [Quit: Leaving]
<_habnabit> did you fold the 1.4.1 batteries updates back into 1.4.0, or is the ocamlforge page just not up to date?
<thelema> that page isn't up to date.
<_habnabit> ah.
<_habnabit> so where can I find a 1.4.1 tarball? github works, I guess.
<thelema> I'm pretty bad about updating it - I should probably remove the "latest version" links and just point to github/ocamlforge
<thelema> oops, I didn't even upload 1.4.1 to the forge download page...
ulfdoz has quit [Ping timeout: 264 seconds]
<_habnabit> okay, cool, it's all set up now.
<_habnabit> let's see if it does a thing.
<thelema> the -d flag might help debug what urls it's requesting
<_habnabit> I got it figured out. thanks, though.
<thelema> great
<_habnabit> haha, awesome. the cdn is way faster than ocamlforge and godi's site and everything else, really.
<_habnabit> but it's a cdn, so that's expected.
<thelema> :) public mirror: donate?
<_habnabit> I might consider setting up a full public mirror soonish. right now I need to get this working for our stuff.
<thelema> no problem.
<_habnabit> but it seems like it would be a useful thing to have.
waern has joined #ocaml
edwin has quit [Remote host closed the connection]
ikaros has quit [Remote host closed the connection]
Morphous has quit [Read error: Connection reset by peer]
iratsu has quit [Ping timeout: 260 seconds]
<_habnabit> do you know if you can tell godi to only build static libraries?
<_habnabit> alternately somehow pass -no-curses to the ocaml it builds.
<_habnabit> the libcurses on this machine is broken.
Morphous has joined #ocaml
iratsu has joined #ocaml
lamawithonel has joined #ocaml
lamawithonel has quit [Read error: Connection reset by peer]
lamawithonel has joined #ocaml
hto has quit [Ping timeout: 240 seconds]
hto has joined #ocaml
blinky- has joined #ocaml
Cyanure has quit [Ping timeout: 260 seconds]
fraggle_ has quit [Ping timeout: 240 seconds]
fraggle_ has joined #ocaml
betta_y_omega has quit [Ping timeout: 240 seconds]
betta_y_omega has joined #ocaml
avsm has quit [Quit: Leaving.]
hto has quit [Ping timeout: 240 seconds]
lopex has quit []
hto has joined #ocaml
dnolen has joined #ocaml
hto has quit [Ping timeout: 240 seconds]
hto has joined #ocaml
qdl has quit [Ping timeout: 252 seconds]
qdl has joined #ocaml
hto has quit [Read error: Operation timed out]