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/
vb has quit [Ping timeout: 260 seconds]
vb has joined #ocaml
waleee has quit [Ping timeout: 268 seconds]
jabuxas has quit [Ping timeout: 255 seconds]
hannes has joined #ocaml
reynir has joined #ocaml
Serpent7776 has joined #ocaml
reynir1 has joined #ocaml
reynir has quit [Quit: WeeChat 3.8]
reynir1 is now known as reynir
gooby323 has joined #ocaml
sadome has joined #ocaml
sadome has joined #ocaml
sadome has quit [Excess Flood]
bartholin has joined #ocaml
toastal has joined #ocaml
Franciman has quit [Ping timeout: 255 seconds]
<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 joined #ocaml
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]
ocra8 has joined #ocaml
<discocaml> <andreypopp> @deepspacejohn what model did you try? here's chatgpt4 https://chatgpt.com/share/7904ec57-b755-47cb-b18c-e316eb0129c0
<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> this is when I've asked to use only Stdlib https://chatgpt.com/share/4be13f44-93b3-4ba2-abda-3376e42ee393
<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)]
quernd80 has joined #ocaml
danishman has quit [Quit: Leaving]
wagle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wagle has joined #ocaml
wagle has quit [Client Quit]
wagle has joined #ocaml
bartholin has quit [Quit: Leaving]
wagle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wagle has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
hannes_ has joined #ocaml
hannes has quit [Ping timeout: 255 seconds]