Giter VIP home page Giter VIP logo

Comments (8)

monnier avatar monnier commented on August 13, 2024 1

from tuareg.

monnier avatar monnier commented on August 13, 2024

from tuareg.

bbatsov avatar bbatsov commented on August 13, 2024

@monnier That's already done, btw. (in Tuareg 3.0)

As for the things to leverage from newer versions - I was mostly thinking of things like newer core APIs (seq, map, etc). We can create a separate ticket for this to discuss specifics.

from tuareg.

mattiase avatar mattiase commented on August 13, 2024

newer core APIs (seq, map, etc)

I doubt seq and map bring us more than slower code but there may be other things to make use of.
There is some low-hanging fruit for someone who wants to clean up compatibility code for Emacs 25 or earlier.

from tuareg.

bbatsov avatar bbatsov commented on August 13, 2024

No argument from me. I just didn't have time to compile the list of concrete proposals that's why I mentioned the typical type of cleanup/facelift work I do when I adopt newer Emacs versions.

I doubt seq and map bring us more than slower code but there may be other things to make use of.

They bring more consistent API and eliminate the need for using libraries like cl-lib. For me that's a win, but obviously opinions on the subject vary.

There is some low-hanging fruit for someone who wants to clean up compatibility code for Emacs 25 or earlier.

Yeah, certainly. That's one area I plan to look into when I have a bit of time.

from tuareg.

mattiase avatar mattiase commented on August 13, 2024

They bring more consistent API and eliminate the need for using libraries like cl-lib.

cl-lib is an Emacs built-in package just like seq and map. The main difference is that cl-lib is generally richer and faster, especially the macros. No user will thank us for using either, and I rarely touch them when performance is even slightly important.

Maybe SMIE has features in more recent Emacs versions that could benefit us (Stefan would know). The number one complaint about Tuareg must be the maddening indentation, especially of comments, in some cases; doing something about that would be most welcome.

The Xref API has seen some improvement since Emacs 24 but perhaps it's more naturally to have it interface with Merlin.

from tuareg.

bbatsov avatar bbatsov commented on August 13, 2024

The Xref API has seen some improvement since Emacs 24 but perhaps it's more naturally to have it interface with Merlin.

Merlin has been using xref for a while now (see https://github.com/ocaml/merlin/blob/master/emacs/merlin-xref.el). Note that xref didn't even exist before Emacs 25.1.

from tuareg.

mattiase avatar mattiase commented on August 13, 2024

Merlin has been using xref for a while now

Looks like there's an Xref-related PR gathering dust there – Merlin seems short-handed with respect to Emacs these days.

from tuareg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.