gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
<thelema_> well, it's better than not working. good night.
<gildor> good night
<olasd> gildor: I don't see a simple way to limit parallelism in Lwt_list (the implementation there looks quite trivial)... maybe you could split your list into a reasonable number of sublists, and parallelly do a sequential map on each sublist?
<gildor> olasd: I can create a pool of () and use it
<gildor> but the problem is the complexity of a single function
<gildor> I need to rework this function to call it only once
ssbr has quit [Quit: Missingno, I choose you! ... wait, no, shi-]
ssbr` is now known as ssbr
* gildor offline
BiDOrD_ has joined #ocaml
BiDOrD has quit [Ping timeout: 240 seconds]
emmanuelux has quit [Ping timeout: 252 seconds]
iago has joined #ocaml
Yoric has quit [Ping timeout: 264 seconds]
iago has quit [Quit: Leaving]
ssbr- has joined #ocaml
ssbr- has quit [Client Quit]
ssbr- has joined #ocaml
ssbr has quit [Quit: Leaving]
ssbr- is now known as ssbr
emmanuelux has joined #ocaml
destrius has joined #ocaml
avsm has quit [Quit: Leaving.]
Progster has joined #ocaml
Hussaind has joined #ocaml
Hussaind has left #ocaml []
pcavs has joined #ocaml
pcavs has left #ocaml []
ankit9 has joined #ocaml
Progster has quit [Ping timeout: 260 seconds]
mjonsson has quit [Quit: Leaving]
emmanuelux has quit [Quit: @+]
r126f has quit [Ping timeout: 246 seconds]
ankit9 has quit [Ping timeout: 246 seconds]
r126f has joined #ocaml
ulfdoz has quit [Ping timeout: 246 seconds]
Xizor has joined #ocaml
cdidd has quit [Ping timeout: 246 seconds]
<diml> gildor: a mutex + a counter: incr n; (if !n >= !max then Lwt_mutex.lock m else Lwt.return ()) >>= Lwt.finalize (... work ...) (fun () -> decr n; Lwt_mutex.unlock m; Lwt.return ())
Kakadu has joined #ocaml
pango is now known as pangoafk
thomasga has joined #ocaml
thomasga has quit [Client Quit]
ankit9 has joined #ocaml
eni has joined #ocaml
Xizor has quit [Ping timeout: 260 seconds]
avsm has joined #ocaml
avsm has quit [Client Quit]
edwin has joined #ocaml
silver has joined #ocaml
Yoric has joined #ocaml
thomasga has joined #ocaml
Cyanure has joined #ocaml
ftrvxmtrx has joined #ocaml
mika1 has joined #ocaml
<orbitz> diml: I've taken to doing message passing in Async, I don't have enough experience yet to know how well it will work but it will avoid the mutexes at least.
<diml> orbitz: sure, but don't think of mutexes in Lwt or Async as mutexes in preemptive threading, they really are just thin wrappers around wakeup (or whatever it is called)
<orbitz> diml: It's not the thinnesse I'm not a fan of, it's the model
<diml> orbitz: well, you can do both with both libraries, so it is just a matter of taste
avsm has joined #ocaml
thomasga has quit [Remote host closed the connection]
thomasga has joined #ocaml
rossberg has quit [Remote host closed the connection]
osa1 has quit [Read error: Operation timed out]
osa1 has joined #ocaml
rossberg has joined #ocaml
edwin has left #ocaml []
Drakken has quit [Ping timeout: 265 seconds]
caligula has quit [Ping timeout: 244 seconds]
ankit9 has quit [Remote host closed the connection]
Sablier has quit [Quit: Kat]
Sablier has joined #ocaml
caligula has joined #ocaml
Drakken has joined #ocaml
<Drakken> Anybody else have a net connection prob for the last few minutes?
<orbitz> No
<Drakken> Well, I put my little PEG parser up on github: https://github.com/Drakken/Metl
<Drakken> It's still missing the performance optimizations, but it seems to work.
Yoric has quit [Ping timeout: 264 seconds]
<orbitz> What is the big benefit to PEG parsers? I don't know much about them.
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
<flux> they don't need a lexer phase
<pippijn> and they have infinite lookahead, if I remember correctly
<flux> but they are offline, that is, they cannot parse stream (say, a standard input), it needs to be loaded fully first
<orbitz> Ah ok
<Drakken> so a syntax extension can actually have different lexical rules
<Drakken> which tends to mess up editing tools...
<pippijn> yes, annoying
Sablier has quit [Quit: Kat]
<pippijn> but you can edit your editing tool's syntax rules, too
Sablier has joined #ocaml
sepp2k has joined #ocaml
Yoric has joined #ocaml
destrius has quit [Quit: Leaving.]
osa1 has quit [Quit: Konversation terminated!]
eni has quit [Ping timeout: 255 seconds]
_andre has joined #ocaml
gasche_ is now known as gasche
Ptival has quit [Read error: Connection reset by peer]
ocp has joined #ocaml
ocp has left #ocaml []
gnuvince has quit [Ping timeout: 250 seconds]
Ptival has joined #ocaml
Ptival has quit [Read error: Connection reset by peer]
Ptival has joined #ocaml
gnuvince has joined #ocaml
Ptival has quit [Read error: Connection reset by peer]
lamawithonel has joined #ocaml
cdidd has joined #ocaml
Ptival has joined #ocaml
<_andre> say i'm writing stubs for a C library "libfoo" and i want to call the ocaml library "foo". when i build the project with oasis/ocamlbuild, it'll create a libfoo.a, which causes problems with the original libfoo
jaar has joined #ocaml
<_andre> is there a way around this, like using a different .a name?
<K_F> ocamlmklib -custom -o foobar stub.o ?
Kakadu has quit [Ping timeout: 248 seconds]
<_andre> K_F: do you know how to tell oasis/ocamlbuild to do this?
<K_F> not really, I just specify it in the Makefile
Ptival has quit [Ping timeout: 265 seconds]
mika1 has quit [Quit: Leaving.]
Snark has joined #ocaml
Submarine has quit [Ping timeout: 264 seconds]
bsingh has joined #ocaml
eni has joined #ocaml
jaar has quit [Ping timeout: 250 seconds]
avsm has quit [Quit: Leaving.]
Ptival has joined #ocaml
Ptival has quit [Client Quit]
Yoric has quit [Ping timeout: 250 seconds]
eni has quit [Ping timeout: 264 seconds]
silver has quit [Read error: Connection reset by peer]
ftrvxmtrx has quit [Quit: Leaving]
bzzbzz has joined #ocaml
bsingh has quit [Remote host closed the connection]
eni has joined #ocaml
Ptival has joined #ocaml
Ptival has quit [Client Quit]
thomasga has quit [Ping timeout: 244 seconds]
tbrady has joined #ocaml
Cyanure has quit [Ping timeout: 246 seconds]
<vext01> are any of you guys involved in the new beta ocaml release?
<thelema_> vext01: some bug you want fixed?
<vext01> i saw a link to a mailing list post asking for tests on unusual platforms
<vext01> just wondering if that is someone here
<thelema_> report anything on mantis.
<tbrady> hcarty: ocamlbrew worked for me. I've been happily using utop since. Thank you.
<vext01> thelema_: i dont have a bug :P
<vext01> but i do have a sparc64 and sgi machine running openbsd :P
thomasga has joined #ocaml
mcstar has joined #ocaml
Xizor has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
Yoric has joined #ocaml
Anarchos has joined #ocaml
Cyanure has joined #ocaml
wagle has quit [Read error: Operation timed out]
wagle has joined #ocaml
mfp has joined #ocaml
<wmeyer> vext01: We are interested in weird architectures
<wmeyer> vext01: please use mantis to file your findings, it would be very appreciated
eni has quit [Ping timeout: 244 seconds]
<vext01> wmeyer: ill give it a go over the next few days
Ptival has joined #ocaml
<wmeyer> vext01: thanks
Ptival has quit [Quit: leaving]
Ptival has joined #ocaml
Cyanure has quit [Ping timeout: 244 seconds]
Submarine has joined #ocaml
wmeyer has quit [Read error: Connection reset by peer]
wmeyer has joined #ocaml
ftrvxmtrx has joined #ocaml
pangoafk is now known as pango
wmeyer has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<hcarty> tbrady: You're welcome - I'm glad to hear that it worked for you.
eni has joined #ocaml
<Anarchos> vext01 what kind of weird architectures are you looking for ?
osa1 has joined #ocaml
<vext01> Anarchos: nothing in particular
<vext01> the ocaml project is looking for odd platforms for testing
eni has quit [Ping timeout: 240 seconds]
<Drakken> Repeating this morning's post for all you Americanos:
<Drakken> I have now officially posted my spiffy new PEG parser on github: https://github.com/Drakken/Metl
<Drakken> constructive criticisms welcome and appreciated
<orbitz> gnuvince: <--- sausagefeet
eni has joined #ocaml
<gildor> _andre: oasis 0.3 will call the stub libfoo_stub.a anyway
Ptival has quit [Quit: Lost terminal]
<_andre> gildor: cool
<_andre> i'll try upgrading oasis then
<tbrady> anyone have time profiling tips on os x? gprof is busted and shark is no more.
<_habnabit> tbrady, valgrind+kcachegrind
<tbrady> on os x?
<Hodapp> does valgrind even run on OS X?
<_habnabit> yes?
<_habnabit> sure does
<Anarchos> vext01 i ported ocaml to haiku-os, kinda odd i guess :)
<Hodapp> Anarchos: you use haiku?
<Anarchos> Hodapp i am currently on it yes
<Hodapp> Anarchos: It runs surprisingly well on my crappy Eee PC
<Hodapp> even does Wifi
<Anarchos> Hodapp http://imgur.com/UVUhV pretty decent ocaml in a native window :)
<Hodapp> nice :)
<Anarchos> Hodapp anyway time to leave, maybe we will talk again here another day
Anarchos has quit [Quit: going t o get some sleep]
<mcstar> whats the point in using haiku/beos?
<mcstar> (i experimented with it when i was young, but found no reason)
<adrien> it's not annoying
<mcstar> what is?
<Hodapp> mcstar: I find it really clean, elegant, and well-designed.
<adrien> it's simpler, more understandable, ...
<mcstar> maybe, but dont you lose much of the opensource software that works on linux/bsd?
<mcstar> and surely, you can customize you linux any way you want
<mcstar> im not sure what you are talking about when you say really clean, elegant, and well-designed
<mcstar> you mean the gui? or the system libraries?
eni has quit [Ping timeout: 252 seconds]
<tchell> let map_collect sm = BatMap.filter_map (constant identity) sm
<tchell> I like this function
Jeff_123 has joined #ocaml
Jeff_123 has quit [Client Quit]
<Yoric> mcstar: What is the point in using ocaml/haskell? Surely you lose much of the libraries that works on Java.
<Yoric> </troll>
<mrvn> Yoric: That is the point. :)
<Yoric> :)
<mcstar> Yoric: indeed, whats the point in using ocaml, if you know haskell?
<mcstar> </troll>
<mrvn> mcstar: the "fun"
<mcstar> though, my question regarding haiku was serious, and i dont see the parallel
<Qrntz> Fun™
<Yoric> mcstar: If you prefer Haskell? None. If you consider that Haskell doesn't quite scratch your itch? well...
<mrvn> haven't read mail today yet
<mrvn> ups
<mrvn> Qrntz: fun x y -> x + y
_andre has quit [Quit: leaving]
<gnuvince> orbitz: I saw your response; thanks a lot for the details. I mean to try Jane Street Core, but I always put it off.
<pippijn> I guess it's not bad to have tried core if you want to apply at jane st
<asmanur_> how does one with oasis with files in several directories ?
<mrvn> this question no verb
<orbitz> gnuvince: None of what i said depends on core btw
<asmanur_> ah yeah sorry, how does one use oasis with files in several directories ?
<asmanur_> (sorry I'm a bit tired..)
<asmanur_> I did one library per directory right now but I cannot deal with internal modules the way I want to this way.
Ptival has joined #ocaml
<gildor> asmanur_: you have one library with modules in several directories ?
<asmanur_> yes
<gildor> prefix the internal module with the relative path
<gildor> e.g. lib/A.ml lib/internal/B.ml
<asmanur_> hm
<gildor> Path: lib
<gildor> Modules: A
<gildor> InternalModules: internal/B
<asmanur_> and can I have modules in a subdirectory as well ?
<gildor> Modules: A, internal/B
<asmanur_> I tried this but it doesn't work
<asmanur_> it compiles internal/b.ml and then complains that it cannot find internal/B.cmo
<gildor> but everythin will end-up in the directory after ocamlfind install
<gildor> asmanur_: which oasis version ?
<asmanur_> 2.0 I'm believe
<asmanur_> -'m
<gildor> try 0.3, it fixes several things about modules in different directories
<asmanur_> ok, I'll try it, thanks
sepp2k has quit [Ping timeout: 246 seconds]
Progster has joined #ocaml
eni has joined #ocaml
eni has quit [Remote host closed the connection]
eni has joined #ocaml
sepp2k has joined #ocaml
Snark has quit [Quit: Quitte]
<asmanur_> gildor: it seems to work better, but I have still a strange error
<asmanur_> the cma of the library seems not to be built although there is not error and all object files are in _build
<mrvn> is it only building the cmxa?
<asmanur_> neither
tbrady_ has joined #ocaml
tbrady has quit [Read error: Connection reset by peer]
tbrady_ is now known as tbrady
gnuvince has quit [Ping timeout: 252 seconds]
err404 has joined #ocaml
eni has quit [Quit: Leaving]
mcstar has quit [Quit: mcstar]
gnuvince has joined #ocaml
f[x] has quit [Ping timeout: 246 seconds]
Yoric has quit [Quit: Instantbird 1.2a1pre -- http://www.instantbird.com]
Progster has quit [Ping timeout: 260 seconds]
BiDOrD has joined #ocaml
BiDOrD_ has quit [Ping timeout: 248 seconds]
emmanuelux has joined #ocaml
emmanuelux has quit [Quit: @+]
<gildor> thelema_: pb solved
<thelema_> gildor: yay! waiting for deploy
<gildor> building right now
<gildor> the page display in 600ms on my computer
<thelema_> is having different repos for 3.x and 4.x on your todo list?
<gildor> almost 10 times faster
<gildor> thelema_: yes
<gildor> but I would like to have a Windows builder for oasis before
<gildor> + a windows installer
<thelema_> odb should do this just fine with the windows distro under beta
<thelema_> especially now that you've removed the prce dep, right?
<gildor> that is my plan, build ocaml without tcl/tk, build findlib and use odb
<gildor> thelema_: yep, removal of the pcre dep is a very good thing
<thelema_> already has ocaml compiled, with findlib and enough cygwin to use odb
sepp2k has quit [Remote host closed the connection]
<gildor> I was planning to build from source, but maybe the protz solution is cleaner
<gildor> (and faster)
<thelema_> if what you make doesn't work under protz's installer, it'll undermine that effort a bit.
<gildor> oh no, the oasis installer is supposed to ship a standalone oasis exec
<gildor> i.e. you can install it without protz's installer
thomasga has quit [Quit: Leaving.]
<thelema_> ah, building the oasis executable...
<gildor> yes
<gildor> but using a precompiled version of ocaml is a way to save ~12min at the first run
<gildor> and make sense in term of community
<thelema_> it might be more useful long term to have oasis installable under that distro from source
<thelema_> not that there's any problem with the binary, but if you don't have to do binary distribution...
<thelema_> especially with oasis being a "compile from source" tool
<gildor> it is an exercice of style somehow
<thelema_> i.e. something that only developers need to use
<thelema_> fair enough.
<gildor> I have to setup a builder on Windows, to remove the pain of testing on Windows before every release
<gildor> and an interessant byproduct is to have a binary that I can ship in an installer for Windows/Mac/Linux
<thelema_> just sounds like unimportant work - making an installer for something that might as well be built from source.
<thelema_> Unless the binary were integrated into protz's distro
<thelema_> then, a binary would make sense
<gildor> but be assured that once I'll have my builder with odb on Windows, it will be used for each build
<gildor> thelema_: that is something I can consider (sending the binary to protz)
<gildor> oasis-db ~alpha5 up and running at full speed
<thelema_> ah, *much* better
<gildor> if you browse a little bit the website, you'll see it is a lot snappier than before
<thelema_> yes it is.
<gildor> under 200ms to load a page
<thelema_> I'm also very happy with the ability to delete packages and edit things
<gildor> a lot of improvement all around
<thelema_> much appreciated
<gildor> I think with my new CI stuff, I'll be able to quickly move on oasis-db and deliver more often
* gildor I need to fix the stats on the home page
<thelema_> is there only the one link to anything about odb on the front page?
<gildor> there is a link to /dev/odb on the front page
<gildor> is this what you mean ?
<thelema_> yes, aside from that tiny link (which blends in a bit with the surrounding text), is there a way to find the odb pages?
<thelema_> if you hadn't given me a link to the admin page, I would have never found the regular odb pages.
<gildor> well 2nd entry for the Google search "ocaml odb"
<thelema_> I guess that search counts for a lot.
<thelema_> And there's a link from the odb site. maybe not such a big deal.
<gildor> thelema_: if you want a more visually prominent link on the front page, just download/edit the html and send it to me
<thelema_> can I do the same with the upload page?
<gildor> well don't use marquee but that should be fine
<thelema_> :) I'll be tasteful.
<gildor> time to go to bed
<gildor> see you
<thelema_> yes, sleep. good night