Hasty Briefsbeta

Show HN: The Taka Programming Language

8 days ago
  • #stack-based
  • #functional
  • #programming-language
  • Taka is a small, stack-based, functional programming language.
  • It uses Polish (prefix) notation instead of reverse Polish (postfix) notation.
  • Quotations (blocks of unevaluated code) are the only way of defining functions.
  • Inspired by Forth, Joy, Factor, Clojure, Scala, and Rust.
  • Programs can be concise and readable, similar to Python or Javascript.
  • Taka programs are read line-by-line, from right to left.
  • Three kinds of terms: literals, blocks, and identifiers.
  • Basic syntax includes stack manipulation, text literals, and blocks.
  • Combinators like map and filter apply blocks to lists.
  • Definitions use let for variables and functions.
  • Syntactic sugar includes dot (.) for left-to-right evaluation and dollar ($) for single-element blocks.
  • Error handling is minimal; programs crash on errors.
  • Two interpreters: Python (prototype) and Rust (faster).
  • Primary use case: solving Advent of Code problems.
  • License: GNU General Public License v3.