adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 4.00.1 http://bit.ly/UHeZyT | http://www.ocaml.org | Public logs at http://tunes.org/~nef/logs/ocaml/
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
cdidd has quit [Read error: Connection reset by peer]
cdidd has joined #ocaml
mye_ has quit [Quit: mye_]
cdidd has quit [Ping timeout: 265 seconds]
cdidd has joined #ocaml
cdidd has quit [Remote host closed the connection]
gnuvince has quit [Ping timeout: 276 seconds]
cdidd has joined #ocaml
adotbrown has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 276 seconds]
ulfdoz_ is now known as ulfdoz
cdidd has quit [Remote host closed the connection]
cdidd has joined #ocaml
adotbrown has quit [Ping timeout: 276 seconds]
madroach has quit [Ping timeout: 248 seconds]
madroach has joined #ocaml
q66 has quit [Quit: Quit]
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 255 seconds]
ulfdoz_ is now known as ulfdoz
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 265 seconds]
leoncamel has quit [Ping timeout: 255 seconds]
justdit has joined #ocaml
gnuvince has joined #ocaml
emmanuelux has quit [Read error: Connection reset by peer]
brendan has quit [Remote host closed the connection]
justdit has quit [Ping timeout: 265 seconds]
pygmalion has quit [Read error: Connection reset by peer]
weie has joined #ocaml
Kakadu has joined #ocaml
Yoric has joined #ocaml
leoncamel has joined #ocaml
gour has joined #ocaml
brendan has joined #ocaml
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
cdidd has quit [Remote host closed the connection]
Playground has joined #ocaml
zorun has quit [Quit: Reconnecting]
zorun has joined #ocaml
<adrien> morning
<adrien> when building a cross-compiler, should ocamlnat (native top-level) run on the host or on the target?
chambart has joined #ocaml
elixey has quit [Remote host closed the connection]
elixey has joined #ocaml
zorun has quit [Quit: Reconnecting]
zorun has joined #ocaml
gour has quit [Disconnected by services]
gour_ has joined #ocaml
Playground has quit [Ping timeout: 255 seconds]
<Kakadu> adrien: target, I think
eni has joined #ocaml
<adrien> but on the target, there is probably no C toolchain available and that's required
Snark has joined #ocaml
adotbrown has joined #ocaml
ygrek has joined #ocaml
Playground has joined #ocaml
ygrek has quit [Ping timeout: 276 seconds]
ygrek has joined #ocaml
eni has quit [Quit: Leaving]
justdit has joined #ocaml
Cyanure has joined #ocaml
justdit has quit [Read error: Connection reset by peer]
xavierm02 has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
RagingDave has joined #ocaml
q66 has joined #ocaml
adotbrown has quit [Ping timeout: 244 seconds]
leoncamel has quit [Ping timeout: 252 seconds]
ekselkiu has joined #ocaml
<ekselkiu> What does 'Included or excluded directories must be implicit (not "/usr/lib/ocaml/bjack")' from ocamlbuild mean?
<ekselkiu> (Command: ocamlbuild -I /usr/lib/ocaml/bjack jacktest.native)
<ekselkiu> I installed Debian's libbjack-ocaml-dev and can't work out how to link to it.
<adrien> they must be relative not absolute
<adrien> I don't know bjack but I'd assume it has ocamlfind support
<ekselkiu> Oh, relative? ("Implicit" is completely the wrong word then :-\)
<adrien> definitely
mye has joined #ocaml
<ekselkiu> OK thanks, using ocamlfind works.
<adrien> =)
Cyanure has quit [Remote host closed the connection]
Demitar has joined #ocaml
<astertronistic> is there a way to get two modules to mutually use each other?
<astertronistic> I'm using ocamlbuild on a set of files, where each file defines its own module
<astertronistic> and ocamlbuild seems to enforce non-cyclic dependencies
<adrien> only if they're in the same file
weie has quit [Quit: Leaving...]
<astertronistic> I see
<astertronistic> I guess it's good style to avoid cycles
<adrien> well, yeah, that too
<adrien> well, what do you have such cycles for?
<astertronistic> emm, well say you have a world and a player in a game
<astertronistic> and the world contains players and the player is a member of a world
<astertronistic> right now the world module uses the player module
<astertronistic> but the player module can't use the world module
<adrien> you could put the type definitions in a separate file, e.g. "types.ml"
<astertronistic> so if the player dies and needs to remove itself from the world, it can't directly call the World.RemovePlayer function
<adrien> you only need to put the module API there
<astertronistic> oh ok
<astertronistic> kind of like header files I guess?
<adrien> hmm, I'd probably rather do this with the currently-called function of the player module return to the world the information that the played died
<adrien> (assuming the player module has been called from the world module)
<astertronistic> yeah, right now I'm solving it with the player function getting a callback function
<astertronistic> it calls it to report itself dying, or if it destroys some other entity
<adrien> not necessarily a callback
<adrien> well, it depends
<astertronistic> then the World just passes a curried function (World.RemoveEntity self) to the player function
<adrien> do you code in a functional or imperative style?
<adrien> (or object?)
<astertronistic> I prefer functional
<adrien> so, how does the callback work? it should have to mutate data
<astertronistic> in this project, it's mostly mutable stuff, yeah
<adrien> ok, then callback makes sense
<astertronistic> I suppose the functional way would be for the player function to return a list of entities to remove to the caller
<adrien> something along these lines, yeah
<adrien> it makes control-flow easier to track
<astertronistic> yeah, definitely
<astertronistic> especially if you get into threads
mye has quit [Quit: mye]
chambart has quit [Ping timeout: 246 seconds]
<astertronistic> thank you
<adrien> np
<orbitz> threads, hiss! :)
leoncamel has joined #ocaml
milosn_ has joined #ocaml
milosn has quit [Ping timeout: 276 seconds]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
<adrien> anyone currently on windows? I have cross-compiled binaries which would enjoy some testing
<pippijn> I can start a windows VM in 5 seconds
<adrien> don't bother starting a computer or a VM if you don't have something currently ready however
<pippijn> ok, it was 7 seconds
<adrien> don't bother, I'll start one myself (but after having eaten)
<adrien> well, ok :P
<pippijn> you need substantially longer to give me a binary than I need to start the VM
<adrien> yup :P
<adrien> try running "ocamlrun.exe a.out"
<adrien> I like my laptop; it's inexpensive yet has paravirt support but it's probably constrained by the memory bandwidth and VMs aren't very fast ='(
<pippijn> oh
<pippijn> okay
<adrien> Hello world! ?
<pippijn> yes
<adrien> \o/
<adrien> that one wasn't too complicated actually since the bytecode features I've used are portable and ocamlrun.exe is C
<pippijn> what are you doing?
<adrien> cross-compiler support
<pippijn> ah right
<pippijn> VM is going down again
<adrien> ok, thanks :-)
<pippijn> my laptop was 1200€
<adrien> I've ended up adding -no-ocamlbuild -no-ocamldoc -no-debugger to ./configure; these don't make much sense for a cross-compiler and are causing me issues (I'm not sure it'll be possible to support -custom in cross-compilation)
<adrien> heh, big machine
<adrien> mine is more the kind I won't cry on if it dies
<pippijn> I will ;)
<adrien> (and considering I carry it around quite a lot it matters)
<pippijn> I've never broken a laptop, and I have been carrying them around daily for years
<adrien> I'm waiting for the next low-power AMD stuff; their stuff is definitely good
<invariant> adrien, better than Intel?
<pippijn> I got a "low" power intel chip
<pippijn> 35W
<adrien> laptop goes in backpack :-)
<invariant> adrien, what specifically?
<pippijn> but this machine does get hot
<pippijn> CPU is 50°C now
<invariant> Intel will have 8W soon.
<adrien> invariant: well, it's way less expensive and that matters a lot to me considering I might kill the machine easily
<pippijn> hdd at 66
<invariant> adrien, what do you do with your machines?
<adrien> and the graphics stuff is good
yezariaely has quit [Remote host closed the connection]
<adrien> and I run free drivers
<pippijn> GPU is 42°C
<pippijn> because it's turned off
<invariant> adrien, don't the free drivers spin the fan full time?
<pippijn> but it gets hot when I turn it on
yezariaely has joined #ocaml
<adrien> invariant: nope; radeon works well
<pippijn> radeon works on linux?
<adrien> and it had some more improvements recently
<pippijn> hmm
<adrien> "radeon" is the name of the free driver
<pippijn> ah
<invariant> adrien, which chips are you talking about specifically?
<adrien> so, yeah, it works =)
<pippijn> I play 3D games :)
<adrien> I do too ;-)
<pippijn> oh
<adrien> invariant: mine is 6310; support varries with GPU generations so it's hard to give details
<pippijn> actually I'm not totally happy with nvidia at the moment
<adrien> iirc the support for the most recent ones is less good but not too bad (but don't trust me too much on that)
<pippijn> because of their optimus technology
<pippijn> and bumblebee (linux optimus thingy) doesn't support vdpau
<pippijn> so I'm using my old laptop for films
<pippijn> it has a 17" screen, so that's also nicer
<adrien> nvidia pissed me off because of its bad stability and the need to do the kernel module update myself everytime I changed the kernel
<pippijn> (this one is 15)
<pippijn> oh
<pippijn> adrien: I don't do that
<invariant> adrien, you can automate that.
<pippijn> debian automates it
<pippijn> that's years ago, I did that
<adrien> not really =)
<adrien> I'm talking about using new kernels, faster than debian does it and I'm not sure any debian maintainer tries to port the kernel driver of nvidia to the newer kernels
<pippijn> oh
<adrien> it's really when the kernel API changes
<pippijn> I don't need to use newer kernels than debian
<invariant> adrien, do you do something with graphics that requires that?
<invariant> I also run a self-compiled kernel, but that was for an experiment that's over now.
<adrien> invariant: I like to have 3D sometimes; I don't need something terrific but once in a while it's nice
<adrien> pippijn: oh, and nvidia didn't support xrandr which made dualscreen a pain
<pippijn> ah
<pippijn> it does now
<adrien> yeah, 3 or 4 years later
<pippijn> and when it didn't, I had to problems with xinerama
<adrien> s/to/no/ ?
<pippijn> no
<pippijn> adrien: yes
<pippijn> "no"
<adrien> xrandr is definitely a thousand times superior to nvidia's stuff
<pippijn> I'm quite happy it works now :)
<invariant> adrien,still buggy with fglrx.
<pippijn> rotating screen is nice
<pippijn> and xinerama doesn't work well with hotplug
<invariant> I think my screen has been designed to work only in one direction.
<pippijn> but anyway, I'm mostly using the intel chip, now
<invariant> er orientation.
<pippijn> the nvidia card is powered off, most of the time
<invariant> I know the option you are talking about.
<invariant> But I get graphical artifacts in Emacs when I rotate it.
osa1 has joined #ocaml
leoncamel has quit [Ping timeout: 276 seconds]
namdak_tonpa has quit [Ping timeout: 252 seconds]
invariant has quit [Quit: ZNC - http://znc.in]
invariant has joined #ocaml
chambart has joined #ocaml
Submarine has quit [Ping timeout: 252 seconds]
emmanuelux has joined #ocaml
Kakadu has quit [Ping timeout: 252 seconds]
Kakadu has joined #ocaml
gustav__ has quit [Read error: Connection reset by peer]
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
Submarine has joined #ocaml
Playground has joined #ocaml
xavierm02 has quit [Quit: Leaving]
RagingDave has quit [Quit: Ex-Chat]
mye has joined #ocaml
Playground has quit [Ping timeout: 264 seconds]
ontologiae has joined #ocaml
osa1 has quit [Ping timeout: 264 seconds]
milosn_ is now known as milosn
gour_ is now known as gour
leoncamel has joined #ocaml
Playground has joined #ocaml
Demitar has quit [Ping timeout: 248 seconds]
jbrown has quit [Ping timeout: 260 seconds]
jbrown has joined #ocaml
jamii has joined #ocaml
Playground is now known as lolcathost
RagingDave has joined #ocaml
cdidd has joined #ocaml
oriba has joined #ocaml
malc_ has joined #ocaml
fusillia has quit [Read error: Operation timed out]
weie has joined #ocaml
fusillia has joined #ocaml
jamii has quit [Ping timeout: 256 seconds]
jamii has joined #ocaml
jamii has quit [Ping timeout: 272 seconds]
mye has quit [Ping timeout: 252 seconds]
jamii has joined #ocaml
Demitar has joined #ocaml
mye has joined #ocaml
andreypopp has joined #ocaml
andreypopp has quit [Client Quit]
andreypopp has joined #ocaml
noobdude has joined #ocaml
emmanuelux has quit [Quit: emmanuelux]
Demitar has quit [Ping timeout: 256 seconds]
lolcathost has quit [Read error: Connection reset by peer]
noobdude has left #ocaml []
oriba has quit [Quit: oriba]
jamii has quit [Ping timeout: 246 seconds]
TDJACR_ has joined #ocaml
TDJACR has quit [*.net *.split]
Kakadu has quit []
Playground has joined #ocaml
emmanuelux has joined #ocaml
Leonidas has quit [Ping timeout: 260 seconds]
hongboz has joined #ocaml
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
ontologiae has quit [Ping timeout: 272 seconds]
jamii has joined #ocaml
ontologiae has joined #ocaml
Playground has joined #ocaml
Demitar has joined #ocaml
weie has quit [Quit: Leaving...]
hongboz has quit [Ping timeout: 276 seconds]
hto has quit [Read error: Connection reset by peer]
hto has joined #ocaml
fusillia has quit [Remote host closed the connection]
hto has quit [Ping timeout: 252 seconds]
gour has quit [Quit: WeeChat 0.3.8]
hto has joined #ocaml
mye has quit [Quit: mye]
mads- has joined #ocaml
Submarine has quit [Remote host closed the connection]
fraggle_ has quit [Remote host closed the connection]
fraggle_ has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
<wmeyer> hello
<orbitz> hi
<wmeyer> :)
<orbitz> has anyone implemeente somethign like LINQ for ocaml?
<wmeyer> it's such a sunday I was not sure if anybody still here
<wmeyer> orbitz: it would be cool to have, agreed.
<orbitz> winding down befoer bed
<orbitz> How would you do it in Ocaml without Objects?
<wmeyer> yep, never heard about LINQ in OCaml
<wmeyer> but F# has it
<wmeyer> oh LINQ is almost purely functional
<wmeyer> well at least years ago when I looked at it
<orbitz> Yes, I'm thinking more of the interfaces though
<orbitz> so you could make any collection usable in a LINQ query
<orbitz> Not sure how to do that in Ocaml sanely
<wmeyer> no doubts Camlp4 would be good, but everytime I camlp4 is used the number of users is shrinking
<orbitz> In .Net looks like you define a IEnumeratble<T> type or somethign
<wmeyer> it looks like Enum.t in Batteries
<wmeyer> so you can convert anything to Enum.t
<orbitz> ok
<wmeyer> there is no other way AFAIK
<wmeyer> type classes would be in help
<orbitz> yeah\
<wmeyer> but nice idea orbitz
<orbitz> hah not really my idea, just a curiosity
* wmeyer orbitz you were the one asking about wiki please check (no spread) http://danmey.org/w8k1 once we get a grip with it we will present the prototype on the infra list. Keep in mind that's just a prototype
<wmeyer> oops
<wmeyer> :S
<orbitz> hah now the world knows
<wmeyer> suppose to be a priv message :D
<orbitz> what do i click on to get to the wiki?
<wmeyer> sorry guys
<wmeyer> just add /PageHere to URL
<wmeyer> but keep in mind the things are broken at the moment
<orbitz> oh nice
<orbitz> yeah
<orbitz> I'm starting to think a wiki is a less good idea though, seems likt a lot of work
<wmeyer> well, we didn't spend to much time on it to be honest
<orbitz> I kind of like the idea of letting people contribute static html, maybe something done with pandoc, though pull requests
<wmeyer> well, yes yes :)
<orbitz> just give people a pandoc template
<wmeyer> at least after my post the infra started to be more lively
<orbitz> yeah
<wmeyer> anyway, it looks it's doable
<wmeyer> and we didn't spend too much time as i say on it
<wmeyer> first day I had working ocsigen + ocsimore
<wmeyer> myself
<orbitz> nice
<wmeyer> ah I screwed up by posting the link here ;)
<orbitz> meh, I think it's ok
<wmeyer> with the help of ocsigen team we were able to push it forward
<wmeyer> but I tend to agree after looking at the present shape of ocaml.org :-)
Anarchos has joined #ocaml
Snark has quit [Quit: Quitte]
mye has joined #ocaml
ekselkiu has quit [Quit: ekselkiu]
Reventlov has quit [Quit: leaving]
adotbrown has joined #ocaml
RagingDave has quit [Quit: Ex-Chat]
tani has quit [Ping timeout: 264 seconds]
andreypopp has quit [Quit: sleep]
leoncamel has quit [Ping timeout: 252 seconds]
<ousado> orbitz: opass looks nice
ygrek has quit [Quit: Leaving]
jamii has quit [Read error: No route to host]
<wmeyer> ousado: hi :-)
<ousado> wmeyer: hi
<ousado> wmeyer: I took a look :)
<wmeyer> thx
<wmeyer> yes, it does not do much at the moment
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
<ousado> well, it looks good
<wmeyer> I need to fix configuration of the Ocsimore
<wmeyer> there are few wiki pages I've created
<ousado> wmeyer: there's no mention of the author?
<wmeyer> ousado: ?
<ousado> on the wiki pages
<wmeyer> ah, haven't done that, but I think it should be doable
<wmeyer> I think it was also on my mind too
<wmeyer> currently there are just minor problems with config left
<ousado> you might also consider opening external links in a new tab/window
<wmeyer> yes, but first I need basics, and ocaml.org guys blessings :-)
PM has quit [Ping timeout: 246 seconds]
<ousado> wmeyer: hmm.. do you need help?
<ousado> I've never really looked at the ocsigen stack
<ousado> except for js_of_ocaml
<ousado> this might be a nice excuse
<wmeyer> ousado: Noted! I'll let you know, thanks :-)
<wmeyer> I'll try to come up with something more coherent later
<ousado> woo nice
<ousado> ocsimore is a CMS
chambart has quit [Ping timeout: 246 seconds]
Playground has quit [Read error: Connection reset by peer]
Playground has joined #ocaml
ImAlsoGreg has quit [Ping timeout: 248 seconds]
<wmeyer> ousado: yes it is
<ousado> .. reading ..
<ousado> quite interesting
<ousado> a CMS written in a sane language, that doesn't happen often
<wmeyer> yeah
<ousado> and is it nice to work with ?
<wmeyer> I haven't tried to do to much with it
<wmeyer> but you can get the feel out of ocsigen.org
q66 has quit [Quit: Quit]
mye has quit [Quit: mye]
milosn has quit [Ping timeout: 240 seconds]
milosn has joined #ocaml
malc_ has quit [Quit: leaving]
<troydm> i do wonder does ocsigen support multicore using forks?
<ousado> I think not
<ousado> but I don't know
<ousado> just guessing based on discussions here
<ousado> \o/
<ousado> oops
<ousado> (celebrating list comprehensions in haxe, wrong channel, sry :) )
ontologiae has quit [Ping timeout: 264 seconds]
<ousado> huh
<ousado> libevdoes someone know what ocsigen is using the libev dependency for?
<troydm> so it seems it doesn't support a forking model out of the box
<thelema> troydm: not at all. If you want to use 4 cores for ocsigen, run 4 copies of ocsigen and load balance across them
<troydm> thelema: yes but that would be useless without load balancer
<troydm> like for example unicorn (ruby web server)
<troydm> creates a forks that serve requests
<troydm> and whole this serving model is load balanced since it uses unix fork() and same unix socket
<troydm> so theoreticly the same thing could be achieved in ocaml
<troydm> but if they aren't using it then there is a meaning why (probably some issue)
<thelema> troydm: yes, although the overhead of forking is *much* higher than the lightweight threads that ocsigen uses
<troydm> thelema: no i don't mean serve each new request by new fork
<ousado> troydm: is it pre-fork and then async or ..
<ousado> okay
<troydm> it's pretty much the same as running four processes
<troydm> but you don't need a load balancer
<ousado> how so?
<troydm> because the are using the same socket
<ousado> but how do they exchange session data?
<troydm> hmm about session data i'm not sure
<troydm> i think it uses filesystem for session data
<troydm> and does file lock or something along that lines
<ousado> I see
<troydm> or ruby on rails manages that part
<troydm> yes i'm pretty sure ruby on rails manages that part
<ousado> which means it's some database?
<troydm> yeah
<troydm> probably sqlite