mfp changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.11.2 released | Inscription for OCaml Meeting 2010 is opened http://wiki.cocan.org/events/europe/ocamlmeetingparis2010
pavel` has joined #ocaml
pavel` has left #ocaml []
ikaros_ has quit [Quit: Leave the magic to Houdini]
Drk-Sd has quit [Quit: manger]
boscop has quit [Read error: Connection reset by peer]
seafood has joined #ocaml
Modius__ has quit [Quit: I'm big in Japan]
Modius has joined #ocaml
Modius has quit [Max SendQ exceeded]
Modius has joined #ocaml
pimmhogeling has quit [Ping timeout: 256 seconds]
cognizant-cog has joined #ocaml
seafood has quit [Quit: seafood]
_unK has quit [Remote host closed the connection]
poet has joined #ocaml
<poet> how do you indicate epsilon in ocamllex?
<poet> *ocamlyacc
jonafan_ has joined #ocaml
jonafan has quit [Ping timeout: 260 seconds]
quidnunc has quit [Remote host closed the connection]
maskd has quit [Quit: ๏̯͡]
seafood has joined #ocaml
enthymene has quit [Quit: rcirc on GNU Emacs 23.1.1]
<poet> is there a way to list the funcitons provided in a bytecode file?
<orbitz> poet: you try loading it in toplevel and doing module M = Foo;;
seafood has quit [Quit: seafood]
seafood has joined #ocaml
mutew has joined #ocaml
<mutew> Does anyone here have a decent implementation for balaned binary search trees in ocaml??
<thelema> mutew: batteries borrows camomile's avl tree library
<thelema> mutew: and set/map in stdlib use balanced binary trees
<thelema> avl with delta=2, iirc
<mutew> thelema: Any place I can see the code listing?
enthymene has joined #ocaml
thelema has quit [Read error: Connection reset by peer]
thelema has joined #ocaml
cognizant-cog has quit [Quit: ChatZilla 0.9.86 [Firefox 3.5.8/20100214235838]]
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
threeve has quit [Quit: threeve]
poet has quit [Remote host closed the connection]
ulfdoz has joined #ocaml
yakischloba has quit [Quit: Leaving.]
mutew has quit [Ping timeout: 246 seconds]
seafood has quit [Quit: seafood]
derdon has joined #ocaml
thrasibule has quit [Ping timeout: 252 seconds]
Yoric has joined #ocaml
derdon has quit [Quit: derdon]
enthymene has quit [Quit: g'night freenode]
f[x] has joined #ocaml
ulfdoz has quit [Ping timeout: 248 seconds]
ttamttam has joined #ocaml
Yoric has quit [Quit: Yoric]
ikaros has joined #ocaml
albacker has joined #ocaml
rwmjones has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
Chile has joined #ocaml
_zack has joined #ocaml
Yoric has joined #ocaml
naufraghi has joined #ocaml
<naufraghi> hello! I'm trying to build batteries (both master and v1.0.1) but I have an error
<flux> naufraghi, try reinstalling camomile
<flux> (rebuilding first of course ;-))
<naufraghi> I have 0.7.2 installed according to MacPorts
<naufraghi> I'll try a reinstall!
Alpounet has quit [Ping timeout: 256 seconds]
<naufraghi> thanks, the problem was a broken camomile install!
<flux> glad to help. ocaml is very picky about versions. so if you install lib A with ocaml version X and then upgrade ocaml to version Y, it is extremely likely that you need to recompile the lib again against the new ocaml version
maskd has joined #ocaml
ASpiwack has joined #ocaml
Yoric_ has joined #ocaml
Yoric_ has quit [Client Quit]
Yoric has quit [Ping timeout: 252 seconds]
<flux> hmph. What dark magic does libcurses-ocaml use to actually linka gainst lib(n)curses? I can't find a reference to the library anywhere :-o
<flux> (I'm trying to compile a version again ncursesw for utf8 support, it appears that's required)
<mrvn> I don't think it links against it. It just says you have to when you use the module.
<mrvn> At least for the .a case.
<flux> hmm
<flux> well, it doesn't appear like I'm doing that either..
<flux> but someshow curses gets stuck in the last stage in gcc
<mrvn> What build system does it use?
<flux> it uses OCamlMakefile, as do I
<mrvn> In my Makefile for libaio-ocaml I have "CLIBS = aio
<mrvn> % ldd /usr/lib/ocaml/3.11.1/stublibs/dllaio_stubs.so
<mrvn> libaio.so.1 => /lib/libaio.so.1 (0x00007ff89a1af000)
<mrvn> And the cmxa contains -laio -laio_stubs
<flux> well, the Makefile for curses-ocaml doesn't have CLIBS and its CFLAGS has only -W -Wall
<mrvn> What does string ncurses.cmxa | grep ncurses say?
<mrvn> Anything in the META file about the lib?
munga has joined #ocaml
<flux> strings curses.cmxa | grep curses -> .-lcurses_stubs@@
<flux> nothing in the META-file
<mrvn> Sounds to me like a bug. Maybe try adding CLIBS=ncurses to the Makefile and rebuild.
<flux> but it works!
<flux> and I can't figure out why
<flux> ..so I could link it against ncursesw instead
<mrvn> is there a libncurses.a it links against?
<flux> the Makefile has only a few mentions of curses, nothing that refers to a library
<mehdid> there is libcurses_stubs.a
<flux> does that mean it automatically uses /usr/lib/libcurses.a?
<mrvn> beats me.
<mrvn> The debian package Depends on the dynamic lib so I guess that uses the .so file
<flux> well, I tried to stick CLIBS = ncursesw there, and now it links to both ncursesw and regular curses
<flux> curiously no erors appear, but it doesn't look like it gets any better utf8 support either
<flux> redhat's ocaml-ncurses links against ncursesw, gotta check out what's different :)
<mehdid> flux: it automatically uses the /usr/lib/libncurses.a because "ocamlobjinfo curses.cma | grep lncurses" shows "-lncurses -lcurses_stubs", iiuc
<flux> mehdid, but how does that -lncurses gets stuck inside curses.cma?
<flux> I'm actually starting to think it's an accident, due to name chosen for the module.. :-)
<mehdid> flux: using -cclib?
<mehdid> actually, -custom -cclib
<flux> hmm. I keep recompiling it with make QUIET= but I cannot see other than -cclib -lcurses_stubs
Alpounet has joined #ocaml
<flux> no -lncurses or -lcurses there, other than in -lcurses_stubs
<mehdid> debian's version is 1.0.3
<mehdid> maybe the difference is there
<mehdid> flux: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml-curses.git;a=blob;f=CHANGES;h=cf23e7005f7a8e73fd2db3fb968032f5160861ec;hb=HEAD
slash_ has joined #ocaml
<mehdid> the third item explains the difference
<flux> but.. how does the current version work for me? the -lcurses appears to come from thin air..
<flux> ah, atleast the natively compiled binary doesn't link
<flux> only the .cma works
Yoric has joined #ocaml
<mehdid> indeed... strange
<flux> oh well. I'll just use regular curses and work around the refresh problem I'm having :)
Yoric_ has joined #ocaml
<mehdid> flux: looks like rwmjones also encountred the same problem: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550377
<mehdid> (but it doesn't explain why it works in bytecode)
Yoric has quit [Ping timeout: 252 seconds]
Yoric_ is now known as Yoric
_unK has joined #ocaml
slash_ has quit [Quit: Lost terminal]
valross has quit [Quit: Ex-Chat]
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
fraggle_ has quit [Quit: -ENOBRAIN]
fraggle_ has joined #ocaml
munga has quit [Ping timeout: 276 seconds]
pimmhogeling has joined #ocaml
_andre has joined #ocaml
smimou has quit [Ping timeout: 246 seconds]
munga has joined #ocaml
<mrvn> make himm tell himself via public twitter message
<mrvn> ups
bzzbzz has joined #ocaml
Associat0r has joined #ocaml
Associat0r has quit [Client Quit]
demitar has joined #ocaml
Pepe_ has quit [Ping timeout: 260 seconds]
threeve has joined #ocaml
Drk-Sd has joined #ocaml
Pepe_ has joined #ocaml
jonafan_ is now known as jonafan
Tournevyks has joined #ocaml
_unK has quit [Remote host closed the connection]
ASpiwack has quit [Quit: Leaving]
Tournevyks has quit [Client Quit]
boscop has joined #ocaml
joewilliams_away is now known as joewilliams
munga has quit [Ping timeout: 248 seconds]
yakischloba has joined #ocaml
ikaros has joined #ocaml
tmaedaZ is now known as tmaeda
pimmhogeling has quit [Ping timeout: 272 seconds]
derdon has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
tmaeda is now known as tmaedaZ
gorgonite has joined #ocaml
smimou has joined #ocaml
ikaros_ has joined #ocaml
ikaros has quit [Ping timeout: 246 seconds]
ttamttam has quit [Quit: Leaving.]
munga has joined #ocaml
smimou has quit [Ping timeout: 246 seconds]
mutew has joined #ocaml
mutew has quit [Client Quit]
pimmhogeling has joined #ocaml
albacker has quit [Quit: Leaving]
Yoric has quit [Quit: Yoric]
ulfdoz has joined #ocaml
smimou has joined #ocaml
_unK has joined #ocaml
mutew has joined #ocaml
pimmhogeling has quit [Ping timeout: 252 seconds]
iratsu has joined #ocaml
mutew has quit [Read error: Operation timed out]
ikaros_ has quit [Quit: Leave the magic to Houdini]
Drk-Sd has quit [Quit: {'EXIT', Drk-Sd, "bye"}]
DaveS has joined #ocaml
Drk-Sd has joined #ocaml
_zack has quit [Quit: Leaving.]
pad has joined #ocaml
|Jedai| has joined #ocaml
Jedai has quit [Ping timeout: 272 seconds]
<thelema> batteries 1.1.0pre2 available for download at http://github.com/thelema/batteries-included/downloads
<flux> is there a changelog?
<thelema> since 1.0.1: support for non-threaded compilation, import PMap/PSet into Map/Set, so using them is like Hashtbl.t, bunch of fixes
<thelema> still poor docs and usage instructions... :(
<thelema> officially, the changelog is 'git log'
<Camarade_Tux> why not git log > ChangeLog.git.txt or something similar (with better ranges)?
<flux> or shortlog
<flux> (I tried it for the first time, and I found my name with it! woohoo, I'm famous!)
<thelema> git log v1.0.1..v1.1.0pre2 >> ChangeLog.git.txt
<thelema> ??
<Camarade_Tux> oh, I didn't know about shortlog
<thelema> I don't see it good to commit such a file to git...
<thelema> and it'd take work to add it to the auto-generated tarball git-archive produces
<Camarade_Tux> could be ok for a mail annoucement or similar
<thelema> lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
<thelema> this looks pretty
<Camarade_Tux> yellow and green? only flashing red on fluo green background is ok -_-
<thelema> :P
gorgonite_ has joined #ocaml
munga has quit [Ping timeout: 245 seconds]
enthymene has joined #ocaml
elehack has joined #ocaml
_andre has quit [Quit: Lost terminal]
BigJ has quit [Quit: Leaving]
nvme has joined #ocaml
<nvme> whats the command that allows you to use arrow keys and stuff with runlevel ?
bzzbzz has quit [Quit: leaving]
<flux> rlwrap ocaml or ledit ocaml
Submarine has joined #ocaml
rwmjones has quit [Ping timeout: 272 seconds]
ttamttam has joined #ocaml
ttamttam has quit [Client Quit]
BigJ has joined #ocaml
rwmjones has joined #ocaml
gorgonite_ has left #ocaml []
nvme has quit [Quit: Leaving]
_zack has joined #ocaml
Yoric has joined #ocaml
caligula__ has joined #ocaml
caligula_ has quit [Ping timeout: 252 seconds]
Yoric has quit [Ping timeout: 260 seconds]
elehack has quit [Read error: Operation timed out]
elehack has joined #ocaml
hkarim has joined #ocaml
hkarim has quit [Quit: Leaving]
_zack has quit [Quit: Leaving.]
elehack has quit [Quit: Goodbye...]
ulfdoz has quit [Read error: Operation timed out]
Yoric has joined #ocaml
DaveS has quit [Quit: leaving]
derdon has quit [Quit: derdon]
dark has joined #ocaml
tmaedaZ is now known as tmaeda
Amorphous has quit [Read error: Connection reset by peer]
Drk-Sd has quit [Remote host closed the connection]
Drk-Sd has joined #ocaml
yziquel has joined #ocaml
Amorphous has joined #ocaml
thrasibule has joined #ocaml
tmaeda is now known as tmaedaZ
Yoric has quit [Quit: Yoric]