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 joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
mxns has quit [Ping timeout: 256 seconds]
Tuplanolla has quit [Quit: Leaving.]
mxns has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
Haudegen has quit [Ping timeout: 265 seconds]
sm2n_ has quit [Ping timeout: 256 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
mxns has joined #ocaml
kvik has quit [Read error: Connection reset by peer]
kvik has joined #ocaml
madroach has joined #ocaml
madroach_ has quit [Ping timeout: 256 seconds]
mfp has quit [Ping timeout: 256 seconds]
borne has quit [Ping timeout: 272 seconds]
mfp has joined #ocaml
objmagic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vicfred has joined #ocaml
mfp has quit [Ping timeout: 256 seconds]
narimiran has joined #ocaml
emp has quit [Quit: ZNC 1.8.2 - https://znc.in]
emp has joined #ocaml
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
<hannes> I've seen Armael doing advent of code at https://github.com/Armael/aoc
<mosterdt> That's exactly what I was looking for, thanks!
<Armael> heh :) note that my solutions so far have been "what works first", I haven't attempted to clean them up or anything
Haudegen has joined #ocaml
plant_enjoyer has quit [Quit: Leaving]
<mosterdt> Armael: that's alright, seeing different ways to solve a problem might help me get to some parts of ocaml I didn't find out before
waleee-cl has joined #ocaml
wonko7 has joined #ocaml
osa1 has joined #ocaml
mxns has joined #ocaml
Tuplanolla has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
<gahr> "opam init" doesn't dump the env_hook file to ~/.opam/opam-init/env_hook.csh if I choose not to enanle the env hook
<gahr> but it still tries to source it from ~/.opam/opam-init/init.csh
<gahr> is that a known issue?
Haudegen has quit [Quit: Bin weg.]
borne has joined #ocaml
mxns has quit [Ping timeout: 256 seconds]
mxns has joined #ocaml
bartholin has quit [Quit: Leaving]
jnavila has joined #ocaml
Haudegen has joined #ocaml
zv has joined #ocaml
<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 🙂
tane has joined #ocaml
<hannes> Lupus: not that I'm aware of (I'm interested in this as well) -- so far I'm using "lru" and custom cache eviction when the cache entry is too old (see https://github.com/mirage/ocaml-dns/blob/master/cache/dns_cache.ml#L174-L186)
mxns has quit [Ping timeout: 240 seconds]
shmibs has quit [Quit: leaving =o]
shmibs has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns_ has joined #ocaml
mxns has quit [Ping timeout: 268 seconds]
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
<d_bot> <beheddard> so it's being escaped. 🤦‍♂️
dhil has quit [Ping timeout: 272 seconds]
<d_bot> <beheddard> ( deleted boneheaded question, sorry )
mxns_ has quit [Ping timeout: 272 seconds]
mxns has joined #ocaml
mxns has quit [Client Quit]
mxns has joined #ocaml
tane has quit [Quit: Leaving]
mxns has quit [Ping timeout: 268 seconds]
Jeanne-Kamikaze has joined #ocaml