<smondet>
there are some binding to jack-midi API which (try to) respect real-time constraints
<krktz>
nice, thanks
<krktz>
is it really still under developpment? :D
<krktz>
(I'll also give savonet a look :))
<smondet>
right not really under development :)
Snark has joined #ocaml
Cyanure has joined #ocaml
thomasga has joined #ocaml
<thomasga>
do you have any idea why people never use statically compiled preprocessors ?
<thomasga>
(ie, why using dynamic loading when it's slower and when it used to work only in bytecode?)
rixed has quit [Remote host closed the connection]
ftrvxmtrx has quit [Ping timeout: 248 seconds]
Kakadu has joined #ocaml
Submarine has joined #ocaml
<thelema>
thomasga: composability - the list of preprocessors to use is often variable within a single project
<f[x]>
thelema nailed it
<thomasga>
well, I am wondering how variable it is really
<thomasga>
I mean, you will have few files with one preprocessor, few with a different one, and that's it
<thelema>
I avoid camlp4 in my projects, so I'm not so sure
<thomasga>
in my experience, it is no so much variable
<thomasga>
do you know if one can use ocamlfind to build statically a preprocessor?
<thelema>
hmm, probably not as builtin as the usual camlp4 call methods
<thomasga>
yup
<thomasga>
but there is maybe a magic invocation to call :-)
<thelema>
probably have to override the builtin compile rules
ulfdoz_ has joined #ocaml
<f[x]>
moreover it is one less build step - which from my experience more often fail than not
cdidd has quit [Remote host closed the connection]
ulfdoz has quit [Ping timeout: 272 seconds]
ulfdoz_ is now known as ulfdoz
avsm has joined #ocaml
Submarine has quit [Quit: Leaving]
Submarine has joined #ocaml
probst has joined #ocaml
probst has quit [Client Quit]
avsm has quit [Quit: Leaving.]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
ivan\ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
thomasga has quit [Quit: Leaving.]
ivan\ has joined #ocaml
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
twittard has quit [Remote host closed the connection]
twittard has joined #ocaml
EmmanuelOga has joined #ocaml
pangoafk is now known as pango
Cyanure has quit [Ping timeout: 244 seconds]
<pippijn>
I'm new to ocaml and I'm wondering about best practices and good formatting rules, so here is some code: http://paste.xinu.at/OMi/
<pippijn>
I hope someone can give me some input
thomasga has joined #ocaml
<hcarty>
pippijn: As far as formatting goes, the pasted code looks good initially.
ftrvxmtrx has joined #ocaml
<hcarty>
pippijn: For best practices - lots of globally open modules is generally frowned on. It makes it more difficult to track down the origin of a function.
<hcarty>
Or value
<pippijn>
makes sense
twittard_ has joined #ocaml
<pippijn>
ok, reduced it to 4
<pippijn>
hcarty: the ones I have open now are very frequently used
<pippijn>
all the KW_ stuff comes from Cparser, all the node types are in Ast, Lexing is open for the Lexing.position types and record fields and I used List.iter a lot
twittard has quit [Ping timeout: 260 seconds]
twittard_ is now known as twittard
<pippijn>
hcarty: is it good to "let iter = List.iter" if I just use 1 or 2 functions from a module?
<hcarty>
pippijn: That would be better, yes.
<pippijn>
ok, did that
<pippijn>
now I have 3 modules open
<pippijn>
Ast and Cparser are necessary, Lexing is convenient
<hcarty>
pippijn: That's getting much more reasonable :-)
<pippijn>
oh
<pippijn>
I can move open Lexing down
<hcarty>
What version of OCaml are you using?
<pippijn>
because it's only used near the bottom of the file
<pippijn>
3.12 I think
<hcarty>
If you only use it in a function or two then you can use "let open Lexing in" in those functions
<pippijn>
The Objective Caml toplevel, version 3.12.1
<hcarty>
That limits the scope of the open module
<pippijn>
ah
<pippijn>
well, I use it in all 3 of the functions at the end of the file
<pippijn>
so I can put open lexing before those 3
<hcarty>
This syntax was added in 3.12.0, along with Module.(...) which limits the open to within the ( )
<pippijn>
the 3 functions there are separate from the upper ones
<pippijn>
the upper ones are the mutually recursive code output engine, the bottom ones are entry point + actual printing functions
<hcarty>
That or "let open Lexing in" as the first line in all three. It may make things easier to manage if you shift code around.
<pippijn>
hmm
<pippijn>
ok, did that
twittard has quit [Quit: twittard]
mcclurmc has joined #ocaml
letrec has quit [Ping timeout: 255 seconds]
twittard has joined #ocaml
Zedrikov has quit [Quit: Bye all, see you next time!]
Xizor has quit [Ping timeout: 260 seconds]
_andre has quit [Quit: leaving]
mal``` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
thomasga has quit [Quit: Leaving.]
<krktz>
smondet: http://pastebin.com/V2BEzPxD having some troubles trying to build locoseq, maybe you're interested :)
Submarine has quit [Quit: Leaving]
mal`` has joined #ocaml
decaf has quit [Quit: Leaving.]
Kakadu has quit [Remote host closed the connection]
<smondet>
krktz: it seems that the Jack API has changed too much... :(
<krktz>
oh :(
<krktz>
ok, I'll still read the code :)
avsm has joined #ocaml
czro has joined #ocaml
czro has quit [Read error: Connection reset by peer]
milosn has quit [Read error: Connection reset by peer]
milosn has joined #ocaml
czro has joined #ocaml
lamawithonel has quit [Ping timeout: 246 seconds]
krktz has quit [Ping timeout: 265 seconds]
krktz has joined #ocaml
NihilistDandy has joined #ocaml
twittard has quit [Quit: twittard]
twittard has joined #ocaml
lamawithonel has joined #ocaml
fraggle_ has quit [Read error: Connection reset by peer]
NihilistDandy has quit []
fraggle_ has joined #ocaml
fraggle_ has quit [Quit: -ENOBRAIN]
Tobu has quit [Quit: No Ping reply in 180 seconds.]
fraggle_ has joined #ocaml
Tobu has joined #ocaml
Snark has quit [Quit: Quitte]
czro has quit [Read error: Connection reset by peer]
ulfdoz has quit [Ping timeout: 244 seconds]
twittard has quit [Quit: twittard]
twittard has joined #ocaml
decaf has joined #ocaml
edwin has quit [Remote host closed the connection]
Cyanure has joined #ocaml
rgrinberg has joined #ocaml
<rgrinberg>
For doing ocaml on archlinux would you guys recommend using godi to manage ocaml + libraries or installing everything from aur?. I've noticed aur has a pretty big collection of ocaml modules. Not sure if it's better than godi though. Any advice?
lamawithonel has quit [Ping timeout: 276 seconds]
avsm has quit [Quit: Leaving.]
<decaf>
rgrinberg: archlinux stays at bleeding edge because this is what its target audience wants.
<thizanne>
rgrinberg: I personnally prefer using AUR
<thizanne>
if a module I want is not on the AUR, I make the package myselg
<thizanne>
myself*
<rgrinberg>
ya, i think i'll give aur a try. Have mostly used godi before but i'm definitely not a fan
<thizanne>
i never used godi
<thizanne>
i will try odb when i have the time
<hcarty>
rgrinberg: You can take a look at odb as well
<hcarty>
thizanne: Beat me to it :-)
<thizanne>
in fact i would like to make archlinux support correctly OCaml
<thizanne>
for now, debian does is very well
<thizanne>
it would be cool if arch could also
<rgrinberg>
what's wrong with arch's support?
<thizanne>
it's not very developped
<rgrinberg>
btw, I remember using ocaml on ubuntu and I think a lot of libs were outdated
<rgrinberg>
not sure anymore
lamawithonel has joined #ocaml
<thizanne>
I heard about problems in ubuntu
<thizanne>
on installing ocsigen mainly
<thizanne>
on archlinux, some components of ocsigen do not install correctly
<thizanne>
that's why i made the bundle package
<rgrinberg>
so how is debian better than arch?
<rgrinberg>
hcarty: ya I'll give odb a try as well. It has less stuff than godi but it does seem to have all of what i care about
<thizanne>
rgrinberg: what librairies do you need which are not in the aur ?
<rgrinberg>
huh?
<rgrinberg>
I'm fine with aur it has everything
letrec has joined #ocaml
KDr2 has joined #ocaml
cdidd has joined #ocaml
KDr2 has quit [Remote host closed the connection]
djcoin has quit [Quit: WeeChat 0.3.2]
oriba has joined #ocaml
smondet has quit [Remote host closed the connection]
decaf has quit [Quit: Leaving.]
oriba has quit [Quit: oriba]
Cyanure has quit [Remote host closed the connection]