rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Quit: Leaving.]
symdrome has left #ocaml [ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
myrkraverk has joined #ocaml
myrkraverk has quit [Quit: Leaving]
szkl has quit [Quit: Connection closed for inactivity]
agentcasey has quit [Quit: ZNC 1.10.x-git-27-bfd731cf - https://znc.in]
agentcasey has joined #ocaml
sroso has joined #ocaml
YuGiOhJCJ has joined #ocaml
<discocaml>
<sim642> Maybe the C stub that's being used isn't designed to work multithreaded?
hwj has joined #ocaml
hwj has quit [Client Quit]
Serpent7776 has joined #ocaml
hwj has joined #ocaml
Serpent7776 has quit [Ping timeout: 252 seconds]
Tuplanolla has joined #ocaml
olle has joined #ocaml
bartholin has joined #ocaml
<discocaml>
<alyxshang> Quick question: May I post a project in an hour or two in here and you give me some feedback on the following points:
<discocaml>
<alyxshang>
<discocaml>
<alyxshang> - Idiomatic-ness.
<discocaml>
<alyxshang> - Correctness.
<discocaml>
<alyxshang> - Elegance
<discocaml>
<alyxshang> I am kinda learning OCaml, coming from Rust and made a project to go _in medias res_.
<olle>
Forum might be better suited.
<discocaml>
<alyxshang> Not really too keen to make an account on the forum. I like Discord more, it's a bit more ad-hoc.
<olle>
You can link your github account.
Haudegen has joined #ocaml
luc4 has joined #ocaml
<discocaml>
<alyxshang> I wanted to do that anyway. 🙂
<discocaml>
<alyxshang> What's the difference between Opam and Dune?
<discocaml>
<alyxshang> I'm not quite sure I understand.
<discocaml>
<alyxshang> Like what problems do each of them solve?
<olle>
Opam is a package system, Dune is a build system, IIRC.
<discocaml>
<alyxshang> And what are Opam's switches?
<Inline>
toolsets
<Inline>
the default switch is the one which opam installs when you issue an opam init; opam update or so
<Inline>
you can switch between different ocaml versions
<Inline>
and those are called switches
<Inline>
not sure how it ties with the package system, so when you switch to another ocaml compiler, i don't think your package set changes necessarily, but when you install new software the package set may change depending on the resolver...
<Inline>
when the package depends on a certain version of the ocaml compiler your opam will install that along with that package
<Inline>
and that will be a new switch right ?
sroso has quit [Quit: Leaving :)]
Tuplanolla has quit [Quit: Leaving.]
<discocaml>
<octachron> Switches are set of packages
<discocaml>
<octachron> Nearly all switches will contain a compiler package
<discocaml>
<inline_93060_96044> ooh
<discocaml>
<inline_93060_96044> the bot copies my text from other irc channels to here
<discocaml>
<inline_93060_96044> heh
<Inline>
and vice versa too, it seems
<discocaml>
<Kali> yes, it's a bridge so that discord and irc are able to communicate
<Inline>
nice
Serpent7776 has joined #ocaml
* discocaml
<alyxshang> curtsies
<discocaml>
<alyxshang> Much obliged for the explanation. ❤️
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
<luc4>
Hello! I'm getting this segfault while making some changes to an open source app: https://pastebin.com/kT59x9B4. It started to happen when I introduced threads to make a sync call async. Anyone who can explain what this backtrace may mean?
<olle>
luc4: if you wanna make debuggers happy, try to reproduce a smallest example?
<luc4>
olle: I don't think I'll ever be able to do that. It happens when I try to make a sync function async. I suspect that simply moving it to a thread is wrong.
<olle>
Still, it should never segfault.
<luc4>
olle: I'm making changes to an open source app, and I'm changing the implementation of a couple of functions. Those functions are currently async and call callbacks when done. I'm doing pretty much the same, but to keep those async, I need to execute everything in a new thread. The problem is that, doing this, also the callback is called in that new thread. Do you think I have a way to execute the callback in the calling thread?
m5zs7k has quit [Ping timeout: 252 seconds]
<olle>
luc4: I never used OCaml 5, so no idea :)
<luc4>
olle: this is still ocaml4
<olle>
Oh
<olle>
So you're forking, luc4 ?
<olle>
Wait no
<olle>
Ah whatever
m5zs7k has joined #ocaml
olle has quit [Ping timeout: 244 seconds]
hwj has quit [Ping timeout: 272 seconds]
rgrinberg has joined #ocaml
casastorta has quit [Remote host closed the connection]
casastorta has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Inline has quit [Ping timeout: 244 seconds]
hwj has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
luc4 has quit [Quit: Konversation terminated!]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]