<% USING: namespaces http.client kernel io.files splitting random io io.encodings.utf8 sequences webapps.mason.version.data webapps.mason.backend webapps.mason.grids webapps.mason.downloads webapps.mason.utils html.elements html.streams accessors xml.writer xmode.highlight ; %> Factor programming language
Factor programming language

Why Factor?

The Factor programming language combines powerful language features with a full-featured library. The implementation is fully compiled for performance, while still supporting interactive development. Factor applications are portable between all common platforms. Factor can deploy stand-alone applications on all platforms. Full source code for the Factor project is available under a BSD license.

Most of the above links point to pages on the concatenative.org wiki.

Show me some code!

Factor belongs to the family of concatenative languages: this means that, at the lowest level, a Factor program is a series of words (functions) that manipulate a stack of references to dynamically-typed values. This gives the language a powerful foundation which allows many abstractions and paradigms to be built on top. Reload this page to see a random code example below.

<%
"resource:extra/websites/factorcode/examples.txt" utf8 file-lines
{ "----" } split random
"factor" [ highlight-lines ] with-html-writer
xml>string write-html
%>

See the example programs page on the wiki for more.

Downloads

<% [ %>

To download a binary, follow the link corresponding to your computer's CPU/OS configuration. Binary packages are the recommended route for new users who wish to try Factor.

Stable release: <% latest-version > =href a> ] [ version>> write ] bi %>

<% release-grid write-xml %>

Source code: <% latest-version > download-url =href a> ] [ version>> write ] bi %>

Development release

<% package-grid write-xml %> <% ] with-mason-db %>

Stable and development releases are built and uploaded by the build farm. Follow @FactorBuilds on Twitter to receive notifications. If you're curious, take a look at the build farm dashboard.

Source code is stored in our GIT repository. Source can can be browsed online via github or gitweb.

More


Hosting provided by Rackspace