Giter Club home page Giter Club logo

Comments (4)

wez avatar wez commented on June 2, 2024

Oooh. I'm a bit on the fence because the new dependency doesn't seem to add a huge amount of value and introduces some magic with the max recursion depth thingy... but it is nicer.
Does this make the compilation times dramatically longer?
Did it strike you as overly complicated to produce that macro vs. the vanilla rust macro experience?

from atsamd.

djmcgill avatar djmcgill commented on June 2, 2024

It didn't make compilation times noticeably longer.
I'd say it took me about an hour with the docs open to figure out a form that worked and how the mashup macro needed to be used in this case. However actually using the macro is less complicated now than it was before.

Having said that, honestly I'm kind of toying with just removing the macro completely despite it being a cool toy. It depends what we're optimising for - i.e. 1) somebody reading the source/ 2) our need to make future changes/ 3) other integrations taking less time.

The best things for those three cases respectively are 1) no macro (the source is entirely clear if boilerplatey), then 2) the old macro (less complicated to change but still halving the code you need to write/refactor), and then 3) the new macro form makes writing out the pin specifications quickest.

Honestly if it were just my crate I'd use the newest macro but the other options are reasonable too.

from atsamd.

wez avatar wez commented on June 2, 2024

let's use the new macro; I've a feeling that we're going to grow more board crates and it will help keep the boilerplate lower.

from atsamd.

djmcgill avatar djmcgill commented on June 2, 2024

Closed via #9

from atsamd.

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.