companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
uncomfy has quit [Quit: uncomfy]
Tuplanolla has quit [Quit: Leaving.]
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
brettgilio9 has joined #ocaml
brettgilio has quit [Ping timeout: 240 seconds]
brettgilio9 is now known as brettgilio
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
brettgilio has quit [Client Quit]
brettgilio has joined #ocaml
xx_lalo_xx[m] has quit [Server closed connection]
xx_lalo_xx[m] has joined #ocaml
TrillionEuroNote has quit [Ping timeout: 246 seconds]
TrillionEuroNote has joined #ocaml
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
riverdc has quit [Quit: quitting]
spip has quit [Ping timeout: 240 seconds]
riverdc has joined #ocaml
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
chrisz has quit [Ping timeout: 240 seconds]
brettgilio has joined #ocaml
chrisz has joined #ocaml
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
gwizon has quit [Quit: leaving]
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
brettgilio has quit [Client Quit]
brettgilio has joined #ocaml
uncomfy has joined #ocaml
Techcable has quit [Ping timeout: 240 seconds]
uncomfy has quit [Remote host closed the connection]
mbuf has joined #ocaml
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
gareppa has joined #ocaml
pukkamustard has left #ocaml [#ocaml]
bartholin has quit [Quit: Leaving]
henrytill has quit [Ping timeout: 245 seconds]
henrytill has joined #ocaml
spip has joined #ocaml
Tuplanolla has joined #ocaml
waleee has joined #ocaml
<greenbagels> hm; i asked a question a week-ish ago about having an Lwt-based chat bot that has to constantly ping a server with keepalives
<greenbagels> and the proposed solution was to "Lwt.async a function that just calls itself in a loop, with a sleep in the middle"
<greenbagels> hm nevermind let me think about my question more
<greenbagels> hm nevermind let me think about my question more
<greenbagels> oops
<companion_cube> that's what ocabot does
<greenbagels> right, i think that solution works, i think i just misunderstand how to use lwt effectively, heh
<greenbagels> questions like "should all my printfs become Lwt_io.printfs? should all functions that return () somewhere within an Lwt_main.run call return () Lwt.t instead?" etc
<haesbaert> (it's ok to print in a non co-operative way)
<haesbaert> assuming stdout is a tty and not some pipe
<greenbagels> I guess the case I'm thinking of where my second question arises is if I have a bunch of pattern matching clauses where some return unit and some return unit Lwt.t
<greenbagels> And I suppose there's no harm in wrapping the expressions returning unit type with Lwt.return
<discocaml> <darrenldl> indeed. and, well, there's not much alternative
azimut has quit [Ping timeout: 240 seconds]
waleee has quit [Ping timeout: 246 seconds]
waleee has joined #ocaml
Anarchos has joined #ocaml
terri37 has joined #ocaml
<discocaml> <dexmax> Is there any way to match a list based on its length without just using the List.length?
<discocaml> <dexmax> Because I also want to get the last element of the list without traversing the list twice
terri37 has quit [Quit: Client closed]
terri82 has joined #ocaml
terri82 has quit [Quit: Client closed]
<discocaml> <octachron> You could implement a function that returns the last element and the current length. However, both operations are a sign that `list`s are ill-fitted for the problem at hand.
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #ocaml
smko has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
Anarchos has quit [Ping timeout: 245 seconds]
sagax has joined #ocaml
TrillionEuroNote has quit [Ping timeout: 240 seconds]
TrillionEuroNote has joined #ocaml
azimut has joined #ocaml
end^ has quit [Server closed connection]
end^ has joined #ocaml
TrillionEuroNote has quit [Ping timeout: 240 seconds]
TrillionEuroNote has joined #ocaml
dhil has joined #ocaml
smko has quit [Ping timeout: 240 seconds]
TrillionEuroNote has quit [Ping timeout: 264 seconds]
TrillionEuroNote has joined #ocaml
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
brettgilio has quit [Client Quit]
smko has joined #ocaml
brettgilio has joined #ocaml
brettgilio has quit [Client Quit]
TrillionEuroNote has quit [Ping timeout: 250 seconds]
brettgilio has joined #ocaml
smko has quit [Ping timeout: 245 seconds]
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
TrillionEuroNote has joined #ocaml
smko has joined #ocaml
smko has quit [Ping timeout: 245 seconds]
mechap has quit [Ping timeout: 240 seconds]
mbuf has quit [Quit: Leaving]
mechap has joined #ocaml
smko has joined #ocaml
<discocaml> <gnuradioshows> Is there a way to prevent the repl from writing `...` once the thing it's showing gets too large?
smko has quit [Ping timeout: 264 seconds]
<discocaml> <gnuradioshows> Is there a way to prevent the toplevel from writing `...` once the thing it's showing gets too large?
<discocaml> <gnuradioshows> ah, it's `print_depth` and `print_length` — is there a way to see the current values of those configurations?
<discocaml> <octachron> `Toploop.max_printer_depth;;` should do the trick
<discocaml> <octachron> (and `Toploop.max_printer_steps` for the length part)
<discocaml> <gnuradioshows> thanks!
mechap has quit [Ping timeout: 245 seconds]
mechap has joined #ocaml
smko has joined #ocaml
smko has quit [Ping timeout: 260 seconds]
mechap has quit [Ping timeout: 264 seconds]
mechap has joined #ocaml
smko has joined #ocaml
smko has quit [Ping timeout: 260 seconds]
dhil has quit [Ping timeout: 245 seconds]
smko has joined #ocaml
smko has quit [Ping timeout: 245 seconds]
alexherbo2 has joined #ocaml
waleee has joined #ocaml
smko has joined #ocaml
chrisz has quit [Ping timeout: 245 seconds]
smko has quit [Ping timeout: 264 seconds]
chrisz has joined #ocaml
gareppa has quit [Quit: WeeChat 3.8]
alexherbo2 has quit [Ping timeout: 246 seconds]
smko has joined #ocaml
smko has quit [Ping timeout: 246 seconds]
Serpent7776 has quit [Ping timeout: 240 seconds]
smko has joined #ocaml
smko has quit [Ping timeout: 250 seconds]
ns12 has quit [Ping timeout: 250 seconds]
TrillionEuroNote has quit [Ping timeout: 245 seconds]
TrillionEuroNote has joined #ocaml
TrillionEuroNote has quit [Ping timeout: 240 seconds]
TrillionEuroNote has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]