Anic: a new language that is faster than C and safer than Java and simpler than Shell
| 16690 times | [121 comments available] post comments
Keywords: News | thanks for the provision of liujiangce |Add this news to favorites
One ofProgramThe developer developed a new language named anic, which has recently attracted industry attention. According to the project introduction on Google Code, the official name of this language is Ani, and anic is the reference implementation of this language. Ani is an experimental, high-performance, static security, fully implicit support for parallel, object-oriented universal data stream.Programming Language.
Anic is written in the GNU tool chain, so it is highly portable and can run on all mainstream operating systems, including * nix, Mac OS X, and Windows (with cygwin ).
The Hello world program compiled with anic is as follows:
"Hello, world! " -STD.Out
However, it is not easy to write a multi-thread, real-time clock + calculator hybrid program in C language. It will be so concise to write it in anic:
@ Std . In ;
A = [[ 0 \]; OP = [[ '' \]; B = [[ 0 \]; R = [[ 0 \];
0 { Clock = [[ Int MS ] { ( "\ R" + MS / 1000.0 + ":" + A + OP + B + "=" + R ) - STD . Out ; 1 STD . Delay ( MS + 1 ) Clock } };
Inloop = {\ In - A \ In - OP \ In - B inloop };
\\ OP ?? { '+' : (\ A + \ B ) '-' : (\ A -\ B ) '*' : (\ A *\ B ) '/' : (\ A /\ B ) : 0 } - R ;
The Forum for this project is already very enthusiastic, with many Google programmers involved.
It's cool, isn't it? Hurry up and try it:
Http://code.google.com/p/anic/