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
Submarine has quit [Ping timeout: 250 seconds]
<hcarty> If anyone here is interested in a US (Maryland/DC area) web development/design position in a relatively OCaml-friendly group: http://mdafederal.hrmdirect.com/employment/view.php?req=57304&
<hcarty> I'm off for a while, but feel free to leave/PM questions if you are interested.
drunK has quit [Remote host closed the connection]
joewilliams is now known as joewilliams_away
boscop has quit [Ping timeout: 245 seconds]
Amorphous has quit [Ping timeout: 272 seconds]
boscop has joined #ocaml
Amorphous has joined #ocaml
kuatto has joined #ocaml
flx_ has joined #ocaml
bzzbzz has joined #ocaml
pheredhel` has joined #ocaml
Pepe___ has joined #ocaml
hcarty_ has joined #ocaml
asmanur_ has joined #ocaml
bitbckt_ has joined #ocaml
bitbckt_ has quit [Client Quit]
gildor_ has joined #ocaml
bitbckt_ has joined #ocaml
Derander_ has joined #ocaml
bitbckt__ has joined #ocaml
bitbckt has quit [Disconnected by services]
bitbckt__ is now known as bitbckt
bitbckt has quit [Changing host]
bitbckt has joined #ocaml
adrien has quit [*.net *.split]
zzz_ has quit [*.net *.split]
gnuvince has quit [*.net *.split]
bacam has quit [*.net *.split]
sgnb has quit [*.net *.split]
flx_ has quit [*.net *.split]
Amorphous has quit [*.net *.split]
cthuluh has quit [*.net *.split]
jonathandav has quit [*.net *.split]
mikemc has quit [*.net *.split]
Tianon has quit [*.net *.split]
noj has quit [*.net *.split]
cods has quit [*.net *.split]
npouillard has quit [*.net *.split]
avsm2 has quit [*.net *.split]
bitbckt_ has quit [*.net *.split]
hcarty_ has quit [*.net *.split]
kaustuv has quit [*.net *.split]
strlen_ has quit [*.net *.split]
gnuvince1 has quit [*.net *.split]
nimred has quit [*.net *.split]
vk0 has quit [*.net *.split]
gildor_ has quit [*.net *.split]
mfp has quit [*.net *.split]
thelema has quit [*.net *.split]
hyperboreean has quit [*.net *.split]
Modius has quit [*.net *.split]
kerneis has quit [*.net *.split]
rossberg_ has quit [*.net *.split]
mehdid has quit [*.net *.split]
__marius__ has quit [*.net *.split]
asmanur has quit [*.net *.split]
flux has quit [*.net *.split]
fraggle_ has quit [*.net *.split]
gildor has quit [*.net *.split]
bzzbzz_ has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
rikta06 has quit [*.net *.split]
jlouis has quit [*.net *.split]
Derander has quit [*.net *.split]
pheredhel has quit [*.net *.split]
hcarty has quit [*.net *.split]
emias has quit [*.net *.split]
srcerer has quit [*.net *.split]
snarkyboojum has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
mcclurmc has quit [*.net *.split]
nejimban has quit [*.net *.split]
f[x] has quit [*.net *.split]
fabjan_ has quit [*.net *.split]
haelix has quit [*.net *.split]
krktz has quit [*.net *.split]
avsm2 has joined #ocaml
npouillard has joined #ocaml
cods has joined #ocaml
noj has joined #ocaml
Tianon has joined #ocaml
mikemc has joined #ocaml
jonathandav has joined #ocaml
cthuluh has joined #ocaml
Amorphous has joined #ocaml
adrien has joined #ocaml
gildor_ has joined #ocaml
mfp has joined #ocaml
thelema has joined #ocaml
hyperboreean has joined #ocaml
Modius has joined #ocaml
kerneis has joined #ocaml
rossberg_ has joined #ocaml
mehdid has joined #ocaml
__marius__ has joined #ocaml
fraggle_ has joined #ocaml
rikta06 has joined #ocaml
jlouis_ has joined #ocaml
emias has joined #ocaml
hcarty_ has joined #ocaml
kaustuv has joined #ocaml
strlen_ has joined #ocaml
gnuvince1 has joined #ocaml
nimred has joined #ocaml
vk0 has joined #ocaml
snarkyboojum has joined #ocaml
Asmadeus has joined #ocaml
mcclurmc has joined #ocaml
nejimban has joined #ocaml
f[x] has joined #ocaml
fabjan_ has joined #ocaml
haelix has joined #ocaml
krktz has joined #ocaml
flux has joined #ocaml
zzz_ has joined #ocaml
gnuvince has joined #ocaml
bacam has joined #ocaml
sgnb has joined #ocaml
zzz_ has quit [*.net *.split]
gnuvince has quit [*.net *.split]
bacam has quit [*.net *.split]
sgnb has quit [*.net *.split]
snarkyboojum has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
mcclurmc has quit [*.net *.split]
nejimban has quit [*.net *.split]
f[x] has quit [*.net *.split]
fabjan_ has quit [*.net *.split]
haelix has quit [*.net *.split]
krktz has quit [*.net *.split]
hcarty_ has quit [*.net *.split]
kaustuv has quit [*.net *.split]
strlen_ has quit [*.net *.split]
gnuvince1 has quit [*.net *.split]
nimred has quit [*.net *.split]
vk0 has quit [*.net *.split]
flux has quit [*.net *.split]
gildor_ has quit [*.net *.split]
mfp has quit [*.net *.split]
thelema has quit [*.net *.split]
hyperboreean has quit [*.net *.split]
Modius has quit [*.net *.split]
kerneis has quit [*.net *.split]
rossberg_ has quit [*.net *.split]
mehdid has quit [*.net *.split]
__marius__ has quit [*.net *.split]
adrien has quit [*.net *.split]
emias has quit [*.net *.split]
rikta06 has quit [*.net *.split]
fraggle_ has quit [*.net *.split]
jlouis_ has quit [*.net *.split]
Amorphous has quit [*.net *.split]
cthuluh has quit [*.net *.split]
jonathandav has quit [*.net *.split]
mikemc has quit [*.net *.split]
Tianon has quit [*.net *.split]
noj has quit [*.net *.split]
cods has quit [*.net *.split]
npouillard has quit [*.net *.split]
avsm2 has quit [*.net *.split]
sgnb has joined #ocaml
bacam has joined #ocaml
gnuvince has joined #ocaml
zzz_ has joined #ocaml
flux has joined #ocaml
krktz has joined #ocaml
haelix has joined #ocaml
fabjan_ has joined #ocaml
f[x] has joined #ocaml
nejimban has joined #ocaml
mcclurmc has joined #ocaml
Asmadeus has joined #ocaml
snarkyboojum has joined #ocaml
vk0 has joined #ocaml
nimred has joined #ocaml
gnuvince1 has joined #ocaml
strlen_ has joined #ocaml
kaustuv has joined #ocaml
hcarty_ has joined #ocaml
emias has joined #ocaml
jlouis_ has joined #ocaml
rikta06 has joined #ocaml
fraggle_ has joined #ocaml
__marius__ has joined #ocaml
mehdid has joined #ocaml
rossberg_ has joined #ocaml
kerneis has joined #ocaml
Modius has joined #ocaml
hyperboreean has joined #ocaml
thelema has joined #ocaml
mfp has joined #ocaml
gildor_ has joined #ocaml
adrien has joined #ocaml
avsm2 has joined #ocaml
npouillard has joined #ocaml
cods has joined #ocaml
noj has joined #ocaml
Tianon has joined #ocaml
mikemc has joined #ocaml
jonathandav has joined #ocaml
cthuluh has joined #ocaml
Amorphous has joined #ocaml
joewilliams_away is now known as joewilliams
ulfdoz has joined #ocaml
adrien has quit [*.net *.split]
adrien has joined #ocaml
cthuluh has quit [Remote host closed the connection]
cthuluh has joined #ocaml
Yoric has joined #ocaml
Pepe___ is now known as Pepe_
Snark has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
cthuluh has quit [Ping timeout: 260 seconds]
<flux> finally tried meta-future. atleast the example work :). but I wish the guy (people?) used git or darcs..
<julm> git <3
<flux> apparently the guy doesn't provide a license either. does oleg have some blanket license somewhere or is his software for viewing only?
<flux> ah, found it: "Unless specified otherwise, all the code and the documentation on this site is in public domain."
Snark has quit [Quit: Ex-Chat]
ikaros has joined #ocaml
Yoric has quit [Quit: Yoric]
ttamttam has joined #ocaml
Amorphous has quit [Ping timeout: 272 seconds]
jonathandav has quit [Ping timeout: 272 seconds]
mikemc has quit [Ping timeout: 272 seconds]
Tianon has quit [Ping timeout: 272 seconds]
jonathandav has joined #ocaml
mikemc has joined #ocaml
Amorphous has joined #ocaml
cods has quit [Remote host closed the connection]
cods has joined #ocaml
edwin has joined #ocaml
ikaros has quit [Remote host closed the connection]
edwin has quit [Ping timeout: 255 seconds]
jado has joined #ocaml
<jado> hello, is there a function in ocaml to print data types as in the top-level?
ftrvxmtrx has quit [Quit: Leaving]
<flux> no. The function Std.dump as found in Batteries and ExtLib comes close, though, for debugging purposes
_andre has joined #ocaml
<jado> flux: oh that's what i was looking for, thanks
<jado> flux: what can i add to this Makefile (i didn't make it) to compile using extlib? http://pastebin.com/VZTzzPAV
<flux> jado, the solution lies in _tags and possibly myocamlbuild.ml, but I'm not really familiar with ocamlbuild..
<flux> I just use the ocamlfind-compatible version of myocamlbuild.ml and that allows me to write <*>: pkg_extlib in my _tags file
<jado> ok thanks, gtg
Yoric has joined #ocaml
jado has quit [Ping timeout: 240 seconds]
cthuluh has joined #ocaml
ftrvxmtrx has joined #ocaml
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
th5 has joined #ocaml
seafood has joined #ocaml
avsm has joined #ocaml
seafood has quit [Quit: seafood]
mnabil has joined #ocaml
eldragon has quit [Read error: Connection reset by peer]
rgrig has joined #ocaml
sgnb` has joined #ocaml
sgnb has quit [Read error: Connection reset by peer]
seafood has joined #ocaml
seafood has quit [Quit: seafood]
mnabil has quit [Read error: Connection timed out]
jlouis_ is now known as jlouis
eldragon has joined #ocaml
sgnb` is now known as sgnb
ikaros has joined #ocaml
mnabil has joined #ocaml
lamawithonel has quit [Ping timeout: 264 seconds]
hto has joined #ocaml
Submarine has joined #ocaml
ccasin has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
init1 has joined #ocaml
drunK has joined #ocaml
cods_ has joined #ocaml
_andre_ has joined #ocaml
cods has quit [Disconnected by services]
cods_ is now known as cods
mnabil has quit [*.net *.split]
th5 has quit [*.net *.split]
_andre has quit [*.net *.split]
th5 has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
sgnb has quit [Remote host closed the connection]
mnabil has joined #ocaml
oriba has joined #ocaml
sgnb has joined #ocaml
ftrvxmtrx has joined #ocaml
ttamttam has quit [Remote host closed the connection]
Submarine has quit [Remote host closed the connection]
Yoric has quit [Quit: Yoric]
lamawithonel has joined #ocaml
init1 has quit [Read error: Connection reset by peer]
init1 has joined #ocaml
th5 has quit [Ping timeout: 245 seconds]
joewilliams is now known as joewilliams_away
srcerer has joined #ocaml
ulfdoz has joined #ocaml
joewilliams_away is now known as joewilliams
rixed_ has joined #ocaml
Snark has joined #ocaml
yezariaely has joined #ocaml
fraggle_ has joined #ocaml
yezariaely has quit [Read error: Operation timed out]
Edward has joined #ocaml
ccasin has quit [Quit: Leaving]
drunK has quit [Remote host closed the connection]
eldragon has quit [Read error: Connection reset by peer]
ulfdoz has quit [Ping timeout: 255 seconds]
mnabil has quit [Ping timeout: 240 seconds]
eldragon has joined #ocaml
ulfdoz has joined #ocaml
eldragon has quit [Ping timeout: 240 seconds]
mike__ has joined #ocaml
Yoric has joined #ocaml
Edward has quit [Ping timeout: 260 seconds]
Edward has joined #ocaml
<flux> nice, native dbus-library for ocaml: http://obus.forge.ocamlcore.org/api/
princesseTutu has joined #ocaml
princesseTutu has left #ocaml []
eldragon has joined #ocaml
alexyk has joined #ocaml
<alexyk> what's the best structure from Batteries to keep a set of strings?
<flux> Set.StringSet?
<adrien> ls
<adrien> argh :P
<alexyk> flux: what's the advantage / disadvantage of PSet?
<flux> alexyk, I guess it works for this case. the main advantage is that you can handle different sets with the same non-functorized code and the main disadvantage that certain operations might work in unexpected ways because the type system doesn't guarantee that the sets are the same
<flux> in particular, union/inter/diff/compare/equal/subset/compare_subset might work differently
<alexyk> hmm
<flux> infact my manual page of BatPSet doesn't even mention union..
<alexyk> union is there
<flux> I might possibly have an old version of the manual page
<alexyk> I just say module P=PSet in repl :)
_andre_ has quit [Quit: leaving]
rgrig has quit [Quit: Leaving]
<flux> hmm, apparently my man-pages-rule from my tree went away along with OMakefile..
<flux> doc doesn't build for me :-(
<flux> src/batSeq.mli : [Invalid_argument] is not a valid exception constructor in "@raise [Invalid_argument] if given sequences of different length."
dark has joined #ocaml
<dark> is there some ocamldoc for lablgl?
<alexyk> btw, do folks still omake? I need to get away from a Makefile, and wonder why more projects use ocamlbuild now
<dark> alexyk, I thought it was somewhat dead, but I saw a new release (or threat to release) that put me to hope
<dark> on my part i'm using omake for my own little ocaml things
<alexyk> dark: for some reason, it didn't "just work" for me :(
<flux> alexyk, well, ocamlbuild is a decent build system that comes with ocaml :)
<dark> yeah it didn't just worked for me too
kuatto has quit [Ping timeout: 255 seconds]
<dark> but i was expecting makefile conventions. for example, i didn't knew that for setting an environment variable i would have to call setenv
<dark> setenv(a, b) i think
<alexyk> aha
<dark> also i miss some ocamldoc thing. but Xen people has some ocamldoc function that i could use. (yeah, i haven't knew, but they use ocaml for their server o.o)
<dark> anyway after I just saw an working OMakefile and tweaked and so on it works like a charm
<dark> and for tex projects too (but it is less useful because all my tex things are single-file little things)
<dark> lablgl docs anyone?.-.
<flux> maybe you can build them yourself? if it comes with the annotations..
<dark> I'm trying.. the source itself has no annotation
<dark> it was generated automatically it seems
<flux> well, the I guess the ocamldoc would be very sparse
<dark> but i would be happy with some doc which showed the interfaces
<dark> i have some mli here, can i get some ocamldoc from them?
drunK has joined #ocaml
<dark> does labels have some kind of runtime overhead?
<flux> ocamldoc foo.mli
<flux> they don't
<dark> or are they fully resolved at compile time? (I'm guessing that with separate compilation i would have issues)
<dark> like my .cmo calling a labelled function from a module it does not have the code. (it would resolve this while linking?)
kuatto has joined #ocaml
<flux> it has its interface
<flux> the .cmi file
<flux> if you don't have a .cmi-file for a module, you cannot access anything in it
<dark> some files had annotations after all.. but nowhere in the source ocamldoc was called, except for a example with caml-images
<flux> ocamldoc -html *.mli might give you something
<flux> I have actually used very little ocamldoc :)
<dark> (yes, i needed the -html)
<dark> it looks like this binding is somewhat incomplete
<dark> i don't know much about opengl, but opengl has some extension mechanism
alexyk has quit [Quit: alexyk]
<flux> you might want to take a look at this: http://glcaml.sourceforge.net/
<flux> apparently it's more complete, but possibly less safe and not so ocamlish
<dark> Void pointers are represented by the polymorphic type 'a
<dark> this is interesting
<dark> Note that most OpenGL implementations use single-precision floating point internally, even if the call is made with an API function using doubles. OpenGL 3.0, due to be released in 2008, will only support single precision floating point. > should I worry with this double-to-float conversion? (performance-wise)
<flux> you know that ocaml 'float' is actually 'double'?
<flux> I wouldn't worry about it
<dark> yes
<flux> I mean, it's not like it's loss of precision. possibly loss of memory bandwidth.
<dark> I mean: isn't such conversion expensive?
<dark> I suppose that if one could handle directly with float, it would have less overhead
<flux> I can't tell. I'd imagine not very expensive. definitely more expensive than not doing it :)
<flux> I'm under the impression that conversions between integers and floating point numbers is more expensive
<flux> you could benchmark it :)
<dark> I don't know how to do make good benchmarks
<dark> I want to implement collision detection on my own. I attempted to build a quadtree (for 2D), it seemed an ocamlish structure. But it was hard to implement it correctly
<dark> random bugs appeared, i abandoned it
<flux> try again?-)
<dark> I tried some 'foundational approach' and clean recursive algorithms, but there was some combinatorial problem (match cases with too much options)
<dark> I'm looking at the source code of a game made with lablgl. Specially, the part about collisions. It is, like I suspected, a mess
<flux> but, off to sleep. happy coding.
<dark> bye!
alexyk has joined #ocaml
<dark> i think an working example, with http://docs.camlcity.org/docs/godipkg/3.10/godi-omake/doc/godi-omake/html/omake-doc.html , may be sufficient
Snark has quit [Quit: Ex-Chat]
<alexyk> is there a pretty way to get the last element of an array, but a.((A.length a) - 1)?
<dark> let last a = a.((Array.length a) -1)
<dark> i think that if it were implemented (maybe it is, at batteries..) it would be that way
<adrien> is it not pretty?
init1 has quit [Quit: Quitte]
<alexyk> adrien: it's Perl! :)
kuatto has quit [Ping timeout: 240 seconds]
<adrien> heh
<alexyk> what's the opposite of succ?
<ftrvxmtrx> pred
<alexyk> a.(a |> A.length |> pred)
<alexyk> now that's pretty
<alexyk> or even,
<alexyk> a |> A.length |> pred |> A.get a
<adrien> but maybe not really readable
<alexyk> to FP folks it should be!
<alexyk> or, A.backwards a |> Enum.peek and de-Some
<alexyk> let deSome = Option.get
<alexyk> BTW, how efficient are Batteries Enums, can I use them to write things like above and assume they're as fast as a.(A.length ...) ?
<alexyk> within an O(x)?
<ftrvxmtrx> at least A.backwards a |> Enum.peek works as fast as a.(A.length ...)
ftrvxmtrx has quit [Remote host closed the connection]
ulfdoz has quit [Ping timeout: 240 seconds]
ftrvxmtrx has joined #ocaml
rixed_ has quit [Ping timeout: 276 seconds]
caligula has quit [Ping timeout: 245 seconds]
caligula has joined #ocaml
alexyk has quit [Ping timeout: 240 seconds]
oriba_ has joined #ocaml
oriba has quit [Ping timeout: 260 seconds]
Yoric has quit [Quit: Yoric]
ikaros has quit [Remote host closed the connection]
ikaros has joined #ocaml
dark has quit [Ping timeout: 265 seconds]
kuatto has joined #ocaml
Obfuscate has quit [Read error: Connection reset by peer]
Obfuscate has joined #ocaml
kuatto has quit [Ping timeout: 240 seconds]
thieusoai has quit [Quit: Leaving]
ikaros has quit [Quit: Leave the magic to Houdini]
oriba_ has quit [Quit: Verlassend]
kuatto has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
kuatto has quit [Disconnected by services]
fraggle_ has joined #ocaml
joewilliams is now known as joewilliams_away