Top 1,000 Features Creators Events Podcasts Extensions Interviews Blog Explorer CSV

Goal

< >

Goal is a programming language created in 2022 by Yon Fernández de Retana.

#1645on PLDB 2Years Old
Download source code:
git clone https://codeberg.org/anaseto/goal
REPL · Source Code · FAQ · Docs

Goal is a K-like language that brings in ideas from Perl and BQN and is written in Go.


Example from the web:
/ Handle command-line arguments: script name + optional file. (2<#ARGS)and:error"USAGE: goal wordstats.goal [file]" / Read STDIN or filename given by last argument; lowercase everything. src:_ 'read?[1=#ARGS;STDIN;*|ARGS] / Get all words (Unicode letters + dashes). words:rx/[\p{L}-]+/[src;-1] / Print number of words; number of distinct words; five most frequent words. say(#words;#dw:?words;5@!>dw!=%words)

Language features

Feature Supported Example Token
Regular Expression Syntax Sugar ✓

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll