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)
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)