Front Page All Articles Recent Changes Random Article

Contents

Concatenative language

  • ACL
  • Ait
  • Aocla
  • Breeze
  • Callisto
  • Cat
  • Cognate
  • colorForth
  • Concata
  • CoSy
  • Deque
  • DSSP
  • dt
  • Elymas
  • Enchilada
  • ERIShell
  • ETAC
  • F
  • Factor
  • Fiveth
  • Forth
  • Fourth
  • Freelang
  • Gershwin
  • hex
  • iNet
  • Joy
  • Joy of Postfix App
  • kcats
  • Kitten
  • lang5
  • Lamplight
  • Listack
  • LSE64
  • Lviv
  • Meow5
  • min
  • Mirth
  • mjoy
  • Mlatu
  • Ode
  • OForth
  • Om
  • Onion
  • Onyx
  • Plorth
  • Popr
  • Porth
  • PostScript
  • Prowl
  • Quackery
  • Quadrate
  • Quest32
  • r3
  • Raven
  • Retro
  • RPL
  • SPL
  • Staapl
  • Stabel
  • Tal
  • Titan
  • Trawl
  • Trith
  • Uiua
  • Worst
  • xs
  • XY
  • 5th
  • 8th

Concatenative topics

  • Compilers
  • Interpreters
  • Type systems
  • Object systems
  • Quotations
  • Variables
  • Garbage collection
  • Example programs

Concatenative meta

  • People
  • Communities
  • Events

Other languages

  • APL
  • C++
  • Erlang
  • FP trivia
  • Haskell
  • Io
  • Java
  • JavaScript
  • Lisp
  • ML
  • Oberon
  • RPL
  • Self
  • Slate
  • Smalltalk

Meta

  • Search
  • Farkup wiki format
  • Etiquette
  • Sandbox

Trawl

Trawl is a small stack-based concatenative language for searching for patterns in the integers. Every number is an exact integer of any size. It has a reference interpreter in Python and a native compiler through C for long searches. Loops can detect when their state repeats, and searches can guess and rewind. It is developed by connabyss: https://github.com/connabyss/trawl

Example

Follow the rule x -> x + (digit sum of x)2 from 1 for 15 steps:

: flow dup 10 digsum dup * + ;
1 15 [ swap dup . flow swap 1 - ] drop drop

Output:

1 2 6 42 78 303 339 564 789 1365 1590 1815 2040 2076 2301

Trawl's search for OEIS A343507 (from Erdős problem 727) reproduces the terms a(10) to a(12): https://oeis.org/A343507

This revision created on Mon, 30 Nov 2026 21:08:21 by connabyss (New page for Trawl)

Latest Revisions Edit

All content is © 2008-2024 by its respective authors. By adding content to this wiki, you agree to release it under the BSD license.