Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Factor

< >

Factor is an open source programming language created in 2003 by Slava Pestov.

#150on PLDB 21Years Old 201Repos
Download source code:
git clone https://github.com/factor/factor
Homepage · REPL · Try It Online · Source Code · Wikipedia · Twitter

Factor is a stack-oriented programming language created by Slava Pestov. Factor is dynamically typed and has automatic memory management, as well as powerful metaprogramming features. The language has a single implementation featuring a self-hosted optimizing compiler and an interactive development environment. Read more on Wikipedia...


Example from Riju:
IN: main USE: io "Hello, world!" print
Example from hello-world:
USING: io ; "Hello World" print
Example from Wikipedia:
: make-html ( string -- xml ) dup <XML <html> <head><title><-></title></head> <body><h1><-></h1></body> </html> XML> ;

Language features

Feature Supported Example Token
Strings "Hello world" "
Print() Debugging print
Macros
Garbage Collection
Comments
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.2.0