r/learnpython • • 8d ago

Making my own golfing language in python

Im not that active on reddit, but the moment I came into the osdev subreddit (I tried making my own OS with a python shell) and I INSTANTLY got my inbox filled with hate comments.

I heard from one reddit post that this subreddit is much friendlier and more helpful, thats why I switched to this subreddit.

So I started making my own golfing language, array-oriented ofcourse, where data and code are seperated.

As of now I haven't really done anything except plan on what instructions to make, I have a total of 20 letters and symbols on board.

So, I'd like to hear some tips about making interpreters/compilers that I should keep in mind.

0 Upvotes

28 comments sorted by

View all comments

7

u/CptBadAss2016 8d ago edited 8d ago

Can you elaborate on what you're trying to build, its purpose, and what your end goals are? (like big picture plain english, no technical mumbo jumbo)

And then what are your current letters and symbols?

1

u/Aliman_Hideaki 7d ago

curious about the 20 symbols too, thats a pretty tight constraint to work with

-4

u/keepandroidopen 8d ago

I'm trying to make a tiny programming language that can do everything a normal language can do WHILE wasting as little space as possible, common examples include the APL language and Jelly.

3

u/CptBadAss2016 8d ago

What does it have to do with golfing?

4

u/keepandroidopen 8d ago

Golfing is just the name of the practice, it is short for Code Golfing, where people try to make the smallest possible code needed to do something, lile print Hello Word.

4

u/CptBadAss2016 8d ago

Oooooohh I see. As a golfer (whacking a tiny ball with a crooked stick into gopher holes kind of golf) you had my interest. Your project sounds fun though, good luck!

1

u/keepandroidopen 8d ago

Thanks!

2

u/packhamg 8d ago

Check programming puzzle and code gold on stack exchange if you haven’t already. Also there is a website for esoteric langues that lists many of the langues that use very few characters to do many tricks