<reynir>
can you move an opam switch created in a directory?
<reynir>
Say, I have a directory foo/ and inside of that an opam switch foo/_opam/. Can I rename foo/ to bar/ without breaking the opam switch? I vaguely remember something about non-relocatable compiler
<hannes>
reynir: since the ocaml compiler is not relocatable, you cannot
<reynir>
ok thanks. I suspected so :/
<gooby323>
Why is it non-relocatable?
<hannes>
gooby323: I don't have a clear answer, but maybe https://github.com/ocaml/ocaml/issues/5950 helps to understand.. and there's some ongoing work in that area by dra27 as far as I know (but not clear to me what are the milestones / timeline)
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
Inline has joined #ocaml
toastal has quit [Ping timeout: 268 seconds]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 272 seconds]
waleee has joined #ocaml
toastal has joined #ocaml
quernd80 has joined #ocaml
quernd801 has quit [Ping timeout: 246 seconds]
toastal has left #ocaml [Error from remote client]
toastal has joined #ocaml
dev2 has quit [Quit: WeeChat 4.3.1]
jabuxas has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
SquidDev has quit [Ping timeout: 255 seconds]
hannes has quit [Quit: leaving]
dev2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
trillion_exabyte has quit [Ping timeout: 264 seconds]
trillion_exabyte has joined #ocaml
Inline has quit [Quit: Konversation terminated!]
Inline has joined #ocaml
hannes has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
gooby323 has quit [Quit: Konversation terminated!]
xenu has quit [Quit: leaving]
xenu has joined #ocaml
<discocaml>
<deepspacejohn> Since there was some discussion about ChatGPT and OCaml on the Discuss forum, I decided to see how it handles the common issue of dealing with unicode. (spoiler, it's not great) https://chatgpt.com/share/68a98fc7-4604-4af9-9301-1b13eeecea8b
alexherbo2 has joined #ocaml
troydm has quit [Ping timeout: 252 seconds]
alexherbo2 has quit [Remote host closed the connection]
<discocaml>
<froyo> the discussion i know of in the forums was how chatgpt is degrading access to our lang resources via seo-optimized ocalwiki
<discocaml>
<froyo> ah i made the mistake of repeating the same word of an acronym lol
JSharp has quit [Ping timeout: 256 seconds]
Duns_Scrotus____ has quit [Ping timeout: 256 seconds]
JSharp has joined #ocaml
Duns_Scrotus____ has joined #ocaml
<discocaml>
<deepspacejohn> oh wow, I forgot all about ocamlwiki. I guess it's gone now, apparently
waleee has joined #ocaml
danishman has joined #ocaml
ocra8 has quit [Read error: Connection reset by peer]
<discocaml>
<andreypopp> In the last response, I did try Option 1 first, didn't work and Option 2 worked
<discocaml>
<deepspacejohn> IDK, whichever model was the default. But your prompt is different than mine, since I asked it to only use the stdlib. In either prompting, ChatGPT doesn't seem to know that `String.get_utf_8_uchar` exists.
<discocaml>
<andreypopp> idk, chatgpt4 is pretty useful for me, but I use it mainly for bash 🙂
<discocaml>
<andreypopp> ^ the snippet above worked as well, but I didn't review it fully
<discocaml>
<andreypopp> and I didn't know about String.get_utf_8_uchar either!
<discocaml>
<deepspacejohn> from glancing at it, it looks like that's doing what get_utf_8_uchar does. so that's better than what I got (I'm assuming it works correctly) but I'd still hate to be a beginner who copies/pastes that code when I could just use the stdlib function.
<discocaml>
<deepspacejohn> maybe that particular example will get better if it gets trained on more/better OCaml code, but it's still a reason why I'm hesitant to recommend ChatGPT for OCaml right now.
<discocaml>
<andreypopp> well, at least it hints first at some libs which can be used for unicode handling, then provides an example usage
<discocaml>
<andreypopp> I think it's pretty good, not for learning how to program but for orienting within the ecosystem
<discocaml>
<andreypopp> although it definitely going to get confused on which libs one need to opam pin to start some web framework 😄
Serpent7776 has quit [Quit: leaving]
motherfsck has quit [Quit: quit]
Tuplanolla has joined #ocaml
<discocaml>
<qexat> thats lowkey dangerous 😭
<dh`>
using llms for code generation is generally inadvisable
<discocaml>
<limp.biskit> using llms is generally inadvisable
<discocaml>
<limp.biskit> unless you are in the business of SEO optimised slop
inline_ has joined #ocaml
Inline has quit [Ping timeout: 264 seconds]
quernd80 has quit [Quit: Ping timeout (120 seconds)]