waleee-cl has quit [Quit: Connection closed for inactivity]
jnavila has joined #ocaml
_ks has quit [Quit: WeeChat 2.9]
jnavila has quit [Client Quit]
_ks has joined #ocaml
wingsorc has quit [Ping timeout: 260 seconds]
def has joined #ocaml
wonko7 has joined #ocaml
mxns has quit [Ping timeout: 268 seconds]
webshinra_ has quit [Remote host closed the connection]
webshinra has joined #ocaml
camlriot42 has quit [Quit: Idle for 30+ days]
wonko7 has quit [Ping timeout: 268 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
Haudegen has joined #ocaml
bartholin has joined #ocaml
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
borne has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 268 seconds]
osa1 has quit [Quit: osa1]
osa1 has joined #ocaml
dhil has joined #ocaml
RalfJ has quit [Remote host closed the connection]
RalfJ has joined #ocaml
mfp has joined #ocaml
osa1 has quit [Ping timeout: 246 seconds]
borne has quit [Ping timeout: 268 seconds]
objmagic has joined #ocaml
objmagic has quit [Client Quit]
Haudegen has quit [Quit: Bin weg.]
objmagic has joined #ocaml
plant_enjoyer has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
<mosterdt>
Hi all. I was wondering if anyone here is participating in Advent of Code and publishing their solutions? I'm doing them myself, but I feel like there are better (more ocaml like) ways to solve some challenges
<d_bot>
<Lupus> is there some neat library for caches with lru semantics and ttl support? I found some lru implementations, but they do not support removing stale elements, not a big deal to do that, but may be this bicycle is already invented 🙂
objmagic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
narimiran has quit [Ping timeout: 256 seconds]
hnOsmium0001 has joined #ocaml
aaaaaa has joined #ocaml
objmagic has joined #ocaml
Jesin has quit [Quit: Leaving]
borne has quit [Ping timeout: 268 seconds]
zv has quit [Ping timeout: 268 seconds]
Jesin has joined #ocaml
zv has joined #ocaml
aaaaaa has quit [Quit: leaving]
mrvn has quit [Ping timeout: 256 seconds]
mrvn has joined #ocaml
amiloradovsky has joined #ocaml
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
shmibs has quit [Quit: leaving =o]
shmibs has joined #ocaml
wingsorc has joined #ocaml
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #ocaml
jnavila has quit [Quit: Konversation terminated!]
steenuil_ has joined #ocaml
steenuil has quit [Ping timeout: 240 seconds]
wonko7 has quit [Ping timeout: 268 seconds]
<d_bot>
<beheddard> So, I don't know the proper words for these things, but why is giving a string (as a value) that has a '\n' in it, different from creating a new string from a literal with a newline escape in it?
<d_bot>
<beheddard> ```ocaml
<d_bot>
<beheddard> let s = "foo\nbar" in
<d_bot>
<beheddard> text s
<d_bot>
<beheddard> ```
<d_bot>
<beheddard> giving different results than
<d_bot>
<beheddard> ```ocaml
<d_bot>
<beheddard> text "foo\nbar"
<d_bot>
<beheddard> ```
<d_bot>
<beheddard> ( context is giving strings to text nodes to display in Revery -- well Bonsai_revery in this case )
borne has joined #ocaml
<d_bot>
<beheddard> But I feel like this is obviously a deeper issue that I haven't figured out the keywords for yet
borne has quit [Ping timeout: 268 seconds]
<d_bot>
<beheddard> Actually that's wrong. If I do it like above, it is the same. But if the string is stored in a model (Bonsai stuff) in an option, then retrieved with Option.value, *then* the "\n" ends up appearing in the displayed text, rather than as a line break
<d_bot>
<beheddard> Anyway, feeling like an idiot and not sure what is fundamentally changing here
borne has joined #ocaml
<d_bot>
<beheddard> Now that I have made an idiot of myself, it's dawning on me that of course something is happening to it at the input stage otherwise a string could end with a \ during user input