Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.1.1 released: https://ocaml.org/releases/5.1.1 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
delyan_ has joined #ocaml
waleee has quit [Ping timeout: 264 seconds]
myrkraverk_ has quit [Ping timeout: 260 seconds]
myrkraverk has joined #ocaml
sroso has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
kotrcka has joined #ocaml
end has quit [Quit: end]
bcksl has quit [Quit: \]
kotrcka has left #ocaml [ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
bcksl has joined #ocaml
end has joined #ocaml
jabuxas has quit [Ping timeout: 255 seconds]
mbuf has joined #ocaml
Serpent7776 has joined #ocaml
mima has joined #ocaml
cr1901_ has joined #ocaml
cr1901 has quit [Ping timeout: 268 seconds]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #ocaml
bartholin has joined #ocaml
zanetti has joined #ocaml
myrkraverk_ has joined #ocaml
myrkraverk has quit [Read error: Connection reset by peer]
torretto has quit [Ping timeout: 260 seconds]
mbuf has quit [Ping timeout: 260 seconds]
sroso has quit [Quit: Leaving :)]
bartholin has quit [Quit: Leaving]
mbuf has joined #ocaml
mbuf has quit [Quit: Leaving]
zanetti has quit [Quit: zanetti]
torretto has joined #ocaml
n8n has joined #ocaml
waleee has joined #ocaml
Anarchos has joined #ocaml
Tuplanolla has joined #ocaml
cr1901_ is now known as cr1901
<discocaml> <lukstafi> Another reason for functors: make your global state code reentrant by requiring different threads to use different instances of the module.
<companion_cube> I've used that recently, but really it's a horrible hack
<companion_cube> better way is to not have global state
<companion_cube> (looking at you compiler-libs)
<Anarchos> global state are a nightmare indeed. And in functional programming, it is so easy to pass states as additional parameters to functions !
<discocaml> <deepspacejohn> in a personal project I recently started using effects to manage global state and I kind of like it. IDK if it's a good idea in general or not yet.
<companion_cube> it's useful to have a bit of thread-local state imho, but well
<companion_cube> truly global state should be sparely used, and probably protected by a mutex
<discocaml> <limp.biskit> why are unix timestamps float instead of int64? something to do with runtime?
<companion_cube> you mean Unix.gettimeofday?
<discocaml> <lukstafi> A good argument why functors are a better fit for OCaml than Haskell.
<discocaml> <limp.biskit> companion_cube: yeah
<companion_cube> hmm I think the C-level result is a pair of seconds + picoseconds, right?
<discocaml> <limp.biskit> Ptime also needs more steps to use an int, but has a direct of_float_s functions
<discocaml> <limp.biskit> i think so
<discocaml> <limp.biskit> timeval is
<companion_cube> ptime was written years (if not decades) later, and more thoughtfully
<companion_cube> it's probably better to use ptime/mtime anyway, Unix.gettimeofday is good for simple usecases imho
olle has quit [Ping timeout: 255 seconds]
waleee has quit [Ping timeout: 260 seconds]
deadmarshal_ has quit [Ping timeout: 246 seconds]
Anarchos has quit [Quit: Client closed]
jabuxas has joined #ocaml
alexherbo2 has joined #ocaml
deadmarshal_ has joined #ocaml
bartholin has joined #ocaml
deadmarshal_ has quit [Quit: IRCNow and Forever!]
deadmarshal_ has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
olle has joined #ocaml
kurfen has quit [Read error: Connection reset by peer]
kurfen has joined #ocaml
jabuxas has quit [Ping timeout: 255 seconds]
<discocaml> <limp.biskit> ocaml site down for anyone else?
<discocaml> <eduardorfs> working here
<discocaml> <limp.biskit> oh, it was just google sending me to a dead link
jabuxas has joined #ocaml
olle has quit [Ping timeout: 260 seconds]
waleee has joined #ocaml
jabuxas has quit [Ping timeout: 260 seconds]
ns12 has quit [Quit: bye]
ns12 has joined #ocaml
torretto has quit [Remote host closed the connection]
myrkraverk_ has quit [Read error: Connection reset by peer]
torretto has joined #ocaml
myrkraverk_ has joined #ocaml
infinity0 has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 260 seconds]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
waleee has joined #ocaml
infinity0 has joined #ocaml
alexherbo2 has joined #ocaml
Serpent7776 has quit [Ping timeout: 264 seconds]
bartholin has quit [Quit: Leaving]
mima has quit [Ping timeout: 246 seconds]
jabuxas has joined #ocaml
Tuplanolla has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Remote host closed the connection]
motherfsck has quit [Quit: quit]