sepp2k has quit [Remote host closed the connection]
<_habnabit>
how are you supposed to compose `print`s in batteries? int_of_float |- Int.print doesn't line up, and int_of_float |- flip Int.print |> flip is a bit silly
<adrien>
thelema: it looks nice but why not improve xstrp4?
<thelema>
adrien: templates achieve something different than xstrp4 - properly done, they achieve independence between data and presentation of that data
thomasga has quit [Quit: Leaving.]
<thelema>
which is useful for web designers to not have to muck so much in the code, but also for the two parts to be loosely coupled
<thelema>
xstrp4 is mostly for coders to output simple things quickly, templates support nested data structures (not of arbitrary recursive depth, usually)
<adrien>
hmmm, ok, that'd be really nice to have but it doesn't look terribly simple to have in ocaml
<thelema>
true, it's designed for dynamic languages which can nest lists, hashes and strings pretty arbitrarily
<thelema>
I'm trying to decide how much I want to ocaml-ify it.
<thelema>
especially since we don't have map literals
emmanuelux has joined #ocaml
dnolen has joined #ocaml
<adrien>
=/
<adrien>
I think I'm going to have an issue with oasis
<adrien>
I have a folder "src", with a few files in it and a number of subfolders which contain sub-modules for the main library
<adrien>
the sub-modules should only be built as .cm[ox] files
The_third_man has quit [Ping timeout: 260 seconds]
<adrien>
so I'd have to have only "Library" field in my _oasis file, right?
<adrien>
but then, I'd have to put several folders to the Path option which is not possible afaiu
<adrien>
plus I'd like to avoid putting everything in the same "Library" because it makes *huge* lines (I have hundreds of files)
The_third_man has joined #ocaml
<adrien>
ah! :-)
<adrien>
"Install: false" solves the issue
jimmyrcom has joined #ocaml
<adrien>
hmmm, I'm missin the .cm[xo] files however
copumpkin has quit [Ping timeout: 260 seconds]
copumpkin has joined #ocaml
ikaros has joined #ocaml
mfp has joined #ocaml
edwin has quit [Remote host closed the connection]
g0dmoney- has quit [Ping timeout: 244 seconds]
edwin has joined #ocaml
g0dmoney- has joined #ocaml
thomasga has joined #ocaml
metasyntax|work has joined #ocaml
oriba has joined #ocaml
g0dmoney- has quit [Ping timeout: 244 seconds]
g0dmoney- has joined #ocaml
oriba has quit [Client Quit]
raichoo has quit [Read error: Connection reset by peer]
raichoo has joined #ocaml
ousado has joined #ocaml
ousado has quit [Changing host]
ousado has joined #ocaml
dnolen has quit [Quit: dnolen]
EmmanuelOga has joined #ocaml
copumpkin has quit [Quit: Computer has gone to sleep.]
raichoo has quit [Quit: leaving]
ikaros has quit [Quit: Ex-Chat]
<hcarty>
caaakeeey: files.metaprl.org/doc/ocaml-book.pdf is a somewhat more modern OCaml book
<hcarty>
adrien: I think I agree with thelema at this point. You would probably be better off with some form of templates.
<hcarty>
adrien: Of course, xstrp4 could be expanded to support templates or template support could be built on top of xstrp4.
<hcarty>
adrien: Without that the c_sources block would need to be pulled out into a prior interpolated string.
<hcarty>
adrien: Concatenation of heredocs should work out of the box I think
<adrien>
hcarty: concatenation of heredocs works but is quite verbose because one has to close the first here-doc, put the conditional, open a here-doc, close it, put an else, an empty string, open another here-doc
<adrien>
I and I ended up interpolating outside of the here-doc
<adrien>
and now, you're making me wait for the template extension =)
copumpkin has joined #ocaml
<thelema>
adrien: FWIW, ocsigen has a templating language
<adrien>
that's a pretty big dep :P
<olasd>
w 2o
<olasd>
meh
<adrien>
and I'm running with issues with ocamlfind+destdir
<adrien>
basically, instead of installing to $destdir/$prefix/lib/ocaml/$pkg, it installs to $destdir/$pkg
<adrien>
(when using ocamlfind install -destdir)
<adrien>
has anyone had the same issue?
<hcarty>
adrien: I'm only asking you to wait for you to write it :-D
<adrien>
heheh :P
<hcarty>
adrien: I think ocamlfind's destdir interpretation is the second version
<adrien>
yes, and I need to fix it =/
Boscop has joined #ocaml
<thelema>
adrien: can't you set `prefix=$destdir/$prefix`?
<adrien>
so, basically, I have bindings which are generated automatically, the build system is automatic too, everything works, _but_ -destdir/DESTDIR doesn't and I'm completely stuck because of that =/
<adrien>
thelema: I need to set it when invoking "ocamlfind install" and I don't know which values to use
<adrien>
because I also have to let it touch the ld.conf file I think (although that can be worked-around)
ygrek has joined #ocaml
<adrien>
and I'd have to get the paths from its configuration file and rework them
<thelema>
yes, it does expect to change the ld.conf file
<adrien>
I think a post-install script which appends a line to ld.conf will be fine
<adrien>
hmm
<adrien>
I'll probably tell it to install to $(PWD)/pkg and let the distro packager copy this to the right place
Kakadu has joined #ocaml
<thelema>
I don't know much about distro packagers, but wonder why default ocamlfind install isn't sufficient
g0dmoney- has quit [Changing host]
g0dmoney- has joined #ocaml
ikaros has joined #ocaml
<adrien>
because it won't let you create a distro package
<thelema>
distro like debian?
<adrien>
slackware here but I think debian probably has the same issue
<bnwr>
adrien: use arch
<adrien>
noway =)
<bnwr>
you can create packages locally and install them
<adrien>
arch would be a huge problem for me: I'm still using an old version of webkit-gtk and cannot change now
<bnwr>
there are lots of local ocaml related packages available
<bnwr>
there's an arch time machine
<adrien>
the issue is not so much what I can do but how easily I can do it
<adrien>
I'm making the lib and I want to make its packaging simple
<bnwr>
you can "freeze" arch at any time (in the past) by using Server=http://arm.konnichi.com/$yyyy/$mm/$dd/core/os/$arch where $arch is the architecture and $yyyy-$mm$dd is the date of the freeze
<adrien>
I don't want to freeze the whole but only one package here and there, and what depends on them, maybe recompiling base stuff myself
<bnwr>
changing distro is kind of a big thing (especially if it's just for develloping one thing), but all that you say is possible
<bnwr>
of course learning the new environnement and package manager is not necessarily worth it (depends what you want to do, for how long, etc.)
<adrien>
right, a post-install hook will nicely take care of ld.conf
<adrien>
I'm a hardcore slacker, I'm definitely at home
<thelema>
adrien: I guess slackware packaging is different - I'm slightly familiar with debian packaging, and it stacks on top of normal installs reasonably
Cyanure has quit [Remote host closed the connection]
<adrien>
slackware packaging is tar+gz/xz
<adrien>
slackware is dumb, that's why I feel at home =)
EmmanuelOga has quit [Quit: WeeChat 0.3.6-rc2]
EmmanuelOga has joined #ocaml
EmmanuelOga has quit [Quit: WeeChat 0.3.6-rc2]
EmmanuelOga has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
ikaros has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
larhat has quit [Quit: Leaving.]
EmmanuelOga has quit [Quit: WeeChat 0.3.6-rc2]
sebz has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
sebz has quit [Client Quit]
EmmanuelOga|2 has joined #ocaml
sebz has joined #ocaml
EmmanuelOga|2 is now known as EmmanuelOga
ulfdoz has joined #ocaml
copumpkin has quit [Ping timeout: 248 seconds]
copumpkin has joined #ocaml
ViciousPlant has quit [Remote host closed the connection]