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
groovy2shoes has quit [Read error: Connection reset by peer]
det has quit [Remote host closed the connection]
groovy2shoes has joined #ocaml
tautologico has joined #ocaml
joewilliams_away is now known as joewilliams
dnolen has quit [Quit: dnolen]
dnolen has joined #ocaml
dnolen has quit [Client Quit]
lopex has quit []
tautologico has quit [Quit: tautologico]
joewilliams is now known as joewilliams_away
ftrvxmtrx has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
groovy2shoes has quit [Quit: It is now safe to turn off your groovebot.]
NaCl is now known as SpanishInquisitr
SpanishInquisitr is now known as NaCl
dnolen has joined #ocaml
alpounet has quit [Ping timeout: 240 seconds]
dnolen has quit [Quit: dnolen]
dgfitch has left #ocaml []
ulfdoz has joined #ocaml
ygrek has joined #ocaml
ulfdoz has quit [Ping timeout: 260 seconds]
junsuijin has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 250 seconds]
edwin has joined #ocaml
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
larhat has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
fraggle_ has joined #ocaml
iratsu has quit [Remote host closed the connection]
Ptival has joined #ocaml
ftrvxmtrx has joined #ocaml
thomasga has joined #ocaml
sgnb has quit [Remote host closed the connection]
sgnb has joined #ocaml
srcerer_ has joined #ocaml
ftrvxmtrx_ has joined #ocaml
srcerer has quit [Ping timeout: 258 seconds]
ftrvxmtrx has quit [Ping timeout: 276 seconds]
iratsu has joined #ocaml
ftrvxmtrx_ is now known as ftrvxmtrx
iratsu has quit [Ping timeout: 255 seconds]
<flux> the within-module namespace is quite nice (I only recently upgraded to 3.12.0), for instance: CalendarLib.(Calendar.(to_unixfloat (convert t tz Time_Zone.UTC)))
<flux> or is that in the edges of obfuscation?-)
chrissbx has quit [Ping timeout: 258 seconds]
iratsu has joined #ocaml
Cyanure has joined #ocaml
eikke has joined #ocaml
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
Amorphous has quit [Ping timeout: 260 seconds]
alpounet has joined #ocaml
Amorphous has joined #ocaml
<flux> tuareg mode has this neat 'list definitions' thingy, but there is no way to jump into a definition from keyboard, is there?
lopex has joined #ocaml
_andre has joined #ocaml
lamawithonel_ has quit [Remote host closed the connection]
dnolen has joined #ocaml
iratsu has quit [Ping timeout: 255 seconds]
kaustuv has joined #ocaml
<kaustuv> The docs for BatInt.compare claim that directly calling caml_int_compare with an external is slower than writing it in pure OCaml. Can someone point me to the evidence for this, if available? attn: mfp
<kaustuv> Is the problem merely that caml_int_compare is not being inlined?
<f[x]> I think ocaml compiles (=) : int -> int -> int into couple of asm instructions
iratsu has joined #ocaml
<sgnb> +1
kaustuv has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bzzbzz has joined #ocaml
sebz has joined #ocaml
chrissbx has joined #ocaml
dnolen has quit [Quit: dnolen]
lopex_ has joined #ocaml
lopex has quit [Ping timeout: 252 seconds]
sebz has quit []
ankit9 has quit [Remote host closed the connection]
ankit9 has joined #ocaml
lopex_ has quit []
Ptival has quit [Quit: Leaving]
larhat has quit [Quit: Leaving.]
sebz has joined #ocaml
ttamttam has quit [Remote host closed the connection]
<hcarty> adrien: I have a fix for the "file" problem in xstrp4. I can send you a patch now or push the changes out as another release some time later today or tomorrow.
sebz has quit [Client Quit]
* NaCl wonders why his oasis binary isn't working
<adrien> hcarty: I won't have time right now: I need to finish some code before it gets tested on cars this weekend (glups!) and before I leave for Berlin (desktopsummit.org)
<NaCl> adrien: poking at openCV now
<hcarty> adrien: Ok, I'll wait to push anything out until I either hear from you again or I get error location reporting to work properly.
<hcarty> adrien: Good luck with the testing!
<flux> nacl, opencv in the context of ocaml or just in general?-)
<NaCl> former
<flux> ooh, nice
<NaCl> of course, I need to figure out how to get oasis to cooperate.
<NaCl> there is something wrong with my package
<flux> yeah, it's a shame how everyone one does is composed of all those little things one must to first :)
<flux> s/everyone/everything/
<flux> s/\bto\b/do/, gah
<NaCl> yeah.
<NaCl> step one... wrap datatypes
<NaCl> using the Internet connection with the slowest DNS on earth
<gildor> NaCl: what is not working with oasi ?
<NaCl> gildor: isn't accepting any commands, but that may be the result of poor packaging.
<NaCl> because the built binary works fine
<flux> nacl, try google dns at 8.8.8.8 or run your own resolver ;)
<flux> (uh, s/resolver/caching dns server/, I'm quite sloppy today)
<NaCl> already do the former, doesn't sped stuff up much
<gildor> NaCl: where did you get the binary ?
<NaCl> I made it myself, packaged on the openSUSE build servces
<NaCl> *service
<NaCl> I am 95% sure I messed something up
<gildor> NaCl: a very common pb when packaging bytecode, is that stripping remove the bytecode
<NaCl> ooooh
<gildor> NaCl: and most distro build process strip debugging symbol (i.e. where the bytecode is located)
<gildor> NaCl: that is not the case with native exec, of course
<NaCl> yeah, this is the native executable
<NaCl> apparently
<gildor> NaCl: best approach is to check the size of the binary
<gildor> it is 5.1MB on my computer
<gildor> what is the size of yours
<gildor> NaCl: by default, oasis doesn't build native exec
<NaCl> uh
<NaCl> much less than that
* NaCl lols
<gildor> you have been stripped ;-)
<NaCl> /usr/bin/oasis: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
<NaCl> -rwxr-xr-x 1 root root 238K Jul 21 11:12 /usr/bin/oasis
<gildor> that is far too small
<NaCl> indeed
* NaCl tries something
<NaCl> hmmm
<NaCl> I've got to go, I'll poke at it later
<NaCl> gildor: thanks much
Ptival has joined #ocaml
srcerer_ is now known as srcerer
junsuijin has joined #ocaml
eikke has quit [Ping timeout: 240 seconds]
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
avsm has quit [Ping timeout: 246 seconds]
ulfdoz has joined #ocaml
tautologico has joined #ocaml
tautologico has quit [Client Quit]
BiDOrD_ has joined #ocaml
eikke has joined #ocaml
BiDOrD has quit [Ping timeout: 250 seconds]
ftrvxmtrx has joined #ocaml
betta_y_omega has joined #ocaml
<metasyntax|work> Question about ocamldebug using http://ideone.com/2OkvW : if I put a breakpoint at the place indicated by <|b|> and try to print the value of j, I get an undefined identifier error.
<metasyntax|work> Is that because j is unused in the function that I'm breaking at, and therefore there's no debugging information stored for j in that function?
<thelema> metasyntax|work: you're in a closure that's captured only the values from its environment that it needs, yes
<metasyntax|work> thelema: OK, just checking for understanding, thanks!
hto has joined #ocaml
<flux> sayy, does anyone happen to have a myocamlbuild.ml that would help with building eliom client+server files?
<flux> because the documentation's hand-wavy mentioning of how difficult the building is and how it comes with scripts to easy the pain doesn't quite make me think it'll be a simple task to do :)
<flux> I had hoped there would be some 'medium level' comet system that would still have me write javascript but provide some nice js-libraries and server support for those, but apparently it's ocaml all the way ;)
thomasga has quit [Quit: Leaving.]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
<_habnabit> is there an existing function like `fun q r v -> if v = q then r else v` ?
<flux> no
<_habnabit> hmm, okay.
<flux> it wouldn't be lazy like if is if it were written like that, anyway
<_habnabit> how so?
<flux> I mean, r would be always evaluated. maybe it doesn't matter to you :). what do you need that function for anyway?
<flux> it seems sort of a special case, or maybe I'm not picking the pattern :)
<_habnabit> well, if that was called 'replace', then: IntMap.enum |- first (replace old_id new_id) |- IntMap.of_enum
<flux> ok. well, seems pretty heavy-duty to iterate a map and compare all elements etc. wouldn't you be able to do it more efficiently?
<_habnabit> oh, right, batteries has map function that seem to make this a little easier.
<flux> (I doubt it addresses the efficiency issue though)
chee1 has quit [Quit: leaving]
<_habnabit> aha, yes. `IntMap.modify old_id (const new_id)`
<_habnabit> oh, no. not quite.
chee1 has joined #ocaml
chee1 has quit [Client Quit]
<_habnabit> yep. IntMap.extract old_id |- uncurry (IntMap.add new_id)
<_habnabit> awesome.
chee1 has joined #ocaml
lopex has joined #ocaml
iratsu has quit [Ping timeout: 252 seconds]
<flux> I hadn't realized how potentially neat begin/end can be for CPS code..
<flux> (while ocamlbuild isn't quite cps, its plugins like to use begin/end instead of parenthesis)
avsm has joined #ocaml
<flux> I'm slowly approaching the conclusion that the only way to understand ocamlbuild is to read its source..
ulfdoz has quit [Read error: Operation timed out]
_andre has quit [Quit: leaving]
Anarchos has joined #ocaml
edwin has quit [Remote host closed the connection]
hyperboreean has quit [Ping timeout: 250 seconds]
iratsu has joined #ocaml
<avsm> yup
<avsm> but luckily, the ocamlbuild source is quite easy to read :) its the best to find all the magic targets, i find
<_habnabit> eh? does prefixing an operator with ~ make it unary?
<_habnabit> I wanted to make ~= compare floats with some epsilon.
<flux> _habnabit, you may find =~ a better choice ;)
<_habnabit> for some reason ~= just looks better to me! oh well.
<flux> the first character chooses the precedence
<flux> I guess the unariness as well
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
avsm has quit [Quit: Leaving.]
kaustuv has joined #ocaml
<kaustuv> Can bad things happen if I use (-) for the compare function for Map/Set.Make() ?
hyperboreean has joined #ocaml
<_habnabit> not really.
<NaCl> wait... what exactly is oasis compiled as by default anyway?
<NaCl> An executable that contains the ocaml interpreter and oasis?
iratsu has quit [Read error: Connection reset by peer]
<NaCl> that's an ocamlbuild thing
<_habnabit> hmm. I think I might've gone a bit overboard this time.
<_habnabit> ((fst *** fst) &&& (snd *** snd) |- ((uncurry (=) *** uncurry approx_equal) |- uncurry (&&) &&& (fst |- uncurry (Printf.sprintf "unequal (%d and %d)"))) |- (flip (@?) |> uncurry) |> curry |> Enum.iter2 |> uncurry)
eikke has quit [Ping timeout: 260 seconds]
iratsu has joined #ocaml
Ptival has quit [Read error: Connection reset by peer]
<NaCl> hyperboreean: ***&&&
<_habnabit> &&& is fun.
<NaCl> oh
<NaCl> tab fail
<NaCl> is there a way to make ocamlbuild not generate custom bytecode runtimes?
<NaCl> and instead make /usr/bin/ocamlrun scipt thingies?
Cyanure has quit [Remote host closed the connection]
pheredhel has quit [Ping timeout: 276 seconds]
pheredhel has joined #ocaml