Anarchos has quit [Quit: Vision[]: i've been blurred!]
mima has joined #ocaml
emilknievel has quit [Remote host closed the connection]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 260 seconds]
dnh has joined #ocaml
Anarchos has joined #ocaml
<Anarchos>
hwo to build a dune version against a local ocaml compiler (5.3.0+dev0-2023-12-22)
infinity0 has quit [Killed (iridium.libera.chat (Nickname regained by services))]
infinity0 has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
a51 has joined #ocaml
tomku|two has quit [Ping timeout: 252 seconds]
dnh has joined #ocaml
<discocaml>
<JM> I'm not sure I understand what problem you are facing
alexherbo2 has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilknievel has joined #ocaml
Serpent7776 has quit [Ping timeout: 264 seconds]
a51 has quit [Quit: WeeChat 4.2.1]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
<Anarchos>
discocaml i have a local repo with ocaml source (trunk + local modifications). I want a local repo to compile dune against this ocaml compiler
tomku has joined #ocaml
<Anarchos>
discocaml but 'make dev' in dune complains about lwt-unix.
Square2 has joined #ocaml
Square2 has quit [Remote host closed the connection]
<discocaml>
<Kali> discocaml is the name of the bridge
<Anarchos>
JM i have a local repo with ocaml source (trunk + local modifications). I want a local repo to compile dune against this ocaml compiler
<Anarchos>
Kali sorry for the naming...
dnh has joined #ocaml
Serpent7776 has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bibi_ has joined #ocaml
leon_on9527 has joined #ocaml
leon_on9527 has quit [Max SendQ exceeded]
leon_on9527 has joined #ocaml
Serpent7776 has quit [Ping timeout: 252 seconds]
dnh has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Anarchos has quit [Ping timeout: 264 seconds]
<discocaml>
<functionalprogramming> I want to use GADTs to create a list of "heterogeneous" functions that can be composed together: http://sprunge.us/pjLX4d. But I get a type error, and I think what I want is for in `apply`, it should be `forall a. exists b. ...` in the type signature. But IDK how to do that
<discocaml>
<functionalprogramming> this look good? @ilo_kali
<discocaml>
<functionalprogramming> needed two type variables
Anarchos has joined #ocaml
<discocaml>
<Kali> seems good
<discocaml>
<Kali> i would use [] and (::) rather than Id and Compose so that you can use the list syntax but otherwise looks fine if the compiler accepts it
<discocaml>
<Kali> then instead of `Compose (Float.to_string, Compose (String.length, Compose ((fun x -> x * 4), Id)))` you can do `[Float.to_string; String.length; (*) 4]`
<discocaml>
<Kali> (the `fun x -> 4 * x` can be shrunk to `(*) 4` either way)
<discocaml>
<functionalprogramming> sweeeeet
<discocaml>
<functionalprogramming> yep i did it
<discocaml>
<functionalprogramming> thanks, it looks super neat
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
<discocaml>
<functionalprogramming> is there any benefit to using this over just, compose : (a -> b) -> (b -> c) -> (a -> c) or smth like that @ilo_kali
Anarchos has quit [Ping timeout: 252 seconds]
<discocaml>
<functionalprogramming> i guess u can remove functions which u cant do with compose
dnh has joined #ocaml
<discocaml>
<octachron> You can replay the function chain, or apply it step by step.
<discocaml>
<octachron> But the use with just functions are limited (at least without using the polymorphic equality)
<discocaml>
<octachron> The technique is more useful with applicative with more behaviors, or with function-like constructors that you can destructure.
pi3ce has quit [Quit: No Ping reply in 180 seconds.]
pi3ce has joined #ocaml
pi3ce has quit [Quit: No Ping reply in 180 seconds.]
pi3ce has joined #ocaml
waleee has joined #ocaml
Serpent7776 has joined #ocaml
Anarchos has joined #ocaml
jabuxas has joined #ocaml
<discocaml>
<functionalprogramming> can you give a brief example?
Serpent7776 has quit [Ping timeout: 252 seconds]
bartholin has quit [Quit: Leaving]
a51 has joined #ocaml
emilknievel has quit [Ping timeout: 260 seconds]
jabuxas has quit [Read error: Connection reset by peer]