News for hackers. Stuff that matters.

gjndrtjh

Re:C as an intermediate language (2012) on Wednesday July 17, 2013 @01:10PM (#6058820)
Ć 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

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

Alternative names for Ć are "ci" and "cito".
It only has manual memory management. No GC.

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

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.