Live data from Hacker News

Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D

cito.sourceforge.net

61–70 of 75 posts

Re: Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D

#63
post #47

Does it do garbage collecting in all the target languages? The question is mainly about C, cause I can imagine it can rely on native garbage collector when targeting Java, Perl, etc.

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, Perl and D

#65
post #11

Great, another programming language we can't google! Please rename it to Membranous language.

Or for that matter, type. At least C♯ has "C#". Maybe we can use C' ?

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

Re: Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D

#66

This is a really interesting project. However... It's licensed under GPLv3 -- in my experience, that's an instant turnoff for most .NET (C#/F#/VB.NET) developers. If you changed the license to something like Apache 2.0, I think you'd get much more interest; not only new users, but new contributors too.

Does it matter here from a user standpoint? The compiler is strictly licensed but the user's work - Ć code and generated code - shouldn't be tied to any predefined license, or am I missing something?

Re: Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D

#67

Nice idea, but please give it a name that makes the language easy to discuss and search for. There's no way I'm going to work on Monday and discussing: 'did you see that new language that I have no idea how it's pronounced that was on HN?'

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

Re: Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D

#68
post #14

Earlier quoted context omitted.

Right. Who would ever want to be able to write libraries that can run on any platform?

I'm not saying there isn't a need, but I'm interested in knowing of another need. Hasn't this been done in C already? C pretty much runs anywhere, after all. What exactly does this bring to the table? Sorry that people thought I was being negative (as per all the downvotes - you people really aught to comment), I'm just curious as to why other languages don't fill this gap.

[deleted]

Re: Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D

#69
post #47

Does it do garbage collecting in all the target languages? The question is mainly about C, cause I can imagine it can rely on native garbage collector when targeting Java, Perl, etc.

It only has manual memory management. No GC. But if you don't target C, you can just skip using "delete".

Right, from the documentation (albeit hidden in the Arrays section):

Since there is no garbage collection in C, you must free the dynamically allocated array with delete. delete translates to C as free and nothing in other (garbage-collecting) languages.

Re: Ć Programming Language - Compile C# subset to C, Java, C#, JS, AS, Perl and D

#70
post #14

Earlier quoted context omitted.

Right. Who would ever want to be able to write libraries that can run on any platform?

I'm not saying there isn't a need, but I'm interested in knowing of another need. Hasn't this been done in C already? C pretty much runs anywhere, after all. What exactly does this bring to the table? Sorry that people thought I was being negative (as per all the downvotes - you people really aught to comment), I'm just curious as to why other languages don't fill this gap.

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

Post reply on HN