Coder Social home page Coder Social logo

Comments (6)

seldridge avatar seldridge commented on August 28, 2024 1

Fixed with github-linguist/linguist#6848.

from firrtl-spec.

seldridge avatar seldridge commented on August 28, 2024

By my count there are ~8k code samples on GitHub as gleaned from the following search:

https://github.com/search?p=10&q=extension%3Afir+NOT+flang+NOT+func+NOT+%22RUN%22+-user%3AKosinskiLab+-user%3Alukezya+-user%3ALourencoPonces+-user%3ALesible+-user%3Ajoaomiguelcaldeira&type=Code

This is slightly complicated as .fir shares a file extension with FLANG IR.

from firrtl-spec.

dtzSiFive avatar dtzSiFive commented on August 28, 2024

This is slightly complicated as .fir shares a file extension with FLANG IR.

In theory, all FIRRTL must have a version identifier after that was introduced, and so maybe that can be checked to differentiate the two? (if not just 'are the first (non-whitespace?) characters "FIRRTL"?'). Just a thought.

from firrtl-spec.

seldridge avatar seldridge commented on August 28, 2024

Checking for the version string / FIRRTL in it would enable a trivial heuristic to differentiate the two. Great thinking.

from firrtl-spec.

ekiwi avatar ekiwi commented on August 28, 2024

Checking for the version string / FIRRTL in it would enable a trivial heuristic to differentiate the two. Great thinking.

Wouldn't all older FIRRTL files start with circuit? Then if you check for FIRRTL or circuit your heuristic should work for virtually all firrtl files.

from firrtl-spec.

seldridge avatar seldridge commented on August 28, 2024

Checking for FIRRTL or circuit sounds great. 👍

from firrtl-spec.

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.