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/
Serpent7776 has quit [Ping timeout: 248 seconds]
<companion_cube> so tired of recompiling whole switches because apparently OCaml has changed (!)
softmoth_ has joined #ocaml
spew has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
eilvelia has quit [Quit: eilvelia]
softmoth_ has quit [Ping timeout: 252 seconds]
softmoth has joined #ocaml
softmoth_ has joined #ocaml
softmoth has quit [Ping timeout: 252 seconds]
softmoth_ has quit [Read error: Connection reset by peer]
softmoth__ has joined #ocaml
spew has quit [Quit: spew]
YuGiOhJCJ has joined #ocaml
myrkraverk__ has quit [Read error: Connection reset by peer]
myrkraverk has joined #ocaml
germ has quit [Quit: ZNC 1.8.2+deb2ubuntu0.1 - https://znc.in]
ygrek has quit [Remote host closed the connection]
softmoth__ has quit [Ping timeout: 272 seconds]
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
bartholin has joined #ocaml
<discocaml> <._null._> This hasn't happened to me for a while, what version does this concern ?
Serpent7776 has joined #ocaml
bartholin has quit [Quit: Leaving]
toastal has joined #ocaml
toastal has quit [Ping timeout: 252 seconds]
<reynir> It can affect any version where its opam file is modified https://github.com/ocaml/opam-repository/commits/master/packages/ocaml-base-compiler'
<reynir> oops, the ' is not part of the URL
<reynir> I think for example this commit that removes post-messages will trigger a rebuild of the compiler which is annoying and a bit silly https://github.com/ocaml/opam-repository/commit/058cc373d548aa074576ed0bba8b30e14c6fa8a6 (please correct me if I'm wrong)
<discocaml> <hannes6838> according to https://github.com/ocaml/opam-repository/pull/26585#issuecomment-2358644559 this shouldn't trigger a rebuild. but there are several opam versions in the wild, so it is frustrating, and the question is how to move there (maybe a question for the opam-repository maintainers -- maybe compiler packages shouldn't be updated unless e.g. dune is released (which triggers recompilations anyways)?
toastal has joined #ocaml
<reynir> Oh cool they actually do a lot of checks to see if it's necessary
<discocaml> <peuk> Is there any way to put `ocamlformat` in opt-out mode? In the sense that, by default, it does nothing (or say, only indent) so that we can progressively opt-in new actions.
<discocaml> <peuk> I tried to apply it on an existing project and I see more places where it makes the code harder to read than before than the opposite.
kotrcka has joined #ocaml
<discocaml> <emiletrotignon> It is not possible to use `ocamlformat` only to indent because it does not indent, it parses the code into an extended ast which it then prints from scratch.
hsw__ has quit [Quit: Leaving]
hsw has joined #ocaml
toastal has left #ocaml [Disconnected: Hibernating too long]
toastal has joined #ocaml
<discocaml> <andrew.02907> I’ll help 20 people on how to earn $70k or more within 72hours from the Crypto Market, but you’ll pay me a 10% of your profit when you receive it. Ask me how!!
<discocaml> <andrew.02907> If interested, send me a direct message. For more information…contact via.. WhatsApp
<discocaml> <andrew.02907> ‪+1 (424) 424‑6672‬
<discocaml> <Kali> @admin
<discocaml> <reynir1396> Oh, is spam the reason why I get unread channels and then there's nothing new when I open them??
<discocaml> <reynir1396> It's been driving me crazy
theblatte has quit [Ping timeout: 244 seconds]
<discocaml> <octachron> Indeed, unfortunately I don't know any options to ban spams and restore channel state to unread.
euphores has quit [Quit: Leaving.]
toastal has left #ocaml [Error from remote client]
<discocaml> <reynir1396> No worries. I'm just glad to have an explanation (discord gas lighting me)
theblatte has joined #ocaml
myrkraverk_ has joined #ocaml
myrkraverk has quit [Read error: Connection reset by peer]
<companion_cube> It's probably a discord bug because they don't want to recompute the notification status for every channel or something
pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
<discocaml> <pmetzger> It’s not a bug, it’s a feature! But you can always report this as an unwanted feature to them.
<companion_cube> :D heh
alexherbo2 has joined #ocaml
malte has quit [Ping timeout: 252 seconds]
eilvelia has joined #ocaml
malte has joined #ocaml
toastal has joined #ocaml
<discocaml> <peuk> There is a bot named Not a Bot that can stop spammers before it reaches too many channels.
ygrek has joined #ocaml
raskol has joined #ocaml
<discocaml> <eduardorfs> There is any good way for a ppx to inject an error on the LSP and the compiler?
softmoth__ has joined #ocaml
<discocaml> <eduardorfs> Such as a node with an attribute and a proper error message?
<companion_cube> [%error "ohno"] works iirc
<discocaml> <eduardorfs> right, it's in the compiler, but I couldn't find the docs for it tho
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
<discocaml> <peuk> Sad 😦
<discocaml> <peuk> Thanks for the answer
<discocaml> <emiletrotignon> There is ocp-indent though to do indentation !
<discocaml> <peuk> Yes, this is what we use currently. But :
<discocaml> <peuk> - it does not integrate well with `dune` so we ended up with a dedicated script to call it on the entire project,
<discocaml> <peuk> - there are other formatting actions that are interesting (for example spaces around `:` in signatures, etc).
<discocaml> <peuk> Reason why I had a look to ocamlformat but I am pretty sure that I cannot convince all the team to move to ocamlformat since it removes blank lines in MLIs, sometimes change the code to oneliners, etc.
<companion_cube> after some years of not using ocamlformat I eventually found a config I liked enough
<companion_cube> but it's a pain for sure
<discocaml> <emiletrotignon> It is going to do things like that indeed. It gives a huge benefit of not having to care about formatting. Most people I have heard who do not like it already care about formatting so ocamlformat is never going to be exactly like what they would want.
<discocaml> <emiletrotignon> I started using ocamlformat before having strong tastes in formatting so I think its great (then I got to look at the codebase a little and I do not think it is great anymore but thats another story)
<companion_cube> I'd hate to have to change my config, but with it ocamlformat is good enough for me
<companion_cube> and I care less about things that used to upset me
spew has joined #ocaml
euphores has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
<discocaml> <darrenldl> i just worry ocamlformat will stop supporting some options should i rely on it
<discocaml> <darrenldl> i still call ocp-indent after dune via a makefile
kotrcka has left #ocaml [ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
Anarchos has joined #ocaml
Tuplanolla has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Anarchos has quit [Ping timeout: 244 seconds]
<discocaml> <deepspacejohn> For new projects I just use the default ocamlformat. Sometimes I end up changing a couple of rules if there's something specific that bugs me (usually whatever rule that puts line breaks after ; sequences) but only if that thing comes up often enough to warrant me caring about it.
<companion_cube> is the default one the one that puts `;` at the beginning of lines?
<discocaml> <deepspacejohn> no, not the default profile.
Anarchos has joined #ocaml
raskol has quit [Ping timeout: 246 seconds]
bartholin has joined #ocaml
softmoth__ has quit [Ping timeout: 252 seconds]
<discocaml> <anmonteiro> check `Builtin_attributes.error_of_extension`
<discocaml> <anmonteiro> not documentation, but it's something to read at least
<discocaml> <eduardorfs> yeah yeah, I saw this when CC mentioned the [%error]
<Anarchos> where to add a type variable in " type d = [<`A| `B];;" to be correct ?
<discocaml> <anmonteiro> usually something like ``type 'a d = [< `A| `B] as 'a``
raskol has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
raskol has quit [Ping timeout: 264 seconds]
torretto has joined #ocaml
torretto_ has quit [Ping timeout: 260 seconds]
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
euphores has quit [Quit: Leaving.]
Serpent7776 has quit [Quit: leaving]
raskol has joined #ocaml
<eilvelia> /save
eilvelia has quit [Quit: eilvelia]
eilvelia has joined #ocaml
eilvelia has quit [Client Quit]
raskol has quit [Ping timeout: 252 seconds]
bartholin has quit [Quit: Leaving]
eilvelia has joined #ocaml
eilvelia has quit [Client Quit]
softmoth__ has joined #ocaml
softmoth__ has quit [Read error: Connection reset by peer]
softmoth has joined #ocaml
eilvelia has joined #ocaml
motherfsck has quit [Quit: quit]
motherfsck has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
softmoth has quit [Ping timeout: 252 seconds]
softmoth has joined #ocaml
gentauro has quit [Read error: Connection reset by peer]