ns12 has quit [Read error: Connection reset by peer]
ns12 has joined #ocaml
ocabot has quit [Ping timeout: 264 seconds]
ocabot has joined #ocaml
gdr3941 has quit [Ping timeout: 268 seconds]
mima has quit [Ping timeout: 268 seconds]
waleee has quit [Ping timeout: 260 seconds]
szkl has quit [Quit: Connection closed for inactivity]
<discocaml>
<struktured> companion_cube: got it working but the only difference between then and now is I didn't use the bistro command and instead invoked each step separately.
<companion_cube>
only way I use it
<discocaml>
<struktured> good call on that, it's not like it's a big deal to run 4 or 5 commands
ns12 has quit [Quit: bye]
ns12 has joined #ocaml
Square2 has joined #ocaml
Serpent7776 has joined #ocaml
azimut has joined #ocaml
bartholin has joined #ocaml
olle has joined #ocaml
Square2 has quit [Remote host closed the connection]
hannes has quit [Read error: Connection reset by peer]
hannes has joined #ocaml
waleee has quit [Ping timeout: 264 seconds]
olle has quit [Remote host closed the connection]
waleee has joined #ocaml
hannes has quit [Read error: Connection reset by peer]
hannes has joined #ocaml
hannes has quit [Read error: Connection reset by peer]
hannes has joined #ocaml
hannes has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ocaml
bibi_ has quit [Ping timeout: 260 seconds]
hannes has joined #ocaml
hannes has quit [Read error: Connection reset by peer]
hannes has joined #ocaml
darchitect has joined #ocaml
<darchitect>
hey guys, I have programmed a tiny bit in OCaml before (mainly doing leetcode problems) and want to learn the language properly, but I saw that OCaml 5 was released recently and was wondering whether anyone here knows some books for a beginner to get started which also cover ocaml 5. I have seen real world ocaml, but I don't know which parts are still relevant ?
<octachron>
The "only" difference between OCaml 5 and OCaml 4 are the support for shared memory parallelism and algebraic effects. So only new features, and too recent to have completely displaced any pre-existing libraries yet.
_whitelogger has joined #ocaml
a51 has quit [Quit: WeeChat 4.2.1]
a51 has joined #ocaml
<octachron>
In other words, outside of those new features, you can pick any documentation for OCaml 4 and will still apply to OCaml 5.
<discocaml>
<diligentclerk> Or are they mixing it up with another language
<discocaml>
<octachron> this is not a valid vanilla syntax
<discocaml>
<diligentclerk> My IDE gives me an error when i try to load it and Dune spits out ugly garbage.
<discocaml>
<diligentclerk> Ok. This code was generated automatically / procedurally so somebody probably just forgot the syntax for product types when writing the code generator.
<discocaml>
<diligentclerk> i'll file a bug report with the code generator.
<discocaml>
<Ada> i've been using `Result.bind` a lot for unrecoverable errors where i dont want to mix results and exceptions and i feel like in some places it is making my code very ugly
Exagone313 has joined #ocaml
Exa has quit [Ping timeout: 252 seconds]
Exagone313 is now known as Exa
alexherbo2 has quit [Ping timeout: 250 seconds]
<discocaml>
<deepspacejohn> using binding operators (e.g. `let (let*) = Result.bind`) can help it look prettier
darchitect has quit [Quit: WeeChat 3.8]
alexherbo2 has joined #ocaml
neiluj has quit [Quit: neiluj]
<discocaml>
<Ada> oh cool, i've used bindings extensively with lwt but didn't put two and two together
Tuplanolla has joined #ocaml
<discocaml>
<deepspacejohn> They can be used for any function with a compatible signature
bartholin has joined #ocaml
pi3ce has quit [Ping timeout: 240 seconds]
pi3ce has joined #ocaml
mima has quit [Remote host closed the connection]
neiluj has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
szkl has joined #ocaml
neiluj has quit [Quit: neiluj]
waleee has joined #ocaml
<discocaml>
<leostera> hey folks, how do you define a dependency between a dune library and a melange.emit stanza? I'd like to always carry around the generated .js with the library
<discocaml>
<leostera> cool! yes that's more or less what i did
<discocaml>
<leostera> just call ocaml-crunch insteaad
<discocaml>
<leostera> just call ocaml-crunch instead
<discocaml>
<leostera> i'd love to hear from other folks on how thye're packaging their releases when they have several assets and config files (potentially that need to be outisde the app to allow users to configure them)