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!)
Yoric[DT] has quit ["Ex-Chat"]
thermoplyae has joined #ocaml
Chile` has quit [Remote closed the connection]
thermoplyae has quit ["daddy's in space"]
bluestorm has quit [Remote closed the connection]
jedai has joined #ocaml
thermoplyae has joined #ocaml
|Jedai| has quit [Read error: 110 (Connection timed out)]
yminsky has joined #ocaml
jedai has quit [Read error: 110 (Connection timed out)]
seafood_ has joined #ocaml
nashdj has joined #ocaml
paganini has joined #ocaml
paganini has quit ["ChatZilla 0.9.79 [Firefox 2.0.0.11/2007112718]"]
Associat0r has quit []
yminsky has quit []
hjs` has left #ocaml []
seafood_ has quit []
zmdkrbou has quit [Read error: 110 (Connection timed out)]
seafood_ has joined #ocaml
seafood_ has left #ocaml []
seafood_ has joined #ocaml
buluca has joined #ocaml
pants3 has quit ["Leaving."]
zmdkrbou has joined #ocaml
jeffwheeler has joined #ocaml
<jeffwheeler> How can I read in a file over HTTP in OCaml? I've been trying to find some results on Google for a while, but can't find anything in the stdlib or an external module.
<tsuyoshi> ocamlnet has that I think
<jeffwheeler> Hmm, I'll give that a shot; thanks.
gim_ has joined #ocaml
ppsmimram has joined #ocaml
ppsmimou has quit [Read error: 104 (Connection reset by peer)]
gim has quit [Read error: 104 (Connection reset by peer)]
mrsolo has joined #ocaml
jeffwheeler has quit ["Leaving."]
seafood_ has quit [Read error: 110 (Connection timed out)]
nashdj has quit [Read error: 110 (Connection timed out)]
ygrek has joined #ocaml
filp has joined #ocaml
thermoplyae has quit ["daddy's in space"]
ttamttam has joined #ocaml
<junis> is there something like a link widget
<junis> ...like a button widget... but rebdered as a link instead button
<junis> woops
<junis> wrong channel
<junis> sorry
ygrek_ has joined #ocaml
ygrek has quit [Remote closed the connection]
robyonrails has joined #ocaml
hkBst has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
asmanur has joined #ocaml
marmottine has joined #ocaml
zmdkrbou_ has joined #ocaml
zmdkrbou has quit [Read error: 113 (No route to host)]
ygrek_ has quit [Remote closed the connection]
marmottine has quit ["Quitte"]
junis has quit [Read error: 104 (Connection reset by peer)]
\-Catch22-\ has quit [Read error: 110 (Connection timed out)]
junis has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit []
Associat0r has joined #ocaml
yminsky has joined #ocaml
yminsky has quit [Client Quit]
Yoric[DT] has joined #ocaml
<Yoric[DT]> hi
yminsky has joined #ocaml
yminsky has quit [Client Quit]
asmanur_ has joined #ocaml
asmanur has quit [Read error: 110 (Connection timed out)]
gim_ is now known as gim
bluestorm has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
petchema has quit [Read error: 104 (Connection reset by peer)]
bluestorm has quit ["Konversation terminated!"]
petchema has joined #ocaml
zmdkrbou_ is now known as zmdkrbou
RobertFischer has joined #ocaml
nashdj has joined #ocaml
petchema is now known as petchemafk
RobertFischer has quit ["Trillian (http://www.ceruleanstudios.com"]
RobertFischer has joined #ocaml
<RobertFischer> Anyone here work with BHurt?
pango has quit [Remote closed the connection]
pango has joined #ocaml
Morphous has joined #ocaml
Morphous_ has quit [Read error: 110 (Connection timed out)]
middayc has joined #ocaml
filp has quit ["Bye"]
ttamttam has left #ocaml []
marmottine has joined #ocaml
<middayc> did anyone try to make a game 2d or 3d with ocaml?
<rwmjones> middayc, yes
<rwmjones> http://merjis.com/developers/ocamlode has a very silly game
<rwmjones> iirc there are proper ocaml games out there -- look for stuff which uses ocamlsdl
<rwmjones> oh yes, freetennis also
thermoplyae has joined #ocaml
<middayc> aha... I noticed freetenis one day... now I remember
<middayc> I am just starting to learn ocaml and I would mainly use it for games ...
<middayc> I will also try that ODE example .. I didn't even know ocaml had ode binding
buluca has joined #ocaml
<Yoric[DT]> Well, I've finally read _OCaml for Scientists_.
<Yoric[DT]> (most of it)
<Yoric[DT]> And I confirm that I like that book very much.
<middayc> Is it *only* for scientists or could it be interesting for everyone?
<Yoric[DT]> It's rather scientist-oriented (with scientist = mathematician / physician / biologist).
FZ has joined #ocaml
nashdj has quit [Read error: 110 (Connection timed out)]
<Yoric[DT]> But this includes many interesting things such as profiling, optimizations, OpenGL, etc.
<middayc> aha ... their examples on the webpage are very interesting but I am not really a scientist ...
<middayc> openGL or simulation of things or physics would be interesting to me
<Yoric[DT]> There's no actual simulation involved, only hints of how to do it.
<middayc> aha
<middayc> what kind of scientist are you then?
<Yoric[DT]> Me ?
<Yoric[DT]> Computer Scientist.
<Yoric[DT]> Working on type theory applied to security.
<middayc> aha ... me to in some way .. then it's also for me :)
<middayc> aha ... well this sounds scientific yes
<middayc> I am just learning ocaml and functional programming in general
<middayc> I know/work the imperative way for some time
<Yoric[DT]> gottago
<Yoric[DT]> Talk to you later.
<flux> ode looks fun
<middayc> ok ... have fun
<middayc> yes
<flux> katamari.ml being 800 lines long, perhaps it's feasible to do stuff with it too..
<flux> (btw, you want to add Glut.init [||] at main before doing opengl-stuff)
<middayc> what is katamari.ml
<flux> it's the example with ocamlode
<middayc> aha :) sorry
buluca has quit [Read error: 110 (Connection timed out)]
<middayc> I managed to compile sdlcaml and glcaml examples on windows last time i worked on ocaml so I will try to start with that ... at firs something 2d with SDL probably
musically_ut has joined #ocaml
thermoplyae has quit ["daddy's in space"]
petchemafk has quit [Remote closed the connection]
ita has joined #ocaml
<flux> apparently ode supports 2d simulation too nowadays, but the bindings have been written for an older version (infact the older version is still the one installed on my system)
* Yoric[DT] is back.
ygrek has joined #ocaml
buluca has joined #ocaml
buluca has quit [Read error: 104 (Connection reset by peer)]
ttamttam has joined #ocaml
buluca has joined #ocaml
cccasdadasd has joined #ocaml
<cccasdadasd> for 2d physics there is rather new system .... it was made by Erin Cato first and now masses of these 2d phys. libs appeared for a lot of languages .. Box2d, c++, actionscript, java, blitzmax...
robyonrails has quit ["Leaving"]
<cccasdadasd> hmm.. where did I get that nickname
<cccasdadasd> I am middayc
cccasdadasd is now known as middayc-
<middayc-> I mean the initial lib now is Box2d, then there is APE for AS (flash), phys2D and JBox2d for java .. etc
<middayc-> I suppose it's not that complicated lib because there are so many ports .. maybe it would be interesting to make it ni ocaml
middayc has quit [Connection timed out]
bzzbzz has joined #ocaml
<flux> I'm looking at the chipmunk library, but it appears to be a tedious task to write bindings for it
buluca has quit [Read error: 110 (Connection timed out)]
buluca has joined #ocaml
<middayc-> yes, I think chipmunk is one of the latest and seems to be very cool
<middayc-> uh ... I saw the dominoes videos for chipmonk and it seems much faster than other libs
<flux> fortunately most of the stuff in the interface is about passing simple data - it didn't take much effort to make camlidl to eat it. not in whole, though, the function pointers mess things up :)
musicallyut has joined #ocaml
<flux> also I imagine it's a bad idea to do lots of stuff through the interface; lots of copying is happening
<flux> atleast it's possible to change cpFloat to be of type double, so some structs would be binary compatible with ocaml
<middayc-> :) what you say is too advanced to me .. I was just happy few days back to manage to compile those sdl demos in ocaml on windows :)
<middayc-> aha at least I now know what is camlidl
ttamttam has left #ocaml []
musically_ut has quit [Remote closed the connection]
buluca has quit [Read error: 113 (No route to host)]
ygrek has quit [Remote closed the connection]
bluestorm has joined #ocaml
musically has joined #ocaml
musically_ut has joined #ocaml
musically_ut has quit [Client Quit]
middayc- has quit []
musicallyut has quit [Remote closed the connection]
musically has quit [Remote closed the connection]
thermo_ has joined #ocaml
pango has quit [Remote closed the connection]
\-Catch22-\ has joined #ocaml
pango has joined #ocaml
FZ has quit ["ChatZilla 0.9.78.1 [Firefox 2.0.0.11/2007112718]"]
marmottine has quit ["Quitte"]
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
buluca has joined #ocaml
asmanur_ has quit [Remote closed the connection]
zmdkrbou has quit [Read error: 110 (Connection timed out)]
jlouis has joined #ocaml
hkBst has quit ["Konversation terminated!"]
jlouis_ has quit [Read error: 110 (Connection timed out)]
thermo_ has quit ["Leaving"]
bluestorm has quit [Remote closed the connection]
bluestorm has joined #ocaml
buluca has quit [No route to host]
DerDracle_ has quit [Remote closed the connection]
jeffwheeler has joined #ocaml
<jeffwheeler> OCamllex is beautiful, I really like it.
<jeffwheeler> But why is OCamlyacc so much different -- it doesn't use OCaml syntax at all.
<diosmalo08> jeffwheeler, it's not a ocaml language
<diosmalo08> it's a yacc-like language.
<diosmalo08> for LALR grammars.
<bluestorm> it uses yacc syntax
<jeffwheeler> diosmalo08: yeah, I gathered that; but it seems odd to use OCaml-like syntax for OCamllex, but not for OCamlyacc?
<bluestorm> virtually every language has a yacc tool
<Yoric[DT]> I agree that OCamlyacc is not very nice.
<Yoric[DT]> Menhir is similar but nicer.
<bluestorm> you'll be happy to find a similar tool when you switch to C/C++/Java/Python/whatever
<jeffwheeler> bluestorm: I've used bison and the like; I just prefer how OCamllex was adapted, I guess
<jeffwheeler> it uses native comments, etc.
<jeffwheeler> It seems cleaner to adapt it like the lexer has; especially if you're already done it for one of the two.
<bluestorm> hm
<bluestorm> i've never really used ocamllex actually
zmdkrbou has joined #ocaml
<jeffwheeler> It feels very much like OCaml; let me get a link.
<bluestorm> every time i needed a parser
<bluestorm> Genlex was enough
<jeffwheeler> Notice that the rules look very much like a combination of a 'let' and 'match'; now compare with this:
<bluestorm> :p
<jeffwheeler> This is almost exactly like the actual yacc syntax.
* jeffwheeler looks at genlex.
<bluestorm> hm
ita has quit [Read error: 104 (Connection reset by peer)]
<bluestorm> if you want a camlish parser, you can use camlp4 too
<bluestorm> it's mostly recursive-descent so sometimes hard to use (in my opinion), but rather nice and modular
<jeffwheeler> I'll look at that; I've heard its name thrown around a lot, but haven't touched it yet.
<jeffwheeler> (I'm relatively new to OCaml.)
<bluestorm> hm
<bluestorm> it's not so easy, and uses some "advanced" features of ocaml
<bluestorm> (modules and a bit of objects somewhere)
<jeffwheeler> Hmm, is Camlp4 specifically for preprocessing OCaml code, or can generic lexers and parsers be written with it?
<bluestorm> second choice :-'
<bluestorm> you can re-use some parts
<bluestorm> for example have a generic lexer, then ocaml parsers
<bluestorm> or the other way round
<bluestorm> hm
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
middayc has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]