This contains many random stack based programs I’ve created over the years.
- I like to symlink the Factor directory to “factor/work”, so that
scaffold creates the work for me. Further it prevents factor from
failing half way through dumping an image.
- This is unnecessary if one uses the
.factor-roots
and callsscaffold-vocab
when creating a new vocabulary!
- This is unnecessary if one uses the
- The most interesting programs are in the
Factor
sub-directory. And not all of them are interesting.- Projects
- allocators
- Contains code dealing with various memory allocation strategies.
- Shows off how Factor deals with
alien
functions and how to communicate between factor and c efficiently.
- misc/padding
- This one simply shows off padding in C structus easily via Factor. Inspecting the values created in the repl is nice.
- tax
- This is just a little program I’ve been using that does tax calculations for the Taiwanese tax system. I also use this to calculate monthly expenses, probably only of interest to me.
- compiling-lisp/unary
- This is an unfinished project, however it was my first attempt
at using the
alien
function interface inFactor
. With that said, it does showcaseFactor
’s assembler and marking regions as executable
- This is an unfinished project, however it was my first attempt
at using the
- allocators
- Unfinished and not of interest
- finger-tree
- Currently this does nothing, but does showcase the
match
andVARIANT:
capabilities of factor
- Currently this does nothing, but does showcase the
- queue
- More
VARIANT:
. Ι believe Ι was interested in implementing purely functional data structures at this time.
- More
- first
- This is my very first factor file and code. It is akin to
watching a child learn how to walk for the first time, however
the
quicksort
function is cool. - In the future I’ll create a
playground
similar to smalltalk for my various throwaway code.
- This is my very first factor file and code. It is akin to
watching a child learn how to walk for the first time, however
the
- michelson
- Ι wanted to make a faster michelson compliant code in
Factor
, would be nicer than using the normal interpreter inOCaml
.
- Ι wanted to make a faster michelson compliant code in
- finger-tree
- Projects