plajjan / acton

The Acton Programming Language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Acton programming language

Test

Acton is a general purpose programming language, designed to be useful for a wide range of applications, from desktop applications to embedded and distributed systems. In a first approximation Acton can be described as a seamless addition of a powerful new construct to an existing language: Acton adds actors to Python.

Acton is a compiled language, offering the speed of C but with a considerably simpler programming model. There is no explicit memory management, instead relying on garbage collection.

Acton is statically typed with an expressive type language and type inference. Type inferrence means you don't have to explicitly declare types of every variable but that the compiler will infer the type and performs its checks accordingly. We can have the benefits of type safety without the extra overhead involved in declaring types.

The Acton Run Time System (RTS) offers a distributed mode of operation allowing multiple computers to participate in running one logical Acton system. Actors can migrate between compute nodes for load sharing purposes and similar. The RTS offers exactly once delivery guarantees. Through checkpointing of actor states to a distributed database, the failure of individual compute nodes can be recovered by restoring actor state. Your system can run forever!

NOTE: Acton is in an experimental phase and although much of the syntax has been worked out, there may be changes.

NOTE: The RTS currently does not have a garbage collector, severely limiting it for long running tasks. However, for smaller shorter lived processes, it can work fairly well.

Getting started with Acton

Install acton

Check out the installation guide

Writing and compiling your first Acton program

Edit the program source file, let's call it helloworld.act, and enter the following code:

actor main(env):
    print("Hello, world!")
    await async env.exit(0)

Compile the program and run it:

$ actonc helloworld.act
$ ./helloworld
Hello, world!

And then...?

Check out our learning resources.

Building Acton from source

See building Acton from source.

Contributions

For information about contributing to Acton, see CONTRIBUTING.md.

Thanks to all the people who already contributed!

About

The Acton Programming Language

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C 65.1%Language:Haskell 29.2%Language:Python 4.5%Language:Makefile 0.9%Language:Shell 0.2%Language:Ruby 0.0%