<cranmax2>
Hi, I have seen the popularity contest of OCaml installations in Ubuntu and Debian, it seems that there is more people using Debian. So I'm just curious about which operating system uses to develop in OCaml? Thanks
<cranmax2>
Thanks, I'm actually using ubuntu. Yes, the popularity contest of ubuntu it's messy, I have compared the ocaml package because the opam package not appears.
<cranmax2>
Here is the graph showing the opam installations in Debian, from 2013 until now:
<cranmax2>
It would be nice also to see the opam installations in Arch, until now, here in this channel 2/3 uses Arch
agravier has joined #ocaml
<mengu>
i use mac os
<boojinks>
gentoo, currently
<boojinks>
although realistically the choice of distro mostly comes down to choice of package manager in most instances
Merv__ has quit [Remote host closed the connection]
<Leonidas>
cranmax2: I don't get why the choice of distribution is important to you?
<Leonidas>
"Well I'm glad you are happy behind your walls, but outside these walls where some care about api documentation I'm afraid this is not the case."
<Leonidas>
hahaha, dbunzli :D
cggong has joined #ocaml
cggong has quit [Client Quit]
<cranmax2>
Leonidas I'm happy now, I don't see walls around me, I believe you are asking for help
<Leonidas>
cranmax2: I was citing dzunzli from discuss.ocaml.org
<cranmax2>
Okey, thanks
<zozozo>
cranmax2: actually, opam is quite awesome at making the distro a lot less relevant for ocaml developpement
shinnya has quit [Ping timeout: 246 seconds]
enterprisey has quit [Remote host closed the connection]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
mengu has joined #ocaml
agravier has joined #ocaml
mengu_ has quit [Ping timeout: 255 seconds]
_andre has quit [Quit: leaving]
jnavila has quit [Remote host closed the connection]
<lobo>
i've got ocp-index 1.1.6 and ocp-browser 1.0.0 in a 4.04.1 switch installed. but there is no ocp-browser binary. does anyone else have this issue?
<lobo>
reinstall/uninstall/install of the packages didn't fix it. maybe i'll just give it a try in a new switch
<zozozo>
lobo: have you run "eval `oam config env`" after switching ?
<zozozo>
s/oam/opam
shinnya has joined #ocaml
<lobo>
zozozo: yes, this was in my main switch. just realized that ocp-browser was gone after a few opam update/upgrade cycles during the last two or three weeks
<zozozo>
hm.. that's strange
florian_ has joined #ocaml
<florian_>
I am using atdgen generated json for communication between ocaml and python programs, but have an issue with the generated code
<florian_>
why is this example https://pastebin.com/r8GtW9dZ translated to {'cmd' : [... ]} and not {'cmd' : { ... }}
<copy`>
do you have lambda-term installed? iirc, ocp-browser is part of ocp-index and compiled when lambda-term (which is optional) is available
<florian_>
Why a list and not an object
<mrvn>
Is that suppsoed to be ocaml code?
<lobo>
copy`: lambda-term is installed. i could reproduce it with a fresh 4.04.1 switch and ocp-index 1.1.5. i just did a "opam install ocp-index ocp-browser" after installing. and i ran eval prior to that
<copy`>
Try reinstalling it and then ocp-index
<mrvn>
florian_: "[ `Connection_Open of connection_open ]" is not a list type, its a type list. :)
<florian_>
mrvn: is that directed at my question?
<lobo>
copy`: wait. my fault. ocp-browser is there in the new switch
<mrvn>
florian_: or better a constructor list
<lobo>
copy`: i've pinned the devel repo with 1.1.6 in my main switch. maybe there is an issue at the moment with it. sorry for the noise :D
enterprisey has quit [Remote host closed the connection]
<mrvn>
# type cmd = [ | Connection_Open of connection_open ];;
<mrvn>
Error: Syntax error
<mrvn>
florian_: polymorphic variant types have [], normal variants do not.
argent_smith has quit [Quit: Leaving.]
Simn has quit [Read error: Connection reset by peer]
<florian_>
mrvn: so what is the correct synatx for atd, that i end up with an object and not a list?
<mrvn>
florian_: you don't have a list and you don't want an object.
<mrvn>
what you have is a (polymophic) variant.
ryanartecona has quit [Quit: ryanartecona]
<mrvn>
florian_: don't think your problem is the ocaml code.
<florian_>
mrvn: i cant really follow you. the constructor list that is generated gets translated to an array in json, but i was expecting an object instead
<mrvn>
florian_: Maybe. But it's not because the msg type is a list. A json array must be how constructors are encoded.
<mrvn>
florian_: probably as [ <id of constructor> <arg1> <arg2> ... ]
<mrvn>
florian_: Constructor arguments have no names so an object would make no sense.
<florian_>
mrvn: i think i get it now, thanks a lot :)
<mrvn>
I wonder how it encodes: type msg = Connection_Open of { protocol : string; version : int; }
<mrvn>
That subelty is probably lost in the translation
<florian_>
i will test it right now
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<florian_>
i am using ocaml 4.02.3 so i dont have inline records
ia0 has quit [Quit: reboot]
ia0 has joined #ocaml
cggong has quit [Quit: cggong]
govg has quit [Ping timeout: 258 seconds]
cggong has joined #ocaml
agravier has quit [Quit: agravier]
marsam has quit [Ping timeout: 240 seconds]
agravier has joined #ocaml
agravier has quit [Client Quit]
agravier has joined #ocaml
agravier has quit [Client Quit]
florian_ has quit [Remote host closed the connection]
marsam has joined #ocaml
moei has quit [Quit: Leaving...]
ygrek has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
nightmared has quit [Ping timeout: 255 seconds]
cggong has quit [Quit: cggong]
Merv__ has joined #ocaml
Merv_ has quit [Ping timeout: 255 seconds]
marsam has quit [Ping timeout: 240 seconds]
slack3 has quit [Remote host closed the connection]
slack4 has joined #ocaml
moei has joined #ocaml
enterprisey has joined #ocaml
madroach has quit [Remote host closed the connection]
madroach has joined #ocaml
boojinks has quit [Quit: Lost terminal]
enterprisey has quit [Remote host closed the connection]
tormen_ has quit [Ping timeout: 255 seconds]
tormen has joined #ocaml
kakadu has quit [Remote host closed the connection]