Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.1.1 released: https://ocaml.org/releases/5.1.1 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
dnh has joined #ocaml
pi3ce has joined #ocaml
mima has quit [Ping timeout: 255 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrisz has quit [Ping timeout: 252 seconds]
chrisz has joined #ocaml
dnh has joined #ocaml
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #ocaml
motherfsck has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
a51 has quit [Quit: WeeChat 4.2.1]
waleee has joined #ocaml
zanetti has joined #ocaml
Anarchos has joined #ocaml
zanetti has quit [Client Quit]
waleee has quit [Ping timeout: 256 seconds]
berberman has quit [Quit: ZNC 1.8.2 - https://znc.in]
berberman has joined #ocaml
berberman has quit [Remote host closed the connection]
berberman has joined #ocaml
bartholin has joined #ocaml
bibi_ has quit [Quit: Konversation terminated!]
Serpent7776 has joined #ocaml
wagle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wagle has joined #ocaml
wagle has quit [Client Quit]
wagle has joined #ocaml
Tuplanolla has joined #ocaml
<discocaml> <mr.graa> hi can someone help me with this pls ?
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> <Kali> well, maybe that's not what you're looking for, but it may help
<discocaml> <functionalprogramming> okay yeah i am currently trying with 2 type variables
<discocaml> <functionalprogramming> i think i got it
<discocaml> <functionalprogramming> http://sprunge.us/5Q6bBt
<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]
jabuxas has joined #ocaml