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
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
wonko7 has quit [Ping timeout: 240 seconds]
mxns has quit [Ping timeout: 260 seconds]
vicfred has quit [Quit: Leaving]
mxns has joined #ocaml
brettgilio has quit [Quit: Long live IRC! <https://brettgilio.com/irc.html>]
mxns has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
Haudegen has quit [Ping timeout: 260 seconds]
brettgilio has joined #ocaml
brettgilio has quit [Quit: Long live IRC! <https://brettgilio.com/irc.html>]
bjorkintosh has joined #ocaml
GZJ0X_ has joined #ocaml
brettgilio has joined #ocaml
Jeanne-Kamikaze has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
vicfred has joined #ocaml
osa1_ has joined #ocaml
osa1 has quit [Ping timeout: 265 seconds]
<d_bot> <Eric J Morey> Anyone here working on the Advent of code challenges this year using OCaml?
aaaaaa has joined #ocaml
<d_bot> <Eric J Morey> @pm did your use hashtbl to solve day one?
<d_bot> <pm> no, i just used lists
FreeBirdLjj has joined #ocaml
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #ocaml
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #ocaml
ldbeth has joined #ocaml
<ldbeth> hello
<ldbeth> what does Obj.dup do?
<companion_cube> I don't know, and I think you shouldn't be using Obj
<companion_cube> I certainly don't
nullcone has joined #ocaml
<ldbeth> git blame says "the correct fix is relatively simple ... will do it after the paper deadline" and the date is 2006 Mar 3
<companion_cube> I meant the part about not using Obj.magic :p
<companion_cube> (or Obj in general, really)
<ldbeth> the rationale is, i'm trying to remove the use of Obj, but cannot figure out why it is used there
<companion_cube> I'd imagine it copies a block
<companion_cube> and just the block (not a deep copy)
<ldbeth> i see, it tries to copy a record with mutable fields
<companion_cube> can you just do `{foo with x=foo.x}`?"
<companion_cube> that's my way of doing copies
<companion_cube> s/my way/the way I know for/
<ldbeth> sure
mxns has joined #ocaml
GZJ0X_ has quit [Remote host closed the connection]
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
mfp has quit [Ping timeout: 260 seconds]
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
FreeBird_ has quit [Ping timeout: 246 seconds]
Jeanne-Kamikaze has quit [Quit: Leaving]
narimiran has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
FreeBird_ has quit [Ping timeout: 258 seconds]
mbuf has joined #ocaml
GZJ0X_ has joined #ocaml
GZJ0X_ has quit [Ping timeout: 256 seconds]
ldbeth has quit [Quit: ERC (IRC client for Emacs 27.1)]
waleee-cl has quit [Quit: Connection closed for inactivity]
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Tuplanolla has joined #ocaml
wonko7 has joined #ocaml
tryte has quit [Remote host closed the connection]
tryte has joined #ocaml
mbuf has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 265 seconds]
neiluj has joined #ocaml
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
jnavila has joined #ocaml
Haudegen has joined #ocaml
GZJ0X_ has joined #ocaml
tane has joined #ocaml
mfp has joined #ocaml
steenuil has quit [Ping timeout: 256 seconds]
steenuil has joined #ocaml
osa1_ is now known as osa1
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #ocaml
GZJ0X_ has quit [Read error: Connection reset by peer]
GZJ0X_ has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
steenuil has quit [Ping timeout: 256 seconds]
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #ocaml
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #ocaml
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #ocaml
GZJ0X_ has quit [Remote host closed the connection]
GZJ0X_ has joined #ocaml
GZJ0X_ has quit [Remote host closed the connection]
steenuil has joined #ocaml
waleee-cl has joined #ocaml
FreeBirdLjj has joined #ocaml
infinity0 has quit [Ping timeout: 260 seconds]
infinity0 has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
schlaftier has joined #ocaml
ygrek has joined #ocaml
mbuf has joined #ocaml
steenuil has quit [Ping timeout: 272 seconds]
steenuil has joined #ocaml
Jeanne-Kamikaze has joined #ocaml
hnOsmium0001 has joined #ocaml
elfring has joined #ocaml
mbuf has quit [Quit: Leaving]
neiluj has quit [Remote host closed the connection]
catern has quit [Ping timeout: 240 seconds]
drewolson has quit [Ping timeout: 240 seconds]
drewolson has joined #ocaml
runciter has quit [Ping timeout: 240 seconds]
motherfsck has quit [Quit: quit]
catern has joined #ocaml
runciter has joined #ocaml
aaaaaa has quit [Quit: leaving]
objmagic has joined #ocaml
narimiran has quit [Ping timeout: 272 seconds]
objmagic has quit [Ping timeout: 272 seconds]
objmagic has joined #ocaml
objmagic_ has joined #ocaml
objmagic has quit [Ping timeout: 256 seconds]
TheLemonMan has joined #ocaml
vesper has quit [Ping timeout: 240 seconds]
vesper11 has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
objmagic_ has quit [Ping timeout: 258 seconds]
objmagic has joined #ocaml
objmagic has quit [Ping timeout: 272 seconds]
sugarwren has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
madroach_ has quit [Quit: leaving]
amiloradovsky has joined #ocaml
<d_bot> <theangryepicbanana> also curious, is there a way to get/check the type of a class instance? idc about rtti, just wondering if it's possible
sugarwren has quit [Quit: Leaving]
<d_bot> <Drup> Dynamically, no, it isn't
<d_bot> <theangryepicbanana> rip
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
<def> Drup: well, one could make a witness using an extensible type for instance.
<d_bot> <theangryepicbanana> yeah that's sorta what I'm doing for downcasting
zolk3ri has joined #ocaml
amiloradovsky has quit [Ping timeout: 260 seconds]
amiloradovsky has joined #ocaml
elfring has quit [Quit: Konversation terminated!]
jnavila has quit [Ping timeout: 272 seconds]
zolk3ri has quit [Remote host closed the connection]
objmagic has joined #ocaml
Anarchos has joined #ocaml
objmagic_ has joined #ocaml
objmagic has quit [Ping timeout: 272 seconds]
vesper11 has quit [Ping timeout: 240 seconds]
vesper11 has joined #ocaml
objmagic has joined #ocaml
objmagic_ has quit [Ping timeout: 256 seconds]
objmagic_ has joined #ocaml
objmagic has quit [Ping timeout: 272 seconds]
banjomet has joined #ocaml
<banjomet> can someone help me with this code?
<Anarchos> banjomet which code ?
<banjomet> sorry wrong channel
banjomet has quit [Client Quit]
guanohhh has joined #ocaml
<guanohhh> hey I am having trouble with my homework problems. I was wondering what is wrong with this: https://paste.ofcode.org/5q7nDwEUsyrizgjcHTANPF
<Anarchos> guanohhh let met see
<guanohhh> Anarchos: thank you!
tane has quit [Quit: Leaving]
<Anarchos> guanohhh y is a list but should have same type as lst which is a couple
<Anarchos> guanohhh try to stick as close as semantics as possible when choosing the name of a variable : don't call it 'lst' if it is a tuple....
<guanohhh> okay. but why am I getting that error, if I am calling less with the appropriate arguments (the tuple) of a, lst?
<Anarchos> no i mean that lst is indeed a tuple
<Anarchos> so y, used as second parameter of less, should be a tuple too, but you use it as a list in x::y
<guanohhh> I am sorry, but to clear things up, do you call the sequence of argument passed to a function the argument tuple in OCaml?