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/
Anarchos has quit [Quit: Vision[]: i've been blurred!]
raskol has joined #ocaml
mahmoudesse has quit [Read error: Connection reset by peer]
Tuplanolla has quit [Quit: Leaving.]
mahmoudesse has joined #ocaml
raskol has quit [Ping timeout: 255 seconds]
mizlan has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mizlan has quit [Ping timeout: 268 seconds]
neiluj has joined #ocaml
dnh has joined #ocaml
jabuxas has quit [Ping timeout: 255 seconds]
dnh has quit [Ping timeout: 256 seconds]
mizlan has joined #ocaml
waleee has quit [Ping timeout: 272 seconds]
mahmoudesse has quit [Quit: Konversation terminated!]
chrisz has quit [Ping timeout: 255 seconds]
chrisz has joined #ocaml
motherfsck has quit [Ping timeout: 268 seconds]
raskol has joined #ocaml
<discocaml> <idontwantausernamefeckoff> if i have a value of type `[ ``A | ``B ] t`, how would i pass this to a function expecting `[ ``A ] t`
<discocaml> <Kali> as a discord formatting tip, you can use \`\`code\`\` to prevent needing to use double ` for polymorphic variants
<discocaml> <idontwantausernamefeckoff> oh thank you
<discocaml> <Kali> example: ``[ `Like | `This ] ``
<discocaml> <idontwantausernamefeckoff> i'm really confused by polymorphic variants in general
<discocaml> <Kali> this is not valid: if the value can be `` `A`` or `` `B``, how would you pass it to something that only accepts `` `A``?
<discocaml> <idontwantausernamefeckoff> hm
motherfsck has joined #ocaml
<discocaml> <idontwantausernamefeckoff> thats the particular type. caqti takes ```[`Generic] Eio.Net.ty Eio.Std.r```
<discocaml> <darrenldl> which caqti function?
mizlan has quit [Remote host closed the connection]
<discocaml> <idontwantausernamefeckoff> manually editing it to take a ``[`Generic | `Unix`` value connects to postgres fine, and i'm already having to manually reconstruct the env object so i'm wondering if this is a case of eio changing the api (i had to pin to master to run with 0.14) or im missing something
<discocaml> <idontwantausernamefeckoff> connect_pool
mizlan has joined #ocaml
<discocaml> <idontwantausernamefeckoff> manually editing it to take a ``[`Generic | `Unix`` value connects to postgres fine, and i'm already having to manually reconstruct the env object so i'm wondering if this is a case of eio changing the api (i had to pin to master to run with 0.14) and i should open an issue or im simply missing something
mizlan has quit [Ping timeout: 246 seconds]
mizlan has joined #ocaml
average has joined #ocaml
mizlan has quit [Ping timeout: 272 seconds]
azimut has joined #ocaml
dnh has joined #ocaml
dnh has quit [Ping timeout: 264 seconds]
mizlan has joined #ocaml
mizlan_ has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mizlan has quit [Ping timeout: 268 seconds]
pi3ce has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
average has quit [Quit: Connection closed for inactivity]
rgrinberg has joined #ocaml
pi3ce has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
pi3ce has joined #ocaml
pi3ce has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
pi3ce has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mizlan_ has quit [Remote host closed the connection]
mizlan has joined #ocaml
mizlan has quit [Ping timeout: 252 seconds]
myrkraverk__ has quit [Quit: Leaving]
Serpent7776 has joined #ocaml
<dh`> blurgh I hate it when your lists get too long for List.map
<discocaml> <geoff> Not a problem anymore with the new stdlib (with tail mod cons) though, right?
rgrinberg has joined #ocaml
dnh has joined #ocaml
bartholin has joined #ocaml
<dh`> probably not but this is not 5 yet
dnh has quit [Ping timeout: 260 seconds]
Serpent7776 has quit [Ping timeout: 256 seconds]
<reynir> When using caqti, do you know of an example where you don't pass `Caqti_type.unit` as the second argument to `Caqti_request.Infix.( -->. )` ?
<reynir> So the type is `val Caqti_request.Infix.( -->. ) : 'a Caqti_type.t -> unit Caqti_type.t -> _` so unless you `Caqti_type.custom` it only ever makes sense to pass `Caqti_type.unit` (and I can't really think of a case where a custom type makes sense)
Tuplanolla has joined #ocaml
raskol has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
olle has joined #ocaml
olle has quit [Remote host closed the connection]
pmk has joined #ocaml
Serpent7776 has joined #ocaml
dnh has joined #ocaml
alexherbo2 has joined #ocaml
dnh has quit [Ping timeout: 272 seconds]
average has joined #ocaml
Romanson has joined #ocaml
dnh has joined #ocaml
<neiluj> hey! got a typing problem: https://github.com/jtcoolen/ocaml-pari/blob/main/examples/kzg.ml#L115, here the labeled arg n is supposed to be of type Integer.t=(integer, ring) typ, the type of residue_class is (finite_field, field) typ -> (finite_field, ring) typ Polynomial.t and Polynomial.( .%[] ) : ('a, ring) typ t -> int -> ('a, ring) typ but here the type of .%[] is (finite_field, ring) typ Integer.t Polynomial.t -> int -> Integer.t,
<neiluj> while it should be (finite_field, ring) typ Polynomial.t -> int -> (finite_field, ring) typ
<neiluj> is there an explanation for that?
Anarchos has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
Anarchos has quit [Ping timeout: 252 seconds]
Anarchos has joined #ocaml
azimut has quit [Ping timeout: 255 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gareppa has joined #ocaml
dnh has joined #ocaml
gareppa has quit [Quit: WeeChat 4.0.5]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
azimut has joined #ocaml
alexherbo2 has quit [Ping timeout: 250 seconds]
marcc has joined #ocaml
<marcc> Just noticed that this PR doesn't seem to be getting merged and contains a fix I requir: https://github.com/roddyyaga/pg_query-ocaml/issues/16 :(
<marcc> Is the easiest way just to fork it and apply the patch and have it locally instead?
dreadedfrog has joined #ocaml
dreadedfrog has quit [Remote host closed the connection]
marcc has quit [Ping timeout: 268 seconds]
infinity0 has quit [Ping timeout: 246 seconds]
marcc has joined #ocaml
infinity0 has joined #ocaml
rgrinberg has joined #ocaml
marcc has quit [Ping timeout: 264 seconds]
mizlan has joined #ocaml
Serpent7776 has quit [Ping timeout: 268 seconds]
alexherbo2 has joined #ocaml
mizlan has quit [Quit: mizlan]
dnh has joined #ocaml
mizlan has joined #ocaml
mizlan has quit [Client Quit]
Romanson has quit [Quit: Connection closed for inactivity]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
torretto_ has joined #ocaml
torretto has quit [Ping timeout: 255 seconds]
ursa-major has joined #ocaml
<discocaml> <idontwantausernamefeckoff> marcc: yeah
<discocaml> <idontwantausernamefeckoff> dune vendoring is your friend
pi3ce has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mmohammadi9812 has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mmohammadi9812 has quit [Remote host closed the connection]
mmohammadi9812 has joined #ocaml
mmohammadi9812 has quit [Ping timeout: 252 seconds]
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #ocaml
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #ocaml
Anarchos has joined #ocaml
ursa-major has quit [Quit: WeeChat 4.2.1]
ursa-major has joined #ocaml
raskol has joined #ocaml
ursa-major has quit [Client Quit]
bartholin has quit [Quit: Leaving]
ursa-major has joined #ocaml
torretto_ has quit [Remote host closed the connection]
torretto has joined #ocaml
<Anarchos> how could i break the type circularity ? https://bpa.st/CWYA
<discocaml> <._null._> and ?
<discocaml> <._null._> (the keyword)
<Anarchos> ._null_. demonstration > step > theorem > demonstration ...
<discocaml> <._null._> `type demonstration = (formula list * step) list and theorem = (formula, demonstration) theorem_logic and step = (formula,theorem) step_logic`
<discocaml> <._null._> Basically, there is no need to break the cycle, it is supported
rgrinberg has joined #ocaml
<Fardale> Anarchos: you either need to compile with -rectypes or you need to introduce a constructor, for exemple having `type step = Step of (formula, theorem) step_logic`
<discocaml> <._null._> Oh woops
<discocaml> <._null._> Add `[@@unboxed]` after the type declaration and it will compile as if you had recursive types
<Anarchos> thanks
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
azimut has quit [Ping timeout: 255 seconds]