talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
derek_c has joined #ocaml
ben_zen has joined #ocaml
ttamttam has joined #ocaml
Yoric has joined #ocaml
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
eikke has joined #ocaml
hkBst has joined #ocaml
eni has quit [Ping timeout: 248 seconds]
ygrek has joined #ocaml
ben_zen has quit [Quit: WHEEEEEEEEEEEEEEEE! *flop*]
Kakadu has joined #ocaml
osnr has quit [Quit: Leaving.]
vbmithr has quit [Remote host closed the connection]
gnuvince has quit [Ping timeout: 252 seconds]
mika1 has joined #ocaml
jpdeplaix has quit [Read error: Operation timed out]
jpdeplaix` has joined #ocaml
derek_c has quit [Quit: leaving]
Zeev has quit [Read error: Connection reset by peer]
raichoo has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
hkBst has quit [Remote host closed the connection]
hkBst has joined #ocaml
sgnb has quit [Remote host closed the connection]
eikke has quit [Ping timeout: 264 seconds]
eikke has joined #ocaml
cdidd has quit [Ping timeout: 245 seconds]
eikke has quit [Ping timeout: 246 seconds]
ollehar has joined #ocaml
mcclurmc has quit [Ping timeout: 248 seconds]
Snark has quit [Ping timeout: 276 seconds]
ontologiae has joined #ocaml
Snark has joined #ocaml
Snark has quit [Ping timeout: 240 seconds]
eikke has joined #ocaml
ggole has joined #ocaml
justdit has quit [Ping timeout: 276 seconds]
Snark has joined #ocaml
eikke has quit [Ping timeout: 260 seconds]
Yoric has quit [Ping timeout: 264 seconds]
jbrown has joined #ocaml
<gasche>
adrien: I think fasta's behavior is not acceptable
<gasche>
regardless of whether the critics have objective value, we want an IRC chan to be a comfortable place for everyone
<gasche>
and fasta obviously does not understand or want to practice how to not be rude
<gasche>
this chan must be comfortable to anyone discussing OCaml topic; to fasta's credit, he does not mess with beginners, but the problem still arises with people willing to discuss their project
<gasche>
(eg. the merlin devs he harassed and who were subsequently worried to discuss more on the chan)
Tobu has quit [Ping timeout: 240 seconds]
testcocoon has quit [Quit: Coyote finally caught me]
justdit has joined #ocaml
testcocoon has joined #ocaml
mort___ has joined #ocaml
q66 has joined #ocaml
<adrien_oww>
as I said elsewhere, I need to read the backlog; I'm fairly tired so I'll only do it tonight when I'm back home
<adrien_oww>
however I agre that everyone should be able to enjoy being on the channel
sgnb has joined #ocaml
<adrien_oww>
and however on that, that's not a reason to not think (plus a +b is not something I enjoy doing=
<adrien_oww>
)
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
talzeus has quit [Read error: Connection reset by peer]
talzeus_ has joined #ocaml
mort___ has quit [Quit: Leaving.]
everyonemines has quit [Quit: Leaving.]
mcclurmc has joined #ocaml
mort___ has joined #ocaml
<gasche>
adrien: I would be fine with +q
mort___ has quit [Quit: Leaving.]
* ggole
makes do with ignore
cdidd has joined #ocaml
Yoric has joined #ocaml
eikke has joined #ocaml
talzeus_ has quit [Remote host closed the connection]
chambart has joined #ocaml
talzeus has joined #ocaml
justdit has quit [Quit: Lost terminal]
samebchase has quit [Remote host closed the connection]
beckerb has joined #ocaml
vbmithr has joined #ocaml
samebchase has joined #ocaml
Zeev has joined #ocaml
craigs42 has joined #ocaml
ttamttam has quit [Quit: ttamttam]
ttamttam has joined #ocaml
ttamttam has quit [Client Quit]
ollehar has quit [Ping timeout: 246 seconds]
zpe has joined #ocaml
Neros has joined #ocaml
ygrek has quit [Ping timeout: 252 seconds]
ollehar has joined #ocaml
_andre has joined #ocaml
jcao219 has joined #ocaml
hkBst has quit [Ping timeout: 260 seconds]
hkBst has joined #ocaml
talzeus has quit [Remote host closed the connection]
BlankVerse has joined #ocaml
BlankVerse has left #ocaml []
BlankVerse has joined #ocaml
<BlankVerse>
is there a std lib data structure to store a set/list of key,value pairs in ocaml?
<BlankVerse>
and access the value using the key
<darkf>
Map
<darkf>
or Hashtbl
cago has joined #ocaml
<ggole>
Or List (with assoc and friends)
jcao219 has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
ttamttam has joined #ocaml
cross_ has quit [Remote host closed the connection]
Drup has joined #ocaml
<BlankVerse>
how do I call Option.may?
<ggole>
It's not in the standard distribution: you'll need to install batteries
<Kakadu>
I'm struggling of errror about `currval of sequence is not yet defined in this session`
<Drup>
I can answer that
<Kakadu>
postgres users recommend to add RETURNING keyword at the end os insert but macaque is macaque
<Kakadu>
s/os/is/
<Drup>
Kakadu: change your pool size to 1
<Kakadu>
Drup: it is 1
craigs42 has quit []
<Kakadu>
Drup: any ideas else ?
<Drup>
Kakadu: what are you creating a new connexion after the first query ?
<Kakadu>
I can't reuse existing one. Types don't like each other
<Drup>
why*
<Drup>
use the same one
jack has joined #ocaml
jack is now known as Guest91392
<Guest91392>
hello :)
<Drup>
Kakadu: AFAIK, for a currval to work, the last query for the currval need to be on the same connection
<Kakadu>
Drup: This expression has type 'a Db.Lwt_PGOCaml.t = 'a PGOCaml_generic.Make(Db.Lwt_thread).t but an expression was expected of type 'b Query.Db.t = 'b PGOCaml.t
<Kakadu>
It is when I write lwt dbh = Db.connect() in Query.value dbh .....
<Guest91392>
sorry
<Guest91392>
what are you working on ?
<Guest91392>
you have a type problem
<Drup>
Kakadu: show me your Db module
<Guest91392>
'b Query.Db.t = 'b PGOCaml.t
<Guest91392>
i haven't db
<Drup>
Guest91392: not you :p
gautamc has quit [Read error: Connection reset by peer]
<Guest91392>
because i started ocaml one month ago and i'm going to manage it in a native type that i m working
<avsm>
ugh. fixed in opam-trunk, but there won't be a release until thomas is back from vacation in a couple of weeks
<avsm>
a clean reinstall fixes it
<avsm>
(sorry)
<flux>
sounds.. annoying. where is the trunk?
<avsm>
it's not too bad: git clone git://github.com/OCamlPro/opam
<avsm>
make && make install, and the update should work
<avsm>
you just need to replace the opam binary
<avsm>
in homebrew, brew —HEAD does the trick iirc
skchrko has joined #ocaml
<flux>
seems to go forward again, thanks
<Kakadu>
interesting, can I put opam repository for lablqt to github pages?..
<flux>
also opam could use some parallelizing love I think :)
<flux>
although package managers might be something you don't want to 'mess with' in that way
<flux>
kakadu, yours or qt?
<flux>
if [ ! -e /home/flux/src/ext/ocaml/lablqt/qml/test/.depend ]; then touch -ne /home/flux/src/ext/ocaml/lablqt/qml/test/.depend; fi
<flux>
touch: invalid option -- 'n'
<flux>
failed to run over X (over network), it seems to have tried doing to do some opengl stuff. I'll try it at home at some time. at least it compield etc :)
<Kakadu>
flux: I have seen something like this on very old Mac. with GNU coreutils version 5
<flux>
kakadu, this is gnu coreutils 8.20
<flux>
kakadu, is qml-dev the branch to go with?
<Kakadu>
yes
<Kakadu>
me also have 8.20
<flux>
kakadu, does our touch have -n? mine doesn't.
<avsm>
flux: you can pass -j to opam to do parallel installs atm. it also can parallelise across multiple compiler switches
<avsm>
it doesn't mess with the build system, so individual installs wll likely be serial
<Kakadu>
Oh
<Kakadu>
I can't really remember what I tried to achive with this option:)
raichoo has quit [Quit: leaving]
<Kakadu>
flux: probably its better to remove "-ne" from configure
ttamttam has quit [Quit: ttamttam]
<Kakadu>
interesting, maybe Ubuntu where I have tested it requires -ne?
<Kakadu>
And I also have a man who built it on Ubuntu and he wasn't confused by touch
breakds has quit [Quit: Konversation terminated!]
<flux>
avsm, hmm, opam --help doesn't show -j?
<flux>
avsm, or for which tool was that?
<ggole>
Speaking of opam, is there a 32-bit release?
<flux>
but I need to be moving and making some food (bbq!)
Yoric has quit [Ping timeout: 245 seconds]
<thelema>
ggole: you may be able to compile a 32-bit release from source
<ggole>
It requires a more recent version than I have install, unfortunately
<thelema>
ggole: ocamlbrew can easily install a new version of ocaml
<ggole>
I guess I could build ocaml from source, and then build opam from that
<ggole>
Hmm, not familiar with it
<ggole>
I'll have a look
<thelema>
it can even comile opam for you
<ggole>
This looks useful, thanks.
BlankVerse has quit [Remote host closed the connection]
guest309 has joined #ocaml
guest309 has quit [Client Quit]
jack_ has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
<ggole>
That was less painful that I was expecting.
agarwal1975 has joined #ocaml
agarwal1975 has quit [Client Quit]
<avsm>
flux: opam install --help
<avsm>
the -j flag is only for the install subcommand, so "opam install foo -j 10"
<flux>
ah, ok
agarwal1975 has joined #ocaml
<flux>
as it says in the documentation, but that fragment cannot be found with regexp -j :)
<adrien_oww>
I was under the impression that there was a function in the stdlib to get the list of files in a directory but I can't find it anymore
<thelema>
adrien_oww: only as an array
<thelema>
val readdir : string -> string array
<thelema>
Sys.readdir
<adrien_oww>
ah, in Sys, thanks :-)
def-lkb has joined #ocaml
ggole has quit []
mort___ has joined #ocaml
mort___ has left #ocaml []
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
darkf has quit [Quit: Leaving]
zpe has joined #ocaml
zpe has quit [Ping timeout: 248 seconds]
mika1 has quit [Quit: Leaving.]
agarwal1975 has quit [Quit: agarwal1975]
Yoric has joined #ocaml
ggole has joined #ocaml
chambart has quit [Ping timeout: 240 seconds]
eikke has joined #ocaml
raichoo has joined #ocaml
eikke has quit [Ping timeout: 256 seconds]
ontologiae has quit [Quit: WeeChat 0.4.0]
ontologiae has joined #ocaml
eni has joined #ocaml
Drup has quit [Remote host closed the connection]
letrec has quit [Ping timeout: 264 seconds]
Drup has joined #ocaml
pango_ has joined #ocaml
pango has quit [Read error: Operation timed out]
ttamttam has joined #ocaml
chambart has joined #ocaml
beckerb has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 260 seconds]
osnr has quit [Quit: Leaving.]
mcclurmc has quit [Ping timeout: 248 seconds]
Kakadu has quit []
zpe has joined #ocaml
chambart has quit [Ping timeout: 256 seconds]
eikke has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
pango_ is now known as pango
emmanuelux has joined #ocaml
<pippijn>
is there a common name for "fun f x -> f x; x"?
<thelema>
pippijn: tap
<thelema>
available in batteries
ontologiae has quit [Quit: WeeChat 0.4.0]
<pippijn>
ok, cool
ontologiae has joined #ocaml
chambart has joined #ocaml
chambart has quit [Ping timeout: 256 seconds]
eikke has quit [Ping timeout: 256 seconds]
jack_ has left #ocaml []
jack_ has joined #ocaml
zpe has joined #ocaml
Zeev has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
osnr has quit [Quit: Leaving.]
ygrek has joined #ocaml
mcclurmc has joined #ocaml
zorun has joined #ocaml
Zeev has quit [Read error: Connection reset by peer]
Zeev has joined #ocaml
zpe has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 252 seconds]
Kakadu has joined #ocaml
<j0sh>
is there any way to avoid duplicate (variant) type definitions in a method signature and body?
<j0sh>
s/method/module
<thelema>
no
<thelema>
the entire variant must be spelled out exactly the same in both
<thelema>
(unless you want to hide it in the signature)
<j0sh>
the variant should be visible from code using the module so i guess it cant be hidden
ontologiae has quit [Quit: WeeChat 0.4.0]
<ggole>
Can't you just name them?
<thelema>
ggole: not if this is the one place he's declaring them
<thelema>
That said, yes, it's possible to move such a type declaration out to a separate file, and only give a .ml for that file, preventing the duplication
<ggole>
Oh, I see
<Kakadu>
flux: Do you want some kind of information from me about OCaml and QtQuick?
<thelema>
but if you want the type declared in a file with a .mli, you have to repeat it
<Kakadu>
flux: I think that I will worry about your success in nearest future and I'm looking a way to avoid it ;)
tane has joined #ocaml
dsheets has joined #ocaml
skchrko has quit [Quit: Leaving]
ollehar has joined #ocaml
ttamttam has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
ygrek has joined #ocaml
jcao219 has joined #ocaml
chambart has joined #ocaml
ygrek has quit [Ping timeout: 246 seconds]
gnuvince has quit [Ping timeout: 260 seconds]
Snark has quit [Quit: leaving]
breakds has joined #ocaml
zpe has joined #ocaml
wmeyer has joined #ocaml
<wmeyer>
hello
<companion_cube>
world
ollehar has quit [Ping timeout: 256 seconds]
<Kakadu>
salut
<Kakadu>
wmeyer: You can congratulate me. I probably found 1st user for my ocaml+qtquick )
zpe has quit [Ping timeout: 256 seconds]
jknick has joined #ocaml
Zeev has quit [Read error: Connection reset by peer]
<wmeyer>
Kakadu: nice
Zeev has joined #ocaml
zpe has joined #ocaml
jack_ has quit [Read error: Connection reset by peer]
ollehar has joined #ocaml
bitbckt has joined #ocaml
zpe has quit [Ping timeout: 246 seconds]
jpdeplaix` has quit [Ping timeout: 246 seconds]
_andre has quit [Quit: leaving]
jcao219 has quit [Ping timeout: 256 seconds]
wmeyer` has joined #ocaml
wmeyer has quit [Ping timeout: 256 seconds]
gnuvince has joined #ocaml
jpdeplaix` has joined #ocaml
zpe has joined #ocaml
IbnFirnas has joined #ocaml
eikke has joined #ocaml
jlouis has quit [Remote host closed the connection]
zpe has quit [Ping timeout: 256 seconds]
osa1 has joined #ocaml
<osa1>
where can I find OCaml syntax reference, in a BNF-like format?
osa1 has quit [Quit: Konversation terminated!]
eni has quit [Ping timeout: 256 seconds]
raichoo has quit [Quit: leaving]
ggole has quit []
eikke has quit [Ping timeout: 256 seconds]
Yoric has quit [Ping timeout: 246 seconds]
tane has quit [Quit: Verlassend]
smondet has quit [Ping timeout: 264 seconds]
Kakadu has quit []
breakds has quit [Remote host closed the connection]