mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.0 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
<DraX> i'm just learning ocaml, it's pretty cool :)
<DraX> is that related to www.ocaml-tutorial.org at all?
tty56 has quit [Remote closed the connection]
tty56 has joined #ocaml
smimou has quit ["bli"]
pants1 has quit ["Leaving."]
tty56_ has joined #ocaml
cmeme has quit [Excess Flood]
cmeme has joined #ocaml
tty56 has quit [Connection timed out]
mpc has joined #ocaml
mpc has quit [Client Quit]
mpc has joined #ocaml
mpc has quit [Remote closed the connection]
mpc has joined #ocaml
ita has quit ["hasta luego!"]
mpc has quit []
mpc has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
yminsky has joined #ocaml
yminsky has quit []
^authentic has joined #ocaml
seafoodX has joined #ocaml
authentic has quit [Read error: 110 (Connection timed out)]
^authentic is now known as authentic
piggybox_ has joined #ocaml
fdgsoer has joined #ocaml
fdgsoer has left #ocaml []
piggybox has quit [Read error: 110 (Connection timed out)]
authentic has left #ocaml []
authentic has joined #ocaml
pango has quit [Remote closed the connection]
authentic has left #ocaml []
pango has joined #ocaml
authentic has joined #ocaml
authentic has left #ocaml []
authentic has joined #ocaml
seafoodX has quit []
fdgsoer has joined #ocaml
fdgsoer is now known as [azoic]
szs1 has joined #ocaml
seafoodX has joined #ocaml
diakopter has quit [Read error: 104 (Connection reset by peer)]
mpc has quit []
Abo-Marwan14 has quit [Remote closed the connection]
screwt840 has quit [Remote closed the connection]
[azoic] has quit []
screwt840 has joined #ocaml
zvrba has joined #ocaml
Abo-Marwan14 has joined #ocaml
l_a_m has joined #ocaml
mbishop has quit ["leaving"]
martin_ has joined #ocaml
martin_ is now known as mbishop
ramki has joined #ocaml
many-leg` has joined #ocaml
Nutssh has joined #ocaml
pango has quit ["I shouldn't really be here - dircproxy 1.0.5"]
pango has joined #ocaml
Tetsuo has joined #ocaml
EliasAmaral has joined #ocaml
joshcryer has quit [Read error: 104 (Connection reset by peer)]
seafoodX has quit [Read error: 110 (Connection timed out)]
<EliasAmaral> Hello, there are any good sound library for ocaml that allow playing arbitrary sounds? (like a sound generated dinamically) I am seeing ocaml-alsa, but it's too low-level.
joelr1 has joined #ocaml
<joelr1> good morning
<EliasAmaral> hello joelr1
<joelr1> :-)
<EliasAmaral> la, la, la :)
<EliasAmaral> I am having trouble in finding a lib that could do a thing like.. "play a sound at a given frequency", or better, "play that given note". like, uhn, jMusic for java
<EliasAmaral> maybe is there any hope for me to find this written in ocaml? :~
<joelr1> nope
<EliasAmaral> I am afraid I can't figure out in one day how alsa works and how to abstract over functions like "val readn_float64 : handle -> float array array -> int -> int -> int"
<haelix> EliasAmaral: why not go for Java ?
<haelix> if the language is too much of a pain, then you can still hava access to Java classes from other JVM languages
<EliasAmaral> haelix, hmm. this is part of a larger project, and i am already doing it in ocaml.
<EliasAmaral> I was looking for an application to computations done by cellular automata, and algorithmically-generated music was nice. but to do that, i need a music library of course =o
<haelix> YEs
<haelix> that sounds nice :)
<haelix> then, I'm afraid you're left using some socket RPC to connect to a small Java Sound server
leo037 has joined #ocaml
velco has quit ["<boris``> reduction ad absurdum is a fallacious method of proof"]
<EliasAmaral> ahahahha. that sounds a bit of hack. but it could work. i also would learn a bit of java in the process
<joelr1> haelix: do you know camlp4?
<haelix> joelr1, sorry, no
<joelr1> no problem
<haelix> EliasAmaral: I'd go for one of the many xml-rpc solutions
<haelix> praying to find one interoperable enough between the implementations available for OCaml and Java
<haelix> (no specific advice - I've only done Java remoting throug RMI or Hessian)
<EliasAmaral> java-to-ocaml binary interface (for calling functions) isn't an option? i think java can export functions for C programs, and OCaml can import functions from C programs..
<haelix> Yes, Java JNI has provisions for native to JAva callbacks
<EliasAmaral> that way I would not view an inconvenient sound server, but a nice sound library
<haelix> (even ways of instantiating the whole VM if it's not already here)
<haelix> _but_
<EliasAmaral> (maybe I could arrange the RPC to act as a library, too)
<haelix> the JNI system is sooooo cumbersome
joshcryer has joined #ocaml
<EliasAmaral> cumbersome
<EliasAmaral> it must be a terrible thing to say about a interface
<EliasAmaral> (looking in a dictionary)
<EliasAmaral> cumbersome = difficult or cumbersome = heavyweight? because i have no problem with slow things actually..
<haelix> hmmm
<haelix> what I mean is that it's more geared towards mechanical wrapper generation that manual coding
<haelix> the good news is that you're trying to interface existing java code:
<EliasAmaral> hell, in a page a guy recommended "very high level languages" for musical exploration, and he cited ocaml, along ruby and python..
<haelix> java has enough reflection features that this is more easy than in the ocam way
<haelix> other than this
<EliasAmaral> hmm
<haelix> The easy path for me would be to make a dead simple Java wrapping class
<haelix> taht suits your needs
<haelix> ("play these notes _now_" :)
<haelix> and wrap it in a *-RPC system interoperable with Ocaml
<haelix> or make it a class full of static functions (a tad easier to interface through JNI)
<haelix> and try to export it to C/JNI
<haelix> next on my radar was
<haelix> (easer use of native lib in Java)
Tetsuo has quit ["Leaving"]
<EliasAmaral> hmmm. i will try rpc if there are no option to do this in ocaml
<haelix> it seems it offers some callback features (even though I don't have a clue on their usefulness)
buluca has joined #ocaml
<krumms> hi all - http://www.vector-seven.com/2007/10/03/the-many-humps-of-ocaml-part-2/ - part 2 of my Ocaml tutorial. Anybody care to give some feedback? Last time I spam it here, I promise :)
<joelr1> krumms: how about a camlp4 3.10 tutorial? now THAT would be groovy
<krumms> joelr1: I'm yet to learn camelp4 myself :) seems popular though
smimou has joined #ocaml
<haelix> joelr1: what is it you'd like to do with camp4 ?
<haelix> best tutorial I have,
<haelix> though abit dated (certainly not the breaking camp4 3.10)
<haelix> is Graydon Hoare one
<joelr1> haelix: really? where's that?
<joelr1> haelix: i want to generate c code.
<joelr1> haelix: you mean the 1-day compiler presentation?
<haelix> joelr1: yes, this exact one
<haelix> (and, funnily, he generates C code, too)
seafoodX has joined #ocaml
Amorphous has quit ["shutdown"]
seafoodX has quit []
replore has quit ["Leaving..."]
Amorphous has joined #ocaml
Amorphous has quit [Read error: 104 (Connection reset by peer)]
replore has joined #ocaml
Amorphous has joined #ocaml
ramki has quit [Read error: 113 (No route to host)]
seafoodX has joined #ocaml
joelr1 has left #ocaml []
buluca has quit [Read error: 113 (No route to host)]
replore has quit [Read error: 113 (No route to host)]
seafoodX has quit [Read error: 110 (Connection timed out)]
ita has joined #ocaml
l_a_m has quit [Remote closed the connection]
buluca has joined #ocaml
joelr1 has joined #ocaml
joelr1 has left #ocaml []
pango has quit [Remote closed the connection]
kelaouchi has quit ["leaving"]
pango has joined #ocaml
many-leg` has left #ocaml []
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
Demitar has quit [Read error: 110 (Connection timed out)]
screwt840 has quit [Read error: 104 (Connection reset by peer)]
Abo-Marwan14 has quit [Read error: 104 (Connection reset by peer)]
Abo-Marwan14 has joined #ocaml
skal has joined #ocaml
bluestorm has joined #ocaml
screwt840 has joined #ocaml
rillig has joined #ocaml
kelaouchi has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
<pango> EliasAmaral: Graphics.sound ?
Torment has joined #ocaml
Jedai has quit [Read error: 110 (Connection timed out)]
magnus_ has joined #ocaml
buluca has joined #ocaml
psnively has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
pants1 has joined #ocaml
Vital303 has joined #ocaml
rillig has quit ["exit(EXIT_SUCCESS)"]
buluca has quit [Read error: 113 (No route to host)]
psnively has quit [Read error: 104 (Connection reset by peer)]
Vital303 has quit [Read error: 110 (Connection timed out)]
psnively has joined #ocaml
bla has quit [Read error: 110 (Connection timed out)]
jlouis_ has joined #ocaml
DraX has quit [Read error: 110 (Connection timed out)]
pants1 has quit ["Leaving."]
gene9 has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
thesoko has joined #ocaml
Demitar has joined #ocaml
gene9 has quit ["Leaving"]
bla has joined #ocaml
jlouis has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
Demitar has quit [Connection timed out]
baruk has joined #ocaml
blakkino has joined #ocaml
ita is now known as ita|zzz