Am I the only one thinking this code looks ugly and hacky. I would never code in this.
Anic -- Faster than C, Safer than Java, Simpler than *sh
81–90 of 96 posts
Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#82I can believe it - I've made my own language and compiler whose results are faster in the niche area it targets than any C compiler I've ever seen - I'm just curious how this assertion is backed up.
Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#83I'm curious how a language with no compiler is "faster than C" since the speed of C is nothing to do with the language and everything to do with the compiler implementations which have been so heavily worked over the years. I can believe it - I've made my own language and compiler whose results are faster in the niche area it targets than any C compiler I've ever seen - I'm just curious how this assertion is backed u…
Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#84Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#85Earlier quoted context omitted.
Hell, many operating system's thread schedulers are written in C..
Ironically the task of scheduling threads isn't one that is particularly parallel, but I think the point stands.
Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#86Earlier quoted context omitted.
And just like a year ago, there's nearly 100 comments about whether or not the syntax is ugly, whether or not you find it readable because you can't break out of your Algol mindset, whether or not anything can truly be "faster than C", whether or not C is easy to parallelize, the url spells "panic", etc etc, and yet there's only 1 or 2 people that bother to look at the commit log and browse the source tree to find ou…
The commit log shows plenty of activity: http://code.google.com/p/anic/source/list
For example, why not compile or manually translate some examples to C as a prototype? What can be done in assembly can mostly be done in C as well, if you're willing to sacrifice some performance.
Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#87Latch concept is probably worth exploring further. Does anyone know of a language with native variables being a FIFO pipe? I.e. x = 1 // x now contains 1 x = 2 // x now contains 1 and 2 y = x // x now contains 2, y now contains 1 ... This sort of thing. Not as an add-on construct, but as a native part of the language.
Easy enough with Perl arrays using push and shift.
Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#88Earlier quoted context omitted.
That is not necessarily a sign of a good language, though. ADD 1 TO COBOL GIVING COBOL is also readable, and yet (thankfully!) we've mostly abandoned COBOL. And no, I'm not saying Python is bad, or like COBOL - just that readability and quality of a language are not necessarily related.
I don't know that I agree, I really am not sure what "GIVING COBOL" means.
Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#89Faster than C – this is explained in the FAQ as most C programs being single threaded and ANI being inherently multithreaded. ANIC was posted to HN most of a year ago: http://news.ycombinator.com/item?id=1042122 with much commentary.
People shouldn't make claims like that honestly. It makes be discount the language almost immediately because I know I can't really trust what's written about it on its site. Furthermore, there's tons and tons of parallel C code. Probably more than any other language. Almost any decent C library is reentrant. Many of major C projects (mostly thinking of server software and operating system kernels) are threaded.
That there's "tons and tons of parallel C code" doesn't matter.
Parallelization is built-in into this language. It is not built-in, as a first class language feature, in C.
A lot of C projects, such as servers, are indeed threaded, but threads are also so last century.
Different paradigms (like in Erlang) are better to parallelize, easier to write, more performant, and much much less confusing to debug than threads. Heck, even no-side-effects functional language programming is better to parallelize than C with threads.
Re: Anic -- Faster than C, Safer than Java, Simpler than *sh
#90I'm curious how a language with no compiler is "faster than C" since the speed of C is nothing to do with the language and everything to do with the compiler implementations which have been so heavily worked over the years. I can believe it - I've made my own language and compiler whose results are faster in the niche area it targets than any C compiler I've ever seen - I'm just curious how this assertion is backed u…
nm, i see in the comments... so its a false claim then. nice. :/
"Faster than C" is doable, but needs qualifiers, e.g:
CUDA in modern GPU hardware is faster than dektop C.
JITed Java was shown to be faster than C in several cases, because the JIT compiler could make adaptable optimizations based on the actual runtime environment.
And, any competent language that takes advantage of multiple cores easily is faster than most C equivalent programs (even most multi-threaded ones).