flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.0 out now! Get yours from http://caml.inria.fr/ocaml/release.html
verte has joined #ocaml
alexyk has joined #ocaml
psnively has quit []
verte has quit ["~~~ Crash in JIT!"]
ikaros has quit ["Leave the magic to Houdini"]
verte has joined #ocaml
seafood has quit []
seafood has joined #ocaml
Lomono has joined #ocaml
seafood_ has joined #ocaml
Lomono has quit ["Don't even think about saying Candlejack or else you wi"]
seafood has quit [Read error: 110 (Connection timed out)]
Ched has quit [Read error: 110 (Connection timed out)]
Ched has joined #ocaml
komar_ has quit [Read error: 113 (No route to host)]
sporkmonger has joined #ocaml
alexyk has quit []
jmou is now known as julm
Lomono has joined #ocaml
Israel has quit [Read error: 110 (Connection timed out)]
sporkmonger has quit []
seafood_ has quit []
seafood has joined #ocaml
julm has quit [Read error: 60 (Operation timed out)]
julm has joined #ocaml
Lomono has quit ["Don't even think about saying Candlejack or else you wi"]
Ched has quit [Read error: 60 (Operation timed out)]
Ched has joined #ocaml
jeddhaberstro has quit []
invercargill has joined #ocaml
<invercargill> Is there any way to load native ocaml code (.cmx/.cmxa) in a running native code ocaml application ?
<julm> invercargill: I think http://alain.frisch.fr/natdynlink.html may do that kind of thing.
<invercargill> julm: Ah yes, I did see that page, but ocamlopt doesn't seem to have the -dlopt option the page mentions. Do I need a special branch of the ocamlopt compiler ? Thanks.
<julm> well, Alain says the natdynlink branch has been merged, so I don't think you need a special branch, that said I don't see a -dlopt option neither in the Alain's page nor in my ocamlopt from CVS' HEAD branch
<julm> also I see a -nodynlink option, but no -dlcode option
<julm> and I have a /usr/local/lib/ocaml/dynlink.cma
<julm> I think that should be all what one needs
<julm> (I mean with the other dynlink.* files I haven't quoted)
<invercargill> So, you think the latest ocaml version from godi would contain a dynlink module capable of loading .cmxs files ?
<julm> yep, likely
<julm> but I've never used GODI and thus can't tell you
<invercargill> well, any ocaml trunk version after 3.10.0
<invercargill> It's strange, because the ocamlopt I have doesn't seem to have any option that can generate shared modules.
<julm> doesn't*
<julm> invercargill: found it: it's -shared
<invercargill> my ocamlopt does not recognize that option (3.10.2).
<invercargill> do you have that on yours ?
<julm> yes
<julm> but I'm version 3.12.0+dev3 (2009-05-20)
<invercargill> ah
<julm> the manual is for 3.11 thought
<invercargill> is it a configure option perhaps ?
<invercargill> I'll get the latest version I guess
<julm> well OCAML's ./configure has no --help or -h option, but I don't think so
<julm> it just tells me: Additional libraries supported: unix str num dynlink bigarray systhreads threads graph
<julm> note the "dynlink"
<invercargill> I do have a dynlink module in my current distro of ocaml, but it can only load bytecode. Your version probably understands .cmxs (as described on alain's page).
<invercargill> I think getting a more recent version from source will fix the problem.
<julm> at least a 3.11 version should
<invercargill> ok. Thanks a lot julm!
<julm> np ;)
_zack has joined #ocaml
thelema has joined #ocaml
schme has joined #ocaml
travisbrady has quit [Read error: 104 (Connection reset by peer)]
travisbrady has joined #ocaml
Axioplase has joined #ocaml
invercargill has left #ocaml []
komar_ has joined #ocaml
Camarade_Tux has joined #ocaml
jeanbon has joined #ocaml
ikaros has joined #ocaml
jeanbon has quit ["EOF"]
sporkmonger has joined #ocaml
hkBst has joined #ocaml
ched_ has joined #ocaml
_zack has quit ["Leaving."]
Ched has quit [Read error: 110 (Connection timed out)]
<kaustuv_> mrvn: re your question on caml-list, why can't you surround just the fuse_* calls with enter_/leave_blocking_section() ?
<kaustuv_> And incidentally, you don't need to use Store_field() after a caml_alloc_*() unless the arguments to Store_field() themselves cause a caml_alloc_*.
itewsh has joined #ocaml
ikaros has quit [Remote closed the connection]
Associat0r has joined #ocaml
Associat0r has quit [Client Quit]
<olegfink> hi kaustuv_
<olegfink> re yesterdays wave discussion, why do you think you'd need a web framework (such as ocsigen) to implement a wave node?
<olegfink> for me a much more interesting challenge would be implementing a tool which can be used to interact with wave
<kaustuv_> To be frank I don't understand what a tool that uses wave needs. I figured that it needs a superset of the functionality provided by ocamlnet, ocamlduce, ocsigen, etc.
<kaustuv_> And anyway it was an idle question without much thought or research.
<olegfink> well, seen twiiter clients?
<olegfink> twitter rather
<olegfink> i, for one, don't want to fire up a web browser just to send a letter.
Alpounet has joined #ocaml
marmottine has joined #ocaml
verte has quit [Read error: 60 (Operation timed out)]
verte has joined #ocaml
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
ztfw has joined #ocaml
komar__ has joined #ocaml
komar_ has quit [Read error: 113 (No route to host)]
<mrvn> kaustuv_: What fuse_* calls? Fuse calls me.
Yoric[DT] has joined #ocaml
BiDOrD has quit [Remote closed the connection]
<mrvn> let foo () = let buf = Aio.buffer 4096 in let str = Aio.unsafe_string buf in Unix.write fd str 0 4096
<mrvn> The Aio.unsafe_string is only valid as long as buffer remains alive. Can I ensure the GC doesn't free it during the write call?
Lomono has joined #ocaml
itewsh has quit [Connection timed out]
itewsh has joined #ocaml
<mrvn> would ... in Unix.write fd str 0 4096; () extend the livetime of buf till after the write?
BiDOrD has joined #ocaml
Axioplase has quit ["quit"]
_zack has joined #ocaml
marmottine has quit [Read error: 110 (Connection timed out)]
<flux> I think this trick should ensure it: let (str, buf) = (Aio.unsafe_string buf, buf) in ..
<flux> but someone should verify that :-)
<mrvn> because it builds a tuple besides binding str?
<flux> the trick is that a tuple is being constructed and then deconstructed, I read Somewhere(TM) that in that those tuple members will be collected together
<Camarade_Tux> most likely, I remember a message from Xavier Leroy on the mailing-list stating that even with 'let (a, _)= ...", _ wouldn't be collected
<Camarade_Tux> (on its own)
<flux> btw, I just got a Maemo-running device, N810. palomer, when are you going to provide bindings to Hildon?-)
<mrvn> But the (...) is no longer in scope when it tail recursively calls Unix.write.
<flux> no, it was you, camarade_tux, who was on the bindings business!
<Camarade_Tux> flux, yeah :p
<flux> mrvn, well, ignore (Unix.write..)?
<Camarade_Tux> desktop 3 is full of terminals and gvim windows for that ;)
<mrvn> So removing the tail recursion should keep the bindings alive?
<flux> mrvn, maybe just 'ignore (buf)' after the call is sufficient
<flux> btw, the device has been quite decent so far.. I basically bought it because N900 should be coming up soon, w/ a phone, and as I was in the process of switching the phone I thought I might take a look at the maemo side first..
<flux> also, this is a mobile device I can run emacs on \o/
<Camarade_Tux> hahaha ! :p
<Camarade_Tux> how is the keyboard ? ;p
<flux> not as good as in 9210i, but decentish
<flux> a bit heavy to push the buttons down
<Camarade_Tux> it looks nice :)
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
thelema has quit [Read error: 110 (Connection timed out)]
itewsh has quit [Connection timed out]
itewsh has joined #ocaml
verte_ has joined #ocaml
verte has quit [Nick collision from services.]
verte_ is now known as verte
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
verte has quit ["~~~ Crash in JIT!"]
iago has joined #ocaml
alexyk has joined #ocaml
<Camarade_Tux> progress of the ocaml-gir rewriting : 10%
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
julm has quit [Remote closed the connection]
BiDOrD has quit [Read error: 60 (Operation timed out)]
seafood has quit []
julm has joined #ocaml
BiDOrD has joined #ocaml
marmottine has joined #ocaml
itewsh has quit [Connection timed out]
travisbrady has quit [Read error: 104 (Connection reset by peer)]
itewsh has joined #ocaml
travisbrady has joined #ocaml
itewsh has quit [Read error: 60 (Operation timed out)]
itewsh has joined #ocaml
thelema has joined #ocaml
alexyk has quit []
komar__ has quit [No route to host]
ched_ has quit ["Ex-Chat"]
<flux> camarade_tux, how about now?
<flux> 15%?
ched_ has joined #ocaml
<Camarade_Tux> flux, more like 7.5% but on the other hand, I had some sleep, I converted somebody to marble instead of google earth, helped somebody set his external display, told somebody what the nouveau graphic driver is... ok, ok, I'm going back to code ;p
AxleLonghorn has joined #ocaml
<julm> Camarade_Tux: what is marble?
<mrvn> a kind of stone with a nice shine if polished.
<mrvn> *duck*
<Camarade_Tux> it's an open-source clone of google earth, it's in kde-edu. and it uses openstreetmap too :)
* Camarade_Tux kicks mrvn ;p
komar__ has joined #ocaml
<julm> ah thanks, I'll have a glance at it
<julm> outch 230Mo of dependencies
<Camarade_Tux> :) and I'm impressed about what the 'edu' packages in kde-edu are
<Camarade_Tux> julm, I guess you're running gnome, don't you ?
<julm> fvwm
<julm> :P
<Camarade_Tux> lol ;p
rjack has joined #ocaml
itewsh has quit [Connection timed out]
<julm> but sometimes I use KDE apps, especially the one to read DjVu files
itewsh has joined #ocaml
<Camarade_Tux> the number of apps I run is pretty limited (at least for the graphical ones), my desktop1 usually looks like http://omploader.org/vMW56Yg :p
ched_ has quit [Read error: 110 (Connection timed out)]
ched_ has joined #ocaml
<julm> mignon le petit menu :D
<Camarade_Tux> he :p it will maybe shrink even more :D
alexyk has joined #ocaml
<flux> that google wave-thingy doesn't seem all that bad idea
<flux> so, kaustuv_, how far's your wave-server/client?-)
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
<flux> I imagine ocamljs could be a part of that system
Israel has joined #ocaml
BiDOrD has quit [Remote closed the connection]
<kaustuv_> flux: I've gotten as far as reading a few pages of the XMPP spec and convincing myself that this is a project for when I am less burdened by deadlines
<julm> kaustuv_: are you writing something about XMPP ?
Israel has quit []
<julm> Camarade_Tux: marble's database doesn't seem to me as accurate as googleearth's (I can't even see the street where I live in marble whereas I can with GE)
BiDOrD has joined #ocaml
<Camarade_Tux> kaustuv_, what about ocamlxmpp/ocaml-jabbr ? :) (unless the sources are unavailable right now)
<Camarade_Tux> julm, with satellite view or with map view ?
rjack has quit ["leaving"]
<julm> both
<julm> in map view I'm able to go down to the Route Nationale level
<julm> in satellite view the dotted city level
<julm> but I suppose one could get more accurate map somewhere on the web
<julm> ocaml-jabbr is old and unusable
alexyk has quit []
jamii has quit [Read error: 110 (Connection timed out)]
ulfdoz has joined #ocaml
<julm> and I'm discovering ocaml-xmpp and it seems old too and very small
<Camarade_Tux> afaict they have been written around the same time
<julm> kaustuv_: for what do you need XMPP kaustuv_ and for when ?
<Camarade_Tux> as for openstreetmap, in the rural parts, google maps seem to have one more level of details than openstreetmap has
<julm> ocaml-jabbr at least two years old
<julm> +is
<Camarade_Tux> more like 7 afaict
Ppjet6_ is now known as Ppjet6
<julm> all I know is that the first time I read ocaml-jabbr sources was before october 2007 :|
<Camarade_Tux> its announcement on the caml mailing-list dates back to 2002
<julm> wow
<julm> what a pity it hasn't get very far :/
<julm> XMPP is great
<Camarade_Tux> actually there is http://svn.tuxfamily.org/viewvc.cgi/ocamlxmpp_ocamlxmpp/ which is much more recent but I'm concerned about copyright problems
Smerdyakov has joined #ocaml
<julm> you do not like GPL license for a library ?
<mrvn> julm: there is a reason there is an LGPL
<julm> I know
<Camarade_Tux> no, it wasn't really because of copyrights but two libraries with the same name but different authors was suspicious
<Camarade_Tux> but it seems to have been written from scratch, with development starting less than a year ago
<julm> still it's a very light implementation
<mrvn> Camarade_Tux: happens sometimes. I'm thinking of rewriting ocaml-sha because the existing one is GPL V2 only and I want to use it in a GPL V3+ source.
<julm> Camarade_Tux: what is the same named library you're talking about
<Camarade_Tux> julm, ocaml-xmpp by Mike Lin, and ocamlxmpp which I just linked to
<Camarade_Tux> and http://home.ermine.pp.ru/svn/ocaml/branches/xmpp-review/ which is probably^Wmaybe based on ocaml-xmpp by Mile Lin
<Camarade_Tux> mrvn, tried asking upstream for a license change ?
<mrvn> waiting for a reaction
<julm> wow this last one is a little bit more serious
<Camarade_Tux> but I didn't get how the svn is organized, something in libs/xmpp I think
<julm> but it's handling of Unicode is heavy :s
<julm> yes in libs/xmpp
<julm> but it's not based on Mike Lin's Jabbr for what I can see and remember
<julm> still this is not a really comprehensive implementation of XMPP
<Camarade_Tux> ... now the question is : why am I using polymorphic variants instead of regular variants in this code ?
<julm> because you're lazy ?
<Camarade_Tux> that might actually be the reason but I'm quite surprised
<mrvn> does it need to accept a broader type than you specify?
AxleLonghorn has left #ocaml []
<Camarade_Tux> no, I actually want something really strongly typed and that's why I'm surprised (discovering I am lazy wouldn't be a surprise ;) )
Smerdyakov has quit ["Leaving"]
Israel has joined #ocaml
<Camarade_Tux> hmmm, I think that's because I was using polymorphic variants in another and somehow-related type
jeanbon has joined #ocaml
<itewsh> I need some help with this code: http://pastebin.be/18833
<itewsh> how to do?
<julm> itewsh: use the "and" keyword
<julm> just replace the second "type" word by "and"
<itewsh> julm: It works ! :) Thanks
<julm> np ;)
marmottine has quit [Excess Flood]
marmottine has joined #ocaml
Lomono has quit [Remote closed the connection]
Lomono has joined #ocaml
Lomono has quit [Client Quit]
komar__ has quit [Read error: 113 (No route to host)]
marmottine has quit [Remote closed the connection]
komar__ has joined #ocaml
itewsh has quit [Success]
itewsh has joined #ocaml
komar__ has quit [Read error: 113 (No route to host)]
itewsh has quit [Read error: 110 (Connection timed out)]
_zack has quit ["Leaving."]
komar__ has joined #ocaml
Israel has quit []
Amorphous has quit [Read error: 110 (Connection timed out)]
<mrvn> Anyone familiar with what file I/O things Batteries has?
Amorphous has joined #ocaml
kaustuv has joined #ocaml
thelema has quit [Read error: 110 (Connection timed out)]
<mrvn> Anyone know if there is a zero-copy IO module? The default Unix and Batteries Unix and IO modules copy every byte on read/write.
slash_ has joined #ocaml
olegfink has quit [Remote closed the connection]
palomer has quit ["Leaving"]
alexyk has joined #ocaml
komar__ has quit [No route to host]
ikaros has joined #ocaml
Alpounet has quit [Read error: 104 (Connection reset by peer)]
ikaros has quit ["Leave the magic to Houdini"]
jeff_s_ has joined #ocaml
_JFT_ has joined #ocaml
<flux> polymap (http://www.math.nagoya-u.ac.jp/~garrigue/code/ocaml.html) looks cool, it'd be doubly so if it supported pattern matching too
_zack has joined #ocaml
psnively has joined #ocaml
alexyk has quit []
<Yoric[DT]> flux: iirc, it's actually the basis for OCaml's objects
<mrvn> I wonder if one could strengthen that to implement record prefixes and compile time errors for m.`u
alexyk has joined #ocaml
jeff_s_ has quit [Read error: 104 (Connection reset by peer)]
psnively has quit []
alexyk has quit []
barismetin has joined #ocaml
schme has quit [Read error: 113 (No route to host)]
barismetin has quit [Remote closed the connection]
barismetin has joined #ocaml
iago has quit ["Leaving"]
_JFT_ has quit []
alexyk has joined #ocaml
barismetin has quit [Read error: 54 (Connection reset by peer)]
barismetin has joined #ocaml
<mrvn> What do you think about code like this? http://paste.debian.net/37642/
<mrvn> Do you think that will get optimized away so that "reply_lookup req ('err ENOENT)" calls fuse_reply_err directly?
pklbham has joined #ocaml
pklbham has quit ["ERC Version 5.3 (IRC client for Emacs)"]
* Yoric[DT] is too tired to look at the code.
_zack has quit [Remote closed the connection]
_zack has joined #ocaml
jamii has joined #ocaml
hkBst has quit [Read error: 104 (Connection reset by peer)]
barismetin has quit [Remote closed the connection]
_zack has quit ["Leaving."]
alexyk has quit []
Yoric[DT] has quit ["Ex-Chat"]
m3ga has joined #ocaml
Ched has joined #ocaml
Ched has quit [Client Quit]
Ched has joined #ocaml
ched_ has quit [Read error: 110 (Connection timed out)]
slash_ has quit [Client Quit]
Camarade_Tux has quit [Read error: 110 (Connection timed out)]
<mrvn> So, new libfuse-ocaml API finished. Starting FSstresstest.
<mrvn> 1243812201 write: 2 GiB, 38.786885 MiB/s [38.786885 MiB/s] read: 2 GiB, 38.016393 MiB/s [38.016393 MiB/s] # Mon Jun 1 01:23:21 2009
<mrvn> Not bad.
noah has joined #ocaml
seafood has joined #ocaml
ulfdoz has quit [Read error: 60 (Operation timed out)]
jeanbon has quit ["EOF"]