letrec has quit [Remote host closed the connection]
letrec has joined #ocaml
pilki has joined #ocaml
pilki has quit [Quit: This computer has gone to sleep]
iago has quit [Quit: Leaving]
fantasticsid has joined #ocaml
ankit9 has joined #ocaml
pilki has joined #ocaml
pilki has quit [Client Quit]
kmc has quit [Quit: Leaving]
waterfowl has joined #ocaml
bwright has joined #ocaml
rwmjones has quit [Read error: Operation timed out]
larhat has joined #ocaml
fridim_ has quit [Ping timeout: 268 seconds]
kmc has joined #ocaml
waterfowl has quit [Ping timeout: 244 seconds]
edwin has joined #ocaml
ttamttam has joined #ocaml
yezariae1y is now known as yezariaely
bwright has quit [Quit: leaving]
<adrien>
samposm: hmmm, you get a speed increase by using "-inline 10"? iirc that's the default
iago has joined #ocaml
sebz has joined #ocaml
_andre has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
pango_ has joined #ocaml
pango__ has quit [Ping timeout: 252 seconds]
letrec has quit [Ping timeout: 252 seconds]
milosn has joined #ocaml
milosn has quit [Read error: Connection reset by peer]
milosn has joined #ocaml
sebz has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 240 seconds]
ftrvxmtrx has joined #ocaml
bobry has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
ulfdoz has joined #ocaml
oc13 has joined #ocaml
ankit9 has quit [Quit: Leaving]
<adrien>
removing GEdit, GMisc, GToolbox, and GBroken from lablgtk.cmxs saves 10ms of (dynamic) loading on my laptop; the inter-modules dependencies are very tricky however
spearalot has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
edwin has quit [Remote host closed the connection]
<adrien>
looks like oasis will always create bytecode version of libraries even with CompiledObject=native; is it know? or is it a mistake on my end?
<adrien>
gildor: ^ ^
<adrien>
the issue could be that it always runs "/usr/bin/ocamlbuild LibUi.cma LibUi.cmxa LibUi.a"
<adrien>
brb
<adrien>
right: my setup.ml file seems to make native compilation depend on byte compilation; any reason why?
<adrien>
(I'm making libs as part of an application and only the application will use these libs; therefore I need byte XOR native but never both at the same time)
emmanuelux has joined #ocaml
<adrien>
ah, found: I'm using the patch to add for-pack stuff and when building for pack "A", I need to create "A.mli"
sebz has joined #ocaml
spearalot has quit [Quit: Computer has gone to sleep]
<samposm>
adrien: no, just 2 instead of 1 is enough, also 10 works
pilki has joined #ocaml
fantasticsid has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
regreg has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
pilki has quit [Quit: This computer has gone to sleep]
_andre has quit [Read error: Connection reset by peer]
_andre has joined #ocaml
velov has joined #ocaml
letrec has joined #ocaml
danishman has joined #ocaml
edwin has joined #ocaml
letrec has quit [Remote host closed the connection]
letrec has joined #ocaml
pilki has joined #ocaml
EmmanuelOga has quit [Quit: WeeChat 0.3.7-dev]
letrec has quit [Remote host closed the connection]
letrec has joined #ocaml
bzzbzz has joined #ocaml
pilki has quit [Quit: This computer has gone to sleep]
ttamttam has left #ocaml []
bzzbzz has quit [Quit: leaving]
letrec has quit [Ping timeout: 276 seconds]
sebz has joined #ocaml
Anarchos has joined #ocaml
spearalot has joined #ocaml
spearalot has quit [Quit: Computer has gone to sleep]
larhat has quit [Quit: Leaving.]
BiDOrD_ has quit [Read error: Operation timed out]
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
<hcarty>
thelema: odb via ocamlbrew finds dependencies properly on my system, although this is testing without a ~/.odb directory
ftrvxmtrx has quit [Read error: Connection timed out]
<hcarty>
thelema: Any thoughts on how to get an _oasis file working with ocamlnet? There is a problem in its current state when odb passes 'destdir'
<hcarty>
thelema: That's not a valid argument for ocamlnet's configure script so it barfs and quits.
<hcarty>
thelema: Or... not destdir, --prefix
ftrvxmtrx has joined #ocaml
<hcarty>
thelema: " && :" can be added to the end of the custom configuration line to ignore --prefix, but that prevents other flags from being passed in
waterfowl has joined #ocaml
<hcarty>
thelema: --have-perms may be a nice thing to be able to set with an environment variable. That would make it easy to have ocamlbrew'd OCaml + odb.ml + installing to site-lib play nicely together.
<hcarty>
thelema: I'm still uncertain if I want odb from ocamlbrew to install to odb/ or site-lib/
_andre has quit [Quit: leaving]
<hcarty>
thelema: I modified ocamlnet's configure script to ignore --prefix. It's a bit of a hack, but hopefully OCAMLFIND_DESTDIR will be enough to do the right thing. It looks like it is, as I can install ocamlnet through odb now.
<thelema>
hcarty: back. hmm.
<thelema>
okay on ocamlnet
<thelema>
--prefix is mostly so that binaries get installed to ~/.odb/bin
<thelema>
maybe I can remove it for non-programs
kmc has quit [Quit: Leaving]
<hcarty>
thelema: It may be necessary for packages like camomile which install extra data
sebz has quit [Quit: Computer has gone to sleep.]
<thelema>
ah, yes...
<thelema>
well, maybe the right thing if for configure scripts to at least ignore --prefix
<thelema>
*is for
<hcarty>
I think that is a reasonable requirement for now
<hcarty>
ocamlnet is the only package I have worked on that had trouble with --prefix so far
<thelema>
doesn't the setup.ml created by a XCustom _oasis handle --prefix?
<thelema>
although, hmm, maybe it would need to do something with --prefix for some XCustom setups...
vivanov has joined #ocaml
pilki has quit [Quit: This computer has gone to sleep]
fridim_ has joined #ocaml
raichoo has joined #ocaml
iago has quit [Ping timeout: 240 seconds]
<orbitz>
any suggestions for how to memory profile an ocaml app? My app is growing quite large after extended use and I need to figure out why
<thelema>
orbitz: ocamlviz has some tools for this, although I haven't been too successful with them
<orbitz>
Is there any way to query the VM for actual memory consumption? I'm using top which may not give me the whole story
<orbitz>
It's actually a fork of mfp's message queue
<orbitz>
Under extended use memory is growing, it actually ate all the memory on my virtual machine earlier thi sweek
<adrien>
ok; I was asking because lablgtk2 disabled automatic compaction since it doesn't goes terribly well with C and callbacks
<orbitz>
In Ocaml should I expect space to be given back to the OS?
<thelema>
orbitz: yes
<adrien>
isn't it only on compactions?
<thelema>
adrien: yes
<orbitz>
Can I read about what forces a compaction?
<thelema>
orbitz: compactions will naturally happen, don't worry about it
<orbitz>
I'm not worrying, I am thirsting for knowledge :)
jyaan has joined #ocaml
<jyaan>
I was wondering, how would you read out loud the types for tuples? (eg. how to pronounce int * int)
<adrien>
Gc.compact will; calling it yourself can help debugging some mem usage but you'll need to learn more about the conditions the GC uses to determine whether it should "free" something or not
<thelema>
jyaan: "a pair of ints"
<jyaan>
So for int * string * float * int you'd say a tuple of int string float inT?
<jyaan>
I guess that was kind of obivous, thanks
<thelema>
jyaan: sure.
<adrien>
jyaan: as far as I'm concerned, I think I read it like I would read any list of elements: "A, B, C" -> an A, a B and a C
<orbitz>
adrien: yeah, I'm of the opinion if I need to call the compaction manually I'm doing something wrong, mor eof just curious how the gc in ocaml works
<hcarty>
thelema: XCustomConfigure doesn't seem to do anything other than provide a pass-through to the given command
<thelema>
hcarty: so the arguments of setup.ml get passed on to the given command?
jyaan has left #ocaml []
<hcarty>
thelema: Yes. 'ocaml setup.ml -configure --prefix foo' could end up as 'touch setup.data && ./configure --prefix foo'
<hcarty>
thelema: Or whatever the custom configure command is
<thelema>
so the && : hack can be placed there
<hcarty>
Yes
<hcarty>
But I wanted to avoid that in the case of ocamlnet because several options are turned off by default. Some folks may want to enable them.
<thelema>
anyway, I'll keep that in mind - your solution is better
jyaan has joined #ocaml
<hcarty>
The '&& :' hack was definitely nice as a test
ftrvxmtrx has quit [Quit: Leaving]
<thelema>
btw, odb handles local packages
<thelema>
(totally untested)
<adrien>
I was trying to speed up a native code compilation by adding .mli files everywhere so that ocamlbuild didn't create .cmo files in order to get the cmi; it didn't get any faster =/
<thelema>
hcarty: meaning that it's not necessary to upload to oasis-db to test with odb
<orbitz>
thelema: Do you think your let-defintion patch will go into head?
<orbitz>
it looked pretty useful!
<thelema>
orbitz: ?? my let definition patch?
<orbitz>
thelema: Hrm, I thought that was on your github? So you can do like let (let!) x y = ...
edwin has quit [Remote host closed the connection]
<hcarty>
thelema: Fantastic! I'll hopefully have a chance to try it out soon.
emmanuelux has quit [Ping timeout: 252 seconds]
roha has quit [Quit: Leaving]
pilki has quit [Quit: Leaving]
sebz has quit [Quit: Computer has gone to sleep.]
oc13 has quit [Ping timeout: 252 seconds]
pilki has joined #ocaml
letrec has joined #ocaml
<hcarty>
thelema: What is the final decision on the exception raised by Option.get?
<thelema>
hcarty: Invalid_arg
<thelema>
just pushed
Morphous_ has quit [Ping timeout: 255 seconds]
<thelema>
I realize I'll have to improve the packages format - there needs to be provision for version numbers
<hcarty>
thelema: Does Batteries expose Ulib?
<hcarty>
I want to put a Ulib-the-stdlib-extension-from-OCaml-CVS on oasis-db, but I don't want it to conflict with Batteries.
sebz has joined #ocaml
<thelema>
hmm, let me check the .cma
<thelema>
yes, Ulib is provided by batteries.cma
<thelema>
I can change the name in ocaml.
pilki has quit [Quit: This computer has gone to sleep]
<thelema>
samposm: since dSFMT doesn't change much, can you include their source inside your lib?
<thelema>
(instead of wgetting it at compile time)
<thelema>
hcarty: err, I can change the internal name in batteries. Batteries.ml exports only Ulib.Text as Text (replacing Rope)
Morphous_ has joined #ocaml
mcclurmc has quit [Excess Flood]
mcclurmc has joined #ocaml
NihilistDandy has joined #ocaml
letrec has quit [Ping timeout: 244 seconds]
waterfowl has quit [Quit: waterfowl]
waterfowl has joined #ocaml
waterfowl has quit [Client Quit]
waterfowl has joined #ocaml
destrius has joined #ocaml
<hcarty>
thelema: I'll try uploading Ulib as Ulib to odb and test it against Batteries 2.0beta2
<thelema>
I think it'll conflict. I guess I can prefix batteries' ulib with Bat
<thelema>
as it's pretty unlikely that it'll be its own library
<hcarty>
They do conflict
<hcarty>
thelema: If that's not going to cause other problems, then the name change would be nice. However, given that Ulib in Batteries was actually officially announced while I don't think Ulib the OCaml CVS stdlib extension ever was, I don't mind changing the library name.
<hcarty>
I don't know how much the upstream version is used or updated at this point, but it does have some nice modules (Umatrix for 2D arrays; Its Arg-like module(s) look handy)
sebz has quit [Quit: Computer has gone to sleep.]
<thelema>
maybe the cvs ulib could be named inria_ulib?
mcclurmc has quit [Excess Flood]
mcclurmc has joined #ocaml
<hcarty>
thelema: That sounds reasonable. At the package, findlib, and module level?
<hcarty>
I just uploaded and tested lacaml with a basic _oasis wrapper to oasis-db. It works here, so that's one more library down.
<hcarty>
Given that Jane St. is involved with lacaml it may switch over to oasis fully upstream