Skip to content

Request: more esoteric languages #954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rbergen opened this issue Jan 21, 2024 · 4 comments
Open

Request: more esoteric languages #954

rbergen opened this issue Jan 21, 2024 · 4 comments

Comments

@rbergen
Copy link
Contributor

rbergen commented Jan 21, 2024

I'd like to put a request out to potential contributors to add solutions for more esoteric languages. We have some in the collection, but many more exist. At some point, I'd love to have a solution for each of the languages listed on the Wikipedia page discussing the concept of esoteric programming language, at least.

@rzuckerm rzuckerm mentioned this issue Dec 15, 2024
6 tasks
@cmester0
Copy link

I have a solution in a higher level language compiled to Piet (https://github.com/cmester0/Piet/blob/main/Rust/tests/advc/primes.advc), I can generate the Piet solution if you would like it.

@rbergen
Copy link
Contributor Author

rbergen commented Feb 27, 2025

@cmester0 I'd love a proper solution in Piet! Ideally, we should be able to "compile" the Piet solution to what actually gets executed.

Just out of curiosity and chancing a blatant exposure of complete ignorance on my part, but what's the higher-level language in the file you referred to?

@cmester0
Copy link

I have made a compiler stack to code Piet solutions easier. So this "high level language" is a simple language with function calls, local and global variables, and a simple standard library. So I am not coding the solution directly in Piet, but have some levels of abstraction on top of Piet. The compiled version is here: https://github.com/cmester0/Piet/blob/main/examples/primes.png

@rbergen
Copy link
Contributor Author

rbergen commented Feb 28, 2025

I understand. In that case it wasn't strange I didn't recognise the language.

I'd love to add a Piet solution to the collection. To make it a "proper" one, we'd need:

  • The source code from which the Piet solution can be generated.
  • The compiler that turns it into a Piet solution.
  • A Piet interpreter that can execute the Piet solution.
  • A Dockerfile that ties everything together and executes the Piet solution in such a way that it runs a sieve with an upper limit of 1,000,000 and prints the number of primes that were identified.

I've found a Piet interpreter here: https://github.com/your-diary/piet_programming_language. I'm also happy to help with the composition of the Dockerfile, if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants