Code Monkey home page Code Monkey logo

Comments (1)

xFrednet avatar xFrednet commented on May 18, 2024

The structure first implemented as part of this issue has already improved the conversion process. However, after adding further nodes to the API and adding more conversion code, some limitations came up. For this reason, I'll once again try to restructure the driver code. The goal is to:

  • Have consistent naming conventions (Currently, there are functions similar functions starting with different prefixes to_, to_api, conv_)
  • Avoid passing cx around everywhere, I'll most likely use a single conversion struct for everything
  • Define how the translation layer should usually be structure
  • Cleanup lifetimes, mostly avoiding 'hir if it's not needed
  • Change location of the Storage struct
  • Cut clear boundaries, where conversion functions should be located

And probably other things I can't think of, rn. This comment is basically a new start for this issue.


Small side note, for those who are interested. I think one reason, why the structure is messy, is that I have no reference project. I know that rustc has a similar component to lower the AST to HIR. However, I also find that code messy. This trial and error, is not a bad thing as it makes me learn and enables me to reason, why something is better than the other. But it sadly takes time, which could be spent on expanding the API more

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.