lang-party / Summer2022

Lang Party 2022
24 stars 1 forks source link

Budge programming language #5

Open bor0 opened 2 years ago

bor0 commented 2 years ago

Budge

Where can we learn about your language? Feel free to post a variety of resources: source code, images, article / blog post, video, etc.

https://esolangs.org/wiki/Budge-PL https://github.com/bor0/budge

Racket entry: https://github.com/bor0/budge/blob/main/pl/src/budge-pl.rkt

What is the purpose of your language? Give a short motivational pitch.

Budge-PL (bʌdʒ, b’dzh) is an esoteric programming language. It uses Gödel numbering to represent registers and their values by relying on the Fundamental Theorem of Arithmetic (prime factorization). The language uses similar constructs as FRACTRAN, however, it provides a more convenient way to construct loops and uses integers rather than fractions to denote instructions. It also abstracts prime numbers in the code, allowing for direct register access. A negative integer will decrease a register’s value, while a positive integer will increase a register’s value.

Please list a few example programs (or links to examples) below.

Addition: [[2, -2, 1]] Subtraction: [ [1, -1, 3, 5], [2, -2, 4, 6], [3, -3, -4], [6, -5, -6], [4, -4, 1, 3], [3, [3, -3], 2], [5, -5, 1]] More examples: https://github.com/bor0/budge/blob/main/pl/src/budge-pl.ipynb

Licence

I confirm that the text in this issue is licensed under the Creative Commons Attribution 4.0 International License http://creativecommons.org/licenses/by/4.0/

spdegabrielle commented 2 years ago

Thank you for your contribution.

Can I ask how you found out about the the summer lang party event?

best wishes Stephen

bor0 commented 2 years ago

Can I ask how you found out about the the summer lang party event?

Twitter :) The post was shared by @racketlang