The V Programming Language is open source
Hm I looked around the repo, and there doesn't seem to be much there.<p><pre><code>    $ find . -name '*.v'|xargs wc -l|sort -n
    ...
      314 ./glm/glm.v
      330 ./time/time.v
      338 ./builtin/utf8.v
      339 ./examples/tetris/tetris.v
      490 ./os/os.v
      630 ./compiler/scanner.v
      644 ./compiler/table.v
      712 ./gg/gg.v
      814 ./builtin/string.v
      845 ./compiler/main.v
      848 ./compiler/fn.v
     3216 ./compiler/parser.v
    12573 total

</code></pre>
I'm a big fan of compact code, i.e. doing more with less... but I have been working on langauges for long enough to know that it takes surprisingly large amounts of code to do anything useful in this space.<p>If you discount the lexer and  parser, it's like 8-9K lines of code, and it's hard to imagine much being done there.  You can make a "toy" in that much code, but the gap to a production compiler is very wide (e.g. a minimum of 50K or 100K lines of code).<p>There is also this translation which is not in the repo:<p><pre><code>    $ wc -l v.c
    15099 v.c
</code></pre>
----<p>Also, this bootstrapping part looks pretty slick, except I get a core dump (on Ubuntu 16.04 with default GCC):<p><pre><code>    $ time cc -w -o vc v.c  

    real    0m0.553s
    user    0m0.517s
    sys     0m0.035s

    ~/git/languages/v/compiler$ time ./vc -o v .
    Segmentation fault (core dumped)

    real    0m0.095s
    user    0m0.002s
    sys     0m0.000s</code></pre>