Giter VIP home page Giter VIP logo

Comments (5)

xFrednet avatar xFrednet commented on May 14, 2024

I've done some research on the topic. The current way is definitely unstable and since the type layout can change between compilation I'm surprised that it has been working without a problem so far. ^^ I believe this issue is critical, as it might affect how we can represent information for lints.

I'll create an issue for this in the design repo, as we might get some more feedback there and do some experimenting with this.

from marker.

xFrednet avatar xFrednet commented on May 14, 2024

Looking into this, I feel like creating a general plugin system for Rust could be a rust-foundation grant all in itself. 😅

from marker.

jhpratt avatar jhpratt commented on May 14, 2024

It certainly could be! Plugin systems are by no means easy.

from marker.

xFrednet avatar xFrednet commented on May 14, 2024

Yeah, I sadly see no good way, without a stable ABI. One option could be to introduce a stable ABI similar to #[repr(C)] which allows support for rust types. This should be fine when it's not the default. On the other hand, I'm far from an expert, and c/c++ has some problems that come from the chosen ABI so 🤷.

from marker.

xFrednet avatar xFrednet commented on May 14, 2024

With the lint crate api rework of #34 and #35 I believe that we can close this issue. The linter will for now use dynamic libraries. I also heard an interesting idea to potentially add static linking for static and performance focussed implementations. This is still a good idea, but I feel like that would require a discussion in the /design repo.

Problems with the FFI interface will be tracked in a new issue 🙃

from marker.

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.