adrien changed the topic of #ocaml to: Channel available on irc.libera.chat | Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.12 released: https://ocaml.org/releases/4.12.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://irclog.whitequark.org/ocaml
mxns has joined #ocaml
wingsorc_ has joined #ocaml
wingsorc has quit [Read error: Connection reset by peer]
visage_ has quit [Quit: Textual IRC Client: www.textualapp.com]
mxns has quit [Ping timeout: 265 seconds]
Haudegen has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 240 seconds]
wingsorc_ has quit [Quit: Leaving]
mbuf has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
snowpanda has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
snowpanda has quit [Quit: Leaving...]
_whitelogger has joined #ocaml
aquijoule_ has joined #ocaml
richbridger has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
vicfred has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
terrorjack has quit [Quit: Ping timeout (120 seconds)]
terrorjack has joined #ocaml
mal`` has quit [Quit: Leaving]
mxns has joined #ocaml
mxns has quit [Ping timeout: 246 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mal`` has joined #ocaml
vicfred has quit [Quit: Leaving]
narimiran has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
hackinghorn has joined #ocaml
wilfredh has joined #ocaml
kini has quit [Ping timeout: 245 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
bartholin has joined #ocaml
mbuf has quit [Quit: Leaving]
dhil has joined #ocaml
kakadu has joined #ocaml
wilfredh has quit [Quit: Connection closed for inactivity]
Haudegen has joined #ocaml
tane has joined #ocaml
zebrag has joined #ocaml
sagax has quit [Ping timeout: 265 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
<adrien> this is a gentle reminder that you can join #ocaml on irc.libera.chat (too)
mxns has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
Haudegen has joined #ocaml
<d_bot> <undu> hiw easy would it be to bridge both for discord?
mxns has quit [Ping timeout: 258 seconds]
berberman has joined #ocaml
berberman has left #ocaml [#ocaml]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mxns has joined #ocaml
waleee-cl has joined #ocaml
hackinghorn has quit [Remote host closed the connection]
hackinghorn has joined #ocaml
hackinghorn has quit [Remote host closed the connection]
hackinghorn has joined #ocaml
hackinghorn has quit [Remote host closed the connection]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
<d_bot> <stab> sometimes i feel like quickcheck is cheating
arecaceae has quit [Remote host closed the connection]
b20n has quit []
arecaceae has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
bartholin has quit [Quit: Leaving]
narimiran_ has joined #ocaml
narimiran has quit [Ping timeout: 246 seconds]
dhil has joined #ocaml
ArthurSt1ong has joined #ocaml
ArthurStrong has quit [Read error: Connection reset by peer]
favonia has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
favonia has quit [Quit: Leaving]
Anarchos has joined #ocaml
favonia has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
SquidDev has quit [Remote host closed the connection]
SquidDev has joined #ocaml
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
sagax has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
<adrien> undu : sorry, didn't see your message; that's not something I can act on by myself but I'll try to forward the request
<adrien> will asking for that, I realized that the bridge is probably limited to connecting to one network and channel (sounds logical)
<adrien> hopefully the matrix bridge should be available soon
<d_bot> <undu> thanks for looking into it
<adrien> you're welcome
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
narimiran_ has quit [Ping timeout: 252 seconds]
tane has quit [Quit: Leaving]
dh` has left #ocaml [#ocaml]
Simerax has joined #ocaml
Simerax has left #ocaml [#ocaml]
dwt has quit [Quit: ZNC 1.8.2 - https://znc.in]
Simerax_ has joined #ocaml
Simerax_ has left #ocaml [#ocaml]
Simerax has joined #ocaml
Simerax has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
<d_bot> <mimoo> is it possible to have an optional `val` in a `module type`?
<d_bot> <mimoo> (I'm trying to add a `val param : bool` in an already existing module, but that means I'll have to change all existing code to set this to `false`. I was wondering if I could have that set to false by default in the `module type` so that most code can remain the same.
<d_bot> <Shon F> Yeah, you can do that by using an `include BaseModule`, then shadow with the overriding value.
<d_bot> <Shon F> ```
<d_bot> <Shon F> module type S = sig
<d_bot> <Shon F> val param : bool
<d_bot> <Shon F> (* other stuff *)
<d_bot> <Shon F> end
<d_bot> <Shon F>
<d_bot> <Shon F> module Default = struct
<d_bot> <Shon F> let param = false
<d_bot> <Shon F> (* other stuff *)
<d_bot> <Shon F> end
<d_bot> <Shon F>
<d_bot> <Shon F> module Override = struct
<d_bot> <Shon F> include Default
<d_bot> <Shon F> let param = true
<d_bot> <Shon F> (* other stuff *)
<d_bot> <Shon F> end
<d_bot> <Shon F> ```
<d_bot> <Shon F> If you only have one param, this is obviously not any better than just defining the `param` in every implementation!
<d_bot> <Shon F> But if you have several of these kinds of defaults, it can be useful.
<d_bot> <mimoo> so you'd use destructive constraints here to set param = true?
<d_bot> <Shon F> (Sorry for the ninja edit, I didn't read your question carefully enough at first)
<d_bot> <Shon F> Do need a destructive constraint, cause this is at the value level.
<d_bot> <Shon F> You're just shadowing the value from the "parent" module.
<d_bot> <Shon F> It's just like doing
<d_bot> <Shon F> ```
<d_bot> <Shon F> let param = false
<d_bot> <Shon F> let param = true
<d_bot> <Shon F> (* param is true from on *)
<d_bot> <Shon F> ```
<d_bot> <Shon F> Except the first assignment is via the `include Default`
zebrag has quit [Read error: Connection reset by peer]
hackinghorn has joined #ocaml
zebrag has joined #ocaml
<d_bot> <Shon F> (I cleaned up my suggestion a bit to show how you can have a "parent' module with default values, without having to have that parent fully implement your specification.)
<d_bot> <mimoo> I see, thx!
<d_bot> <mimoo> also, can I create a range and pass it to `for i in range do`?
dwt has joined #ocaml
dwt has quit [Client Quit]
dwt has joined #ocaml
jca has left #ocaml ["see you irc.libera.chat"]
kini has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
dx has quit [Remote host closed the connection]
dx has joined #ocaml
astronavt has quit [Quit: ...]
astronavt has joined #ocaml
arecaceae has quit [Ping timeout: 240 seconds]
infinity0 has quit [Ping timeout: 240 seconds]
arecaceae has joined #ocaml
infinity0 has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
<d_bot> <mimoo> ok, question about js_of_ocaml. I can't seem to enforce that my input is an array of uint8Array
<d_bot> <mimoo> ```
<d_bot> <mimoo> type 'a array_js = 'a Js.js_array Js.t
<d_bot> <mimoo> type u8_array_js = Js_of_ocaml.Typed_array.uint8Array Js.t
<d_bot> <mimoo> let some_function (some_input : u8_array_js array_js) = ...
<d_bot> <mimoo> ```
<d_bot> <mimoo> in theory this should only accept an array of uint8array, but I can pass a uint8array directly and it works : |
favonia has left #ocaml ["Leaving"]