Better HN
topnewbestaskshowjobs
Log inSign up

gjndrtjh

101 karma · joined Jun 16, 2013 (13y ago) · 12 submissions

Submissions

comment 13y ago · link · parent

Ć 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

comment 13y ago · link · parent

Try: http://pastebin.com/GHYh6hUX

comment 13y ago · link · parent

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

comment 13y ago · link · parent

"ci" or "cito". As in http://cito.sourceforge.net

comment 13y ago · link · parent

Alternative names for Ć are "ci" and "cito".

comment 13y ago · link · parent

It only has manual memory management. No GC.

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

comment 13y ago · link · parent

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.

8.

Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D(cito.sourceforge.net ↗)

102 points · by gjndrtjh · 13y ago · 70 comments