<seafood_>
Hey guys. Has anyone here used CamlP4's fold generator?
<seafood_>
In OCaml 3.10?
<seafood_>
I'm having some trouble getting it to work as advertised in the Camlp4 wiki.
jlouis_ has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
jlouis has quit [Read error: 110 (Connection timed out)]
ita has quit ["Hasta luego!"]
zmdkrbou has quit [Read error: 110 (Connection timed out)]
yminsky_ has joined #ocaml
jonathanv has joined #ocaml
Morphous has joined #ocaml
yminsky_ has quit []
jonafan has quit [Read error: 110 (Connection timed out)]
Amorphous has quit [Read error: 110 (Connection timed out)]
zmdkrbou has joined #ocaml
sergez has joined #ocaml
blackdog has joined #ocaml
pattern has quit [Remote closed the connection]
Associat0r has quit []
Zeros has joined #ocaml
m3ga has joined #ocaml
middayc has quit [Read error: 110 (Connection timed out)]
__suri_ has joined #ocaml
__suri has quit [Read error: 110 (Connection timed out)]
m3ga has quit ["disappearing into the sunset"]
thermoplyae has quit ["daddy's in space"]
jlouis has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
<flux>
hcarty, guess what I'm doing.. ;-) The problem appears to be that Chipmunk returns cpShape* which can be casted to cpCirleShape* or cpSegmentShape*; I think the only reasonable way to handle that would be to view cpShape* as an abstract type and provide accessors
<flux>
(especially if it is expected that the value will be mutated through the pointer; I really haven't looked)
ygrek has joined #ocaml
seafood_ has quit []
pattern has joined #ocaml
pattern has quit [Remote closed the connection]
ttamttam has joined #ocaml
ikaros has joined #ocaml
yminsky has quit [Read error: 110 (Connection timed out)]
filp has joined #ocaml
yminsky has joined #ocaml
mlasson_ has quit [Read error: 113 (No route to host)]
pattern has joined #ocaml
zmdkrbou has quit [Read error: 110 (Connection timed out)]
zmdkrbou has joined #ocaml
marmottine has joined #ocaml
yminsky has quit [Read error: 110 (Connection timed out)]
yminsky has joined #ocaml
middayc has joined #ocaml
<sergez>
Q: anyone knows of a current effort to port ocaml to llvm?
<rwmjones>
sergez, jon harrop posted about this on the main caml-list mailing list
<sergez>
okay, will check & get in touch. Thank you
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
hkBst has joined #ocaml
Zeros has quit ["Leaving"]
msandin has joined #ocaml
zheng has joined #ocaml
yminsky has quit [Read error: 110 (Connection timed out)]
mlasson_ has joined #ocaml
yminsky has joined #ocaml
junis has joined #ocaml
<flux>
sergez, so, what's the status?-)
leo037 has joined #ocaml
<sergez>
flux: will check later about jon harrop's attempts, not much time now unfortunately.
<flux>
I didn't know harrop was actually attempting as much port ocaml to llvm than to create a new language with the ocaml llvm bindings..
yminsky has quit [Read error: 110 (Connection timed out)]
<sergez>
I stopped using ocaml about a year ago because of various issues but find myself coming back to it...alternate languages/platforms being worse!
<middayc>
what did you use in the meantime (that you found worse at the end)?
<sergez>
sad but...c++ was (and still is) my workhorse.
<sergez>
but with good design, generally, if it compiles it *just works*. But it requires lots of varnish (smart templated pointers etc) that should not be necessary with the right language
yminsky has joined #ocaml
<sergez>
the drawbacks in ocaml were: complex linking because too much native code (too much binding even for trivial libraries), the different size of the int type between our 32 and 64 bit platforms, lack of concurrent threading, and the difficulty making other parts of the company buy in ocaml, among others. The 'buy in' part is the real showstopper though.
jlouis_ has joined #ocaml
<flux>
I'm not sure what you mean by the first part
<flux>
did you make use of ocamlfind, did the tool exist back when you tried out ocaml?
mlasson_ has quit [Read error: 113 (No route to host)]
<flux>
lack of concurrent threading is being addressed by cothread library; it does use multiple processes though, so it might not be suitable for you
<sergez>
the first parts means, for example, to get sha1 you'd need to depend on a C library. However, coding SHA1 is not exactly rocket science.
<sergez>
Think of the boost java got when JDBC went native: easy porting, easy deployment.
<sergez>
And native linking is not a good showcase of the language either :(
<sergez>
We were aware of ocamlfind. But we deploy applications, and should not include a build time tool on the targets just to install the damn thing.
<flux>
hm, so you wouldn't have been able to just deploy the binaries, with dynamic linking to the .so-libraries in the system?
<sergez>
Don't get me wrong, I like ocaml but it is not as mature, as, say, java.
<sergez>
We could have. But this was just another strain in the way of getting the company buy-in
<sergez>
The app also does some DSP, and the 31 or 63 bit-ness didn't help too!
<petchema>
what about using static linking ?
<sergez>
As I said, all these factors contributed to the adoption difficulty. None of them constituted a showstopper.
jlouis has quit [Read error: 110 (Connection timed out)]
yminsky has quit [Read error: 110 (Connection timed out)]
sergez has quit ["Leaving."]
<petchema>
I parallelized a program with jocaml, it's nice... The main problem being it's not the plain ocaml compiler... I should have a look at cothreads too
filp has quit ["Bye"]
filp has joined #ocaml
zheng has left #ocaml []
asmanur has joined #ocaml
olleolleolle has joined #ocaml
yminsky has joined #ocaml
middayc has quit []
ikaros has quit [Read error: 104 (Connection reset by peer)]
ikaros has joined #ocaml
ikaros has quit [Read error: 104 (Connection reset by peer)]
ikaros has joined #ocaml
Yoric[DT] has joined #ocaml
ikaros has quit [Read error: 104 (Connection reset by peer)]
ikaros has joined #ocaml
ikaros has quit ["segfault"]
robyonrails has joined #ocaml
<Yoric[DT]>
hi
ertai has quit ["leaving"]
buluca has joined #ocaml
ertai has joined #ocaml
ertai has quit ["WeeChat 0.2.6"]
ertai has joined #ocaml
<unfo->
'lo
yminsky has quit [Read error: 110 (Connection timed out)]
Demitar has quit ["Burn the land and boil the sea. You can't take the sky from me."]
zheng has joined #ocaml
yminsky has joined #ocaml
RobertFischer has joined #ocaml
bluestorm has joined #ocaml
nashdj has quit [Read error: 110 (Connection timed out)]
Tetsuo has joined #ocaml
Associat0r has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
olleolleolle has quit []
|Catch22| has quit []
|Catch22| has joined #ocaml
madroach has joined #ocaml
pango_ has quit [Remote closed the connection]
Morphous_ has joined #ocaml
pango_ has joined #ocaml
filp has quit ["Bye"]
Morphous has quit [Connection timed out]
ygrek has quit [Remote closed the connection]
ttamttam has left #ocaml []
jderque has joined #ocaml
l_a_m has joined #ocaml
ita has joined #ocaml
Jedai has quit [Read error: 110 (Connection timed out)]
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
bebui_ has quit [Read error: 110 (Connection timed out)]
ita has quit ["Hasta luego!"]
Demitar has joined #ocaml
leo037 has quit [Read error: 104 (Connection reset by peer)]
buluca has joined #ocaml
ygrek has joined #ocaml
ttamttam has joined #ocaml
yminsky_ has joined #ocaml
<hcarty>
flux: I downloaded and built (what I think is) your Chipmunk wrapper linked from the mailing list
yminsky has quit [Read error: 104 (Connection reset by peer)]
<hcarty>
With a little editing I was able to compile it, and it looks quite nice
<hcarty>
I haven't compiled+installed the require GL module for the demo though, so I have not tested that yet
<flux>
I haven't released anything, so I don't think that's it :)
<flux>
from caml mailing list?
<hcarty>
flux: Yep. Someone else must have then I guess?
<flux>
must've been a popular thing to hack :)
<flux>
hm, not yet in the archive
<flux>
got an url?
bebui has joined #ocaml
ttamttam has left #ocaml []
<hcarty>
flux: It was on the beginners list... one moment
<hcarty>
The demos are some of the coolest toys I've seen in a while
<hcarty>
And it seems to be very CPU efficient - I'm looking forward to getting a chance to play with the OCaml bindings
<flux>
btw, the guy definitely had the right approach: generate the code..
<flux>
if only the off-the-shelf generators were better :)
<hcarty>
If only :-)
<flux>
positive: it has _some_ interface documentation
<flux>
I was actually in process of porting the demos that come with Chipmunk to find out the problems of my bindings, perhaps that is something I still could do
<flux>
uh, and write a META-file for glMLite and OCaml-Chipmunk, the ocamlfind-support isn't there :-o
<hcarty>
Definitely. If you don't, I probably will when I have time
<flux>
I'm interested in seeing if gears work as expected with chipmunk
<hcarty>
Have you watched the videos on the main Chipmunk page? Particularly the sketches and machine videos
<hcarty>
It looks promising for something like gears
leo037 has joined #ocaml
qwr has quit [calvino.freenode.net irc.freenode.net]
love-pingoo has quit [calvino.freenode.net irc.freenode.net]
<flux>
amazing
<flux>
"Circle, convex polygon, and line segment collision primitives." - unpromising
<flux>
although I suppose a gear could be built out of line segments
<hcarty>
Or a set of convex polygons
<flux>
hm, right :-)
love-pingoo has joined #ocaml
qwr has joined #ocaml
<flux>
what were I thinking :). you could just convert any such polygon.
<hcarty>
I have a research project I'm working which does the same thing, but for 3D concave shape -> set of convex shapes
<flux>
is it difficult? it is, because it's a research project?-)
<hcarty>
It's fun stuff to think about
<hcarty>
It's been solved, I think - the research is on ice crystals, so the concave -> convex is a step along the way
<hcarty>
It's just a lot easier to ask "is this point inside?" with a convex shape than with a concave one
<hcarty>
The video game world has come up with and/or applied a lot of cool tricks which have interesting applications in physical problems
yminsky has joined #ocaml
yminsky_ has quit [Connection reset by peer]
love-pingoo has quit ["Connection reset by pear"]
guyzmo has quit [Read error: 104 (Connection reset by peer)]
guyzmo has joined #ocaml
kelaouch1 has quit [Remote closed the connection]
kelaouchi has joined #ocaml
<flux>
ah, finally, chipmunk compiles into byte code library
<flux>
I want to have a funky toplevel and a separate opengl-window, like in the f#-demos :)
<flux>
(of course native top level would help with that too, and I think that even exists)
<hcarty>
The native toplevel is in a CVS OCaml branch I think... with some playing around with that and OpenGL you could make quite a nifty playground
<hcarty>
Though I imagine it would still be decent in bytecode given the the physics stuff is still compiled C
<flux>
that's what I expect. definitely there is no effect for the moonbuggy-demo :)
<hcarty>
I'm really impressed with Chipmunk... the CPU use is impressively low for each of the 7 included demos
<hcarty>
"impressed with Chipmunk's performance" that is