Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.v file extension is Verilog #6

Closed
quackenbush opened this issue Feb 23, 2019 · 20 comments
Closed

.v file extension is Verilog #6

quackenbush opened this issue Feb 23, 2019 · 20 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@quackenbush
Copy link

Hi, this looks like a cool language. However using .v is not a wise choice, as this has been used for the Verilog language for the past 25 years.

https://fileinfo.com/extension/v

@boyter
Copy link

boyter commented Feb 24, 2019

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.

@gennyble
Copy link

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

@calebwin
Copy link

Why wasn't Verilog .vl like how Prolog is .pl? 🤔

.vl could be an option though.

@felixakiragreen
Copy link

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

@medvednikov
Copy link
Member

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.

@quackenbush
Copy link
Author

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).

@medvednikov
Copy link
Member

medvednikov commented Feb 24, 2019 via email

@calebwin
Copy link

Modern tools are smart to distinguish between different languages.

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

@medvednikov
Copy link
Member

medvednikov commented Feb 25, 2019 via email

@medvednikov
Copy link
Member

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

@boyter
Copy link

boyter commented Feb 26, 2019

@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.

@boyter
Copy link

boyter commented Feb 27, 2019

@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.

@medvednikov
Copy link
Member

medvednikov commented Feb 27, 2019 via email

@medvednikov
Copy link
Member

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

@andrewla
Copy link

andrewla commented Mar 6, 2019

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.

@medvednikov
Copy link
Member

medvednikov commented Mar 6, 2019 via email

@iocat
Copy link

iocat commented Mar 15, 2019

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

@cedws
Copy link

cedws commented Mar 16, 2019

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.

@calebwin
Copy link

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.

@medvednikov
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

9 participants