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

Cognate

< >

Cognate is a programming language created in 2020 by Finn Barber.

#1970on PLDB 4Years Old
Download source code:
git clone https://github.com/cognate-lang/cognate

A human readable quasi-concatenative programming language. Cognate is a small, dynamic, concatenative language for functional programming. Cognate aims to express complex programs in a simple and readable way through its unique syntax, which emphasises embedding comments into statements. This makes programs very readable and helps a programmer better express their intentions.


Example from the web:
~~ Prime numbers in Cognate Def Factor (Zero? Modulo Swap); Def Primes ( Let U is upper bound; initially List (); For Range 2 to U ( Let P is potential prime; Let Found be list of found primes; Let To-check be Take-while (<= Sqrt P) Found; When All (Not Factor of P) To-check ( Append P ) to Found ) ); Print Primes up to 1000;

View source

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