Algae (programming language)

From Wikipedia, the free encyclopedia

(Redirected from Algae programming language)
Jump to: navigation, search

In computing, the algae programming language is an interpreted programming language for numerical analysis, a branch of mathematics. Its interactive interpreter is available under GPL. The language and its implementation were designed by Scott Hunziker and Mike Brennan starting in 1994.

Contents

The syntax of Algae is largely drawn from C. The semantics, however, are more similar to a dynamic programming language such as Perl or an interactive technical-computing language such as MATLAB. Built-in data types for matrices and operators for matrix arithmetic are provided.

These examples are from the official Algae manual (reference: [1]):

# Print temperature conversions
fahr = sort (0:300:20, 32, 212);
Celsius = (5/9)*(fahr-32);
[fahr;Celsius]'?

# Read and sum some numbers
sum = 0;
$read = 1;
while ($read) { sum += readnum(); }
sum?

Both the question mark and semicolon are statement terminators. When ? is used, the return value of the statement is printed to the user's console.

  • Algae is a very fast language
  • Variables take up very little memory

The CLI interpreter by Hunziker and Brennan is the single implementation of Algae. It is licensed under the GNU General Public License. It is compatible with Unix-based operating systems. It has not been ported to non-Unix operating system such as Microsoft Windows. The interpreter is designed to used interactively. As of 2007 the Algae interpreter appears to be unmaintained, with the source code and distribution web site last updated in 2004.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.