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/
jabuxas has quit [Remote host closed the connection]
jabuxas has joined #ocaml
jabuxas has quit [Quit: oops :p]
gentauro has quit [Read error: Connection reset by peer]
<discocaml> <acheac> guys any porper material on zipper
gentauro has joined #ocaml
hannes has quit [Ping timeout: 268 seconds]
jabuxas has joined #ocaml
troydm has quit [Ping timeout: 268 seconds]
<discocaml> <limp.biskit> i would just experiment in utop to get a feel for making data structures in ocaml
kurfen has quit [Ping timeout: 264 seconds]
kurfen has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
jabuxas has quit [Quit: oops :p]
xenu has quit [Ping timeout: 255 seconds]
<discocaml> <anadon> Hi all. Relearning programming from scratch for a project. Experience in C++ and Python 3. M.S. in C.S. with an emphasis on Computer Science. What is the most efficient way for me to learn? I find myself needing to skip around in the ocaml.org tutorial a bit too much, so I'm not sure if I really just need more patience or another resource might be better suited.
<discocaml> <pigeon.v> maybe try the exercises there https://ocaml.org/exercises
mbuf has joined #ocaml
xenu has joined #ocaml
Serpent7776 has joined #ocaml
gooby323 has joined #ocaml
sroso has joined #ocaml
sroso has quit [Max SendQ exceeded]
sroso has joined #ocaml
hannes has joined #ocaml
YuGiOhJCJ has joined #ocaml
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ocaml
dmbaturin has quit [Ping timeout: 252 seconds]
dmbaturin has joined #ocaml
toastal has quit [Remote host closed the connection]
gooby323 has quit [Ping timeout: 268 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
bartholin has joined #ocaml
toastal has joined #ocaml
gooby323 has joined #ocaml
<bartholin> I've made a weird dream
<bartholin> I dreamt it would be possible to make a monad to parse command line arguments, in the spirit of angstrom
<toastal> My dream: forget CLI args… Nickel string to stdin so the end user gets typed config & an LSP for getting all the CLI input values right & the CLI doesn’t have to parse the types since it was valid, verified Nickel
<discocaml> <mbs> This task is verbatim from the course I am organizing with Prof. Seidl and others at TUM where it is homework that was due this morning.
<discocaml> <mbs> Asking others online for help with doing your homework is dangerously close to what we consider academic misconduct in our course.
<discocaml> <mbs> We provide dedicated channels associated with the course, where you may ask if something is unclear or hints; please do not bother the general OCaml community with questions about our course. Thank you!
<discocaml> <mbs> This task is verbatim from the course I am organizing with Prof. Seidl and others at TUM where it is homework that was due this morning.
<discocaml> <mbs> Asking others online for help with doing your homework is dangerously close to what we consider academic misconduct in our course.
<discocaml> <mbs> We provide dedicated channels associated with the course, where you may ask if something is unclear or ask for hints; please do not bother the general OCaml community with questions about our course, and esepcially your homework. Thank you!
<discocaml> <mbs> This task is verbatim from the course I am organizing with Prof. Seidl and others at TUM where it is homework that was due this morning.
<discocaml> <mbs> Asking others online for help with doing your homework is dangerously close to what we consider academic misconduct in our course.
<discocaml> <mbs> We provide dedicated channels associated with the course, where you may ask if something is unclear or ask for hints; please do not bother the general OCaml community with questions about our course, and especially your homework. Thank you!
<bartholin> mbs: are you talking about me? I don't know any Prof. Seidl
<discocaml> <mbs> No, I replied to @acheac's message on Discord. I guess this information is lost when using the IRC bridge
<bartholin> ah, ok
<discocaml> <mbs> Sorry for any confusion
<discocaml> <darrenldl> neat to know more unis using ocaml as teaching tool
Guest64 has joined #ocaml
Guest64 has quit [Client Quit]
<discocaml> <mbs> Yeah, there's quite a few already listed here https://ocaml.org/academic-users, and I don't think the list is even complete 😄
gooby323 has quit [Quit: Konversation terminated!]
<discocaml> <darrenldl> ah thanks - i'm oblivious to the page ha
ansiwen has quit [Ping timeout: 246 seconds]
ansiwen has joined #ocaml
wingsorc has quit [Ping timeout: 246 seconds]
ansiwen has quit [Ping timeout: 256 seconds]
ansiwen has joined #ocaml
sroso has quit [Quit: Leaving :)]
<discocaml> <leviroth> bartholin: Core.Command and cmdliner each do this, except as an applicative and not a monad.
<bartholin> leviroth: thanks for the advice
toastal has quit [Ping timeout: 268 seconds]
<discocaml> <acheac> i am sry, cause i thought the homework‘s due is on Sundays night(), i won't do it again🥹
<companion_cube> bartholin: you mean, cmdliner?
<bartholin> companion_cube: I didn't know cmdliner, I'll look into it
<companion_cube> (although it's applicative, not monadic)
<companion_cube> Hu ok, yeah, it's the main cli parsing library :)
<discocaml> <limp.biskit> are any schedulers actually implementing picos atm?
jabuxas has joined #ocaml
<companion_cube> Miou I think
jabuxas has quit [Quit: oops :p]
<discocaml> <limp.biskit> ### v0.1.0 (2024-04-03)
<discocaml> <limp.biskit>
<discocaml> <limp.biskit> A major change in Miou's internals to incorporate the excellent work of
<discocaml> <limp.biskit> [Vesa Karvonen][vesa] available in his [picos][picos] project.
<discocaml> <limp.biskit> yep, you're right
<discocaml> <limp.biskit> still need to play around with picos
<discocaml> <limp.biskit> its useless to me now since i doubt eio will ever implement, but it would be nice to have code ready to go for hypothetical scheduler X
<discocaml> <limp.biskit> i think picos can run ontop of lwt
h00man_bean has joined #ocaml
h00man_bean has quit [Client Quit]
h00man_bean has joined #ocaml
h00man_bean has quit [Client Quit]
toastal has joined #ocaml
<companion_cube> I want to move to picos
<companion_cube> I just haven't taken the time recently :(
<discocaml> <limp.biskit> i've mainly been learning and reimplementing miou
<discocaml> <limp.biskit> eio makes too many assumptions for you, and miou's smaller codebase should hopefully be much simpler for monitoring purposes
<companion_cube> very sad to see they use the JST format style though 🙃
Exa has quit [Quit: see ya!]
Exa has joined #ocaml
jabuxas has joined #ocaml
ocra8 has quit [Quit: WeeChat 4.2.2]
ocra8 has joined #ocaml
jabuxas has quit [Quit: oops :p]
<discocaml> <lukstafi> Zippers with an example slides 2-12: https://ii.uni.wroc.pl/~lukstafi/pmwiki/uploads/Functional/functional-lecture10.pdf
Tuplanolla has joined #ocaml
<discocaml> <lowlowcode_96272> Hello everybody, im looking for a file watcher which works an windows, linux and MacOs
jabuxas has joined #ocaml
jabuxas has quit [Remote host closed the connection]
jabuxas has joined #ocaml
jabuxas has quit [Quit: oops :p]
jabuxas has joined #ocaml
ocra8 has quit [Quit: WeeChat 4.2.2]
jabuxas has quit [Remote host closed the connection]
jabuxas has joined #ocaml
<discocaml> <dinosaure> I actually started to emit events with what OCaml provides abd I currently try to propose something like meio but I need time to figure out how to print out a nice TUI 🙂
<discocaml> <dinosaure> My draft (completely not finished) is available here: https://github.com/robur-coop/miou/tree/trace, I hope to have time to finish this work as soon as possible
<discocaml> <limp.biskit> that's super cool
<discocaml> <limp.biskit> will it be stable for applications to hook into? i'd love to catch both miou and custom application-level events in one place
jabuxas has quit [Remote host closed the connection]
jabuxas has joined #ocaml
<discocaml> <dinosaure> It's not stable yet, I need to see if these events are sufficient or not for my TUI. At first, it should but yeah, at this stage it's experimental
<discocaml> <limp.biskit> yeah ofc, i was just asking if thats an eventual goal
jabuxas has quit [Quit: oops :p]
<discocaml> <deepspacejohn> TIL you can make different extensible constructors equal to each other `type t = .. type t += A type t += B = A`
jabuxas has joined #ocaml
<discocaml> <sim642> I wonder how much that is really used
<discocaml> <deepspacejohn> yeah I have a hard time imagining how it would be useful, or even just not confusing.
<discocaml> <limp.biskit> i still haven't found my self (outside exceptions) using normal extensible constructors
waleee has joined #ocaml
<discocaml> <deepspacejohn> you can use them for some advanced tricks like making type-safe heterogeneous maps with extensible GADTs.
<discocaml> <deepspacejohn> Effects also use them (which I guess work similarly to exceptions, at least in theory)
mbuf has quit [Quit: Leaving]
jabuxas has quit [Quit: oops :p]
jabuxas has joined #ocaml
waleee has quit [Ping timeout: 246 seconds]
<discocaml> <limp.biskit> btw @dinosaure your git server is down
waleee has joined #ocaml
<discocaml> <dinosaure> Yes, @hannes6838 actually upgrade the system and he got few issues. I think, a basic clone via ssh should work however. Thanks for your report 🙂
hannes has quit [Remote host closed the connection]
jabuxas has quit [Quit: oops :p]
jabuxas has joined #ocaml
wingsorc has joined #ocaml
Serpent7776 has quit [Ping timeout: 268 seconds]
<discocaml> <limp.biskit> btw, would there be any consideration to making httpcats compatible with anmonteiro's fork?
<discocaml> <limp.biskit> would bring some improvements and allow for httpaf-eio on the same switch, but obv understand if you don't want another pin
palainp_ has quit [Ping timeout: 256 seconds]
bartholin has quit [Quit: Leaving]
<discocaml> <struktured> what is the modern choice for crypto libs in ocaml these days? I have project using nocrypto but it doesn't seem well maintained any longer.
<companion_cube> The jose package used mirage-crypto which seems fine
deadmarshal_ has quit [Remote host closed the connection]
<discocaml> <struktured> thanks, will consider it.
Tuplanolla has quit [Quit: Leaving.]
deadmarshal_ has joined #ocaml
sroso has joined #ocaml