Anic: a new language that is faster than C and safer than Java and simpler than Shell

Source: Internet
Author: User
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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.