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
Re:Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, ...
on Sunday June 16, 2013 @04:41PM (#5889871)
Re:Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, ...
on Sunday June 16, 2013 @03:56PM (#5889676)
>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.
Re:Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, ...
on Sunday June 16, 2013 @03:37PM (#5889600)
"ci" or "cito". As in http://cito.sourceforge.net
Re:Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, ...
on Sunday June 16, 2013 @03:35PM (#5889595)
Alternative names for Ć are "ci" and "cito".
Re:Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, ...
on Sunday June 16, 2013 @03:29PM (#5889570)
It only has manual memory management. No GC.
But if you don't target C, you can just skip using "delete".
Re:Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, ...
on Sunday June 16, 2013 @03:25PM (#5889552)
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.