https://github.com/mariari/misc-stack-scripts
Various scripts in Forth and Factor
https://github.com/mariari/misc-stack-scripts
factor stack
Last synced: 4 months ago
JSON representation
Various scripts in Forth and Factor
- Host: GitHub
- URL: https://github.com/mariari/misc-stack-scripts
- Owner: mariari
- Created: 2020-01-18T14:55:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T23:09:50.000Z (over 1 year ago)
- Last Synced: 2025-02-02T06:42:18.234Z (about 1 year ago)
- Topics: factor, stack
- Language: Factor
- Size: 2.08 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Misc-Stack-Scripts
This contains many random stack based programs I've created over the
years.
** Factor Specific
- 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 calls
=scaffold-vocab= when creating a new vocabulary!
** Interesting Projects
- 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 in =Factor=. With that
said, it does showcase =Factor='s assembler and marking
regions as executable
+ _Unfinished and not of interest_
* finger-tree
- Currently this does nothing, but does showcase the =match= and
=VARIANT:= capabilities of factor
* queue
- More =VARIANT:=. Ι believe Ι was interested in implementing
purely functional data structures at this time.
* 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.
* michelson
- Ι wanted to make a faster michelson compliant code in
=Factor=, would be nicer than using the normal interpreter in
=OCaml=.