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
philtor has joined #ocaml
avsm has quit [Ping timeout: 252 seconds]
avsm has joined #ocaml
dsheets has quit [Quit: Leaving.]
Boscop has quit [Ping timeout: 258 seconds]
avsm has quit [Read error: Connection timed out]
avsm has joined #ocaml
junsuijin has quit [Quit: Leaving.]
junsuijin has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
everyonemines has joined #ocaml
<everyonemines> is there a camlp4 extension for RPN function application ?
<thelema_> everyonemines: not that I know of, but you can make one pretty easily, I'd expect
joewilliams is now known as joewilliams_away
mjonsson has quit [Remote host closed the connection]
emmanueloga has joined #ocaml
philtor has quit [Ping timeout: 252 seconds]
avsm has quit [Quit: Leaving.]
junsuijin has quit [Quit: Leaving.]
ygrek has joined #ocaml
Anarchos has joined #ocaml
<adrien> moin
<adrien> once a project is using oasis to build and install, which additional steps does it take for it to be installable through odb?
yezariaely has joined #ocaml
<emmanueloga> how can I find info about ending expressions with "in" in ocaml? (obviously googling for 'ocaml +in' does not work very well)
<emmanueloga> I'm reading Remy's book wich has this expression: let chan = open_in Sys.argv.(i) in
<emmanueloga> not sure why the 'in' at the end is needed.
<adrien> you cannot end an expression with "in" in ocaml: you always have to return something
<adrien> this was probably a snippet
<adrien> there has to be something after that in actual code
ttamttam has joined #ocaml
<emmanueloga> actual code: http://codepad.org/2iwaW9Mq
<emmanueloga> oh, I see. in means inside what comes next, right? in my case, echo chan.
<adrien> you can have:
<adrien> let foo = (something) in
<adrien> close_out oc;
<adrien> 42
<adrien> and, yes, that means what you said
<emmanueloga> Cool, txs.
<adrien> you're welcome =)
yezariaely has quit [Quit: Leaving.]
<Anarchos> adrien you cannot end a let ... in with ";;" ?
<adrien> nope
<adrien> # let a = 42 in;;
<adrien> Error: Syntax error
<adrien> if I use a library that is released under the LGPL 2.1, without linking exception, what does it imply for my project?
<_habnabit> oh man wouldn't you like to know
<_habnabit> (does anybody know?)
<_habnabit> ((no))
ygrek has quit [Ping timeout: 248 seconds]
<adrien> I make it possible to recompile everything anyway
lpereira has joined #ocaml
ttamttam has quit [Remote host closed the connection]
<Anarchos> adrien oh you have at least to put ()
<Anarchos> before the ;;
larhat has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
edwin has joined #ocaml
<adrien> yup
Associat0r has quit [Quit: Associat0r]
thelema_ has quit [Read error: Connection reset by peer]
lopex has joined #ocaml
thelema has joined #ocaml
ikaros has joined #ocaml
ttamttam has joined #ocaml
Boscop has joined #ocaml
Anarchos has joined #ocaml
<adrien> when to use -for-pack?
dnolen has quit [Quit: dnolen]
blinky- has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
emmanueloga has quit [Ping timeout: 260 seconds]
ikaros has joined #ocaml
ztfw has joined #ocaml
milosn has quit [Ping timeout: 258 seconds]
milosn has joined #ocaml
emmanuelux has joined #ocaml
ttamttam has quit [Quit: ttamttam]
wishi has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
wishi has quit [Read error: Connection reset by peer]
ttamttam has joined #ocaml
blinky- has quit [Quit: /quat]
<thelema> adrien: LGPL2.1 w/o linking exception means it can only by dynmically linked with program
<adrien> or that the program should be GPL, right?
<thelema> static linking with a lgpl2.1 library would require release of your program source
<thelema> adrien: yes, for gpl programs, not really an issue
<adrien> the program is going to open-source anyway
<adrien> but I'll ask Maxence Guesdon about it
<adrien> although config_file has 3 generations of developpers; relicensing would not be completely straightforward
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
<gildor> adrien: no extra step for oasis + odb
<gildor> adrien: at least to be present in "unstable" version of odb
<adrien> ok =)
<gildor> adrien: to be in testing/stable it requires a manual validation by one admin of odb
<adrien> of course
<thelema> adrien: yes, just upload to oasis-db
hyperboreean has quit [Ping timeout: 248 seconds]
Kakadu has joined #ocaml
wishi has joined #ocaml
<everyonemines> Does it look like odb is going to replace godi packages?
<adrien> does odb handle recompilation of dependencies?
everyonemines has quit [Quit: Leaving.]
wishi has quit [Read error: Connection reset by peer]
wishi has joined #ocaml
ttamttam has quit [Ping timeout: 260 seconds]
milosn has quit [Read error: Connection reset by peer]
milosn has joined #ocaml
sepp2k has joined #ocaml
<thelema> I don't know if odb will replace godi - godi is much more complete
<thelema> adrien: yes, that's exactly what it does.
<adrien> ok
<adrien> thelema: what do you think godi makes over odb?
<thelema> ocaml itself
<thelema> godi can bootstrap from nothing. godi can manage multiple concurrent ocaml installs
<thelema> odb requires ocaml and findlib already installed
<adrien> right
<adrien> godi only handles different prefixes
<thelema> godi works on windows, odb... quite untested.
<adrien> it should
<thelema> odb might work with sufficient cygwin
<adrien> oasis works on msys
hcarty__ has joined #ocaml
<thelema> adrien: great then.
<adrien> "almost"
<adrien> but I don't remember well: I had to use a combination of msys and cmd.exe without msys
<adrien> well, windows as usual: you try random things until it works
<hcarty__> adrien: The biggest challenge is probably providing the external dependencies or replacing them with libraries used in a static odb binary
<adrien> well, that should be doable with yypkg /o\
<adrien> (I might be able to develop it more, along with packages, soon)
<hcarty__> adrien: :-)
<thelema> hcarty__: biggest challenge to what? replacing godi with odb?
<thelema> or just using odb/win
<hcarty__> thelema: odb + windows
hcarty__ has quit [Quit: Bye]
<thelema> I don't have any plans for a static odb binary - ocaml script mode seems plenty good for this kind of app
<adrien> it seems a bit slow
<thelema> adrien: it is slow, but that's not because it's a script, only because it re-downloads metadata from ocamlcore like bandwidth is free
<thelema> This is an optimization that could be done pretty easily, but isn't too important at the moment
* thelema does this optimization
<adrien> thelema: actually I had oasis in mind; the start is quite slow (note that I haven't taken a look at it at all)
<thelema> ah, that too. oasis generated *gigantor* setup.ml files, which take ocaml a little bit to process.
<thelema> again, this is pretty minor, and could be optimized later if it's really a problem.
<thelema> unless oasis/win is slow because of cygwin being slow, in which case that does deserve some optimization
<adrien> I actually, for non-developpers, using native code probably won't help with the speed because as you've noted it, it's mostly the size of the input .ml file (probably)
<adrien> but for developpers of the project, it could avoid that overhead
<thelema> Well, for most projects, some dead code analysis would go a long way to cutting down the size of setup.ml
<adrien> tru
<adrien> e
ulfdoz has joined #ocaml
mfp has quit [Read error: Connection reset by peer]
<gildor> adrien, thelema: the size of setup.ml is indeed a "parsing" issue for ocaml, this is probably what really slowdown the start of oasis
<gildor> adrien, thelema: but I am aware of the problem, and tends to focus on features rather than speed for now
<adrien> of course, I wouldn't rate it as the most urgent thing =)
<gildor> adrien, thelema: but this is not a really big issue, as said before, a good dead code analysis could solve the problem (+ compression of the odn output)
<adrien> I need to move two libs to oasis and then maybe try lablgtk :P
<gildor> but I am unlikely moving setup.ml to native compilation, compiling anything will add many problems (see various issue with the myocamlbuild.ml compilation)
<adrien> ok; I had assumed it would have been quite easy
<gildor> adrien: doing it on Linux won't be a big deal, doing it on Windows/{mingw|cygwin|msvc} will require a lot more work
* gildor gtg
<adrien> well, ocamlnatjit might be the best way to go forward :P
<adrien> thanks, see you
mfp has joined #ocaml
wtetzner has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
<adrien> does the META plugin of oasis handle sub-packages?
zorun has quit [Ping timeout: 245 seconds]
<adrien> actually, could someone take a lookg at http://notk.org/~adrien/_oasis ? I'm getting this error when I run "oasis setup": E: OASISFileTemplate.AlreadyExists("src/META")
zorun has joined #ocaml
zorun has quit [Ping timeout: 248 seconds]
Anarchos has joined #ocaml
zorun has joined #ocaml
dnolen has joined #ocaml
larhat has quit [Quit: Leaving.]
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
Sysop_fb has joined #ocaml
ulfdoz has quit [Ping timeout: 252 seconds]
oriba has joined #ocaml
wagle has quit [Ping timeout: 260 seconds]
wtetzner has joined #ocaml
joewilliams_away is now known as joewilliams
ttamttam has joined #ocaml
yezariaely has joined #ocaml
milosn has quit [Ping timeout: 255 seconds]
ttamttam has quit [Read error: Operation timed out]
milosn has joined #ocaml
lpereira has quit [Ping timeout: 245 seconds]
dnolen has quit [Quit: dnolen]
testcocoon has quit [Quit: Coyote finally caught me]
testcocoon has joined #ocaml
wagle has joined #ocaml
Associat0r has quit [Quit: Associat0r]
Kakadu has quit [Quit: Konversation terminated!]
smango has joined #ocaml
<smango> This is probably a dumb question: If you want to add all the elements of a list, the way that requires the least typing is List.fold_left (+) 0 lst. What do I do to multiply them all? Using (*) instead of (+) is interpreted as a comment.
<smango> Or do I have to type out (fun x y -> x * y)
<Anarchos> smango use ( * ) with spaces
<_habnabit> ( * )
<smango> ah, thanks
<Anarchos> smango it is just a syntax problem, no need to currify functions :)
arubin has joined #ocaml
dnolen has joined #ocaml
yezariaely has quit [Quit: Leaving.]
joewilliams is now known as joewilliams_away
emmanueloga has joined #ocaml
<alpounet> this is so fucked up
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
wtetzner has quit [Remote host closed the connection]
dnolen has quit [Quit: dnolen]
philtor has joined #ocaml
avsm has joined #ocaml
ztfw has quit [Remote host closed the connection]
ygrek has joined #ocaml
jamii has joined #ocaml
art_int has quit [Quit: Konversation terminated!]
art_int has joined #ocaml
hto has quit [Quit: Lost terminal]
edwin has quit [Remote host closed the connection]
mjonsson has joined #ocaml
fraggle_laptop has joined #ocaml
jamii has quit [Remote host closed the connection]
fraggle_laptop has quit [Client Quit]
fraggle_ has joined #ocaml
fraggle_ has quit [Client Quit]
fraggle_ has joined #ocaml
fraggle_ has quit [Read error: Connection reset by peer]
fraggle_ has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
fraggle_ has joined #ocaml
ygrek has quit [Ping timeout: 248 seconds]
jimmyrcom has joined #ocaml
wtetzner has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
Amorphous has quit [Ping timeout: 258 seconds]
Amorphous has joined #ocaml
emmanuelux has quit [Remote host closed the connection]