virejdasani / pythOwO

an UwU programming language
https://youtu.be/czZmkh7CY6M
MIT License
843 stars 46 forks source link

rules to UwUfwicatwion? #38

Open tempewda opened 2 years ago

tempewda commented 2 years ago

what if we define some rules so that we can identify when to use "uwu" and "w" during uwufwicatwion? so suppose we have 3 words, number, please, math they get uwufied as: number -> nuwumber please -> pwease math -> mathowo (source: calcuwulator.pyowo)

setting some rules would help future contributors during uwufwicatwion, n will prevent over/under uwufwicatwion at times :3

LordUbuntu commented 2 years ago

I've honestly been thinking about this idea for a while.

Uwufication has some de-facto standard pattern that it already follows:

This could be enforced with a linter, formatter, or the language itself to ensure UwU compliancy. Maybe we should start a project on that? A wintew?

Another rule I thought might be in line with this might be requiring that every function name must start (or maybe end) with an owo, like a function named add must be named owoadd (or maybe addowo).

tempewda commented 2 years ago

yes i love the idea of a linter for pythOwO

as for owo , u can add it to nouns that were exempted from the previous 2 mentioned rules, i.e., they don't have any u, l or r. Such as math, so in this case, owo just gets added to its end

LordUbuntu commented 2 years ago

Bet. I'll start work on a linter and demo program next friday!

LordUbuntu commented 2 years ago

So writing a BrainFuck interpreter for a demo turned out to be beyond the language's capacity within the time I had to work on it today. I also discovered the hard way that a linter is not very easy, even harder when determining what is and is not a noun. I did however manage with the time I had left to write an example function in pythOwO which takes a character and returns a string that substitutes it, which accomplished some of the patterns discussed here (everything but owo).

In the future this could be used towards implementing a full-blown linter and bootstrap compiler, but for the moment the language limitations prevent that.

ironkayman commented 1 year ago

There is an article describing something like this, page 206, "Optimal degeneracy through OwO based variable names"

Almas-Ali commented 1 year ago

Hey, you can tryout this project https://github.com/radon-project/radon because this projects are not maintaining. We will move a language together. It's very exciting. We have implement class feature in our project. Also standard library and third party imports.

See you there.

@tempewda @LordUbuntu @ironkayman