Giter Club home page Giter Club logo

abstraps's Introduction

abstraps's People

Contributors

femtomc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

laplacekorea

abstraps's Issues

Provide a diagnostics infrastructure using `ariadne` and a custom `Error` type.

ariadne provides beautiful, contextual error messages (and so does things like codespan-reporting) -- I'd like to understand the right way to expose these error messages as part of a diagnostic infrastructure.

Mostly, ariadne has been used when you have a parser combinator, and the original String -- so you know the spans of objects after parsing. In the IR framework here, we actually have the IR first -- so this may require a novel Formatter implementation (e.g. a struct implement fmt::Write) which somehow tracks the spans for IR objects when being formatted into a string.

Re -- it's also not clear what parts of the infra should support these pretty error messages. Passes would be a good starting place to work on.

Merge the MLIR changes (including changes to IR structure, and lattice passes via pass manager interface)

Closed by #1.

Completely changes the IR structure to reflect MLIR design choices. Ultimately, after carefully reading the MLIR documentation, I'm convinced that the MLIR design is a good optimum for extensibility -- clearly well thought out and designed, and supports the interfaces which I'd like to use to interact with extensible lattice interpreters.

  • IR re-implementation.
  • Test examples for a builtin dialect.
  • Operation traits.
  • Pass manager.

This change has introduced many advanced things into the codebase. It's likely less clear to someone observing how things actually work here, because I had to introduce concepts like trait objects, casting, and dynamic dispatch from Rust into the implementation to support the ability for my IR containers (e.g. Operation) to hold containers with intrinsics that are user-defined. The common solution in Rust for this is to use trait objects -- which is great and works (!), but trait objects prevents you from customizing behavior (e.g. by using Rust traits) on the thing that you just turned into Box<dyn SatisfiesTrait> (e.g. that you just introduced dynamic dispatch for). This thus requires designing an entirely new mechanism for enforcing traits (again, just like MLIR traits on these intrinsic-agnostic containers. The mechanism which I've implemented here relies on casting of trait objects, which is advanced usage of Rust's type system (specifically, std::Any and downcasting).

  • Implement operation trait - like mechanism.
  • Test examples.
  • Ruminate on this interface by writing a pass which uses it.

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.