Please read the new rule regarding the restriction on the use of AI tools. ×

brachistochrone's blog

By brachistochrone, history, 2 years ago, In English

There's an amazing language called V with 28K+ stars on Github. Its compiler written in V compiles itself (~1M LOC) in under a second! Yet, so far, writing own projects in V and manually testing them seems the only way to master V.

Can it be used on Codeforces? As I found out, .v files can be compiled to .c files, meaning V can be translated to C.So I tried to compile a .v file to a .c file with v -o some_file.c some_file.v, but even the simplest code from v/examples produces 25K+ LOC in C. This makes the submission of the equivalent .c files impossible:( What a pity for such concise C-like language with even built-in maps and a VS code extension!

While looking through the compiler support on Codeforces, I noticed that some quite esoteric language are already there. That said, I'd like to ask MikeMirzayanov to be so kind as to add one more compiler, this time for V, to the list of available compilers. This will not only allow codeforcers to write expressive programs, but may also attract more attention to the language development!

UPD 0: As the post got 42 likes, I decided to share sample solutions and my V + acmX setup in VS Code here. If it works, you'll be able to test your solutions locally until (if ever) V compiler is added to Codeforces.

Full text and comments »

  • Vote: I like it
  • +44
  • Vote: I do not like it