adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.06.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.06/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
sonologico has quit [Ping timeout: 248 seconds]
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
sonologico has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
borgtu_ has quit [Remote host closed the connection]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0_ has joined #ocaml
infinity0 is now known as Guest9568
Guest9568 has quit [Killed (tolkien.freenode.net (Nickname regained by services))]
infinity0_ is now known as infinity0
sepp2k has quit [Quit: Leaving.]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Read error: Connection reset by peer]
spew has joined #ocaml
baboum has quit [Quit: WeeChat 2.0.1]
silver has quit [Read error: Connection reset by peer]
sh0t has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 240 seconds]
cbot has quit [Ping timeout: 240 seconds]
nullifidian has quit [Ping timeout: 248 seconds]
sonologico has quit [Quit: WeeChat 1.9.1]
sz0 has quit [Quit: Connection closed for inactivity]
spew has quit [Remote host closed the connection]
spew has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
pierpa has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
VermillionAzure has quit [Ping timeout: 240 seconds]
jao has quit [Ping timeout: 240 seconds]
VermillionAzure has joined #ocaml
FreeBirdLjj has joined #ocaml
igitoor has quit [Ping timeout: 240 seconds]
igitoor has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
VermillionAzure has quit [Ping timeout: 256 seconds]
govg has joined #ocaml
igitoor has quit [Changing host]
igitoor has joined #ocaml
cbot has joined #ocaml
VermillionAzure has joined #ocaml
spew has quit [Read error: Connection reset by peer]
jbrown has quit [Ping timeout: 248 seconds]
<companion_cube> rgrinberg: well, now I use curly :)
ygrek has joined #ocaml
whoman has quit [Read error: Connection reset by peer]
whoman has joined #ocaml
pierpa has quit [Quit: Page closed]
nullifidian has joined #ocaml
mbuf has joined #ocaml
VermillionAzure has quit [Ping timeout: 248 seconds]
MercurialAlchemi has joined #ocaml
VermillionAzure has joined #ocaml
flodin has quit [Remote host closed the connection]
Algebr has joined #ocaml
barcabuona has joined #ocaml
ygrek has quit [Ping timeout: 268 seconds]
chenglou has quit [Ping timeout: 265 seconds]
chenglou has joined #ocaml
cbot has quit [Quit: Leaving]
olle has joined #ocaml
olle has quit [Remote host closed the connection]
remexre has quit [Quit: WeeChat 2.0.1]
argent_smith has joined #ocaml
Haudegen has joined #ocaml
mk9 has joined #ocaml
AltGr has joined #ocaml
clockish has quit [Quit: bye]
clockish has joined #ocaml
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
Algebr has quit [Remote host closed the connection]
zolk3ri has joined #ocaml
xfbs has joined #ocaml
xfbs_ has joined #ocaml
xfbs has quit [Ping timeout: 265 seconds]
wklm has joined #ocaml
wklm has quit [Quit: leaving]
Onemorenickname has joined #ocaml
dedgrant_ has joined #ocaml
<Onemorenickname> hello
<Onemorenickname> i'm looking up cmdliner, and more particularly, how you can read from the standard input with it
<Onemorenickname> if any one got a clue, i'm taking
<Onemorenickname> it seems like it exists, but isn't documented
<flux> onemorenickname, hmm, should cmdliner read standard input in some scenario?
<Onemorenickname> flux, by "how", do you mean, "which interface it should expose", or "what behavior is expected from the end user" ?
<flux> I mean cmdliner is a tool to convert command line arguments into ocaml data structures. how does reading stdin enter into the picture?
dedgrant has quit [Ping timeout: 260 seconds]
<Onemorenickname> oh, I see
<Onemorenickname> i regularly see stdin as an argument to commands
<Onemorenickname> echo, cat, and so on
<flux> usually - in place of a filename, yes
<flux> (or in some cases when a tool doesn't support that convention, straight /dev/stdin in unix-like enviroments)
<Onemorenickname> yep, i thought cmdliner might reproduce that behavior
<flux> does cmdliner know about filenames at all?
<Onemorenickname> i don't know which kind thereof you are referring to, but cmdliner does have several utilities to deal with filenames
<Drup> those are simple extra combinators
<flux> truthfully it's been a couple years I last used cmdliner so I don't quite remember :)
<Drup> they don't use anything special
<Drup> you could redefine them by yourself, you can do the same for stdin
cuicui has joined #ocaml
<Onemorenickname> indeed, but i'd like to use stuff that already exists and already deals with edge-cases that I might not know about
<Onemorenickname> (and that is already well-integrated into the tools I'm already using, etc.)
<flux> one cannot always assume stdin is a valid input for a program, so some special support would be needed
<flux> bonus: handle gracefully ./random_access_stdin - < file :-)
<flux> probably a variant of Arg.file that would also support stdin would be ok. similarly a variant supporting stdout.
<flux> type filename = Filename of string | StandardIO ?
<flux> Arg.stdio_file ?
<flux> debatable bonus: support special syntax for indicating a name for stdio, ie. -:foo.txt
<flux> but maybe not, nobody supports that
<flux> (actually stdin_file and stdout_file would be needed to separate between variants that check for existence of the file)
<flux> a super bonus variant would actually return an open file handle, closing the small gap between checking the file's existence and then later on re-opening it
<reynir> "-" is a valid file name
<rgrinberg> companion_cube: glad it works for you. feel free to help me maintain it. I'm a bit busy on dune these days
<flux> reynir, sure, but you can always write ./-. but indeed by default it should not use - as a file name for that reason as well.
<reynir> flux: ! Thanks, I didn't think of that trick before!
<flux> also ./* is a safe way to provide list of files in the current directory, even if they begin with - :)
ziyourenxiang has joined #ocaml
zpe has joined #ocaml
mk9_ has joined #ocaml
mk9_ has quit [Client Quit]
mk9 has quit [Ping timeout: 240 seconds]
mk9 has joined #ocaml
raduom has joined #ocaml
<orbifx[m]> Has anyone come across anything like OPAM but for C?
VermillionAzure has quit [Ping timeout: 240 seconds]
BitPuffin has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
<rgrinberg> Can't opam work for C? It's just a matter of publishing packages to it
malc_ has joined #ocaml
<orbifx[m]> rgrinberg: thought about that, it's an option
mfp has joined #ocaml
mk9 has quit [Quit: mk9]
antismap has quit [Ping timeout: 246 seconds]
mk9 has joined #ocaml
<rgrinberg> companion_cube: do you really need a makefile to generate those qtests - incredibly lazy ;)
shinnya has joined #ocaml
TarVanimelde has joined #ocaml
kakadu has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
_andre has joined #ocaml
<flux> apparently opam2 is designed to be language-agnostic
<flux> orbifx[m], apt-get :)
<flux> but actually I've read about a similar package manager for c++
<orbifx[m]> there is conan, but a quick glance shows that it's using CMake
<orbifx[m]> apt repositories tend to be OS related
mpenet has joined #ocaml
haesbaert has quit [Remote host closed the connection]
Haudegen has quit [Remote host closed the connection]
silver has joined #ocaml
nahra has quit [Remote host closed the connection]
nahra has joined #ocaml
malc_ has quit [Ping timeout: 260 seconds]
nahra has quit [Remote host closed the connection]
<Armael> orbifx[m]: nix, maybe?
mpenet has left #ocaml ["ERC (IRC client for Emacs 26.0.50.2)"]
<orbifx[m]> Isn't that a whole OS?
<silver> nix is package manager, nixos is os
andreas_ has joined #ocaml
cuicui has quit [Remote host closed the connection]
<orbifx[m]> silver: ah cool. So it's possible to run nix in user space?
xfbs_ has quit []
spew has joined #ocaml
ziyourenxiang has quit [Quit: Leaving]
<silver> theoretically yes, but I didn't try it myself, and it seems like there are some caveats
spew has quit [Read error: Connection reset by peer]
kamog has joined #ocaml
govg has quit [Ping timeout: 260 seconds]
ziyourenxiang has joined #ocaml
govg has joined #ocaml
mbuf has quit [Quit: Leaving]
malc_ has joined #ocaml
xfbs has joined #ocaml
shinnya has quit [Ping timeout: 252 seconds]
argent_smith has quit [Quit: Leaving.]
xfbs has quit []
sapristi has joined #ocaml
<simpson> orbifx[m]: Nix is a user-space daemon; NixOS is Linux and systemd with Nix on top.
<simpson> Running Nix in locations other than /nix is fine but you'll have to rebuild *everything*. It kind of sucks. You shouldn't use Nix on machines which you don't own or have root.
<Armael> umm, I thought one of the purpose of nix was precisely for users (who do not have root) to be able to install stuff in their home
<Armael> (and you can have a shared nix store if you want to not duplicate too much stuff)
<orbifx[m]> thanks silver and simpson
<simpson> Armael: That's a way to do it, but it's the slow unfun way. The purpose of Nix is to be a POLA (capability-safe) package manager; it's not quite cap-safe but it's far closer than other package managers.
jbrown has joined #ocaml
<companion_cube> rgrinberg: what else should I use? :p
<rgrinberg> companion_cube: ocaml of course
<companion_cube> meh
<companion_cube> I'm not on a war on make, personnally
<rgrinberg> It's a war on Windows ;)
<rgrinberg> And bsd
<companion_cube> hu
<companion_cube> I mean, can you even install on windows without cygwin, realistically?
<companion_cube> can you install opam?
<simpson> Who are the players in the War on Windows? I got the impression that MS was the main antagonist when it came to cross-OS portability.
<companion_cube> they're providing an ubuntu compat layer, these days, I think
<adrien> "compat layer"
<companion_cube> tbh I'd agree with removing the makefiles
<companion_cube> but I have more pressing things to do, like having the tests work properly
argent_smith has joined #ocaml
sepp2k has joined #ocaml
moei has joined #ocaml
cuicui has joined #ocaml
sz0 has joined #ocaml
malc_ has quit [Remote host closed the connection]
sapristi has quit [Quit: Leaving]
freyr has joined #ocaml
sh0t has joined #ocaml
Onemorenickname has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
FreeBirdLjj has joined #ocaml
Onemorenickname has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 256 seconds]
zpe has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 268 seconds]
freyr has quit [Quit: Lost terminal]
argent_smith has quit [Quit: Leaving.]
<rgrinberg> Dune already takes you so close to portability. It's a shame to spoil it like that
<rgrinberg> companion_cube: does removing fallback and doing a clean build help?
<rgrinberg> I'm not sure why you have fallback there in the first place btw.
<companion_cube> it's on a clean build
<companion_cube> without fallback
<companion_cube> yeah nevermind it
<companion_cube> rgrinberg: I don't think I have any windows user (that wouldn't use cygwin)
<companion_cube> I mean that'd be cool, but… who writes oCaml on windows ?!
<rgrinberg> As I've learned recently, quite a lot of people :/
zpe has joined #ocaml
sh0t has quit [Read error: Connection reset by peer]
sh0t has joined #ocaml
* adrien waves at companion_cube
<jpdeplaix> :D
authchir has joined #ocaml
<authchir> Hello, I get an error while installing topkg.0.9.1 with opam: The compilation of topkg failed at "ocaml pkg/pkg.ml build --pkg-name topkg --dev-pkg false".
<authchir> ### stderr ### # File "./pkg/pkg.ml", line 29, characters 5-10: # Error: Unbound module Topkg
<authchir> How come the compilation of topkg cannot find the module Topkg?
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
dhil has joined #ocaml
argent_smith has joined #ocaml
argent_smith has quit [Quit: Leaving.]
TC01 has joined #ocaml
<zozozo> quick opam2 question, what's the correct syntax for a test dependency with required version (in an opam file): "dolmen" {test && = "dev"} works with opam 2.0~beta4 but not opam2.0~beta6
<zozozo> ah, single '&' it seems :p
<jpdeplaix> yes
zpe has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 240 seconds]
Onemorenickname_ has joined #ocaml
zolk3ri has joined #ocaml
govg has quit [Ping timeout: 256 seconds]
govg has joined #ocaml
Onemorenickname has quit [Ping timeout: 240 seconds]
JeanMax has quit [Ping timeout: 256 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
dhil has joined #ocaml
mk9 has quit [Ping timeout: 256 seconds]
xfbs has joined #ocaml
georgiy has joined #ocaml
<georgiy> hey folks i'm not sure if i'm in the right place but can anyone help me build tezos on fedora
<georgiy> ?
<reynir> georgiy: I haven't tried building it, but perhaps someone else can help you if you provide more information with the problems you're facing :-)
<georgiy> basically everything was going fine until i ran make build-deps
<georgiy> then make build-deps started complaining about pkgconfig being missing
xfbs has quit []
<georgiy> so i tried oinstalling pkgconfig
<georgiy> both via yum and dnf
<georgiy> both as root and via sudo
<georgiy> not that there should be any difference between any of them
cuicui has quit [Quit: leaving]
xfbs has joined #ocaml
<zozozo> georgiy: and did you succedd installing pkgconfig ?
<georgiy> anyway when i ask dnf to install pkgconfig the package that it installed instead was something called pkgconf-pkg-config which i assume provides similar functionality
<georgiy> anyway
<georgiy> my theory
<georgiy> and ;let me know if i'm wrong here
<georgiy> is that make build-deps expects the package to be called pkgconfig instead of pkgconf-pkg-config
<georgiy> and because it's called something different to build script gets confused
<georgiy> so then i thought i'd edit the makefile
<Drup> pkgconfig is more of a standard C thing
<georgiy> and i saw that it called this other build script which either sourced or directly executed a bunch of others
<Drup> it's not really ocaml related, it seems weird you have issue with that
<georgiy> if my understanding of the build scripts was correct i've narrowed the problem dpown to the following three lines in /scripts/install_build_deps.sh
<georgiy> opam list --installed depext || opam install depext
<georgiy> opam install $packages --deps-only
<georgiy> opam depext $packages
<georgiy> yeah i'm not sure if it's ocaml related or not
<georgiy> i actually first tried getting help over at #tezos but thus far no luck
<georgiy> hence my boss suggested i try both here and #opam as tezos is built with ocaml
<georgiy> anyway the reason that i think it's one of those three lines in /scripts/install_build_deps.sh is that the previous lines of it seem to have nothing to do with pkg config
<georgiy> and when they do source or call other scripts i see nothing related to pkg_config either
<georgiy> anyway if you guys have some idea of what i'm doing wrong please let me know
<georgiy> any help is much appreciated and will be gratefully received
xfbs has quit []
authchir has quit [Ping timeout: 260 seconds]
cbot has joined #ocaml
Algebr has joined #ocaml
jnavila has joined #ocaml
dhil has quit [Ping timeout: 256 seconds]
jnavila has quit [Ping timeout: 240 seconds]
georgiy has quit [Quit: Leaving]
mk9 has joined #ocaml
mk9_ has joined #ocaml
mk9 has quit [Ping timeout: 264 seconds]
mk9_ is now known as mk9
jnavila has joined #ocaml
dhil has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
kakadu has quit [Quit: Konversation terminated!]
mk9 has quit [Quit: mk9]
baboum has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
sapristi has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
BW___ has joined #ocaml
<BW___> how to recover from "The sources of the following couldn't be obtained, aborting: - ocaml-variants.4.05.0+trunk+safe-string"
<BW___> trying to isntall for google-drive connector
<BW___> tried opam update; opam upgrade, but it says all is up-to-date
<BW___> but the file is located at ./.opam/repo/default/packages/ocaml-variants/ocaml-variants.4.05.0+trunk+safe-string
kakadu has joined #ocaml
bartholin has joined #ocaml
sapristi has quit [Remote host closed the connection]
sapristi has joined #ocaml
sapristi has quit [Remote host closed the connection]
BitPuffin has quit [Remote host closed the connection]
sapristi has joined #ocaml
sapristi has quit [Remote host closed the connection]
sapristi has joined #ocaml
xfbs has joined #ocaml
_andre has quit [Quit: leaving]
melvin has joined #ocaml
sapristi has quit [Remote host closed the connection]
sapristi has joined #ocaml
xfbs has quit []
sapristi has quit [Remote host closed the connection]
<melvin> hello i am work a ocaml project on github
<melvin> project name is frenetic is SDN controller
sapristi has joined #ocaml
jbrown has quit [Ping timeout: 240 seconds]
<melvin> but you probably dont know the area called SDN, please learn it by google if you are interesting
<melvin> thank you
<melvin> this project have give me headache several days, why exists such obscure language!
<rixed> BW___: I cannot find ocaml-variants in https://opam.ocaml.org/packages/, is it not a public package?
<rixed> melvin: Are you refering to OCaml or English? :)
<melvin> sorry for English mistakes I am hard to learn it aswell
<rixed> melvin: There are plenty of "frenetic" on github. I suppose yours is this one: https://github.com/ClassWYZ/Frenetic
<octachron> BW___, "ocaml-variants.4.05.0+trunk+safe-sring" is a compiler package that is used to install the compiler itself , for instance when creating a switch in opam 2
<octachron> BW___, when does this error occur?
sapristi has quit [Ping timeout: 260 seconds]
melvin has quit [Quit: Page closed]
VermillionAzure has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]
cbot has joined #ocaml
Haudegen has joined #ocaml
ygrek has joined #ocaml
Onemorenickname_ has quit [Ping timeout: 240 seconds]
Onemorenickname has joined #ocaml
<BW___> [page@validator-dev-dev ~]$ opam install google-drive-ocamlfuse The following actions will be performed: ∗ install base-threads base [required by google-drive-ocamlfuse] ∗ install ocaml-variants 4.05.0+trunk+safe-string [required by ocaml] ∗ install ocaml 4.05.0 [required by google-drive-ocamlfuse] ∗ install ocamlbuild
<octachron> Do you have a working ocaml installation? Opam is trying to install the compiler itself
jnavila has quit [Remote host closed the connection]
jbrown has joined #ocaml
VermillionAzure has quit [Ping timeout: 240 seconds]
groovy2shoes has quit [Ping timeout: 256 seconds]
<BW___> no working ocaml installation; was trying to create one;
Jesin has joined #ocaml
<BW___> goal is to install google-drive-ocamlfuse on GNU/Linux platform
<octachron> you should install ocaml first, with for instance "opam switch create 4.06.0" for the current version of the compiler
<octachron> then try to install google-drive-ocamlfuse
<octachron> if you need to compile it from source
AltGr has left #ocaml [#ocaml]
VermillionAzure has joined #ocaml
jbrown has quit [Ping timeout: 240 seconds]
VermillionAzure has quit [Ping timeout: 256 seconds]
sepp2k has quit [Quit: Leaving.]
sapristi has joined #ocaml
jbrown has joined #ocaml
sapristi has quit [Client Quit]
cbot has quit [Ping timeout: 256 seconds]
barcabuona has quit [Ping timeout: 252 seconds]
jao has joined #ocaml
Haudegen has quit [Remote host closed the connection]
gpietro has joined #ocaml
sh0t has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
VermillionAzure has joined #ocaml
Onemorenickname has quit [Read error: Connection reset by peer]
kamog has quit [Quit: Leaving.]
jbrown has quit [Ping timeout: 240 seconds]
webshinra has quit [Remote host closed the connection]
webshinra has joined #ocaml
moei has quit [Quit: Leaving...]
kamog has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
kakadu has quit [Remote host closed the connection]
zolk3ri has quit [Remote host closed the connection]