HNHacker News
TopNewBestAskShowJobs

gjndrtjh

101 karma · joined June 16, 2013

submissionscomments
gjndrtjh··on C as an intermediate language (2012)
Ć programming language (http://cito.sourceforge.net/) compiles C# subset to C.

The C code generator is very simple: http://sourceforge.net/p/cito/code/ci/master/tree/GenC.cs

gjndrtjh··on Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D
Try: http://pastebin.com/GHYh6hUX
gjndrtjh··on Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D
>C pretty much runs anywhere, after all. What exactly does this bring to the table?

1. No, C doesn't run everywhere. I can't compile C to Java, C#, JS, AS, Perl and D. Or compile it to any other language (PHP, Objective-C, Pascal, ...) just by writing 500 lines of generator.

Look how huge project Emscripten is: 1 537 390 lines according to Ohloh. But JS generator for Ć is only 457 lines.

2. C# is easier than C. You can write Ć in Visual Studio C#, the best, easiest and fastest IDE in the world.

gjndrtjh··on Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D
"ci" or "cito". As in http://cito.sourceforge.net
gjndrtjh··on Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D
Alternative names for Ć are "ci" and "cito".
gjndrtjh··on Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D
It only has manual memory management. No GC.

But if you don't target C, you can just skip using "delete".

gjndrtjh··on Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D
I asked the language creator. Float, double, short types are going to be added within 1 month. 64 bit integers are not possible because Javascript doesn't have them.