Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Goal

< >

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

#1707on 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 ✓

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v161.0.4