Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<d_bot> <zakkor> Weird stuff. So I had 4.12.0 installed, I noticed 4.13 exists so I installed that. That works fine with no warning, but it seems that reason is not compatible with 4.13 yet. So I tried wiping the 4.12 folder and reinstalling it again (4.12.1 this time), and now I get those warnings again (used to get 6, now there's thousands)
Haudegen has quit [Ping timeout: 260 seconds]
wyrd has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 250 seconds]
waleee has joined #ocaml
wyrd has joined #ocaml
vicfred has quit [Quit: Leaving]
waleee has quit [Quit: WeeChat 3.4]
ouestbillie has quit [Ping timeout: 256 seconds]
waleee has joined #ocaml
ouestbillie has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
rgrinberg has joined #ocaml
<d_bot> <Et7f3> reason support 4.13 but not published yet: multiple workaround add your opam repository with latest reason. Use esy and resolution.
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
humasect has joined #ocaml
humasect has quit [Quit: Leaving...]
epony has quit [Ping timeout: 240 seconds]
bobo_ has quit [Ping timeout: 240 seconds]
spip has joined #ocaml
hsw has quit [Ping timeout: 240 seconds]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
lispy has left #ocaml [#ocaml]
waleee has quit [Ping timeout: 250 seconds]
mbuf has joined #ocaml
epony has joined #ocaml
grobe0ba_ has joined #ocaml
np has joined #ocaml
gentauro_ has joined #ocaml
pippijn_ has joined #ocaml
mg- has joined #ocaml
grobe0ba_ has quit [Ping timeout: 240 seconds]
grobe0ba_ has joined #ocaml
spip has quit [*.net *.split]
mg has quit [*.net *.split]
Geekingfrog has quit [*.net *.split]
bgs has quit [*.net *.split]
gentauro has quit [*.net *.split]
pippijn has quit [*.net *.split]
beise has quit [*.net *.split]
sleepydog has quit [*.net *.split]
mmalter has quit [*.net *.split]
dstein64 has quit [*.net *.split]
sagax has quit [*.net *.split]
ski has quit [*.net *.split]
tizoc has quit [*.net *.split]
rak has quit [*.net *.split]
nerdypepper has quit [*.net *.split]
grobe0ba has quit [*.net *.split]
afrosenpai has quit [*.net *.split]
grobe0ba_ is now known as grobe0ba
gahr has quit [Read error: Connection reset by peer]
gahr has joined #ocaml
tizoc has joined #ocaml
beise has joined #ocaml
afrosenpai has joined #ocaml
ski has joined #ocaml
bgs has joined #ocaml
spip has joined #ocaml
rak has joined #ocaml
Geekingfrog has joined #ocaml
dstein64 has joined #ocaml
sleepydog has joined #ocaml
mmalter has joined #ocaml
grobe0ba_ has joined #ocaml
grobe0ba has quit [Read error: Connection reset by peer]
grobe0ba_ is now known as grobe0ba
gravicappa has joined #ocaml
Serpent7776 has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
Haudegen has joined #ocaml
gentauro_ is now known as gentauro
gentauro has quit [Changing host]
gentauro has joined #ocaml
mro has quit [Remote host closed the connection]
humasect has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
orbifx has joined #ocaml
mro has joined #ocaml
olle has joined #ocaml
ouestbillie has quit [Remote host closed the connection]
humasect has quit [Read error: Connection reset by peer]
humasect_ has joined #ocaml
humasect_ is now known as humasect
ouestbillie has joined #ocaml
shawnw has joined #ocaml
bartholin has joined #ocaml
foo303 has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 256 seconds]
<d_bot> <FabianK> Does ocaml make any guarantees on the evaluaton order on constructor arguments?
<d_bot> <FabianK> As far as i can see here, ir does not, but i might have overlooked something: https://ocaml.org/manual/expr.html#sss:expr-variants
<d_bot> <FabianK> (I know no order for function arguments is guaranteed, but constructors aren't functions)
<d_bot> <orbitz> A cosntructor can only take one argument though?
<d_bot> <FabianK> No, it take multiple arguments in a very strange syntax that looks like tuples, but isn't a tuple?
<d_bot> <orbitz> ```
<d_bot> <orbitz> ─( 12:36:05 )─< command 0 >──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────â
<d_bot> <orbitz> utop # type t = Foo of (int * string);;
<d_bot> <orbitz> type t = Foo of (int * string)
<d_bot> <orbitz> ─( 12:36:05 )─< command 1 >──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────â
<d_bot> <orbitz> utop # let x = (1, "hi");;
<d_bot> <orbitz> val x : int * string = (1, "hi")
<olle> wtf
<d_bot> <orbitz> ─( 12:36:12 )─< command 2 >──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────â
<d_bot> <orbitz> utop # Foo x;;
<olle> stahp!!!
<d_bot> <orbitz> - : t = Foo (1, "hi")
<d_bot> <orbitz> ```
<d_bot> <orbitz> maybe there is an implicit conversion?
<olle> That just looks insane on IRC
<d_bot> <FabianK> Remove the paranthesis around * in the type
<d_bot> <FabianK> Then you have multiple arguments
<d_bot> <orbitz> Ah, you're right @FabianK , apologies
<d_bot> <FabianK> No need to apologize
<d_bot> <octachron> No there is no guaranteed order of evaluation, if you require a precise order, you should use `let ... in` to impose it.
<d_bot> <FabianK> I assumed so, thanks.
<d_bot> <FabianK> And if i read my link again, it becomes clear, as there is no mention of order between the n arguments
mro has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
mro has joined #ocaml
mro has quit [Quit: Leaving...]
<d_bot> <zakkor> > add your opam repository with latest reason
<d_bot> <zakkor> Do you know what's the address of the latest repo?
pippijn_ is now known as pippijn
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Haudegen has quit [Quit: Bin weg.]
<d_bot> <zakkor> If I do `opam repo set-url reason git://github.com/reasonml/reason.git#master` I get this error:
<d_bot> <zakkor> ```
<d_bot> <zakkor> [WARNING] The repository 'reason' at git://github.com/reasonml/reason.git#master doesn't have a 'repo' file, and
<d_bot> <zakkor> might not be compatible with this version of opam.
<d_bot> <zakkor> [NOTE] Repository at git://github.com/reasonml/reason.git#master doesn't define its version, assuming it's 1.2.
<d_bot> <zakkor> ```
<d_bot> <zakkor> I'm not sure what I'm actually supposed to add there :thinknixos:
orbifx has left #ocaml [#ocaml]
<Fardale> You need to pin a package, not add it as a repo
<Fardale> `opam pin add git://github.com/reasonml/reason.git#master`
<d_bot> <zakkor> Fardale: Thank you! That worked
Haudegen has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
shawnw has quit [Ping timeout: 256 seconds]
jlrnick has quit [Ping timeout: 250 seconds]
gravicappa has joined #ocaml
hackinghorn has quit [Read error: Connection reset by peer]
hackinghorn has joined #ocaml
waleee has joined #ocaml
mbuf has quit [Quit: Leaving]
foo303 has quit [Quit: Leaving]
ski has quit [Ping timeout: 256 seconds]
dalek-caan has joined #ocaml
vicfred has joined #ocaml
vicfred_ has joined #ocaml
<olle> Are pure functions always composable?
<Corbin> Yes, depending on what "pure" means.
<olle> Referenstial transparent is good enough
vicfred has quit [Ping timeout: 240 seconds]
<olle> referential?
<olle> Hm, size and nr of args should affect composability too
Haudegen has quit [Quit: Bin weg.]
rgrinberg has joined #ocaml
Corbin has quit [Ping timeout: 268 seconds]
sleepydog has quit [Ping timeout: 256 seconds]
sleepydog_ has joined #ocaml
Corbin has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 250 seconds]
humasect has quit [Remote host closed the connection]
humasect has joined #ocaml
vicfred_ has quit [Quit: Leaving]
<d_bot> <Ulugbek> When pinning a package, say `opam pin add dune.3.0.0 ...`. What does it mean to pin a package using a version number `dune.3.0.0`, specifically? Are the sources fetched and installed simply treated as for dune v3 or there's some cut-off by tags, etc. Why when I pin without a specific version 2.9.1 is pinned? When is version `dev` pinned and how's it different from 3.0.0 which is also unreleased? (there's a tag `3.0.0+alpha`)
<olle> Maybe a metric for composability would be the ratio of pure functions :d
<hannes> Ulugbek: as far as I understand: opam pin add dune --dev will use the dev-repo from the known opam file (in opam-repository) for dune and use that for installation -- keeping the version number to the latest known to opam
<hannes> Ulugbek: "opam pin add dune.2.3.4" will go and download version 2.3.4 from opam repository and install it
<hannes> Ulugbek: "opam pin add dune.3.0.0 --dev" will use the version number 3.0.0 and the dev-repo of dune.
<hannes> Ulugbek: "opam pin add dune https://github.com/ocaml/dune.git#my-feature-branch" will pin dune to that specific branch, and treat it as version (latest known to opam == 2.9.2 (or 2.9.3))
<Corbin> olle: Oh, maybe my last message didn't come through? Purity helps a little, but there are reasonable definitions of "pure function" that aren't computable, or aren't computable under certain compositions.
<olle> 17:48 < Corbin> Yes, depending on what "pure" means.
<olle> Corbin: That was your last message on my machine
<olle> Corbin: I'm thinking in business setting, not academy :)
<Corbin> olle: Ah, noodles. ISTR I said something like: partial computable functions are composable, yes. Total computable functions are usually still total under composition, but e.g. recursion can create partial functions from total primitives.
<olle> Hm
<d_bot> <Ulugbek> hannes: thanks heaps! that's very useful to know
Haudegen has joined #ocaml
mro has joined #ocaml
<d_bot> <Et7f3> Ah mb I forgotten about pinning. What I mean is fork the default repo and add a opam file inside https://github.com/ocaml/opam-repository/tree/master/packages/reason
mro has quit [Remote host closed the connection]
<d_bot> <Et7f3> So basically you release it on private repo
xenu_ has joined #ocaml
omni_ has joined #ocaml
ansiwen_ has joined #ocaml
xenu has quit [Killed (NickServ (GHOST command used by xenu_))]
xenu_ is now known as xenu
williewillus0 has joined #ocaml
ansiwen has quit [Ping timeout: 256 seconds]
williewillus has quit [Read error: Connection reset by peer]
cross has quit [Ping timeout: 256 seconds]
cross_ has joined #ocaml
Ekho has quit [Ping timeout: 256 seconds]
andreypopp has quit [Ping timeout: 256 seconds]
omni has quit [Ping timeout: 256 seconds]
habnabit_ has quit [Ping timeout: 256 seconds]
andreypopp has joined #ocaml
habnabit_ has joined #ocaml
Ekho has joined #ocaml
bartholin has quit [Quit: Leaving]
humasect has quit [Quit: Leaving...]
gwizon has joined #ocaml
Tuplanolla has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.4]
mmalter has quit [Quit: Lost terminal]
gareppa has joined #ocaml
gareppa has quit [Client Quit]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olle has quit [Ping timeout: 256 seconds]
waleee has joined #ocaml
jlrnick has joined #ocaml
mro has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
mro has quit [Remote host closed the connection]
lispy has joined #ocaml
<d_bot> <glennsl> This is an incredibly useful error message:
<d_bot> <glennsl> ```ml
<d_bot> <glennsl> 583 | | Optional l, Some { ptyp_desc: Ptyp_const } ->
<d_bot> <glennsl> ^
<d_bot> <glennsl> Error: Syntax error: '}' expected
<d_bot> <glennsl> ```
<d_bot> <NULL> Replace `:` with `=`
<d_bot> <NULL> As for why the error message is cryptic, I don't know
<d_bot> <glennsl> Ah, thanks! But yeah, I struggle to understand how the compiler arrived at that error message...
rgrinberg has joined #ocaml
olle has joined #ocaml
mro has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has quit [Read error: Connection reset by peer]
mro_ has joined #ocaml
lispy has left #ocaml [#ocaml]
gdd has quit [Ping timeout: 250 seconds]
gdd has joined #ocaml
<d_bot> <d4hines> What's the status ocaml-lsp-server and OCaml 5.0? I'm trying to use the `Lwt_domain` module but I can't get it to work on anything except 5.0, but we can't upgrade until we have language server support. Does anyone know of a working fork?
mro_ has quit [Remote host closed the connection]
mro has joined #ocaml
dalek-caan has quit [Quit: dalek-caan]
<d_bot> <octachron> OCaml 5.0 is currently a development version on the compiler repository, we are still month(s) away from a *first alpha release*. There is simply no support for ocaml-lsp-server on OCaml 5.0 yet.
<d_bot> <octachron> (even if updating tools from 4.14 to 5.0 should be relatively swift since there is no AST differences between the two versions).
<d_bot> <NULL> What's preventing the current version to work (at least experimentally) on the trunk version ?
<d_bot> <octachron> Time?
<d_bot> <octachron> The current version of Merlin generally cannot work on trunk.
<d_bot> <octachron> There was still major work on updating Merlin for 4.14 last week.
<d_bot> <NULL> What's the technical version why merlin for 4.14 couldn't work without modification on 5.0/trunk code ?
rgrinberg has joined #ocaml
<d_bot> <octachron> There is no way that Merlin for 4.13 could work on trunk. Merlin use the internal typechecker API (a fact a fork of this API) which is not stable at all . Trying to use a previous version of Merlin on trunk is nearly certain to fail.
<d_bot> <octachron> It happens that for the twin 4.14/5.0 releases, the 4.14 version of Merlin should work on 5.0; but that still requires work to check that this is indeed completely the case.
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olle has quit [Ping timeout: 268 seconds]
Serpent7776 has quit [Quit: leaving]
mro has quit [Quit: Leaving...]
spip has joined #ocaml
bobo_ has quit [Ping timeout: 256 seconds]
Tuplanolla has quit [Quit: Leaving.]
Techcable has quit [Ping timeout: 250 seconds]