Free Programming Books

Excellent Free Books to Learn Factor

Factor is a dynamic stack-based programming language. It was originally conceived as an experiment to create a stack-based language practical for modern programming tasks. It was inspired by earlier stack-based languages like Forth and Joy.

Factor programs look very different from programs in most other programming languages. At the most basic level, function calls and arithmetic use postfix syntax, rather than prefix or infix as in most programming languages. Factor provides local variables, but they are used in only a small minority of procedures because its language features allow most code to be comfortably written in a point-free style.

Here’s our recommended free books to learn Factor.

1. Factor cookbook by Factor Code

Factor cookbookThe Factor cookbook is a high-level overview of the most important concepts required to program in Factor.

This book offers good treatment of basic syntax, shuffle word and definition, control flow, dynamic variables, vocabularies. There’s also chapters on application cookbook, script, Factor philosophy. and pitfalls to avoid.

Read the book

2. Factor Articles by Chris Double

Factor ArticlesAs the title indicates, this is a collection of articles about Factor. They include:

  • Cells.
  • Search and Replace with PEGs.
  • Channels.
  • Distributed Channels.
  • Pattern Matching.
  • Embedded Domain Specific Languages in Factor.
  • Parsing JavaScript.

There are more articles that need updating:

  • Partial Continuations.
  • Distributed Concurrency
  • Lazy Lists library.
  • Parsers.
  • Compilers and Interpreters.
  • Web Applications.
  • Parsing Expression Grammars.
  • Git Repository.
  • Serialization.

Read the book

3. Factor: A Dynamic Stack-based Programming Language by Slava Pestov, Daniel Enhrenberg, Joe Groff

Factor: A Dynamic Stack-based Programming Language

This paper contributes the following:

Factor is a dynamic object-oriented programming language. It began as an embedded scripting language and evolved to a mature application development language. The language has a simple execution model and is based on the manipulation of data on a stack. An advanced metaprogramming system provides means for easily extending the language.

Thus, Factor allows programmers to use the right features for their problem domain. The Factor implementation is self-hosting, featuring an interactive development environment and an optimizing compiler. In this academic paper, the language and its implementation are presented.

  • Abstractions and checking for managing the flow of data in stack-based languages.
  • A CLOS- and Dylan-inspired object system, featuring generic functions built upon a metaobject protocol and a flexible type system.
  • An expressive and easy-to-use system for staged metaprogramming
  • The design of a foreign function interface and low-level capabilities in a dynamic language

Read the paper

All books in this series:

Free Programming Books
JavaGeneral-purpose, concurrent, class-based, object-oriented, high-level language
CGeneral-purpose, procedural, portable, high-level language
PythonGeneral-purpose, structured, powerful language
C++General-purpose, portable, free-form, multi-paradigm language
C#Combines the power and flexibility of C++ with the simplicity of Visual Basic
JavaScriptInterpreted, prototype-based, scripting language
PHPPHP has been at the helm of the web for many years
HTMLHyperText Markup Language
SQLAccess and manipulate data held in a relational database management system
RubyGeneral purpose, scripting, structured, flexible, fully object-oriented language
AssemblyAs close to writing machine code without writing in pure hexadecimal
SwiftPowerful and intuitive general-purpose programming language
GroovyPowerful, optionally typed and dynamic language
GoCompiled, statically typed programming language
PascalImperative and procedural language designed in the late 1960s
PerlHigh-level, general-purpose, interpreted, scripting, dynamic language
RDe facto standard among statisticians and data analysts
COBOLCommon Business-Oriented Language
ScalaModern, object-functional, multi-paradigm, Java-based language
FortranThe first high-level language, using the first compiler
ScratchVisual programming language designed for 8-16 year-old children
LuaDesigned as an embeddable scripting language
LogoDialect of Lisp that features interactivity, modularity, extensibility
RustIdeal for systems, embedded, and other performance critical code
LispUnique features - excellent to study programming constructs
AdaALGOL-like programming language, extended from Pascal and other languages
HaskellStandardized, general-purpose, polymorphically, statically typed language
SchemeA general-purpose, functional language descended from Lisp and Algol
PrologA general purpose, declarative, logic programming language
ForthImperative stack-based programming language
ClojureDialect of the Lisp programming language
JuliaHigh-level, high-performance language for technical computing
AwkVersatile language designed for pattern scanning and processing language
CoffeeScriptTranscompiles into JavaScript inspired by Ruby, Python and Haskell
BASICBeginner’s All-purpose Symbolic Instruction Code
ErlangGeneral-purpose, concurrent, declarative, functional language
VimLPowerful scripting language of the Vim editor
OCamlThe main implementation of the Caml language
ECMAScriptBest known as the language embedded in web browsers
BashShell and command language; popular both as a shell and a scripting language
LaTeXProfessional document preparation system and document markup language
TeXMarkup and programming language - create professional quality typeset text
ArduinoInexpensive, flexible, open source microcontroller platform
TypeScriptStrict syntactical superset of JavaScript adding optional static typing
ElixirRelatively new functional language running on the Erlang virtual machine
F#Uses functional, imperative, and object-oriented programming methods
TclDynamic language based on concepts of Lisp, C, and Unix shells
FactorDynamic stack-based programming language
EiffelObject-oriented language designed by Bertrand Meyer
AgdaDependently typed functional language based on intuitionistic Type Theory
IconWide variety of features for processing and presenting symbolic data
XMLRules for defining semantic tags describing structure ad meaning
ValaObject-oriented language, syntactically similar to C#
Standard MLGeneral-purpose functional language characterized as "Lisp with types"
DGeneral-purpose systems programming language with a C-like syntax
DartClient-optimized language for fast apps on multiple platforms
MarkdownPlain text formatting syntax designed to be easy-to-read and easy-to-write
KotlinMore modern version of Java
Objective-CObject-oriented language that adds Smalltalk-style messaging to C
PureScriptSmall strongly, statically typed language compiling to JavaScript
ClojureScriptCompiler for Clojure that targets JavaScript
VHDLHardware description language used in electronic design automation
Share this article

Share your Thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.