companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Tuplanolla has quit [Quit: Leaving.]
nvaxplus has joined #ocaml
nvaxplus has quit [Client Quit]
Haudegen has quit [Quit: Bin weg.]
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
hsw has joined #ocaml
szkl has joined #ocaml
emp has quit [Quit: ZNC 1.8.2 - https://znc.in]
germ- has quit [Ping timeout: 244 seconds]
germ has joined #ocaml
bartholin has joined #ocaml
germ has quit [Read error: Connection reset by peer]
germ- has joined #ocaml
octachron has quit [Quit: ZNC 1.8.2 - https://znc.in]
octachron has joined #ocaml
Tuplanolla has joined #ocaml
YuGiOhJCJ has joined #ocaml
accordvenom has quit [Ping timeout: 265 seconds]
accordvenom has joined #ocaml
patrick_ is now known as patrick
patrick has quit [Changing host]
patrick_ has joined #ocaml
<discocaml_> <wiss94> Hello, I have a module graph with a node that is a abstract type but I want it to be a real type : float * float * bool but I don't how to make it.
<discocaml_> <wiss94>
<discocaml_> <wiss94> Thanks for help
<discocaml_> <wiss94> ```
<discocaml_> <wiss94> module type Graph =
<discocaml_> <wiss94> sig
<discocaml_> <wiss94> type node
<discocaml_> <wiss94> module NodeSet : Set.S with type elt = node
<discocaml_> <wiss94> type graph
<discocaml_> <wiss94> val empty : graph
<discocaml_> <wiss94> val is_empty : graph -> bool
<discocaml_> <wiss94> val add_node : node -> graph -> graph
<discocaml_> <wiss94> val add_edge : node -> node -> graph -> graph
<discocaml_> <wiss94> val succs : node -> graph -> NodeSet.t
<discocaml_> <wiss94> val mem_node : node -> graph -> bool
<discocaml_> <wiss94> val mem_edge : node -> node -> graph -> bool
<discocaml_> <wiss94> val remove_node : node -> graph -> graph
<discocaml_> <wiss94> val remove_edge : node -> node -> graph -> graph
<discocaml_> <wiss94> val fold_node : (node -> 'a -> 'a) -> graph -> 'a -> 'a
<discocaml_> <wiss94> val fold_edge : (node -> node -> 'a -> 'a) -> graph -> 'a -> 'a
<discocaml_> <wiss94> end
<discocaml_> <wiss94>
<discocaml_> <wiss94> module MakeGraph(N:Set.OrderedType) : Graph with type node = N.t
<discocaml_> <wiss94> ```
<discocaml_> <wiss94> ```
<discocaml_> <wiss94> module type Graph =
<discocaml_> <wiss94> sig
<discocaml_> <wiss94> type node
<discocaml_> <wiss94> module NodeSet : Set.S with type elt = node
<discocaml_> <wiss94> type graph
<discocaml_> <wiss94> val empty : graph
<discocaml_> <wiss94> val is_empty : graph -> bool
<discocaml_> <wiss94> val add_node : node -> graph -> graph
<discocaml_> <wiss94> val add_edge : node -> node -> graph -> graph
<discocaml_> <wiss94> val succs : node -> graph -> NodeSet.t
<discocaml_> <wiss94> val mem_node : node -> graph -> bool
<discocaml_> <wiss94> val mem_edge : node -> node -> graph -> bool
<discocaml_> <wiss94> val remove_node : node -> graph -> graph
<discocaml_> <wiss94> val remove_edge : node -> node -> graph -> graph
<discocaml_> <wiss94> val fold_node : (node -> 'a -> 'a) -> graph -> 'a -> 'a
<discocaml_> <wiss94> val fold_edge : (node -> node -> 'a -> 'a) -> graph -> 'a -> 'a
<discocaml_> <wiss94> end
<discocaml_> <wiss94>
<discocaml_> <wiss94> module MakeGraph(N:Set.OrderedType) =
<discocaml_> <wiss94> struct
<discocaml_> <wiss94> type node = N.t
<discocaml_> <wiss94> module NodeSet = Set.Make(N)
<discocaml_> <wiss94> module NodeMap = Map.Make(N)
<discocaml_> <wiss94> type graph = NodeSet.t NodeMap.t
<discocaml_> <wiss94>
<discocaml_> <wiss94> let empty = NodeMap.empty;;
adrien has quit [Ping timeout: 265 seconds]
adrien has joined #ocaml
reynir has quit [Quit: WeeChat 3.0]
adrien has quit [Ping timeout: 260 seconds]
adrien has joined #ocaml
semarie has quit [Quit: quit]
semarie has joined #ocaml
Haudegen has joined #ocaml
emp has joined #ocaml
rgrinberg has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Mister_Magister has quit [Ping timeout: 244 seconds]
Mister_Magister has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
<discocaml_> <yawaramin> answered in #beginners
masterbuilder has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
mbuf has joined #ocaml
tomku has quit [Ping timeout: 252 seconds]
Mister_Magister_ has joined #ocaml
Mister_Magister has quit [Ping timeout: 244 seconds]
Mister_Magister_ is now known as Mister_Magister
<discocaml_> <marisakirisame> I want to steal a bit off ocaml's int63 for my tagging purpose. should i steal the leftmost or the rightmost bit (to minimize conversion between the two int, and getting the tag)?
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
<discocaml_> <Kali> please don't paste code blocks in this channel, because it is bridged to IRC which must send each newline as an individual message
rgrinberg has joined #ocaml
ygrek has joined #ocaml
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
mbuf has quit [Quit: Leaving]
ionut_f has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
mro has joined #ocaml
ygrek has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
mro has quit [Ping timeout: 252 seconds]
ionut_f has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
bartholin has quit [Quit: Leaving]
dh` has joined #ocaml
accordvenom has quit [Quit: leaving]
Everything has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
<discocaml_> <poselsky> Is it possible to run `dune utop` with native code instead of bytecode? I'm having some issues with bytecode and dynlinked libs on windows.
Everything has quit [Quit: leaving]
<discocaml_> <poselsky> Oh no. I found this. https://dune.readthedocs.io/en/latest/quick-start.html#building-a-custom-toplevel `Moreover, currently toplevels can only be built in bytecode.`