adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.02.2 announced http://ocaml.org/releases/4.02.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
AltGr has joined #ocaml
jao has joined #ocaml
tnguyen has joined #ocaml
walter|r has joined #ocaml
rwmjones has quit [Ping timeout: 248 seconds]
hay207 has quit [Ping timeout: 248 seconds]
rwmjones has joined #ocaml
waneck has quit [Remote host closed the connection]
Algebr has quit [Ping timeout: 255 seconds]
Intensity has quit [Ping timeout: 244 seconds]
Intensity has joined #ocaml
lordkryss has quit [Quit: Connection closed for inactivity]
tnguyen has quit [Quit: tnguyen]
rgrinberg has quit [Ping timeout: 264 seconds]
rgrinberg has joined #ocaml
dhil has quit [Quit: Leaving]
robink has quit [Ping timeout: 255 seconds]
robink_ has joined #ocaml
walter|r has quit [Remote host closed the connection]
johnf_ has quit [Read error: Connection reset by peer]
sailorswift has joined #ocaml
tmtwd has quit [Remote host closed the connection]
jao has quit [Ping timeout: 256 seconds]
pleiosaur has quit [Ping timeout: 250 seconds]
ygrek has joined #ocaml
pleiosaur has joined #ocaml
psy_ has joined #ocaml
darkf has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 256 seconds]
ygrek has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 276 seconds]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sailorswift has joined #ocaml
rossberg has quit [Ping timeout: 248 seconds]
everyonemines has joined #ocaml
slash^ has joined #ocaml
MrScout_ has quit [Remote host closed the connection]
robink_ has quit [Ping timeout: 248 seconds]
robink_ has joined #ocaml
_whitelogger has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ocaml
Submarine has joined #ocaml
Submarine has joined #ocaml
MrScout has quit [Ping timeout: 248 seconds]
MercurialAlchemi has joined #ocaml
Simn has joined #ocaml
rossberg has joined #ocaml
kdr2_ has quit [Ping timeout: 246 seconds]
everyonemines has quit [Quit: everyonemines]
hay207 has joined #ocaml
kdr2_ has joined #ocaml
antegallya has joined #ocaml
AltGr has left #ocaml [#ocaml]
hay207 has quit [Ping timeout: 264 seconds]
mort___ has joined #ocaml
hay207 has joined #ocaml
lordkryss has joined #ocaml
kdr2_ has quit [Ping timeout: 248 seconds]
shinnya has joined #ocaml
mort___ has quit [Quit: Leaving.]
mort___ has joined #ocaml
antegallya has quit [Ping timeout: 256 seconds]
hay207 has quit [Ping timeout: 252 seconds]
emanuelz has quit [Quit: emanuelz]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KDr2 has joined #ocaml
shinnya has quit [Ping timeout: 255 seconds]
antegallya has joined #ocaml
hay207 has joined #ocaml
mort___ has quit [Quit: Leaving.]
sh0t has joined #ocaml
mort___ has joined #ocaml
creichert has quit [Ping timeout: 256 seconds]
psy_ has quit [Ping timeout: 246 seconds]
matason has joined #ocaml
Haudegen has quit [Ping timeout: 259 seconds]
matason has quit []
Haudegen has joined #ocaml
johnf_ has joined #ocaml
lupine has joined #ocaml
johnf_ has quit [Read error: Connection reset by peer]
dsheets has quit [Ping timeout: 246 seconds]
<KDr2> hi, all, how could i use the revised syntax in the toplevel?
<KDr2> I do: #use "topfind";; #camlp4r;;
<KDr2> then value a = 1;; raise an Error: Parse error: [semi] expected after [str_item] (in [phrase])
contempt has quit [Ping timeout: 264 seconds]
<zozozo> KDr2: I think you want to write 'let a = 1;;' instead of using 'value'
<zozozo> sorry, I didn't see you wanted to use revised syntax, :p
<zozozo> KDr2: actually, in revised syntax you only use 1 semicolon instead of 2 ...
octachron has joined #ocaml
* adrien would say that actuallyou, you don't use the revised syntax
contempt has joined #ocaml
octachron has quit [Quit: Leaving]
<zozozo> any expert on lablgtk around ? I'mtrying to code a small game so for the main window of the game I'd like some kind of widget on which I can draw things (such as circles, rectanges, and so on). What can I use to do that ? (I find the ocaml documentation of lablgtk a bit lacking...)
pgomes has joined #ocaml
<adrien> GDraw
<adrien> drawing_area
<adrien> gdk
<adrien> API in lablgtk is a bit weird but works
<zozozo> that's what I'm trying, but contrary to what one might think, a drawing_area is not a drawable, :p
kushal has quit [Ping timeout: 246 seconds]
kdas_ has joined #ocaml
<zozozo> so the thing is : how do I use the drawing area ? I saw in someplaces they put a pixmap inside it, and then draw on the pixmap, but a working example in ocaml would be helpful
lordkryss has quit [Quit: Connection closed for inactivity]
<zozozo> ah, nervermind, I found a bit of information
sh0t has quit [Ping timeout: 250 seconds]
sh0t has joined #ocaml
tmtwd has joined #ocaml
<KDr2> zozozo, thanks
<KDr2> use only one semi-colon works well :)
milosn has quit [Read error: Connection reset by peer]
milosn has joined #ocaml
psy_ has joined #ocaml
dsheets has joined #ocaml
obadz has quit [Ping timeout: 252 seconds]
mort___ has quit [Quit: Leaving.]
dsheets has quit [Ping timeout: 248 seconds]
yomimono has joined #ocaml
dsheets has joined #ocaml
obadz has joined #ocaml
Kakadu has joined #ocaml
<zozozo> adrien: what would the preferred way to have a timed loop in a lablgtk program (i.e to run a function to update the game state every 1/60 second) ?
Kakadu has left #ocaml [#ocaml]
<adrien> but I'm not sure timers are a good way to keep the game state consistent
<zozozo> why ?
tmtwd has quit [Ping timeout: 276 seconds]
<adrien> because you won't get 60fps that way
<zozozo> hm.. so is there a way to get 60fps ?
Hannibal_Smith has joined #ocaml
<adrien> depends on the kind of game you're doing
<zozozo> well, it's nothing too heavy really, just drawing some circles and a chracter moving and jumping to avoid them
<tokenrove> zozozo: you might want to look at how xbill does it; it's not OCaml, but iirc it is written with gtk. gtk isn't usually used for that kind of task.
<zozozo> :(
<Armael> I think to get a stable behavior, you need to measure how much time you took to render stuff for a frame, and from that, estimate how much you need to wait after rendering for next frame
<zozozo> is ocsfml usable/maintained ?
<Armael> (so you maintain a Δt value that is the difference between the actual frame time and 1/60s, and you try to make it tend to 0)
<tokenrove> zozozo: looks like it uses a timer, but at 200ms a tick, which is probably easier to achieve than 16ms a tick.
<zozozo> well, in any case, sfml (and its ocaml binding) seems more fit than gtk, and if I remmember correctly it has an explicit event loop which allows to set the expected framerate (possibly manually)
Submarine has quit [Quit: Leaving]
yomimono has quit [Ping timeout: 256 seconds]
yomimono has joined #ocaml
shinnya has joined #ocaml
mort___ has joined #ocaml
tmtwd has joined #ocaml
rand000 has joined #ocaml
badkins has joined #ocaml
nullcat has joined #ocaml
nullcat has quit [Client Quit]
dsheets has quit [Ping timeout: 256 seconds]
dsheets has joined #ocaml
antegallya has quit [Ping timeout: 276 seconds]
dsheets has quit [Ping timeout: 246 seconds]
cojy has quit [Quit: Connection closed for inactivity]
lordkryss has joined #ocaml
yomimono has quit [Ping timeout: 265 seconds]
yomimono has joined #ocaml
_whitelogger has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ocaml
bernardofpc has quit [Remote host closed the connection]
antegallya has joined #ocaml
rand000 has quit [Quit: leaving]
yomimono has quit [Ping timeout: 252 seconds]
yomimono has joined #ocaml
Haudegen has joined #ocaml
mort___ has quit [Quit: Leaving.]
lobo has joined #ocaml
sh0t has quit [Ping timeout: 276 seconds]
<fds> KDr2: I'm afraid I don't know the answer to your question (and I'm a noob), but if you put it in a file and run `camlp4of file.ml' you can see the AST, if that's your aim.
pgomes has joined #ocaml
mort___ has joined #ocaml
yomimono has quit [Ping timeout: 256 seconds]
<fds> KDr2: If you add the two lines `open Camlp4.PreCast;; let _loc = Loc.ghost;;' after `#load "camlp4of.cma";;' it works for me (tm).
<fds> KDr2: Don't ask me why. I found the magic here: http://stackoverflow.com/questions/15728271/printing-ocaml-ast-as-ocaml-code
* fds investigates Camlp4.PreCast
darkf has quit [Quit: Leaving]
Nahra has quit [Remote host closed the connection]
segmond has quit [Ping timeout: 246 seconds]
Hannibal_Smith has quit [Quit: Leaving]
dsheets has joined #ocaml
milosn has quit [Read error: Connection reset by peer]
ncthom91 has joined #ocaml
mort___ has quit [Quit: Leaving.]
milosn has joined #ocaml
segmond has joined #ocaml
hay207 has quit [Quit: Leaving]
boadie has joined #ocaml
ggole has joined #ocaml
MrScout has joined #ocaml
yomimono has joined #ocaml
cojy has joined #ocaml
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
MrScout has quit [Remote host closed the connection]
MrScout has joined #ocaml
hannes` has joined #ocaml
hannes has quit [Read error: Connection reset by peer]
everyonemines has joined #ocaml
lobo has quit [Quit: leaving]
Kakadu has joined #ocaml
creichert has joined #ocaml
boadie has quit [Remote host closed the connection]
sh0t has joined #ocaml
MrScout has quit [Ping timeout: 248 seconds]
MrScout has joined #ocaml
nullcat has joined #ocaml
pgomes has quit [Quit: Leaving]
lobo has joined #ocaml
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milosn_ has joined #ocaml
milosn has quit [Ping timeout: 252 seconds]
johnf_ has joined #ocaml
milosn_ is now known as milosn
kdas_ has joined #ocaml
robink_ has quit [Ping timeout: 244 seconds]
kushal has quit [Ping timeout: 246 seconds]
robink_ has joined #ocaml
lordkryss has quit [Quit: Connection closed for inactivity]
kdas_ has quit [Quit: Leaving]
johnf_ has quit [Read error: Connection reset by peer]
matason has joined #ocaml
mcclurmc has joined #ocaml
mort___ has joined #ocaml
sh0t has quit [Ping timeout: 246 seconds]
MrScout has quit [Ping timeout: 248 seconds]
Haudegen has quit [Ping timeout: 250 seconds]
MrScout has joined #ocaml
MrScout has quit [Ping timeout: 248 seconds]
sailorswift has joined #ocaml
ggole has quit []
Haudegen has joined #ocaml
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mort___ has quit [Quit: Leaving.]
Algebr has joined #ocaml
Haudegen has quit [Ping timeout: 276 seconds]
dhil has joined #ocaml
dhil_ has joined #ocaml
dhil_ has quit [Client Quit]
BitPuffin|osx has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
BitPuffin|osx has quit [Remote host closed the connection]
BitPuffin|osx has joined #ocaml
sivoais has quit [Ping timeout: 264 seconds]
Haudegen has joined #ocaml
nullcat has joined #ocaml
boadie has joined #ocaml
boadie has quit [Client Quit]
Algebr has quit [Remote host closed the connection]
nullcat has quit [Ping timeout: 276 seconds]
ygrek has joined #ocaml
Algebr has joined #ocaml
<Algebr> I want to use PreBuildCommand for just one library in oasis, I don't need it to run for everything. is this possible?
sivoais has joined #ocaml
nullcat has joined #ocaml
<Algebr> how do I do a hygiene exceptions in oasis? not a single word on hygiene on the ocaml oasis tutorial or in the oasis manual.
nullcat__ has joined #ocaml
nullcat has quit [Ping timeout: 252 seconds]
<Algebr> also not a single hit for hygiene on examples _oasis files in the oasis repo. super.
<rgrinberg> Algebr: does oasis even know anything about hygiene? I would have thought you'd have to let ocamlbuild know
<Algebr> If its a wrapper on ocamlbuild, then it should let me know how to do this. now I have to dig into ocamlbuild I guess.
matason has quit []
antegallya has quit [Quit: Leaving.]
<Drup> yeah, ocamlbuild is doing the hygiene
<Algebr> I'm now fiddling with the _tags file.
<rgrinberg> Drup: are you on the island yet?
<Drup> the island ?
<rgrinberg> UK :D
<Drup> ah, no
<Drup> reported for one week
<Drup> popl deadline
lobo has quit [Quit: leaving]
MercurialAlchemi has quit [Ping timeout: 244 seconds]
<Algebr> okay, about to ragequit oasis/ocamlbuild and just go back to makefiles. The tutorial says if you have AlphaFeatures: ocamlbuild_more_args, then you get XOCamlbuildExtraArgs which I'm giving a value of "-no-hygiene" and now oasis says E: Field XOCamlbuildExtraArgs is not defined in schema Library
<rgrinberg> Algebr: just drop oasis
<rgrinberg> it's highly unlikely that it's accomplishing anything more than META file generation for you
<Algebr> I want to also use oasis2opam usage.
<rgrinberg> oh cmon
<rgrinberg> that thing does a trivial job and you still have to do the hart part of it anyway
<Algebr> now I figured out that the extraarg can't be done per library/executable, its a file level field
<rgrinberg> listing the opam deps that is
<rgrinberg> Drup: PS i have an ocamlbuild question :D
<rgrinberg> say you're creating some packed module with ocamlbuild, how do you disallow modules outside the "pack" to use the inner modules inside the pack?
everyonemines has quit [Quit: everyonemines]
<rgrinberg> i'm just used to applying "include" to all my dirs and then everything is visible everywhere
<Drup> Algebr: put it at top level
<Drup> not inside a Library section
<Drup> (btw Algebr, why in hell do you want to disable hygiene ?!)
<Drup> rgrinberg: no idea.
<rgrinberg> Drup: the question is making sense to you right?
<rgrinberg> not sure i stated it optimally :/
<Drup> the question makes sense, but I still have no idea
<Drup> you could "solve" it by not using pack and making your packing module manually
<Drup> which is probably a good idean, given module aliases
<rgrinberg> Yeah i've tried this out in cohttp
<rgrinberg> it makes the type signatures really ugly unfortuntaely
Simn has quit [Ping timeout: 252 seconds]
<rgrinberg> not sure if it's worth it
<Drup> if you use -no-alias-dep, you can still use the short name inside the modules by opening Cohttp
<Drup> yes, it's recursive, but it works
<Drup> so, signature should pretty much stay the same, but with "open Cohttp" at the top
mort___ has joined #ocaml
<rgrinberg> I see, thanks.
<Algebr> yep, that's it, fuck oasis. going back to makefiles
badkins has quit []
ygrek has quit [Ping timeout: 264 seconds]
_whitelogger has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ocaml
malc_ has joined #ocaml
Algebr has quit [Remote host closed the connection]
malc_ has quit [Ping timeout: 255 seconds]
malc_ has joined #ocaml
obadz- has joined #ocaml
obadz has quit [Ping timeout: 276 seconds]
Kakadu has quit [Read error: Connection reset by peer]
johnf_ has joined #ocaml
malc_ has quit [Quit: leaving]
NSA_Agent has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
hsuh has quit [Ping timeout: 252 seconds]
hsuh has joined #ocaml
mort___ has quit [Quit: Leaving.]
sailorswift has joined #ocaml
madroach has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
johnf_ has quit [Read error: Connection reset by peer]
jhaberku has joined #ocaml
Algebr has joined #ocaml
<jhaberku> Hello. Is there a way to get a toplevel (perhaps with something like utop) that has all dependencies of the current module loaded? For instance, if I load a file "foo.ml" that depends on a definition in "bar.ml", both files would be loaded? Alternatively, something similar with compiled (.cmo, for example) files?
<Drup> jhaberku: make an ocamlfind library and load said library
<Drup> (with #require)
nullcat__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yomimono has quit [Ping timeout: 252 seconds]
jao has joined #ocaml