thrasibule has quit ["No Ping reply in 90 seconds."]
thrasibule has joined #ocaml
julm_ has joined #ocaml
thelema_ has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
bluestorm has quit [Remote closed the connection]
thrasibule has quit ["No Ping reply in 90 seconds."]
thrasibule has joined #ocaml
julm_ is now known as julm
thrasibule has quit ["No Ping reply in 90 seconds."]
thrasibule has joined #ocaml
thrasibule has quit [Client Quit]
thrasibule has joined #ocaml
Asmadeus has joined #ocaml
bscofield has joined #ocaml
thrasibule has quit [Read error: 110 (Connection timed out)]
bscofield has quit []
tmaedaZ is now known as tmaeda
pr has quit ["leaving"]
mfp has quit [Read error: 101 (Network is unreachable)]
thrasibule has joined #ocaml
mfp has joined #ocaml
thelema_ has quit [Read error: 110 (Connection timed out)]
thrasibule_ has joined #ocaml
thrasibule has quit [Read error: 104 (Connection reset by peer)]
thrasibule has joined #ocaml
thrasibule_ has quit [Read error: 104 (Connection reset by peer)]
Camarade_Tux has quit [Read error: 60 (Operation timed out)]
Asmadeus has quit [Remote closed the connection]
thrasibule has quit [Read error: 104 (Connection reset by peer)]
thrasibule has joined #ocaml
thrasibule_ has joined #ocaml
thrasibule has quit [Read error: 104 (Connection reset by peer)]
thrasibule has joined #ocaml
thrasibule_ has quit [Read error: 104 (Connection reset by peer)]
thrasibule has quit [Read error: 60 (Operation timed out)]
caligula__ has joined #ocaml
yurug has quit [Read error: 60 (Operation timed out)]
yurug has joined #ocaml
caligula_ has quit [Read error: 110 (Connection timed out)]
<flux>
the bindings look very interesting
<flux>
they look more complete than the SDL bindings anyway, from the audio side
<flux>
doesn't come with META-file. oh well, you can't have it all ;)
sgnb` has quit [Read error: 104 (Connection reset by peer)]
sgnb` has joined #ocaml
M| has quit [Read error: 113 (No route to host)]
M| has joined #ocaml
seafood has joined #ocaml
Mr_Awesome has quit [Read error: 60 (Operation timed out)]
f[x] has joined #ocaml
onigiri has quit [Client Quit]
Yoric[DT] has joined #ocaml
seafood has quit []
f[x] has quit [Read error: 110 (Connection timed out)]
_zack has joined #ocaml
seafood has joined #ocaml
hkBst has joined #ocaml
_zack has quit ["Leaving."]
Beelsebob has joined #ocaml
Beelsebob has quit [SendQ exceeded]
Beelsebob has joined #ocaml
Narrenschiff has joined #ocaml
Beelsebob has quit [SendQ exceeded]
Beelsebob has joined #ocaml
bluestorm has joined #ocaml
Beelsebob has quit [SendQ exceeded]
Beelsebob has joined #ocaml
Narrenschiff has quit []
tmaeda is now known as tmaedaZ
mishok13 has joined #ocaml
Beelsebob has quit [SendQ exceeded]
pveber has quit [Remote closed the connection]
Beelsebob has joined #ocaml
bscofield has joined #ocaml
julm_ has joined #ocaml
bscofield has quit [Read error: 104 (Connection reset by peer)]
bscofield has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
julm_ is now known as julm
<flux>
please forgive my sins. I've used for twice today and while true once.
Camarade_Tux has joined #ocaml
f[x] has joined #ocaml
Beelsebob has quit [SendQ exceeded]
wzp has joined #ocaml
Beelsebob has joined #ocaml
<wzp>
hello, i'm learning caml atm
<wzp>
and i realised that 'variables' defined with let are exactly as normal variables
<wzp>
aren't they ?
<flux>
not really
<flux>
you can't change their value
<wzp>
let x = 2;; let x = x + 1;; there you go, i incremented x
<flux>
well, not really
<flux>
let x = 2;; let f () = Printf.printf "x = %d\n" x;; let x = x + 1;; f ();;
<bluestorm>
wzp: it's a re-definition of x, not a modification
<bluestorm>
(see flux example : values referring to the "old" x won't be modified)
<flux>
this can be compared to:
<flux>
let x = ref 2;; let f () = Printf.printf "!x = %d\n" !x;; x := !x + 1;; f ();;
<flux>
but that's an advanced subject :-)
<bluestorm>
wzp: wich learning document did you finally choose ?
<wzp>
oh, i see. well thanks, gotta keep reading
<wzp>
bluestorm: the recent french one
<wzp>
flux: but isn't that because x inside the function has nothing to do with the one outside it ?
<wzp>
because the*
seafood has quit []
<wzp>
i mean variables defined with let can't be used in functions and stuff, right ?
<flux>
wzp, what do you mean?
<flux>
wzp, the code works, doesn't it?
<wzp>
yep
<bluestorm>
wzp: actually I meant "recent on the web", it's a some-year-old book
<flux>
wzp, so it can use the variable x defined with let?
<wzp>
flux: yeah, can the function use the variable defined outside the function ?
<wzp>
it's value
<flux>
wzp, it can use whatever values defined before the definition of the function
<wzp>
bluestorm: oh ok
<flux>
it's called lexical scoping..
rwmjones_ is now known as rwmjones--lunch
Beelsebob has quit [SendQ exceeded]
<wzp>
flux: ok, but the function can't redefine the value with let, as it could outside the function, right ?
<flux>
wzp, indeed, a function cannot define anything outsite its scope
Beelsebob has joined #ocaml
bscofield has quit []
<flux>
only the function is defined
<wzp>
flux: ok, now i got it
<wzp>
i've been working with imperative languages quite much, so learning a functional language isn't that easy, i have to say :)
<wzp>
anyway thanks, that helped me a lot
<flux>
good luck :)
<wzp>
thanks :)
_andre has joined #ocaml
thelema has quit [Remote closed the connection]
thelema has joined #ocaml
_zack has joined #ocaml
<bluestorm>
flux: do you think PostGreSQL sequence functions would reasonably bring the needed expressivity, in absence of real "field default value" support ?
willb has quit [Read error: 110 (Connection timed out)]
thrasibule has quit [Read error: 110 (Connection timed out)]
f[x] has quit [Read error: 110 (Connection timed out)]
seafood has joined #ocaml
seafood has quit [Client Quit]
BiDOrD has quit [Connection timed out]
BiDOrD has joined #ocaml
bscofield has joined #ocaml
seafood has joined #ocaml
willb has joined #ocaml
rwmjones--lunch is now known as rwmjones_
|yurug| has joined #ocaml
bombshelter13_ has joined #ocaml
yurug has quit [Remote closed the connection]
|yurug| is now known as yurug
Camarade_Tux is now known as Evil_Tux
seafood has quit []
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
tmaedaZ is now known as tmaeda
Snark has joined #ocaml
yurug has quit [Remote closed the connection]
yziquel has joined #ocaml
Alpounet has joined #ocaml
newbie has joined #ocaml
<newbie>
hello. I have this problem when I do this: make opt to compile ocaml:
<newbie>
If your assembler produced syntax errors, it is probably unhappy with the
<newbie>
preprocessor. Check your assembler, or try producing arm.o by hand.
<newbie>
make[2]: *** [arm.o] Erreur 2
<newbie>
make[2]: quittant le répertoire « /root/ocaml/asmrun »
<newbie>
make[1]: *** [runtimeopt] Erreur 2
<newbie>
make[1]: quittant le répertoire « /root/ocaml »
<newbie>
make: *** [opt] Erreur 2
<newbie>
What can I do? It's built on orion arm
<Evil_Tux>
newbie: it's not 'make opt' directly and also, which linux distribution are you using ?
<newbie>
make world was ok. It's debian lenny. The code of ocaml comes from cvs
<newbie>
erreur = error
<Evil_Tux>
is that why you're not using debian packages?
* Evil_Tux
is french ;)
<bluestorm>
newbie: the error message seems to indicate that you're using an exotic build environment
<newbie>
en fait, j'essaie de compiler la version 3.0.0 de mldonkey. make marche mais pas make install. Il me dit qu'il ne trouve pas la commande "no"
<bluestorm>
(your platform's assembler is not what the ocaml build system is used to)
<newbie>
Donc, je me suis dit que ca pouvait venir de ocaml
<Evil_Tux>
I don't think so
<bluestorm>
"no" is not an ocaml command, as far as I know
<Evil_Tux>
let me check if I can make install mldonkey
<newbie>
mldonkey downlod ocaml 3.10, et comme ce n'est pas la dernière, j'ai décidé de compiler le dernier ocaml par cvs.
<newbie>
mldonkey downloads*
<newbie>
thanks you bluestorm for this info
<Evil_Tux>
bah, mldonkey's configure tries to download ocaml
<newbie>
I don't know from what package "no" is coming from.
<Evil_Tux>
seems it's not happy with 3.11
<Evil_Tux>
and I don't have 3.10 anymore
<newbie>
On ubuntu 9.10, there is no problem to compile mldonkey 3.0.0
tmaeda0 has joined #ocaml
<Evil_Tux>
I guess it has an older ocaml
<Evil_Tux>
debian only moved recently
<Yoric[DT]>
iirc, Ubuntu 9.10 is still 3.10
<newbie>
how can I know in which package is contained the command "no"
<newbie>
?
<bluestorm>
newbie: I'm not sure that's related to that "no" command
<Yoric[DT]>
Debian command?
<Evil_Tux>
I don't think there is such a command
<newbie>
yes, debian command
<Yoric[DT]>
You could try with "packages.debian.org" (or "packages.ubuntu.com")
<Evil_Tux>
(at all)
<Evil_Tux>
newbie: do you have an ocaml installed system-wide? if so, which?
<Evil_Tux>
installed properly for me, and I don't have a "no" command
<newbie>
the answers of make install (for mldonkey) : [12:34:35] <newbie> no -inline 10 -I src/utils/cdk -I src/utils/lib -I src/utils/ocamlrss -I src/utils/xml-light -I src/utils/net -I tools -I src/daemon/common -I src/daemon/driver -I src/utils/mp3tagui -I src/config/unix -I src/networks/bittorrent -c src/utils/lib/syslog.ml [12:34:35] <newbie> make: no : commande introuvable = unfoundable
<newbie>
Evil_Tux: Which commandline can answer your question?
<Evil_Tux>
newbie: is it the "first" line like that?
<Evil_Tux>
newbie: run 'ocaml -version'
<newbie>
The Objective Caml toplevel, version 3.11.2+dev3 (2009-07-22)
<newbie>
<newbie>
yes, it is the first line like that
<Evil_Tux>
newbie: and do you get the line you pasted *immediately* after you start 'make' (or gmake)?
<Evil_Tux>
my guess/bet is that 'no' is actually no... found
<newbie>
no, make finished whitout error
tmaeda has quit [Read error: 110 (Connection timed out)]
<Evil_Tux>
oh, yeah, it wants to use ocamlopt.opt and you said that that didn't work when you compiled ocaml (that's make opt)
<newbie>
it's the result of make install
<newbie>
the problem is that make opt failed too
<Evil_Tux>
newbie: do you have an 'mlnet' file in the mldonkey source folder?
<newbie>
i look
<newbie>
no, I have a mlnet.byte
<newbie>
and also mlnet.byte.static
<Evil_Tux>
I think that it tries to build a native-code version when you 'make install' (because of make's dependencies)
<newbie>
in the 3.0.0 version
<Evil_Tux>
newbie: remove the ocaml mldonkey compiled, and get the debian packages, if they install ocaml 3.11(.1), edit config/Makefile, line 3800 and change the values to match the version of ocaml you have
<Evil_Tux>
(you *now* have)
xevz_ is now known as xevz
<newbie>
make uninstall failed :(
jimmyb2187 has left #ocaml []
<Evil_Tux>
it only installs a few files in /usr/(local/)bin
<Evil_Tux>
mlnet, mlslsk, mldc, mlbt and a few others which names I've forgotten
<Evil_Tux>
(and I think that in your case it didn't manage to install anything)
jimmyb2187 has joined #ocaml
<newbie>
do you think it's possible to install debian package from sid (to have 3.0.0 version) on a lenny distro?
<Evil_Tux>
I don't use debian or any debian derivative so I have absolutely no idea but in general it's a (very) bad idea to mix things
<Evil_Tux>
(did I say it was a very very bad idea?)
<newbie>
So, i don't understand :"remove the ocaml mldonkey compiled, and get the debian packages,"
<Yoric[DT]>
Evil_Tux: actually, it's often feasible.
<Evil_Tux>
you'd have two possibilities: compile by yourself/with mldonkey (but don't use cvs! use 3.11.1) and if you get an error, track it down, or you can also use godi to compile it
<newbie>
because I am not interested in the debian package of my lenny, because it's mldonkey 2.9.5
<Evil_Tux>
newbie: or actually you could get the binary directly from mldonkey.sf.net, it's statically linked and should run on your computer too
<Evil_Tux>
Yoric[DT]: he, I've grown paranoid in this regard ;p
<bluestorm>
(although I'm not completely fond of the TAOCP things)
<Alpounet>
bluestorm, if you blog soft is good enough, any category/tag generates a RSS feed ; thus, creating an OCaml tag/category would be very practical, you would then just have to give the url of the feed to gildor.
<Alpounet>
(that's what most of ocaml planet bloggers do, by the way)
<Evil_Tux>
crap, missed zack =/
<Evil_Tux>
Yoric[DT]: anything about tar support in batteries?
<Yoric[DT]>
Nothing so far.
<Yoric[DT]>
For the moment, we should find the time to push all the bugfixes.
ergodick has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
ergodick has left #ocaml []
chrisbrown has quit [Remote closed the connection]
bscofield has quit []
f[x] has joined #ocaml
<bluestorm>
oh and gildor : macaque isn't in ocamlcore Darcsweb
<bluestorm>
I suppose this is because I use a darcs-2 repo format
onigiri has joined #ocaml
<bluestorm>
it isn't a hard problem (I could setup an independent darcsweb somewhere if needed), but I just wanted to check I hadn't missed anything obvious
<bluestorm>
("oh but you just have to edit the .../repos.list file")
ulfdoz has joined #ocaml
lutter has joined #ocaml
neoark_ has joined #ocaml
neoark_ is now known as Asmadeus
<yziquel>
hi. i'm trying to package ocaml-R, and the build system issues the following command, which doesn't seem to link dynamically to the R libs. http://ocaml.pastebin.com/m72f87164 As i'm familiar with this way to build bindings, i'd appreciate some advice.
<yziquel>
as i'm not familiar...
Asmadeus_ has joined #ocaml
Asmadeus has quit ["cya !"]
Asmadeus_ is now known as Asmadeus
Yoric[DT] has joined #ocaml
bombshelter13__ has joined #ocaml
bombshelter13_ has quit [Connection timed out]
bscofield has joined #ocaml
<mdmkolbe>
Why does ocaml have no first-class constructors? Is there some technical reason or a design justification?
<thelema>
I think some minor technical reason - maybe the distinction between [type t=S of int * int] and [type t = S of (int * int)]
<flux>
I think I've heard reasons like that it complicates code. caml light did have first-class constructors.
<flux>
also I suppose it would be tricky with polymorphic variants to support it
<flux>
there exists a language extension that provides similar capabilities, iirc
<mdmkolbe>
thelema: I understand the type distinction. In memory "S of int * int" should be (tag,int,int) while "S of (int * int)" is (tag,ptr-to-pair) and (pair-tag,int,int)
<thelema>
yes
<thelema>
I guess you could have a constructor function for each that corresponds to the represnetation (curried vs. pair)
<mdmkolbe>
flux: what would be trickey about the polymorphic varients? I would have thought it would be no more trickey than any other polymorphic function
wzp has quit ["leaving"]
david_ has joined #ocaml
david__ has joined #ocaml
david__ has quit [Client Quit]
david_ is now known as Submarine
<flux>
mdmkolbe, maybe I haven't thought it through, maybe there is no trickiness :)
<flux>
pft, my META-file for sfmlml doesn't quite work
Beelsebob has quit ["Leaving."]
Beelsebob has joined #ocaml
Narrenschiff has joined #ocaml
<flux>
I don't think I'm supposed to add linkopts = "-cclib /path/to/lib/libsfwmlml-audio.a" to the META file
<flux>
hey, it works when I put it into the "archive"
Beelsebob has quit [SendQ exceeded]
Beelsebob has joined #ocaml
wzp has joined #ocaml
slash_ has joined #ocaml
fschwidom has joined #ocaml
Anarchos has joined #ocaml
<flux>
bluestorm, so did macaque have a darcs repository?
brendan has quit ["leaving"]
Snark has quit ["Ex-Chat"]
brendan has joined #ocaml
julm has quit [Remote closed the connection]
julm has joined #ocaml
<flux>
bluestorm, I think support for DEFAULT value would be useful for other cases too, not just for SERIAL. you did know you can actually say DEFAULT in an INSERT and it puts in the default value? (instead of just omitting the field)
Yoric[DT] has quit [Read error: 60 (Operation timed out)]
Yoric[DT] has joined #ocaml
<bluestorm>
flux: yes, but that would need typing support, to ensure users don't specify DEFAULT values for field wich do not have a default specified
<bluestorm>
so I'm going for the lower-hanging fruits right now
Yoric[DT] has quit [Read error: 104 (Connection reset by peer)]
<bluestorm>
mdmkolbe: I've written a type-conv/camlp4 extension to generate constructor functions with type declarations
ulfdoz has quit [Read error: 110 (Connection timed out)]
<flux>
actually I think maybe the issue can be worked around with a recent postgresql, with INSERT .. RETURNING .., but I've never used it so I'm not sure
<flux>
but I'd expect it should be able to return the newly inserted id
<flux>
but I suppose that isn't supported yet?
<bluestorm>
isn't
<bluestorm>
I'm not too fond of explicitely adding support for PostGreSQL-specific features
<bluestorm>
though I'm building on PG'OCaml, I mainly use PostGreSQL decent optimisation framework, and peoples might consider porting Macaque to another SQL server in the future
<bluestorm>
(quite inorically, PostGreSQL type system, wich I really appreciate when using PostGreSQL, is a real hindrance in Macaque development)
Submarine has quit [Remote closed the connection]
david_ has joined #ocaml
david_ has quit [Read error: 104 (Connection reset by peer)]
Submarine has joined #ocaml
_andre has quit ["leaving"]
lagenar has joined #ocaml
lagenar has quit [Client Quit]
f[x] has quit [Read error: 60 (Operation timed out)]
fschwidom has quit [Remote closed the connection]
Evil_Tux has quit ["leaving"]
adrien has joined #ocaml
adrien is now known as CapitalisTux
Submarine has quit ["Leaving"]
jimmyb2187 has left #ocaml []
bscofield is now known as bscofield|away
Anarchos has quit ["Vision[0.9.7-H-090423]: i've been blurred!"]
bombshelter13__ has quit [Client Quit]
Yoric[DT] has quit ["Ex-Chat"]
sramsay has joined #ocaml
Beelsebob has left #ocaml []
Narrenschiff has quit []
bscofield|away is now known as bscofield
bscofield is now known as bscofield|away
Alpounet has quit ["Leaving"]
yziquel has quit [Ping timeout: 180 seconds]
hkBst has quit [Read error: 104 (Connection reset by peer)]
sramsay has quit ["Leaving"]
willb has quit [Read error: 110 (Connection timed out)]
Modius has quit ["I'm big in Japan"]
ozzloy has quit ["leaving"]
ozzloy has joined #ocaml
bluestorm has quit [Remote closed the connection]
Modius has joined #ocaml
bscofield|away is now known as bscofield
yziquel has joined #ocaml
<yziquel>
http://ocaml.pastebin.com/m59ee5e9 having a problem with -rectypes. the toploop complains while it seems to me that I've put -rectypes everywhere i could when compiling. Any ideas?
<yziquel>
moreover "Unit R imports from ," is rather weird to me: from what does it import???
tmaeda0 is now known as tmaedaZ
rwmjones has quit [Read error: 110 (Connection timed out)]
rwmjones_ has quit [Read error: 113 (No route to host)]