SlaveCode LogoSlaveCode.
Academy
RoadmapProblemsSystem Design
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
‌
SlaveCode LogoSlaveCode.

Standardize your coding journey. From basic academy courses and guided roadmaps to advanced system design, company interview prep, and real-time coding arenas. The all-in-one platform to master algorithms and prove your engineering excellence.

Learn & Practice

  • Academy
  • Problems
  • Roadmap
  • System Design

Compete & Tools

  • Arena
  • Contests
  • Compilers

Legal & Support

  • Report an Issue
  • Privacy Policy
  • Terms of Service
  • Contact Us

© 2026 SlaveCode. All rights reserved.

8th

8th

8th™ is a secure, robust, cross-platform, and fun programming language. Any platform. Every platform.

Master 8th with
Interactive Learning

Elevate your 8th skills through 70 curated exercises across 0 core concepts. Master problem-solving with a structured learning path designed for modern developers.

8th

About 8th

8th is a strongly-typed, FORTH-derivative, stack-based language with RPN syntax.

8th supports android, ios32, lin64, mac64, rpi32 and win64 platforms. 8th lets you use your preferred platform to write and test your code. With one click, you generate the executables for any platform 8th supports, from any platform it supports!

8th includes everything you need: cross-platform GUI support, strong encryption, SQLite database support, FFI, REST access, easy localization, hardware access, JSON support, a REPL and much more!

Security isn't an afterthought in 8th. It was designed from the beginning to avoid the most common software security problems. We continually work to make it even more secure.

8th has a forum as well as extensive documentation including a manual, and a hyperlinked dictionary of builtin and library words. Compare 8th with other languages!

Quick introduction for users of “mainstream” languages

If you’re coming from C or Java or most more common languages, you may find 8th a bit puzzling. To help set you on the right path, here are some of the primary differences between 8th and “the mainstream”, as well as some helpful hints:

  • As a consequence of the way the interpreter looks up items, you must declare a var or a word prior to its first use. Failure to do so will result in the exception can’t find ...

  • A var is a named container for other items. It is not the name of the item referred to! So var x may hold an array, but it is wrong to try to access x as if it were itself an array, and doing so will cause an exception to be thrown

  • You cannot declare a var inside (e.g. local to) a word, don’t try it! You can, however, use w:@ and w:! to access word-local variables

  • Try to write your own words so that they can be chained together with other words. For example: the “file words” do some operation on a file and leave the file item on the stack (and perhaps other information) for the next word to work on

  • Keep your words short. Comment them. Be sure, especially, to comment the stack-effect, and…

  • … test each word you write (preferably as you write it or shortly thereafter), ensuring it adheres to its documented SED (Stack-Effect Diagram). This will help you write bug-free code. Re-test if you change the SED or the code

  • Consult the help and apropos words for details on the SED action, and side-effects of any word you aren’t sure of

  • In 8th, an exception is a fatal error, and will cause the application to quit (this is the default behavior). Don’t expect to “catch” one and handle it effectively

  • There is no compile/link cycle. Instead, 8th is an engine which first interprets your code and if necessary compiles it at runtime. When running on a device, your code is native code for the platform, not bytecode running inside a VM

Key Features of 8th

Safe

8th was designed from the beginning to avoid the most common software security problems.

Cross-platform

With one click generate the executable for any platform 8th supports, from any platform it supports!

Expressive

No reserved words at all and almost no syntax.

General purpose

8th is primarily a strongly-typed FORTH-like stack-based procedural language with RPN syntax.

Interactive

8th has an interactive REPL.

Documentation

Documentation is extensive, making it easy to get started with 8th.

Track icon

Safe

8th was designed from the beginning to avoid the most common software security problems.

Cross-platform

With one click generate the executable for any platform 8th supports, from any platform it supports!

Expressive

No reserved words at all and almost no syntax.

General purpose

8th is primarily a strongly-typed FORTH-like stack-based procedural language with RPN syntax.

Interactive

8th has an interactive REPL.

Documentation

Documentation is extensive, making it easy to get started with 8th.

Dive into 8th practice challenges

Hello World
Hello World
Level 1

SlaveCode's classic introductory exercise. Just say "Hello, World!".

Two Fer
Two Fer
Level 1

Create a sentence of the form "One for X, one for me.".

Gigasecond
Gigasecond
Level 1

Given a moment, determine the moment that would be after a gigasecond has passed.

Leap
Leap
Level 1

Determine whether a given year is a leap year.

Triangle
Triangle
Level 2

Determine if a triangle is equilateral, isosceles, or scalene.

Trinary (Base-3) Numbers
Trinary (Base-3) Numbers
Level 2

Convert a trinary number, represented as a string (e.g. '102012'), to its decimal equivalent using first principles.