The Factor programming language is a concatenative, stack-based programming language with high-level features including dynamic types, extensible syntax, macros, and garbage collection. On a practical side, Factor has a full-featured library, supports many different platforms, and has been extensively documented.
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.
USING: combinators io kernel locals
math.functions math.parser ranges
sequences ;
100 [1..b] [| i |
{
{ [ i 15 divisor? ] [ "FizzBuzz" ] }
{ [ i 3 divisor? ] [ "Fizz" ] }
{ [ i 5 divisor? ] [ "Buzz" ] }
[ i number>string ]
} cond print
] each
To download a binary, follow the link for the desired OS / CPU configuration. Binary packages are the recommended route for new users who wish to try Factor.
OS/CPU | Windows | macOS | Linux |
---|---|---|---|
x86 | 0.100 | 0.100 | |
x86-64 | 0.100 | 0.100 | 0.100 |
Source code: 0.100
OS/CPU | Windows | macOS | Linux |
---|---|---|---|
x86 | 2024-12-08 | 2024-12-08 | |
x86-64 | 2024-12-07 | 2024-12-08 | 2024-12-08 |
Source code: available via github or gitweb or cgit.
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. You can also build Factor on your own platform from source.