<kakadu>
you can try to remove everything with dots
<jstolarek>
ok, let me play with that
freusque has quit [Ping timeout: 240 seconds]
dmi3y has joined #ocaml
ewanas has quit [Client Quit]
shinnya has joined #ocaml
freusque has joined #ocaml
ewanas has joined #ocaml
<jstolarek>
kakadu: yup, that worked. Thanks
<jstolarek>
somehow I expected that errors in opam file will be reported, not ignored silently
ewanas has quit [Client Quit]
dmi3y has quit [Quit: dmi3y]
dmi3y has joined #ocaml
AlexDenisov has joined #ocaml
al-damiri has joined #ocaml
ewanas has joined #ocaml
AlexDenisov has quit [Client Quit]
ewanas has quit [Client Quit]
douglasc_ has joined #ocaml
AlexDenisov has joined #ocaml
freehck has joined #ocaml
douglascorrea has quit [Ping timeout: 256 seconds]
ski has quit [Ping timeout: 260 seconds]
y3mato has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
y3mato has quit [Ping timeout: 244 seconds]
ewanas has joined #ocaml
<adrien>
offtopic, I'm trying to find comments on yarn vs. npm; I'm asking here because I know people have proper standards on package management
Onemorenickname has quit [Read error: Connection reset by peer]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
dhil has quit [Ping timeout: 260 seconds]
ewanas has joined #ocaml
y3mato has joined #ocaml
dmi3y has quit [Quit: dmi3y]
TarVanim_ has joined #ocaml
cyraxjoe has joined #ocaml
TarVanimelde has quit [Ping timeout: 265 seconds]
MightyJoe has quit [Ping timeout: 258 seconds]
agarwal1975 has quit [Quit: agarwal1975]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
dmi3y has joined #ocaml
ewanas has joined #ocaml
zirman has joined #ocaml
ewanas has quit [Quit: No Ping reply in 180 seconds.]
AlexDenisov has joined #ocaml
noddy2OOO has quit [Ping timeout: 250 seconds]
ewanas has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
ewanas has quit [Quit: No Ping reply in 180 seconds.]
ewanas has joined #ocaml
TarVanim_ has quit [Quit: TarVanim_]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
silver has joined #ocaml
zirmann has joined #ocaml
ontologiae has joined #ocaml
zirman has quit [Ping timeout: 250 seconds]
ontologiae has quit [Client Quit]
dhil has joined #ocaml
agarwal1975 has joined #ocaml
ewanas has joined #ocaml
TarVanimelde has joined #ocaml
zpe has quit [Remote host closed the connection]
zirmann has quit [Remote host closed the connection]
govg has joined #ocaml
rand__ has joined #ocaml
zirman has joined #ocaml
ewanas has quit [Quit: No Ping reply in 180 seconds.]
ewanas has joined #ocaml
dhil has quit [Ping timeout: 268 seconds]
hellofunk has joined #ocaml
jao has joined #ocaml
FreeBirdLjj has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
ewanas has quit [Read error: Network is unreachable]
ewanas has joined #ocaml
noddy has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
shinnya has quit [Ping timeout: 250 seconds]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
dmi3y has quit [Quit: dmi3y]
MercurialAlchemi has quit [Ping timeout: 246 seconds]
dmi3y has joined #ocaml
d0nn1e has quit [Ping timeout: 258 seconds]
copy` has joined #ocaml
d0nn1e has joined #ocaml
AlexDenisov has joined #ocaml
nomicflux has joined #ocaml
hellofunk has quit [Ping timeout: 245 seconds]
hellofunk has joined #ocaml
sepp2k has joined #ocaml
yomimono has joined #ocaml
kakadu has quit [Remote host closed the connection]
fredcy has joined #ocaml
dhil has joined #ocaml
ewanas has joined #ocaml
<fredcy>
I want to install Ocaml 4.03.0 on an Ubuntu 14.04 system. The directions for Ubuntu at https://opam.ocaml.org/doc/Install.html result in 4.02.3. How can I get the newer version of Ocaml?
ewanas has quit [Read error: Network is unreachable]
<johnelse>
fredcy: opam switch 4.03.0
<fredcy>
As root?
<johnelse>
opam will use the default ocaml that was installed on your system, until you tell it otherwise
ewanas has joined #ocaml
<aantron>
fredcy: no need to be rot
<johnelse>
nope, doesn't need to be root (unless you ran opam init as root)
<aantron>
root*
* fredcy
giving this a try...
<johnelse>
make sure you run "eval `opam config env`" once the switch is done
<johnelse>
that'll fix your path to point at the new ocaml
<fredcy>
That seems to have worked well. Thanks.
ewanas has quit [Quit: No Ping reply in 180 seconds.]
ewanas has joined #ocaml
<johnelse>
great :)
douglasc_ has quit [Remote host closed the connection]
Muzer has quit [Read error: Connection reset by peer]
douglascorrea has joined #ocaml
ewanas has quit [Quit: No Ping reply in 180 seconds.]
nomicflux has quit [Quit: nomicflux]
TarVanimelde has quit [Ping timeout: 250 seconds]
TarVanimelde has joined #ocaml
douglascorrea has quit [Ping timeout: 265 seconds]
nomicflux has quit [Read error: Connection reset by peer]
nomicflux has joined #ocaml
<fredcy>
I appeared to switch to 4.03.0 OK. I tried building an application with that (https://github.com/tezos/tezos) and ran into severar errors. So to “do over” I removed all of ~/.opam. But now the “opam switch 4.03.0” step fails.
<fredcy>
What’s the right way to rebuild the opam/ocaml env from scratch?
ygrek has joined #ocaml
ewanas has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
ewanas has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
<johnelse>
fredcy: try "opam init" first
mpenet has quit [Remote host closed the connection]
MercurialAlchemi has joined #ocaml
larhat has quit [Quit: Leaving.]
<fredcy>
I did. The “opam switch” command runs for 4 minutes and then quits with “[ERROR] Compiler build failed at "make install””.
mrf3000 has joined #ocaml
<fredcy>
The stderr log is empty for that. No error that I can see in the stdout log.
fre has quit [Ping timeout: 260 seconds]
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
<fredcy>
D’oh — I’m out of disk space. Nevermind.
jwatzman|work has quit [Quit: jwatzman|work]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
dmi3y has quit [Quit: dmi3y]
jnavila has quit [Quit: It was time]
veggie_ has joined #ocaml
veggie_ has left #ocaml [#ocaml]
ewanas has joined #ocaml
slash^ has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ewanas has quit [Ping timeout: 250 seconds]
ewanas has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
dhil has quit [Ping timeout: 265 seconds]
ewanas has quit [Ping timeout: 250 seconds]
ewanas has joined #ocaml
gahbu_ has joined #ocaml
averell has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
rgrinberg has joined #ocaml
noddy has quit [Ping timeout: 260 seconds]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
ewanas has joined #ocaml
gahbu_ has quit [Ping timeout: 244 seconds]
mrf3000 has quit []
jnavila has joined #ocaml
ryanartecona has joined #ocaml
ewanas has quit [Read error: Connection reset by peer]
ewanas has joined #ocaml
orbifx-m2 has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
hellofunk has quit [Ping timeout: 252 seconds]
orbifx-m has quit [Ping timeout: 256 seconds]
jnavila has quit [Ping timeout: 252 seconds]
orbifx-m2 has quit [Ping timeout: 256 seconds]
orbifx-m has joined #ocaml
AlexDenisov has joined #ocaml
ewanas has quit [Quit: No Ping reply in 180 seconds.]
rgrinberg has quit [Ping timeout: 258 seconds]
rgrinberg has joined #ocaml
pitastrudl has quit [Remote host closed the connection]
jnavila has joined #ocaml
pitastrudl has joined #ocaml
ewanas has joined #ocaml
pitastrudl has quit [Remote host closed the connection]
ygrek has joined #ocaml
noddy has joined #ocaml
pitastrudl has joined #ocaml
ewanas has quit [Client Quit]
orbifx-m has quit [Ping timeout: 258 seconds]
averell has joined #ocaml
orbifx-m has joined #ocaml
jnavila has quit [Ping timeout: 256 seconds]
nomicflux has quit [Quit: nomicflux]
<tizoc>
I upgraded omake to 0.10.1 and now opium doesn't build, has anyone else had issues after upgrading omake?
pitastrudl has quit [Remote host closed the connection]
pitastrudl has joined #ocaml
ewanas has joined #ocaml
ewanas has quit [Client Quit]
orbifx-m has quit [Ping timeout: 250 seconds]
ewanas has joined #ocaml
fre has joined #ocaml
jao has quit [Ping timeout: 248 seconds]
ewanas has quit [Client Quit]
jnavila has joined #ocaml
orbifx-m has joined #ocaml
ewanas has joined #ocaml
_andre has quit [Quit: leaving]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
ewanas has joined #ocaml
<copy`>
Yes, there were some problems with the latest omake
ewanas has quit [Quit: No Ping reply in 180 seconds.]
pierpa has quit [Remote host closed the connection]
ewanas has joined #ocaml
<andyc1>
does anyone know of any open source examples of pretty printers in OCaml? preferably with line wrapping, which I think is a nontrivial algorithm
<andyc1>
i have a clean AST for shell scripts, but the example could be for any language
<andyc1>
I've looked at https://github.com/facebook/pfff but I'm not sure if it does this, or it's more general than I would like
ewanas has quit [Quit: No Ping reply in 180 seconds.]
<y3mato>
As in, what does defn mean? I figured v is the name, and body is the body, e.g. let x = true; so x : bool
ewanas has joined #ocaml
zirmann has joined #ocaml
orbifx-m has quit [Ping timeout: 252 seconds]
zirmann has quit [Read error: Connection reset by peer]
zirman_ has joined #ocaml
jnavila has quit [Quit: Konversation terminated!]
<y3mato>
e.g. let g = fn f => 5 in g g
jnavila has joined #ocaml
<flux>
defn is just some expression defining the value of v in the body
<flux>
let v = 42 in v
zirman has quit [Ping timeout: 256 seconds]
y3mato has quit [Remote host closed the connection]
y3mato has joined #ocaml
y3mato has quit [Ping timeout: 245 seconds]
larhat has joined #ocaml
ewanas has quit [Quit: No Ping reply in 180 seconds.]
ryanartecona has quit [Quit: ryanartecona]
ewanas has joined #ocaml
zpe has joined #ocaml
zirman_ has quit [Remote host closed the connection]
stux|RC-only has quit [Ping timeout: 268 seconds]
stux|RC-only has joined #ocaml
ewanas has quit [Ping timeout: 250 seconds]
slash^ has quit [Read error: Connection reset by peer]
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
zirman has quit [Remote host closed the connection]
zirmann has joined #ocaml
zirmann has quit [Remote host closed the connection]
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
ewanas has joined #ocaml
ewanas has quit [Client Quit]
noddy has quit [Ping timeout: 245 seconds]
michbad has joined #ocaml
ewanas has joined #ocaml
FreeBirdLjj has joined #ocaml
ewanas has quit [Client Quit]
FreeBirdLjj has quit [Ping timeout: 258 seconds]
ewanas has joined #ocaml
zirmann has joined #ocaml
noddy has joined #ocaml
zirman has quit [Ping timeout: 258 seconds]
zirmann has quit [Ping timeout: 260 seconds]
rand__ has quit [Quit: leaving]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
ewanas has joined #ocaml
fre has quit [Ping timeout: 250 seconds]
zpe has quit [Ping timeout: 250 seconds]
Onemorenickname has joined #ocaml
<Onemorenickname>
Hi people
<Onemorenickname>
I'm trying to convert an inet_addr to an "Ipv4 of Int32 | Ipv6 of Int64*Int64"
<Onemorenickname>
The only function I found in Unix module to convert an inet_addr was to string.
<Onemorenickname>
Is there a module that already do what I am trying to achieve or something close ?
ewanas has quit [Read error: Connection reset by peer]
jimt has quit [Ping timeout: 260 seconds]
shinnya has joined #ocaml
ewanas has joined #ocaml
jimt has joined #ocaml
<lyxia>
it seems you can only convert to and from string
ryanartecona has joined #ocaml
<lyxia>
domain_of_sockaddr would tell you whether it's IPv4 or 6
cheater has joined #ocaml
<cheater>
hi
<tane>
while type safe abstractions are nice, the Unix module is a good example why it sometimes sucks
<cheater>
i have two projects that use the same version of ocaml and they both use the same package but pinned at different versions. how do i manage that?
orbifx-m has joined #ocaml
ewanas has quit [Quit: No Ping reply in 180 seconds.]
<aantron>
cheater: typically different switches. unless you need to use these projects together
<cheater>
i don't. how do i make different switches?
ewanas has quit [Quit: No Ping reply in 180 seconds.]
Armael has joined #ocaml
cheater has quit [Ping timeout: 265 seconds]
AltGr has left #ocaml [#ocaml]
agarwal1975 has quit [Quit: agarwal1975]
<aantron>
tane: well, there's lwt for I/O :) it largely replaces modules like Unix. as for whether the API is proper, that is another matter, but it can be addressed much faster than in stdlib
jmasseo has quit [Ping timeout: 244 seconds]
<tane>
well, it just wraps the calls of the unix module, which could be replaced, sure, but I guess it's better to keep these compatible
<tane>
and have a smaller external overlay for those who require raw access
mloy has joined #ocaml
jmasseo has joined #ocaml
nomicflux has joined #ocaml
<aantron>
actually, even though the docs of many lwt calls say that they wrap the Unix module, almost all have independent implementations. except on windows (for the time being)
rgrinberg has quit [Remote host closed the connection]
<aantron>
some of the types are compatible because it is convenient somehow. but i'd rather evolve towards a more useful API than preserve compatibility with a restrictive or wrong API in Unix, when that is the case
<tane>
well, that would be ok as well
<tane>
given there was some smaller library that wrapped the common calls via ctypes or similar
<tane>
it would be rather easy to change the calls in lwt for those in that library
<aantron>
perhaps. for many of the calls, i think that would have to wait until multicore, though
kakadu has quit []
ewanas has joined #ocaml
<tane>
why?
<aantron>
because when lwt can't do non-blocking or polling I/O for a system call, it runs that in a system worker thread
<aantron>
actually i guess some of this can be done in ocaml even now
<tane>
there would be no difference regarding these behaviours to the current state, I guess
stux|RC-only has quit [Ping timeout: 268 seconds]
<tane>
my main concern is giving the raw API to those who need it, and provide up to date abstractions to those who don't
<aantron>
makes sense
stux|RC-only has joined #ocaml
Onemorenickname has quit [Read error: Connection reset by peer]
ewanas has quit [Client Quit]
orbifx-m2 has joined #ocaml
orbifx-m has quit [Read error: Connection reset by peer]
orbifx-m has joined #ocaml
nomicflux has quit [Quit: nomicflux]
orbifx-m2 has quit [Ping timeout: 258 seconds]
ewanas has joined #ocaml
ewanas has quit [Client Quit]
orbifx-m2 has joined #ocaml
ewanas has joined #ocaml
orbifx-m has quit [Read error: Connection reset by peer]
orbifx-m3 has joined #ocaml
orbifx-m2 has quit [Ping timeout: 260 seconds]
jao has joined #ocaml
ewanas has quit [Quit: No Ping reply in 180 seconds.]
ewanas has joined #ocaml
yomimono has quit [Ping timeout: 250 seconds]
michbad has quit [Remote host closed the connection]
orbifx-m has joined #ocaml
orbifx-m3 has quit [Ping timeout: 250 seconds]
tane has quit [Quit: Leaving]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
ryanartecona has quit [Quit: ryanartecona]
ryanartecona has joined #ocaml
ryanartecona has quit [Client Quit]
sh0t has quit [Remote host closed the connection]
cheater has joined #ocaml
y3mato has joined #ocaml
ewanas has joined #ocaml
y3mato has quit [Ping timeout: 256 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
ewanas has quit [Quit: No Ping reply in 180 seconds.]
zirman has quit [Remote host closed the connection]