ValaSharp icon indicating copy to clipboard operation
ValaSharp copied to clipboard

C?

Open Lelelo1 opened this issue 4 years ago • 1 comments

"...Vala compiler in C#" does that mean C# can get compiled to C?

Lelelo1 avatar Nov 28 '21 16:11 Lelelo1

Hi @Lelelo1

No. This compiler is an alternative variant of the original "valac" compiler. Just like the original, it compiles vala to C

The motivation behind this project was to take advantage of C#'s arguably more advanced tooling to provide a language server and hopefully better integration for the Vala language (within vs/vscode). Vala's lack of tooling has been one of the main hurdles in using the language.

Additionally, this would allow to improve the compiler itself by:

  • offering an alternative to compare the original compiler against
  • making it easier to profile and test the compiler (better profiler, better debugger, more structured tests)

The current state of the project is that the compiler works, and can compile vala programs just like the original . However, the base problem behind this codebase is the maintenance of upstream patches, for which i don't have the time.

If the compiler is kept close to the original, C#'s advanced features cannot be used (or the code base would diverge). If the compiler is improved, applying upstream bug fixes becomes harder and this project would become an alternative implementation of the vala compiler

Either way, since i started, https://github.com/Prince781/vala-language-server has evolved to be a viable alternative.

smx-smx avatar Nov 28 '21 23:11 smx-smx