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/
slothby has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
szkl has quit [Quit: Connection closed for inactivity]
<discocaml_> <limp.biskit> why would records containing functions be used over bare objects / vice versa?
<discocaml_> <limp.biskit> objects not created as part of a class
<discocaml_> <akhilindurti> gotcha. i'm guessing if they built the operator in, they could avoid the value restriction
<discocaml_> <hockletock> records can be used in pattern matching @ada
<discocaml_> <hockletock> bare objects would let you reuse one object in contexts that don't have to share type information, just don't re-use method names incompatibly
masterbuilder has quit [Ping timeout: 240 seconds]
masterbuilder has joined #ocaml
mbuf has joined #ocaml
jabuxas has quit [Ping timeout: 256 seconds]
<discocaml_> <froyo> records are a lighter-weight option when you don't care about subtyping
<discocaml_> <froyo> and calling their fields is an indirect function call, rather than a heavier method call
<discocaml_> <froyo> (methods are looked up first)
<discocaml_> <froyo> objects can be lighter-weight in a specific style of execution
<discocaml_> <froyo> where you'd otherwise be copying & reallocating records a lot
hannes_ has joined #ocaml
hannes has quit [Ping timeout: 256 seconds]
waleee has quit [Ping timeout: 255 seconds]
<discocaml_> <limp.biskit> i’m trying to avoid any mutable state anyway using the {< syntax
<discocaml_> <limp.biskit> so any operation that mutates a value will produce a new object
<discocaml_> <limp.biskit> i don’t know if that’s related to what you’re talking about
<discocaml_> <limp.biskit> i’m converting (loosely) a type from being a functorized module to an object and i’m finding that object syntax is clunkier imo (losing out on pipelining and the other stuff you get with plain functions). so i was considering writing wrapper functions in a plain module. at which point records are likely better since i am not using any object syntax in the first place
vb has quit [Ping timeout: 246 seconds]
vb has joined #ocaml
wbooze has quit [Remote host closed the connection]
<discocaml_> <coolccat> I wonder if a non-programmer ever heard of “OCaml” in a conversation and thought it was an Irish last name
<companion_cube> OCaml my Caml
dmbaturin has quit [Ping timeout: 246 seconds]
dmbaturin has joined #ocaml
wbooze has joined #ocaml
torretto has quit [Ping timeout: 260 seconds]
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
hannes_ is now known as hannes
bibi_ has quit [Quit: Konversation terminated!]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Read error: Connection reset by peer]
myrkraverk__ has joined #ocaml
myrkraverk_ has quit [Read error: Connection reset by peer]
torretto has joined #ocaml
<discocaml_> <froyo> Ada: I believe only the fields of an object get reallocated, not the methods. but objects incur a bit of an overhead on their own. an empty object (`object end`) is eight words if I'm not mistaken.
bartholin has quit [Ping timeout: 272 seconds]
torretto has quit [Ping timeout: 260 seconds]
torretto has joined #ocaml
nickiminjaj has joined #ocaml
nickiminjaj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nickiminjaj has joined #ocaml
nickiminjaj has quit [Client Quit]
sailorCat has quit [Ping timeout: 256 seconds]
sailorCat has joined #ocaml
cr1901 has quit [Read error: Connection reset by peer]
cr1901_ has joined #ocaml
wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
<discocaml_> <Kali> apparently even programmers do, i've seen websites that call it O'Caml
bartholin has joined #ocaml
jabuxas has joined #ocaml
<discocaml_> <holmdunc> I think that was in fact the official way to write it, ages ago
<discocaml_> <._null._> It appears this is true: https://web.archive.org/web/20020328194845/http://www.ocaml.org:80/
toastal has joined #ocaml
jabuxas has quit [Quit: oops :p]
<rustyne> or at least a common way to abbreviate Objective Caml
myrkraverk_ has joined #ocaml
myrkraverk__ has quit [Read error: Connection reset by peer]
<rustyne> (as the tools where already `ocaml*`, it was a natural abbreviation)
<rustyne> s/where/were/
<discocaml_> <holmdunc> At the bottom of that old site it says that the webmaster is Julian Assange 🙂
myrkraverk_ has quit [Read error: Connection reset by peer]
myrkraverk_ has joined #ocaml
myrkraverk_ has quit [Read error: Connection reset by peer]
myrkraverk_ has joined #ocaml
wbooze has quit [Quit: Konversation terminated!]
Inline has joined #ocaml
wbooze has joined #ocaml
wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
<discocaml_> <limp.biskit> should’ve named the mac release MacCaml
<discocaml_> <deepspacejohn> there was (is?) an unfortunately-named ocaml blockchain thing called "SCaml"
<discocaml_> <Kali> that's very funny
<discocaml_> <limp.biskit> actual tagline https://scamlang.dev/
myrkraverk__ has joined #ocaml
myrkraverk_ has quit [Ping timeout: 268 seconds]
waleee has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
myrkraverk_ has joined #ocaml
myrkraverk__ has quit [Read error: Connection reset by peer]
<discocaml_> <barconstruction> Opam team is teasing us with the first release candidate for opam 2.2, after six pre-releases. I'm so ready for a convenient setup on windows! Dkml worked well for me personally but a friend had problems with it
<discocaml_> <limp.biskit> dkml was a nightmare for me, but i have very little patience with windows
<discocaml_> <limp.biskit> opam 2.2 looks great
<discocaml_> <limp.biskit> i tried out the docker containers a bit and they worked good
mbuf has quit [Quit: Leaving]
Tuplanolla has joined #ocaml
waleee has joined #ocaml
jabuxas has joined #ocaml
toastal has left #ocaml [Disconnected: Hibernating too long]
Anarchos has joined #ocaml
<discocaml_> <endymion_alt> is there a way to get the implementation of a function generated by a ppx?
jabuxas has quit [Ping timeout: 256 seconds]
jabuxas has joined #ocaml
jabuxas has quit [Client Quit]
Inline has quit [Remote host closed the connection]
Inline has joined #ocaml
wbooze has quit [Remote host closed the connection]
wbooze has joined #ocaml
jabuxas has joined #ocaml
waleee has quit [Remote host closed the connection]
waleee has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Tuplanolla has quit [Quit: Leaving.]
Serpent7776 has quit [Ping timeout: 252 seconds]
bartholin has quit [Quit: Leaving]
waleee has quit [Ping timeout: 252 seconds]
waleee has joined #ocaml
waleee has quit [Ping timeout: 255 seconds]
jabuxas has quit [Remote host closed the connection]
jabuxas has joined #ocaml
jabuxas has quit [Remote host closed the connection]
jabuxas has joined #ocaml
waleee has joined #ocaml
jabuxas has quit [Ping timeout: 256 seconds]
malte has quit [Read error: Connection reset by peer]
malte has joined #ocaml
Exagone313 has joined #ocaml
Exa has quit [Read error: Connection reset by peer]
Exagone313 is now known as Exa