**Numbers**
Well-known languages generally have a O(log n) way of expressing the natural number n. Toki Pona, on the other hand, has words only for "one" (wan), "two" (tu), "five" (luka, which also means "hand"), and "many" (mute), and these words are additive. For example, thirteen is mute or luka luka tu wan. Expressing specific numbers greater than twenty in such an O(n) system is uncommon. Below is a Scheme program that translates a number into this notation.

;;; int->tokipona
;;; Scheme code to return the name of a positive integer
;;; in the Toki Pona language.
;;; By Damian Yerrick (jan Tepo li pali e ni)
(define int->tokipona
(letrec ((iter
(lambda (n)
(cond
((>= n 5) (cons "luka " (iter (- n 5))))
((>= n 2) (cons "tu " (iter (- n 2))))
((>= n 1) '("wan "))
(else '())))))
(lambda (n)
(apply string-append (iter n)))))
This is a Befunge program that does the same thing, by Lament (jan Nikita):

&>:!#@_:4`#v_1-:#v_0"naw">:#,_@
>^#<$:-1$<@>:4+>$0" akul">:#,_v
$5-^>:#,_^#:"tu "<<(c) Lament>>

https://archive.vn/gMrlT

#TokiPona #nanpa #numbers #program #ilo_nanpa #anno2007

Toki Pona language

Coronavirus: 1,413 Cases - squidium.io

The number of confirmed cases, worldwide.

ilo nanpa (Toki Pona Calculator, English CC)
Sadale |14 Jan. 2019

https://www.youtube.com/watch?v=NgWCLg4H_4U

#TokiPona #sitelen_tawa #ilo_nanpa #anno2019

ilo nanpa (Toki Pona Calculator, English CC)

YouTube

BUILDING AND CONTROLLING 19 LEDS & FIVE BUTTONS FROM FIVE OUTPUTS
Richard Baguley | Jan. 20, 2019

Numbers are hard enough in English, but [Sadale] decided to take things a step further by building a calculator that works in Toki Pona. The result is Ilo Nanpa, an awesome hardware calculator that works in this synthetic minimal language. This is a bit harder than you might think, because Toki Pona doesn’t have digits in the same way that Neo-Latin languages like English do. Instead, you combine smaller numbers to make bigger ones. One is Wan, Two is Tu, but three is Wan Tu (1+2). As you might expect, this makes dealing and representing larger numbers somewhat complicated.

Ilo Nanpa gets around this in a wonderfully elegant way, and with some impressive behind the scenes work. The calculator has 16 LEDs, nine buttons and a slider switch, but they are all controlled and read through just five IO pins on the STM8S001J3 controller that runs the device.
[...]

https://hackaday.com/2019/01/20/building-and-controlling-19-leds-five-buttons-from-five-outputs/

#TokiPona #mention #ilo_nanpa #sona #anno2019

Building And Controlling 19 LEDs &amp; Five Buttons From Five Outputs

Hackaday

BUILDING AND CONTROLLING 19 LEDS & FIVE BUTTONS FROM FIVE OUTPUTS
Richard Baguley | Jan.20, 2019

Numbers are hard enough in English, but [Sadale] decided to take things a step further by building a calculator that works in Toki Pona. The result is Ilo Nanpa, an awesome hardware calculator that works in this synthetic minimal language. This is a bit harder than you might think, because Toki Pona doesn’t have digits in the same way that Neo-Latin languages like English do. Instead, you combine smaller numbers to make bigger ones. One is Wan, Two is Tu, but three is Wan Tu (1+2). As you might expect, this makes dealing and representing larger numbers somewhat complicated.

Ilo Nanpa gets around this in a wonderfully elegant way, and with some impressive behind the scenes work. The calculator has 16 LEDs, nine buttons and a slider switch, but they are all controlled and read through just five IO pins on the STM8S001J3 controller that runs the device.

[...]

https://hackaday.com/2019/01/20/building-and-controlling-19-leds-five-buttons-from-five-outputs/

#TokiPona #calculator #ilo_nanpa #sona #anno2019

Building And Controlling 19 LEDs &amp; Five Buttons From Five Outputs

Hackaday