Things you should implement in your own programming language
Posted
by I can't tell you my name.
on Stack Overflow
See other posts from Stack Overflow
or by I can't tell you my name.
Published on 2010-04-08T17:14:17Z
Indexed on
2010/04/08
17:23 UTC
Read the original article
Hit count: 394
I've created an experimental toy programming language with a (now) working interpreter. It is turing-complete and has a pretty low-level instruction set.
Even if everything takes four to six times more code and time than in PHP, Python or Ruby I still love programming all kinds of things in it.
So I got the "basic" things that are written in many languages working:
- Hello World
- Input -> Output
- Countdowns (not as easy as you think as there are no loops)
- Factorials
- Array emulation
- 99 Bottles of Beer (simple, wrong inflection)
- 99 Bottles of Beer (canonical)
Conjatz conjecture
Quine (that was a fun one!)
- Brainf*ck interpreter (To proof turing-completeness, made me happy)
So I implemented all of the above examples because:
- They all used many different aspects of the language
- They are pretty interesting
- They don't take hours to write
Now my problem is: I've run out of ideas! I don't find any more examples of what problems I could solve using my language.
- Do you have any programming problems which fit into some of the criteria above for me to work out?
© Stack Overflow or respective owner