gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
alexyk has quit [Quit: alexyk]
alexyk has joined #ocaml
alexyk has quit [Client Quit]
<ezyang> Does batteries have an Ubuntu package?
<ezyang> ooh, it does
boscop has joined #ocaml
infoe has joined #ocaml
mnabil_ has joined #ocaml
tautologico has quit [Quit: tautologico]
<ezyang> Is the myocamlbuild thingy still necessary?
<ezyang> (for batteries)
jonrafkind has joined #ocaml
infoe has quit [Read error: Connection reset by peer]
infoe has joined #ocaml
infoe has quit [Read error: Connection reset by peer]
infoe has joined #ocaml
infoe1 has joined #ocaml
infoe has quit [Ping timeout: 240 seconds]
ftrvxmtrx has quit [Ping timeout: 265 seconds]
companion_cube has quit [Ping timeout: 264 seconds]
shm has quit [Ping timeout: 272 seconds]
ftrvxmtrx has joined #ocaml
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
shm has joined #ocaml
alexyk has joined #ocaml
shm has quit [Ping timeout: 250 seconds]
shm has joined #ocaml
mnabil_ has quit [Ping timeout: 240 seconds]
shm has quit [Ping timeout: 250 seconds]
alexyk has quit [Read error: Connection reset by peer]
sgnb has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
joewilliams is now known as joewilliams_away
boscop_ has joined #ocaml
Amorphous has quit [Ping timeout: 272 seconds]
boscop has quit [Ping timeout: 240 seconds]
alexyk has quit [Read error: Connection reset by peer]
<hcarty> ezyang: What is the "myocamlbuild thingy"?
<hcarty> ezyang: It does provide a sample myocamlbuild.ml file, which should come with the Ubuntu package
Amorphous has joined #ocaml
myu2 has joined #ocaml
drunK has quit [Remote host closed the connection]
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
infoe1 has quit [Read error: Connection reset by peer]
infoe1 has joined #ocaml
alexyk has quit [Quit: alexyk]
alexyk has joined #ocaml
shm has joined #ocaml
groovy2shoes has joined #ocaml
groovy2shoes has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
groovy2shoes has quit [Changing host]
groovy2shoes has joined #ocaml
shm has quit [Ping timeout: 260 seconds]
alexyk has quit [Ping timeout: 240 seconds]
shm has joined #ocaml
alexyk has joined #ocaml
shm has quit [Ping timeout: 272 seconds]
eye-scuzzy has quit [Ping timeout: 260 seconds]
eye-scuzzy has joined #ocaml
groovy2shoes has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
shm has joined #ocaml
shm has quit [Ping timeout: 272 seconds]
groovy2shoes has quit [Read error: Connection reset by peer]
alexyk has quit [Quit: alexyk]
__marius__ has joined #ocaml
Derander_ has quit [Quit: ZNC - http://znc.sourceforge.net]
Derander has joined #ocaml
LeNsTR has joined #ocaml
LeNsTR has quit [Read error: Connection reset by peer]
LeNsTR has joined #ocaml
LeNsTR has quit [Ping timeout: 246 seconds]
LeNsTR has joined #ocaml
Snark has joined #ocaml
jonrafkind has quit [Ping timeout: 250 seconds]
ygrek has joined #ocaml
edwin has joined #ocaml
ulfdoz has joined #ocaml
<gildor> edwin: I hit update on the admin web pages and I can confirm, this is a bug
<gildor> edwin: the people that get unix_status = A after you were added to existing project
<gildor> edwin: you and two other people has the same problem
<gildor> edwin: could you fill a bug report against site admin project or directly against fusionforge BTS
<edwin> gildor: ok I will
<edwin> gildor: I'm also looking at the 2 line projectname bug, looks like a CSS issue, I'm experimenting with something now (it has fixed height in pixels)
ygrek has quit [Ping timeout: 240 seconds]
<gildor> edwin: I was thinking about using some kind of text-flow attributes for the 2 lines issue
<edwin> gildor: there's an easier fix, add &nbsp instead of spaces in project description
<edwin> of course won't help if window is resized too small and it would really need 2 lines
<gildor> edwin: good catch, send me the patch, we will test it
<edwin> sure, just let me write it first (I was hacking the html with firebug)
<ezyang> hcarty: The file you have to place in your directory for Batteries to work. I guess it does.
<edwin> gildor: also any reason why the ocamlcore theme has a fixed-width page? (960px)
<edwin> gildor: sent a suggested patch for that too
init1 has joined #ocaml
Yoric has joined #ocaml
<gildor> edwin: fixed width -> this is quite standard for website
<gildor> edwin: mainly because it is easier to design a theme that don't extend
<edwin> I know our site is like that too, that doesn't mean I particularly like it
<edwin> does the nbsp fix work?
<gildor> edwin: I don't yet know, during WE I am only sporadically in front of my computer
* gildor has 2 children to take care of
<edwin> btw my ssh login works now
<edwin> thanks
<gildor> edwin: I will apply it when I will have time, thanks for it
<gildor> edwin: ssh -> this is a real FusionForge bug I think, it was tricky to find and I think it is a good one to submit to FF
<edwin> what is the git+ssh URL though?
<edwin> I only see https one
Yoric has quit [Quit: Yoric]
<gildor> edwin: yet another "display" bug
<edwin> git+ssh://ssh.ocamlcore.org//srv/scm/gitroot/ocamljudy/ocamljudy.git?
<gildor> edwin: sorry to ask but can you also open a bug about this
<edwin> sure
<gildor> the URL you give me is the best one, though it won't be the one displayed by the forge
<gildor> (but the URL displayed by the forge is a link to this one)
* gildor gtg
Yoric has joined #ocaml
jamii_ has joined #ocaml
Edward__ has joined #ocaml
Edward__ has quit [Client Quit]
LeNsTR has quit [Read error: Connection reset by peer]
ikaros has joined #ocaml
shm has joined #ocaml
shm has quit [Ping timeout: 240 seconds]
shm has joined #ocaml
ccasin has joined #ocaml
escaped has joined #ocaml
noplot has joined #ocaml
<noplot> this is not really ocaml related, but what would be a nice way to encode mutually recursive functions with just let rec? (the let rec ... and ... and ... of ocaml); i could pass the other functions as arguments but it doesn't seem nice
<thelema> noplot: let rec is designed to do this without passing arguments
<thelema> let rec is_odd x = is_even (x-1) and is_even x = x = 0 || is_odd (x-1)
<noplot> thelema: i'm not using ocaml right now, i have to encode this in a language that does not have "and" but just "let rec"
<escaped> hello, i need to compile megam on osx. i installed ocaml using brew in /usr/local/.
<escaped> i modified the makefile to point WITHCLIBS to the right dir: WITHCLIBS =-I /usr/local/lib/ocaml/caml
<escaped> when i try to compile i get the folowing error:
<escaped> ld: library not found for -lstr
<escaped> collect2: ld returned 1 exit status
<escaped> File "fastdot_c.c", line 1, characters 0-1:
<escaped> Error: Error while building custom runtime system
<escaped> So he connot find the str-lib. If i understand things right it misses these files: /usr/local/lib/ocaml/str.[a|cma|cmi|cmx|cmxa|cmxs|mli]
<escaped> How do i set the include-path in the make file to find these libs in /usr/local/lib/ocaml/?
<escaped> Or is the error comming from sth. else?
<noplot> what i was suggesting was: let rec is_odd is_even x = is_even is_odd (x-1) ; let rec is_even is_odd x = (x = 0) || is_odd is_even (x-1)
<thelema> noplot: ah, then you'll need either pre-declarations or passing arguments
<mrvn> noplot: that needs let rec ... and ...
<noplot> mrvn: i don't have it
<noplot> thelema: i don't have predeclarations either :(
<mrvn> *scrolling up*
<mrvn> noplot: you need to pass the other function as argument.
<noplot> yes that's what i was saying :( but i was looking for maybe a better way
<thelema> noplot: I don't think there is one
<mrvn> let rec is_odd is_even x = is_even (x-1);;
<mrvn> let rec is_even x = (x = 0) || is_odd is_even (x-1);;
<mrvn> let is_odd = is_odd is_even;;
<thelema> noplot: unless your language provides some other way to access values not yet defined.
<mrvn> noplot: there definetly isn't one. That is the point of the let rec ... and ...
bbc has joined #ocaml
<noplot> thelema: no basically it's just lambda calculus
<noplot> mrvn: yes i'll do that thanks
<mrvn> noplot: let (is_odd, is_even) = let rec is_odd is_even x = is_even (x-1) in let rec is_even x = (x = 0) || is_odd is_even (x-1) in (is_odd is_even, is_even);;
<mrvn> to avoid the shadowing
<mrvn> noplot: as a sidenode: the code is buggy, is_odd 0 should give false and not underflow.
<bbc> hello, the linux ocaml interpreter is quite annoying because I can't get back a previous command (by hitting the up arrow key for example)
<bbc> is there any way do have this feature? it works well on windows
<adrien> bbc: "ledit" or "rlwrap"
* adrien still need to try the lwt-way
<mrvn> emacs, vim, other toplevels
<thelema> adrien: I just tried it and it's pretty easy to get running (under ubuntu), just apt-get the lwt package and (since I already had findlib loaded in my ocamlinit) #require "lwt.top"
<adrien> it's... different
<adrien> hmm, there are some things I'd change: first, the completion for keywords, if it doesn't also do identifiers it's not very useful, then backspace removes whole words and C-BS only one char, I'd swap that and C-w doesn't work, C-c doesn't either, and
<adrien> typing "42;;" then hitting backspace removes the "42" here but leaves me with ";;"
<thelema> adrien: odd, I get normal backspace behavior
<thelema> what term are you using?
<adrien> (u)xterm
<bbc> adrien, mrvn: thank you, i'm not keen on vim toplevel, i'll give ledit or rlwrap a try
mnabil_ has joined #ocaml
<adrien> thelema: and which one are you using?
oriba has joined #ocaml
escaped has left #ocaml []
<thelema> adrien: gnome-terminal
<adrien> thelema: is backspace working even without lwt?
<thelema> yes
rks has quit [Quit: foo]
<adrien> I get the same thing with the linux console: backspace works fine with and without lwt, so the terminal is probably already handling BS
jamii_ has quit [Quit: Leaving]
edwin has quit [Remote host closed the connection]
<thelema> adrien: try to set backspace key to generate ASCII DEL
<adrien> where?
<thelema> in your term's config
LeNsTR has joined #ocaml
oriba has quit [Quit: Verlassend]
drunK has joined #ocaml
sgnb has joined #ocaml
orbitz has quit [Read error: Operation timed out]
orbitz has joined #ocaml
<adrien> thelema: yeah, that helps, the number of configuration changes to do is getting annoying however
almaisan-away is now known as al-maisan
LeNsTR has quit [Read error: Connection reset by peer]
al-maisan is now known as almaisan-away
rks has joined #ocaml
ccasin has quit [Quit: Leaving]
jonrafkind has joined #ocaml
duper has joined #ocaml
yurug has quit [Remote host closed the connection]
mfp has quit [Quit: Leaving]
mnabil_ has quit [Ping timeout: 240 seconds]
mnabil_ has joined #ocaml
avsm has joined #ocaml
infoe1 has quit [Ping timeout: 276 seconds]
vpalle has joined #ocaml
bbc has quit [Quit: leaving]
coucou747 has quit [Quit: 0x2a]
jonrafkind has quit [Read error: Operation timed out]
shm has quit [Ping timeout: 255 seconds]
<flux> hmm, I wonder why my ocsigen site failed to start at boot, even though ocsigen itself started fine
<flux> /etc/init.d/ocsigen stop and start fixed it
<flux> oh well, perhaps I'll debug it again in a year or two when I need to reboot the virtual machine ;)
ulfdoz has quit [Ping timeout: 240 seconds]
avsm has quit [Quit: Leaving.]
infoe1 has joined #ocaml
infoe1 is now known as infoe
coucou747 has joined #ocaml
ulfdoz has joined #ocaml
<sgnb> flux: launching ocsigen manually with the -V option might help
infoe has quit [Read error: Connection reset by peer]
infoe has joined #ocaml
mfp has joined #ocaml
Yoric has quit [Quit: Yoric]
edwin has joined #ocaml
<flux> sgnb, well, the issue only came when booting the system, not when starting the service manually. so perhaps I could hack the init scripts to do ovsigen -V and restart the system. but I'd rather not :)
<flux> (I guess they could even now reveal some problem, but I'm doubtful..)
bbc has joined #ocaml
shm has joined #ocaml
ygrek has joined #ocaml
shm has quit [Ping timeout: 250 seconds]
shm has joined #ocaml
joewilliams_away has quit [*.net *.split]
theDroggl has quit [*.net *.split]
<noplot> hi, is there a way to trace a failwith? (index out of bounds)
joewilliams_away has joined #ocaml
theDroggl has joined #ocaml
<flux> compile with -g, export OCAMLRUNPARAM=b
<noplot> thanks
almaisan-away is now known as al-maisan
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
al-maisan is now known as almaisan-away
<flux> ocsigen doesn't support scgi yet, does it?
myu2 has quit [Remote host closed the connection]
almaisan-away is now known as al-maisan
init1 has quit [Quit: Quitte]
ygrek has quit [Ping timeout: 240 seconds]
al-maisan is now known as almaisan-away
edwin has left #ocaml []
Snark has quit [Quit: Ex-Chat]
almaisan-away is now known as al-maisan
vpalle has quit [Ping timeout: 240 seconds]
vpalle has joined #ocaml
rks has quit [Quit: foo]
noplot has quit [Ping timeout: 246 seconds]
al-maisan is now known as almaisan-away
tautologico has joined #ocaml
oriba has joined #ocaml
Yoric has joined #ocaml
vpalle has quit [Ping timeout: 240 seconds]
ftrvxmtrx has quit [Quit: Leaving]