Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<d_bot> <RegularSpatula> Any particular benefits to switching to the LSP?
cedric has quit [Quit: Konversation terminated!]
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ocaml
humasect has quit [Ping timeout: 250 seconds]
<qwr> merlin supports emacs directly, wouldn't the LSP be just additional wrapper layer as it also uses merlin as backend
<d_bot> <monk> to quote an earlier convo:
<d_bot> <monk>
<d_bot> <monk> > he main difference is that it's considerably faster completion and reuses flymake/flycheck rather than its own error display mechanism
<d_bot> <monk> i haven't done any benchmarking but i will say that lsp (as in, the larger of the two emacs clients + ocaml-lsp-server) has been not noticeably slower and, if anything, very useful in terms of features like Lenses, inline type annotations, and playing well with ocamlformat
<d_bot> <monk> fwiw my intuition was that merlin was good enough and unquestionably faster which is why i didn't bother trying until at least @rgrinberg suggested otherwise
<d_bot> <monk> they suggested `eglot` as the client, however, which is generally considered less complicated and more efficient than `lsp-mode`
<rgrinberg> there's an equal number of wrappers in lsp and merlin to communicate to the editor. the difference is either merlin's own emacs backend or eglot
<rgrinberg> if you're using lspmode, you aren't going to observe any perf differences. as lspmode has its own perf pathologies
<d_bot> <PureFunctor> I've flipflopped between eglot and lsp on Emacs and I've found no real differences to performance—well, provided that I have a pretty lightweight config anyways
<d_bot> <PureFunctor> Though most of my problems came from tracking an unstable version of either...
<rgrinberg> maybe they fixed the problem in lspmode? i know they were somewhat aware of them
azimut has joined #ocaml
<d_bot> <monk> lsp-mode has radically improved in the last year, i'll say that much as a user
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
<d_bot> <RegularSpatula> Yeah I keep meaning to try it out, it just doesn’t seem like there’s a “killer feature” to get me motivated to switch to it
kaph has quit [Ping timeout: 240 seconds]
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
chrisz has quit [Ping timeout: 256 seconds]
chrisz has joined #ocaml
vicfred has quit [Quit: Leaving]
waleee has quit [Ping timeout: 268 seconds]
humasect has joined #ocaml
humasect has quit [Ping timeout: 240 seconds]
mbuf has joined #ocaml
bobo_ has quit [Ping timeout: 240 seconds]
bobo_ has joined #ocaml
<d_bot> <atlx> hi
zebrag has quit [Quit: Konversation terminated!]
<d_bot> <atlx> any way to have enums -> string
<d_bot> <atlx> like `enum Foo { far = "baz", ... }`
<d_bot> <atlx> or I guess it has to be the hard way of something like `type Foo = Far | etc;; let foo_to_str foo = match ...`
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
<ns12> OCaml has enums?
<ns12> Oh, the "enum Foo { far = "baz", ... }" you mentioned is not OCaml. Now I understand.
gravicappa has joined #ocaml
<ns12> Yes, the "hard way" that you mentioned is the conventional way. However, the function name should probably be "string_of_foo" instead of "foo_to_str".
shawnw has joined #ocaml
shawnw has quit [Remote host closed the connection]
wyrd has joined #ocaml
Serpent7776 has joined #ocaml
shawnw has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
jlrnick has joined #ocaml
mbuf has quit [Quit: Leaving]
mro has joined #ocaml
humasect has joined #ocaml
Haudegen has joined #ocaml
kakadu has joined #ocaml
humasect has quit [Quit: Leaving...]
mro has quit [Remote host closed the connection]
dstein64 has quit [Ping timeout: 256 seconds]
dstein64 has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 240 seconds]
dstein64 has quit [Ping timeout: 256 seconds]
dstein64 has joined #ocaml
mro has joined #ocaml
<d_bot> <let Butanium = raise Not_found;;> @octachron why isn't the Change file a `.md` ?
<d_bot> <octachron> The Change file predates markdown by nearly ten years, and it uses two kind of marker for list elements `*` (for breaking changes) and `-` (for other changes).
<d_bot> <let Butanium = raise Not_found;;> Oh ok
<d_bot> <let Butanium = raise Not_found;;> Am I supposed to view it rendered on GitHub ?
<d_bot> <octachron> You can view it as text on github.
<d_bot> <octachron> Generally, for full release I translate the relevant section to markdown (depending on the medium).
<d_bot> <let Butanium = raise Not_found;;> Ok thanks, I though it has to be rendered
dstein64 has quit [Ping timeout: 250 seconds]
mro has quit [Ping timeout: 256 seconds]
dstein64 has joined #ocaml
<ns12> Perhaps it's time to replace d_bot with a more "transparent" Matrix IRC bridge.
<ns12> As in, every user on Matrix should correspond to an IRC user, instead of every message being sent by d_bot.
<ns12> Is that possible at all?
mro has joined #ocaml
<zozozo> ns12: that'd be nice, but in the meantime, if you want a slightly nicer experience on irc, I have a setup for weechat with a script that rewrite d_bot's message to make them appear to be from the discord username
mro has quit [Ping timeout: 250 seconds]
mro has joined #ocaml
mro has quit [Ping timeout: 250 seconds]
bartholin has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.4]
mro has joined #ocaml
sheb has joined #ocaml
jlrnick has quit [Ping timeout: 240 seconds]
cedric has joined #ocaml
<Fardale> ns12: the main issue, is that it's a discord IRC bridge, and I am not aware of bridge that can do the same as the Matrix IRC bridge
<ns12> Fardale: Oh I see. I mistakenly thought that d_bot is for bridging between IRC and Matrix ...
mro has quit [Ping timeout: 268 seconds]
perrierjouet has joined #ocaml
wyrd has quit [Ping timeout: 276 seconds]
Haudegen has quit [Quit: Bin weg.]
mro has joined #ocaml
pippijn has quit [Ping timeout: 250 seconds]
pippijn has joined #ocaml
pippijn has quit [Ping timeout: 240 seconds]
jlrnick has joined #ocaml
Haudegen has joined #ocaml
waleee has joined #ocaml
mro has quit [Remote host closed the connection]
pippijn has joined #ocaml
mro has joined #ocaml
shawnw has quit [Ping timeout: 240 seconds]
kaph has joined #ocaml
jlrnick has quit [Ping timeout: 268 seconds]
bobo_ has quit [Ping timeout: 240 seconds]
bobo_ has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
dstein64 has quit [Ping timeout: 256 seconds]
<mclovin> test
mro has quit [Remote host closed the connection]
<OCamlPro[m]> <léo> test
dalek-caan has joined #ocaml
dstein64 has joined #ocaml
kakadu has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
bartholin has quit [Quit: Leaving]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
vicfred has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
mro has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
dalek-caan has quit [Quit: dalek-caan]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
jlrnick has joined #ocaml
mal`` has quit [Read error: Connection reset by peer]
jlrnick has quit [Ping timeout: 268 seconds]
mal`` has joined #ocaml
Tuplanolla has joined #ocaml
unyu has quit [Quit: WeeChat 3.4]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
rgrinberg has quit [Ping timeout: 240 seconds]
Anarchos has joined #ocaml
<Anarchos> when i do 'opam install cmdliner' it installed from very old cmdliner 1.0.4 source files (version number seems to be stuck at 1.0.4 for cmdliner for months). Is it a way to download some decent revision ?
<d_bot> <RegularSpatula> That is the latest version on opam
<Anarchos> regaularSpatula that is my point : a decent revision OF the 1.04...
<Anarchos> it always reinstall from cached sources which are months old on my machine
<d_bot> <RegularSpatula> Sorry but I’m confused with what you mean. If you want a version of cmdliner > 1.0.4 then you would have to install by eg pinning the GitHub repo. 1.0.4 is the latest release on opam so even if you do opam update first, you will still get 1.0.4 from opam
<Anarchos> RegularSpatula the code of cmdliner evolves on github, but he revision number did'nt change for months (years) so i think it tricks opam in not downloading latest code.
Anarchos has quit [Quit: time to sleep]
<d_bot> <RegularSpatula> Ah i see what you mean now…yeah if you want to follow the main git branch you will have to pin it. Version on Opam will not follow the fit repository. You can see the info opam has about it here https://github.com/ocaml/opam-repository/blob/master/packages/cmdliner/cmdliner.1.0.4/opam
<d_bot> <RegularSpatula> Look at how the archive specifies v1.0.4
zebrag has joined #ocaml
mro has quit [Quit: Leaving...]
<LACampbell> is ther a quick way to reload utop with changes?
<LACampbell> if I am running module Foo
sheb has quit [Quit: Leaving]
cedric has quit [Quit: Konversation terminated!]
<LACampbell> oh right I should be doing #use "foo.ml"
infinity0 has quit [Ping timeout: 240 seconds]
infinity0 has joined #ocaml
<d_bot> <DepartureAM> Is this fizzbuzz correct ocaml? https://gist.github.com/philtomson/1021309
wyrd has joined #ocaml
<d_bot> <glennsl> Does it do what you want it to do?
<d_bot> <darrenldl> oh hi @glennsl o7
wyrd has quit [Ping timeout: 276 seconds]
<d_bot> <glennsl> Hola @darrenldl 👋
<d_bot> <glennsl> Thanks so much for the awesome work on Timere and Timedesc, and the responsiveness to my feature request! 🙏
<d_bot> <glennsl> *requests
wyrd has joined #ocaml
Serpent7776 has quit [Quit: leaving]
<d_bot> <darrenldl> glad you find it of interest!
<d_bot> <monk> LACampbell: i've got into the habit of using `dune utop` and then sometimes even defining a local .ocamlinit for a project with the load statements ready to go if i am working on them enough
jlrnick has joined #ocaml
sagax has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]