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/
oisota has quit [Quit: Ping timeout (120 seconds)]
oisota has joined #ocaml
Opus has quit [Quit: .-.]
dme2 has quit [Quit: ZNC 1.8.2 - https://znc.in]
dme2 has joined #ocaml
Everything has quit [Quit: leaving]
Opus has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Quit: Leaving.]
<discocaml> <deepspacejohn> Also “generative” functors are able to create modules with no input module, specifically for creating new types.
<dh`> hmm this seems broken
<dh`> % dune --version
<dh`> n/a
<discocaml> <mbacarella> functors are monads in which the bind operation degenerates into a lifting of pure morphisms, such that the monadic structure collapses into a single-layer context application without requiring a join to resolve nested contexts.
<discocaml> <mbacarella> what's the problem?
agentcasey has quit [Remote host closed the connection]
Stumpfenstiel has quit [Ping timeout: 276 seconds]
zenmov has joined #ocaml
<discocaml> <darrenldl> is it correct that in order to statically link C dependencies, the i need to write C stubs for ctypes instead of using the dynamic lookups?
<dh`> depends what you're statically linking
<discocaml> <darrenldl> trying to link either zstd lib or zlib
<dh`> I would expect that everything in ctypes comes from libc, so as long as you don't link libc statically there shouldn't be problems
<discocaml> <darrenldl> and deciding between camlzip and zstd package, latter of which doesn't use C stubs, and I can't remember if that caused issue for me in the past
<discocaml> <darrenldl> yeah...i'm trying to link on alpine with musl
<dh`> I remember using ctypes for something or other at some point but I can't remember what and it wasn't very intensive
<dh`> so mostly I dunno but I can tell you things about dynamic linking
<dh`> (mostly things that will make your hair curl, soundness isn't even a remote consideration)
agentcasey has joined #ocaml
f[x] has joined #ocaml
f[x] has quit [Remote host closed the connection]
ygrek has joined #ocaml
troydm has quit [Ping timeout: 248 seconds]
<discocaml> <diligentclerk> I know you're joking around but OCaml module functors are named by loose analogy to category-theoretic functors rather than by formal correspondence so it can be confusing to conflate them
<discocaml> <diligentclerk> ```ocaml
<discocaml> <diligentclerk> module type S =
<discocaml> <diligentclerk> type t
<discocaml> <diligentclerk> val s : (t -> t) -> t
<discocaml> <diligentclerk> end
<discocaml> <diligentclerk> ```
<discocaml> <diligentclerk> I think this should be an example of a module type where there is not a sensible way to define a category of modules and module homomorphisms
<discocaml> <diligentclerk> Also yeah that is some comically confusing prose 😄
ygrek has quit [Remote host closed the connection]
dh` has quit [Read error: Connection reset by peer]
dh` has joined #ocaml
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
cr1901_ is now known as cr1901
<discocaml> <iamjcchan> is there a production ready http framework/server for ocaml 5?
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
Serpent7776 has quit [Ping timeout: 276 seconds]
Tuplanolla has joined #ocaml
YuGiOhJCJ has joined #ocaml
<discocaml> <lecondorduplateau> there is <https://github.com/robur-coop/httpcats>
rgrinberg has joined #ocaml
<discocaml> <lecondorduplateau> even its not really a "framework"
<discocaml> <lecondorduplateau> rather a library
<discocaml> <dinosaure> We added recently the hack into `ocaml-tar` but I see, from my experience:
<discocaml> <dinosaure> 1) It's really unusual for other users to be faced with this design (and therefore not easy to reappropriate).
<discocaml> <dinosaure> 2) The syntax becomes rather cumbersome (between projection/injection and monads).
<discocaml> <dinosaure> 3) As @octachron mentioned, it's still a fairly fragile trick (particularly because of the `Obj.magic`).
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Serpent7776 has joined #ocaml
Haudegen has joined #ocaml
agentcasey has quit [Ping timeout: 265 seconds]
toastal has quit [Ping timeout: 272 seconds]
<companion_cube> @iamjcchan people often use opium or dream
olle__ has joined #ocaml
olle__ has quit [Ping timeout: 272 seconds]
olle_ has joined #ocaml
olle_ has quit [Ping timeout: 276 seconds]
rgrinberg has joined #ocaml
casastorta has quit [Quit: ZNC 1.9.1 - https://znc.in]
<companion_cube> Didn't realize piaf was also server side
casastorta has joined #ocaml
<discocaml> <yawaramin> yeah the request and response types are the same so it's symmetrical
<companion_cube> Same as dream heh
<discocaml> <yawaramin> sorry i meant specifically that the server and client have the same request and response types. but you're right about Dream using the same base 'message' type for both. plus the Hyper client library also has the property of using the same request and response types that Dream does
Stumpfenstiel has joined #ocaml
Stumpfenstiel has quit [Changing host]
Stumpfenstiel has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
euphores has quit [Read error: Connection reset by peer]
rgrinberg has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
euphores has joined #ocaml
germ_ has quit [Read error: Connection reset by peer]
germ_ has joined #ocaml
Anarchos has joined #ocaml
jsoo has joined #ocaml
ygrek has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
toastal has joined #ocaml
rgrinberg has joined #ocaml
Everything has joined #ocaml
oriba has joined #ocaml
bartholin has quit [Quit: Leaving]
Serpent7776 has quit [Ping timeout: 255 seconds]
<dh`> is one supposed to recompile everything if going from 4.12.1 to 4.12.2?
<dh`> er
<dh`> 4.14.1 to 4.14.2
pie_ has quit []
pie_ has joined #ocaml
terrorjack4 has quit [Quit: The Lounge - https://thelounge.chat]
Everything has quit [Ping timeout: 265 seconds]
terrorjack4 has joined #ocaml
Everything has joined #ocaml