When you think of a programming language, you probably think of a hefty compiler or interpreter. Maybe its on a bunch of floppies, a CD, or even an EEPROM. But what about a language that fits in a single disk sector? A language like that would — in theory — be used to help bootstrap a computer system and that was the idea behind Sector Forth and, later, Sector Lisp. However, there’s a new game in town: milliForth, which claims to be the smallest ever at 422 380 bytes.
Why would you want such a thing? Well, first of all, why not? Even as a form of code golf, packing a functioning language into a tiny space seems interesting. However, you could also presumably use something like this to boot a small system or on a system with limited storage.
As you might expect, there are compromises. There are only a few keywords but since Forth can define new words, that might not be a problem The input system is a little different than you might expect, but you are unlikely to want to use this as an interactive interpreter, anyway.
Of course, this implies a challenge: Can you write more with less? If you want to try, there’s no need to actually boot a system. Virtualization software makes it easy to spin up a virtual machine to try things like this out.
SectorLisp is a little larger, but not much. Forth is a great candidate for putting on small computers.
- SEO Powered Content & PR Distribution. Get Amplified Today.
- PlatoData.Network Vertical Generative Ai. Empower Yourself. Access Here.
- PlatoAiStream. Web3 Intelligence. Knowledge Amplified. Access Here.
- PlatoESG. Carbon, CleanTech, Energy, Environment, Solar, Waste Management. Access Here.
- PlatoHealth. Biotech and Clinical Trials Intelligence. Access Here.
- Source: https://hackaday.com/2023/11/06/tiny-forth-could-be-the-smallest/
- :is
- :not
- $UP
- a
- About
- actually
- All
- also
- an
- and
- anyway
- ARE
- AS
- At
- BE
- behind
- Bootstrap
- Bunch
- but
- CAN
- candidate
- CD
- challenge
- claims
- code
- computer
- could
- course
- define
- different
- easy
- Even
- EVER
- expect
- few
- First
- For
- form
- forth
- functioning
- game
- golf
- great
- help
- However
- HTTPS
- idea
- if
- in
- input
- interactive
- interesting
- into
- IT
- ITS
- keywords
- language
- larger
- later
- less
- like
- Limited
- little
- machine
- MAKES
- maybe
- might
- more
- much
- Need
- New
- no
- of
- on
- only
- or
- out
- plato
- Plato Data Intelligence
- PlatoData
- probably
- Problem
- Programming
- sector
- seems
- since
- single
- small
- smallest
- Software
- something
- Space
- Spin
- storage
- such
- system
- than
- that
- The
- theory
- There.
- thing
- things
- Think
- this
- to
- town
- try
- unlikely
- use
- used
- Virtual
- virtual machine
- want
- was
- WELL
- What
- which
- why
- with
- words
- would
- write
- you
- zephyrnet