Giter Site home page Giter Site logo

.v file extension is Verilog about v HOT 20 CLOSED

vlang avatar vlang commented on May 21, 2024 4
.v file extension is Verilog

from v.

Comments (20)

medvednikov avatar medvednikov commented on May 21, 2024 17

The name and the extension are going to stay the same.

from v.

medvednikov avatar medvednikov commented on May 21, 2024 8

@calebwin I like that. Just like .cpp/.cc in C++.

from v.

cedws avatar cedws commented on May 21, 2024 6

I was about to raise an issue with the same topic. Using .v as an extension for this language is just inviting confusion with Verilog. There are plenty of other options here but for some reason it's been decided to use the same extension as a well established language just because it's simple.

I suggest changing it while it still can be changed.

from v.

gennyble avatar gennyble commented on May 21, 2024 5

If vlang is too long we could also consider vl. It's not indexed by fileinfo and doesn't appear to be in soc.

from v.

felixakiragreen avatar felixakiragreen commented on May 21, 2024 5

I much prefer the simplicity of .v. I doubt many people will encounter conflicts between the two file types. Just my two cents.

from v.

calebwin avatar calebwin commented on May 21, 2024 4

Couldn't there be 2 file extensions - like .v and .vlang or something like that?

That way people could generally use .v if they prefer the extension's simplicity or .vlang if whatever software they're using can only recognize .v as Verilog but does have .vlang as the extension for V.

from v.

andrewla avatar andrewla commented on May 21, 2024 3

I know this is closed; my two cents would be to choose a trigram that is infrequently used. .vvc comes to mind as a good candidate; vvc.org is even available (and vvc.com is just a parked page), and as far as I can tell there is no current use of the file extension. Going with a four-letter name, especially one that is not pronounceable, would move even further out of the collision range.

Having a mostly unique name is attractive because it makes searching easier and less ambiguous.

from v.

medvednikov avatar medvednikov commented on May 21, 2024 2

from v.

boyter avatar boyter commented on May 21, 2024 1

@medvednikov Thank you. A lot of work went into making it fast and accurate. The next release should have support for V as well once I finish off a few things, possibly in a day or two.

from v.

boyter avatar boyter commented on May 21, 2024 1

@medvednikov Have included V support into scc. I based it on what I have seen in the examples, so it may need some tweaks but should report the files correctly now I hope.

from v.

boyter avatar boyter commented on May 21, 2024

It also happens to be the same extension used by Coq https://github.com/coq/coq

I was looking to add this into https://github.com/boyter/scc/ and realized the extension is shared. Perhaps something such as vlang? Not sure what to do here. You can of course use v if you choose but it is going to be an issue for existing tools.

from v.

calebwin avatar calebwin commented on May 21, 2024

Why wasn't Verilog .vl like how Prolog is .pl? πŸ€”

.vl could be an option though.

from v.

medvednikov avatar medvednikov commented on May 21, 2024

Agree with @xenophilicibex

At this point conflicts with names and extensions are unavoidable. Modern tools are smart to distinguish between different languages.

Almost every extension you search for is used by multiple programs/languages.

from v.

quackenbush avatar quackenbush commented on May 21, 2024

For example, Github uses Linguist (https://github.com/github/linguist) to do its syntax highlighting.

Here is Linguist's programming language dictionary: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml#L5157

Verilog is assigned the .v extension.

This is why your example source code on Github has partial highlighting: https://github.com/vlang-io/V/blob/master/examples/generic_repository.v

I'd suggest a different extension (.vl or anything else).

from v.

medvednikov avatar medvednikov commented on May 21, 2024

from v.

calebwin avatar calebwin commented on May 21, 2024

Modern tools are smart to distinguish between different languages.

Just curious - how is this typically done? simple heuristics?

from v.

medvednikov avatar medvednikov commented on May 21, 2024

from v.

medvednikov avatar medvednikov commented on May 21, 2024

By the way @boyter what an amazing tool! I've been using cloc forever, and scc is 30 times faster!

from v.

medvednikov avatar medvednikov commented on May 21, 2024

from v.

iocat avatar iocat commented on May 21, 2024

I think "Vee" is a, uhm, pretty good name. We can keep the pronunciation, and the file extension ".vee" is unique :)

from v.

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.