companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
Haudegen has quit [Ping timeout: 240 seconds]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
sillyotter has joined #ocaml
sillyotter has quit [Client Quit]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
mfp has quit [Ping timeout: 252 seconds]
mxns has quit [Ping timeout: 240 seconds]
dckc has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
dckc has joined #ocaml
mxns has joined #ocaml
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
mxns has quit [Ping timeout: 252 seconds]
zebrag has quit [Quit: Konversation terminated!]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 276 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 252 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 252 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
guriya has joined #ocaml
mxns has joined #ocaml
Anarchos has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
Tuplanolla has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
Serpent7776 has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
TheLemonMan has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
guriya has quit [Ping timeout: 240 seconds]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
mfp has joined #ocaml
mxns has joined #ocaml
tjammer has joined #ocaml
Nahra has joined #ocaml
mxns has quit [Ping timeout: 246 seconds]
boxscape has joined #ocaml
vicfred has quit [Quit: Leaving]
tjammer has quit [Quit: terminated!]
olle has joined #ocaml
raver has joined #ocaml
boxscape has quit [Ping timeout: 246 seconds]
olle has quit [Ping timeout: 246 seconds]
bartholin has joined #ocaml
zebrag has joined #ocaml
neiluj has quit [Remote host closed the connection]
mxns has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
zebrag has quit [Remote host closed the connection]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
tane has joined #ocaml
zebrag has joined #ocaml
mxns has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
tautologico has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
Nobita has joined #ocaml
Nobita has quit [Quit: Connection closed]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
tautologico has quit []
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
waleee-cl has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
mxns_ has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
mxns_ has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 276 seconds]
guriya has joined #ocaml
mxns has joined #ocaml
mxns has quit [Client Quit]
mxns has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
bjorkintosh has quit [Remote host closed the connection]
mxns has quit [Ping timeout: 276 seconds]
mxns has joined #ocaml
olle has joined #ocaml
bartholin has quit [Quit: Leaving]
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
oznt has quit [Quit: ZNC - http://znc.in]
mxns has quit [Ping timeout: 245 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 252 seconds]
<olle> type any_shape = Any : (module SHAPE with type t = 'a and type s = {data : 'a; area: 'a -> int}) -> any_shape
<olle> type s is wrong here :d
<olle> Syntax error at record notation
<olle> Anyone knows?
<d_bot> <bnguyenvanyen> You can't declare the type there, but you can alias it
<olle> How?
<olle> type s = 'b gives other error
<olle> since s is public in the SHAPE sig
<d_bot> <bnguyenvanyen> Because the record declaration is nominal I think, you need to be able to refer to it afterwards.
<olle> Hm
<d_bot> <bnguyenvanyen> So you would declare `type 'a areable = { data : 'a ; area : 'a -> int }` and then `with type s = 'a areable` or something like that
<octachron> With constraints can only add equations, not define new components.
mxns has joined #ocaml
<d_bot> <bnguyenvanyen> There, said righter, thanks octachron
<olle> equations?
<octachron> For instance "with type t = int" is adding the equation "t=int"
<octachron> to the constrained module type.
<olle> Let me pastebin
* olle Can't autocomplete names from Discord, only IRC...
<d_bot> <bnguyenvanyen> You already defined the type
<d_bot> <bnguyenvanyen> in the module type
<d_bot> <bnguyenvanyen> so you don't need to put a with for it
<olle> Well, something's still wrong
<olle> The list won't type-check
<olle> Since make () returns type s, not t
<d_bot> <bnguyenvanyen> Yeah
<d_bot> <bnguyenvanyen> you need to give it the module in the list
<olle> D:
<olle> That's exactly what I wanted to avoid!
<olle> By including area in the record type
guriya has quit [Quit: Connection closed]
<olle> OK, so modules + objects might be better then, after all
<d_bot> <bnguyenvanyen> Ah
mxns has quit [Ping timeout: 276 seconds]
<d_bot> <bnguyenvanyen> Well if your idea is that when you make your list, you only need to be able to compute areas, then you can do it
<d_bot> <bnguyenvanyen> (but you don't really keep the types)
<olle> areas or other behaviour :)
* olle bbl
mxns has joined #ocaml
<d_bot> <bnguyenvanyen> Well something like this compiles : https://pastebin.com/mBn1krHu
<d_bot> <bnguyenvanyen> I don't really feel knowledgeable enough to comment on design, but to me this feels strictly less nice than just putting the `area` function in `SHAPE` and then using that
zolk3ri has joined #ocaml
Anarchos has joined #ocaml
<olle> hm hm hm
<olle> oh, you put shape type outside the module, then
<olle> thanks!
<olle> Weird that's needed
<olle> OK, now for modules + objects :D
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
olle has joined #ocaml
Hrundi_V_Bakshi has joined #ocaml
<Anarchos> did anybody translate the modern compiler in ml files for SML into Ocaml?
Hrundi_V_Bakshi has quit [Quit: No Ping reply in 180 seconds.]
tane has quit [Quit: Leaving]
Hrundi_V_Bakshi has joined #ocaml
<d_bot> <Curzon> ```
<d_bot> <Curzon> # Fatal error: the file '../boot/ocamlc' has not the right magic number: expected Caml1999X025, got Caml1999X028
<d_bot> <Curzon>
<d_bot> <Curzon> ```
<d_bot> <Curzon> Does anyone know about this
vicfred has joined #ocaml
<d_bot> <Curzon> I'm trying to install ocaml-cross-windows but I'm already having several errors/issues
<Anarchos> curzon yes you install files too recent for your boot compiler
<d_bot> <Curzon> what does that mean
<d_bot> <Curzon> also
<d_bot> <Curzon> why is my ocamlrun not in my opam default bin, i had to make an ln/link target for it
<d_bot> <Curzon> ill just create a new switch exactly what the github expected
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
olle has quit [Ping timeout: 252 seconds]
arecaceae has quit [Remote host closed the connection]
arecaceae has joined #ocaml
Hrundi_V_Bakshi has quit [Ping timeout: 240 seconds]
Tuplanolla has quit [Quit: Leaving.]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml