Ask coding questions

← Back to all posts
Wildest programming language idea
amasad (2480)

What is your wildest programming language idea? This could be fun (silly) ideas or really cool and useful ones.

Go!

Also on le twatter: https://twitter.com/replit/status/1275525512861900800

Commentshotnewtop
DynamicSquid (2665)

Make a language with the exact same syntax as ENGLISH. For example:

"This is a comment."

Create a new variable named answer.
Have the variable named answer store the value of 10.

"Don't forget, grammar and spelling matter!"

If the variable answer is equal to 10, then do the following:
  1. Add a value of 5 to the variable.
  2. Create a new variable named question.
Otherwise, do the following:
  1. Exit the function.

Now, you can say that you're favourite language is English!

firefish (308)

@DynamicSquid

Print the following sentence to console: "Well LOL"
Call the function under the name of "Test123"
Declare a global array called "Drinks" with content:
   Index zero has: "Tea"
   Index one has: "Coffee"
   Index two has: "Peach Juice".
Declare a function under the name of "Test123":
    1. Pick a random item from the list called "Drinks", and put it in a variable called "drink"
    2. Print the variable "drink" to the console.
    3. Exit the function.

LOL

firefish (308)

@DynamicSquid As long as you are a fluent English speaker.
And all English lessons are now coding lessons too.

firefish (308)

@DynamicSquid Simple way of making school even more interesting than it already is...

awesome10 (212)

@johnstev111

Change language to python
firefish (308)

@awesome10 The point is that it's English

firefish (308)

@DynamicSquid You have to deal with synonyms though

nk1rwc (85)

@DynamicSquid dude that lang is good (english grammar lang)

firefish (308)

@nk1rwc I know. But this language cannot accept internet slang: e.g. lol or lmao.
You also have to laboriously type abbreviations, i.e. expanding to id est, and e.g. expanding to exemplis gratis.

ChezCoder (1483)

@DynamicSquid lol i think the name for it already exist, lookup pseudocode

PXY (42)

Was that you're intentional or can I make fun of you @DynamicSquid

Barry123 (36)

Try Chinese instead of English?
Hello world would be:
打印 “你好世界”。
This prints whatever you enter:
a 设为 输入(“输入:”)
打印 a

javaarchive (0)

@DynamicSquid that would make math problem solving easy.
To implemement this look for a NLP library for your language

EitanAlperstein (6)

To improve on that idea, try spelling everything backward!

".tnemmoc a si sihT"

.rewsna deman elbairav wen a etaerC
.01 fo eulav eht erots rewsna deman elbairav eht evaH

"!rettam gnilleps dna rammarg ,tegrof t'noD"

:gniwollof eht od neht ,01 ot lauqe si rewsna elbairav eht fI
.elbairav eht ot 5 fo eulav a ddA .1  
.noitseuq deman elbairav wen a etaerC .2  
:gniwollof eht od ,esiwrehtO
.noitcnuf eht tixE .1  

@DynamicSquid

CSharpIsGud (425)

@DynamicSquid https://github.com/pannous/english-script

I was thinking of it and even about using natural language processing libraries to do it. But it kind of exists already.

pythoder (183)

@Barry123 WOOHOOOO!!!!! CHINESE DA BEST!

SixBeeps (2537)

I've been thinking about making a language entirely in Spanish, so you could end up with something like this:

público entero[] x = [1, 2, 7, 3]
por-cada i en x {
  poner(i)
}
DynamicSquid (2665)

@SixBeeps the only Spanish I know is bonjour

SixBeeps (2537)

@DynamicSquid Wow, I'm impressed. Where'd you learn that from?

rediar (318)

@SixBeeps decent non-english programming languages are severly lacking... you should go for it

SixBeeps (2537)

@rediar Ah, but I should probably wait until I know more enough about compilers and all that jazz.

firefish (308)

@SixBeeps Just take code, run a search and replace for spanish keywords into english, et voilá I don't speak spanish sorry

StudentFires (340)

@SixBeeps I almost make a Spanish C++ transpiler.

ZDev1 (358)

@SixBeeps your bio is is chinese
Why you need it spanish?

Centslord (103)

@ZDev1 Bruh, that's Japanese

Wilke000 (456)

For some reason @SixBeeps, i just upvoted everybody's comments on this √√√√ check check and check

firefish (308)

@IndyCarter all I see is square root square root square root square root

firefish (308)

@IndyCarter √ is the square root symbol

firefish (308)

@SixBeeps but it square root
grilling apricots on a barbecue

firefish (308)

@Wilke000 The words grilling apricots on a barbecue is a meme. Have you not heard of it?

PattanAhmed (281)

@DynamicSquid @SixBeeps Me too same,
I just know Bonjour of Spanish.
but trying to learn more :)

Coder100 (4274)

I present...

Cxx

A static language that is weakly typed with implicit type coercion no matter what you do. For example:

int number = 5;
Console.Log(typeof number);

Your output will be:

<= Array[5]: [ Number, String, Boolean, Array, Null ]

Now, imagine you have another number:

int number2 = 10;

Adding them together gives:

<= "105"

Due to type coercion. Also, the same thing does not happen to strings:

String number1 = "5";
String number2 = "10";
Console.Log(number1 + number2);
<= Error: Cannot add two arrays

Due to strings being converted into Arrays.

Because of type coercion, this is logic:

5 == "100" => true // (both can be converted into booleans of true)
0 == 0 => false // (0 is not the same as false)
2 == 1 => true // (2 = true = 1)
"string" == "string" => false // (they have become arrays and require a deep equal in order to be true)
"5" == "2" => false // (same problem as above)
(Char)"5" == (Char)"2" => true // (both have become booleans due to explicit type)

Due to the nature of RegExp, RegExp has not been considered a type. It is considered a substance. A substance is that of a type, but it cannot be coerced for it is too pure. Substances are similar to classes, but they are not.

Substance.RegExp myRe = (new)Substance.RegExp(@"[^\d][\d\w]+"gi);
Console.Log(typeof myRe); => Substance.RegExp

Equalities with substances do not give you sane answers.

Substance.RegExp myRe = (new)Substance.RegExp(@"[^\d][\d\w]+"gi);
Substance.RegExp myRe2 = (new)Substance.RegExp(@".+"gi);
myRe == myRe2 => How Dare you Even Try To Compare Substances! Do you even know THE tRue Po𝑤͙͎̔̈́͠𝑒̦͔̙̓̓͌𝑟̡̫͌͑͘͜ o̸͖͚̓͆͠͝f̴̨̡̢̜͙̣̗͎̗̮̤̮̞̘̻͆̄̾̾͑̅͋͋̋͠ͅ ̶̧̧̡̱̳͔̙̬͈͈͍̗̊̌̊͌͑̓̍́̃͝s̴̢̨̞̩̱͈̙̥͖͎͖̭̣̠̓̔̔͊́̊̌̈̄̽̽̇̓͌͐͜͝ͅu̷̡̡̳̻̣̟͍̥͍͉̤̦̟̫͓̖͑̀̏͒̓͛̉̓̂̇ç̸̛͖̖̘̠̲̫̜̮̭̫͎̭͚̻̯̘̌͆̆̑͌̑̃̍̈́͒͊͘̕̚̚͝h̸̢̨̡̤̯͎͓̞͍͇̖̖̼̝͆̀̓̀̋͛̑̚ ̵̭̺̲̻̳͓͇̲͛̒̈̔̀̋̓̂̓̾̐͆͒̂͝͝t̸̞̩͙̖̞̱̭̟̭̮͉̲̠̊̑̀̌̋͆̄͂̑͑́͜͠h̵͉̰͆̔̊̐̈́͂̃̄̑̃̋̊͛͂͌ï̴̢̧͍̳͍̅̈́͛̑̓͗̿̒͌̿͛̒̄̚͠ṇ̵̢̾̊̄̈̏̎̍͐̅̌̔̀̕͝g̸̡̻̟̭͇̤͓͙͕̫̿̋͗͑͗̃̄̈́͝s̶̤͕̻̼̣͓̻̤̫͇̥̱̮͖͕̳̆̉̿̅̋̋͛̐̽͘͜ ̸̝̓̿́̎̓͘ỵ̵̨̧̯͍̱̫̲̘̩̘̏͋͑o̶̡̲̥͙̣̥̝̰̣͗͐̂͗̄̓̈́͜ű̵̠͐̓̋̓͐̊̃̿̚͠ ̵͓͉̕s̷̡̖̭̥̫̼̥̒̇͋́̏̀̚m̷͇͈̗͚̗͉̩̖̹͍͉͖͔̼̅̍̓̑̈̋̃͛͛̕a̵͚̣̯̫̮̬̞͚̙͎̹̋̈́̅̄̐͒̋̈́̇́̚͝ḽ̸̗̬͍̫̣̠̿̓͆l̷͖͕̣̳͉͙͇̀͋͒͋̊̉̄̅̀͝͠ ̴̡̡̛̻̟̖͍̘̃̈͐͛̌́͂͂́̑̃͌̆̋̽̚b̸͇̭̦̬̝͔̈́͂̊͌̿ȑ̷̨͉̱̬̮̩͉̘͎̩̩̙͓͙̊̈́́͊̿̾͠à̸̡̳̝̫̘̯͙͚͎̺̋͛̔̔͒̐͆͌̈́̕i̸̜͆̿̈́͑͌̏̂̑̾̈̎͝n̵̢͚̥͈̰͚̐̐̅́̌̉̃͆͛̈́̃̇ ̸̤̲̲͕̘͇̞͔́͊̃͐͑̅̿̓̾̊̈́̕̕͜p̵̡̖̖̙̝̬̪͈̙̖͓̙͚͛r̴̛͔̳̺̺̪̓͒̈́̄̈́͌̔̑̿̏̕ȍ̸̢̠̖̩̫͕͔̣̘͕̳̽̏̾̈̆̔́̈̄͘͘ͅģ̸̛͇̿̐͗̾͂̆̀̈́̌̋̋̍̑̈́͠ř̶͈͚̥̱͚̹͉͙̯̞͓̬̑̕à̷̰̲͕̯͇͓̖͉͚̒̉͜ͅm̶̨̦̰̱̪̤̻̯̙̔͆̈́͐́̚͝m̵̡͔̰͇͓̮̣̱̞̜̥̣̤̂͜e̶̛̠̝͉r̵̢̧̛̹͎̜̘͙̻̫̙̦̻̜̟͕̱͑̃̍͌̈́̃̓͊̿̕͜

Funnily enough, no errors are thrown.

Now, to define a function, you do:

void FunctionName(int arg1, int arg2) {
  return arg1+arg2;
}

Of course, a return value is not required. Return values follow the same implicit type coercion.

Surprisingly, you can convert functions into Substances:

void FunctionName(int arg1, int arg2) {
  // Code
}
(Substance.Generic)SubtanceFunction = FunctionName;

However, the function has become a substance, but the code does not. This means, comparing it to other Substances will give you the same result as the RegExp had:

void Function1(int arg1, int arg2) {
  // Code
}
void Function2(int arg1, int arg2) {
  // Code
}

(Substance.Generic)SubstanceFunction = Function1;
(Substance.Generic)SubstanceFunction2 = Function2;

SubstanceFunction = SubtanceFunction2 => How Dare you Even Try To Compare Substances! Do you even know THE tRue Po𝑤͙͎̔̈́͠𝑒̦͔̙̓̓͌𝑟̡̫͌͑͘͜ o̸͖͚̓͆͠͝f̴̨̡̢̜͙̣̗͎̗̮̤̮̞̘̻͆̄̾̾͑̅͋͋̋͠ͅ ̶̧̧̡̱̳͔̙̬͈͈͍̗̊̌̊͌͑̓̍́̃͝s̴̢̨̞̩̱͈̙̥͖͎͖̭̣̠̓̔̔͊́̊̌̈̄̽̽̇̓͌͐͜͝ͅu̷̡̡̳̻̣̟͍̥͍͉̤̦̟̫͓̖͑̀̏͒̓͛̉̓̂̇ç̸̛͖̖̘̠̲̫̜̮̭̫͎̭͚̻̯̘̌͆̆̑͌̑̃̍̈́͒͊͘̕̚̚͝h̸̢̨̡̤̯͎͓̞͍͇̖̖̼̝͆̀̓̀̋͛̑̚ ̵̭̺̲̻̳͓͇̲͛̒̈̔̀̋̓̂̓̾̐͆͒̂͝͝t̸̞̩͙̖̞̱̭̟̭̮͉̲̠̊̑̀̌̋͆̄͂̑͑́͜͠h̵͉̰͆̔̊̐̈́͂̃̄̑̃̋̊͛͂͌ï̴̢̧͍̳͍̅̈́͛̑̓͗̿̒͌̿͛̒̄̚͠ṇ̵̢̾̊̄̈̏̎̍͐̅̌̔̀̕͝g̸̡̻̟̭͇̤͓͙͕̫̿̋͗͑͗̃̄̈́͝s̶̤͕̻̼̣͓̻̤̫͇̥̱̮͖͕̳̆̉̿̅̋̋͛̐̽͘͜ ̸̝̓̿́̎̓͘ỵ̵̨̧̯͍̱̫̲̘̩̘̏͋͑o̶̡̲̥͙̣̥̝̰̣͗͐̂͗̄̓̈́͜ű̵̠͐̓̋̓͐̊̃̿̚͠ ̵͓͉̕s̷̡̖̭̥̫̼̥̒̇͋́̏̀̚m̷͇͈̗͚̗͉̩̖̹͍͉͖͔̼̅̍̓̑̈̋̃͛͛̕a̵͚̣̯̫̮̬̞͚̙͎̹̋̈́̅̄̐͒̋̈́̇́̚͝ḽ̸̗̬͍̫̣̠̿̓͆l̷͖͕̣̳͉͙͇̀͋͒͋̊̉̄̅̀͝͠ ̴̡̡̛̻̟̖͍̘̃̈͐͛̌́͂͂́̑̃͌̆̋̽̚b̸͇̭̦̬̝͔̈́͂̊͌̿ȑ̷̨͉̱̬̮̩͉̘͎̩̩̙͓͙̊̈́́͊̿̾͠à̸̡̳̝̫̘̯͙͚͎̺̋͛̔̔͒̐͆͌̈́̕i̸̜͆̿̈́͑͌̏̂̑̾̈̎͝n̵̢͚̥͈̰͚̐̐̅́̌̉̃͆͛̈́̃̇ ̸̤̲̲͕̘͇̞͔́͊̃͐͑̅̿̓̾̊̈́̕̕͜p̵̡̖̖̙̝̬̪͈̙̖͓̙͚͛r̴̛͔̳̺̺̪̓͒̈́̄̈́͌̔̑̿̏̕ȍ̸̢̠̖̩̫͕͔̣̘͕̳̽̏̾̈̆̔́̈̄͘͘ͅģ̸̛͇̿̐͗̾͂̆̀̈́̌̋̋̍̑̈́͠ř̶͈͚̥̱͚̹͉͙̯̞͓̬̑̕à̷̰̲͕̯͇͓̖͉͚̒̉͜ͅm̶̨̦̰̱̪̤̻̯̙̔͆̈́͐́̚͝m̵̡͔̰͇͓̮̣̱̞̜̥̣̤̂͜e̶̛̠̝͉r̵̢̧̛̹͎̜̘͙̻̫̙̦̻̜̟͕̱͑̃̍͌̈́̃̓͊̿̕͜

Finally, if you try to compare a normal function to a substance function, you get:

void NormalFunc(int arg1, int arg2) {
  // Code
}

(Substance.Generic)SubstanceFunc = NormalFunc;

SubstanceFunc == NormalFunc => 1

1 is the result you will get no matter what is being compared to any substance.

And that is all for this language! Rumors are that JavaScript is written on top of Cxx.

adityaru (149)

@Coder100 The first part, it already exists, JS

firefish (308)

@Coder100 That's C#... You just simply modified mscorlib.dll

DynamicSquid (2665)

@adityaru I can't tell you how much I hate JS because of that

firefish (308)

@Coder100 syntax is so similar, YOU HAVE BEEN INSPIRED wops caps

Coder100 (4274)

LOL well don't all static languages have similar syntax literally 3 of them are nearly the same

int c = 5;
int cpp = 6;
int cs = 7;

LOL
@johnstev111

NoelB33 (308)

@Coder100 This is the best part: SubstanceFunction = SubtanceFunction2 => How Dare you Even Try To Compare Substances! Do you even know THE tRue Po𝑤͙͎̔̈́͠𝑒̦͔̙̓̓͌𝑟̡̫͌͑͘͜ o̸͖͚̓͆͠͝f̴̨̡̢̜͙̣̗͎̗̮̤̮̞̘̻͆̄̾̾͑̅͋͋̋͠ͅ ̶̧̧̡̱̳͔̙̬͈͈͍̗̊̌̊͌͑̓̍́̃͝s̴̢̨̞̩̱͈̙̥͖͎͖̭̣̠̓̔̔͊́̊̌̈̄̽̽̇̓͌͐͜͝ͅu̷̡̡̳̻̣̟͍̥͍͉̤̦̟̫͓̖͑̀̏͒̓͛̉̓̂̇ç̸̛͖̖̘̠̲̫̜̮̭̫͎̭͚̻̯̘̌͆̆̑͌̑̃̍̈́͒͊͘̕̚̚͝h̸̢̨̡̤̯͎͓̞͍͇̖̖̼̝͆̀̓̀̋͛̑̚ ̵̭̺̲̻̳͓͇̲͛̒̈̔̀̋̓̂̓̾̐͆͒̂͝͝t̸̞̩͙̖̞̱̭̟̭̮͉̲̠̊̑̀̌̋͆̄͂̑͑́͜͠h̵͉̰͆̔̊̐̈́͂̃̄̑̃̋̊͛͂͌ï̴̢̧͍̳͍̅̈́͛̑̓͗̿̒͌̿͛̒̄̚͠ṇ̵̢̾̊̄̈̏̎̍͐̅̌̔̀̕͝g̸̡̻̟̭͇̤͓͙͕̫̿̋͗͑͗̃̄̈́͝s̶̤͕̻̼̣͓̻̤̫͇̥̱̮͖͕̳̆̉̿̅̋̋͛̐̽͘͜ ̸̝̓̿́̎̓͘ỵ̵̨̧̯͍̱̫̲̘̩̘̏͋͑o̶̡̲̥͙̣̥̝̰̣͗͐̂͗̄̓̈́͜ű̵̠͐̓̋̓͐̊̃̿̚͠ ̵͓͉̕s̷̡̖̭̥̫̼̥̒̇͋́̏̀̚m̷͇͈̗͚̗͉̩̖̹͍͉͖͔̼̅̍̓̑̈̋̃͛͛̕a̵͚̣̯̫̮̬̞͚̙͎̹̋̈́̅̄̐͒̋̈́̇́̚͝ḽ̸̗̬͍̫̣̠̿̓͆l̷͖͕̣̳͉͙͇̀͋͒͋̊̉̄̅̀͝͠ ̴̡̡̛̻̟̖͍̘̃̈͐͛̌́͂͂́̑̃͌̆̋̽̚b̸͇̭̦̬̝͔̈́͂̊͌̿ȑ̷̨͉̱̬̮̩͉̘͎̩̩̙͓͙̊̈́́͊̿̾͠à̸̡̳̝̫̘̯͙͚͎̺̋͛̔̔͒̐͆͌̈́̕i̸̜͆̿̈́͑͌̏̂̑̾̈̎͝n̵̢͚̥͈̰͚̐̐̅́̌̉̃͆͛̈́̃̇ ̸̤̲̲͕̘͇̞͔́͊̃͐͑̅̿̓̾̊̈́̕̕͜p̵̡̖̖̙̝̬̪͈̙̖͓̙͚͛r̴̛͔̳̺̺̪̓͒̈́̄̈́͌̔̑̿̏̕ȍ̸̢̠̖̩̫͕͔̣̘͕̳̽̏̾̈̆̔́̈̄͘͘ͅģ̸̛͇̿̐͗̾͂̆̀̈́̌̋̋̍̑̈́͠ř̶͈͚̥̱͚̹͉͙̯̞͓̬̑̕à̷̰̲͕̯͇͓̖͉͚̒̉͜ͅm̶̨̦̰̱̪̤̻̯̙̔͆̈́͐́̚͝m̵̡͔̰͇͓̮̣̱̞̜̥̣̤̂͜e̶̛̠̝͉r̵̢̧̛̹͎̜̘͙̻̫̙̦̻̜̟͕̱͑̃̍͌̈́̃̓͊̿̕͜

firefish (308)

@NoelB33 *grammar [zalgo removed]

StudentFires (340)

@Coder100 Looks like JavaScript to me, as expert JS writer.

ZDev1 (358)

@Coder100 I only replied on this

Warhawk947 (523)

I present to you my truly innovative language:

???

Code will only compile and run when the programmer has died. Therefore, no one really knows the syntax of this language because we don't know how to raise people from the dead, yet...

firefish (308)

@Warhawk947 I have a gut feeling it's a C-style language. Only god can know.

Highwayman (1364)

@Warhawk947 for when you actually have to spend sweat tears and blood on a project 😜

SpaceFire (101)

I present to you my truly innovative language: Singularity

You are only allowed one variable per script and it must be Elon_Musk

All functions can only return values in binary

When the script ends the program will automatically print the number 3 trending result on Google Trends

Your output will be emailed to you within 8-10 business days during which time we convert your program your program into punch cards.

All errors are returned to you with a snarky comment about your hygiene

All while loops are infinite no matter what you do

The documentation is written in Ancient Sanskrit and all attempts of trying to translate it have resulted in mildly unsuccessful careers, Although we do provide a good Dental plan

SixBeeps (2537)

@SpaceFire well that was a roller coaster

SpaceFire (101)

@SixBeeps thanks? idk if that was a compliment lol

SpaceFire (101)

@SixBeeps thank you for that so helpful clarification.

SixBeeps (2537)

@SpaceFire You're very much welcome not

SpaceFire (101)

@SixBeeps your indecisiveness astounds me

SpaceFire (101)

@DynamicSquid that is nice. i kinda wanna make this into a language just for the sake of it but i have a weak spot in Ancient sanskrit

firefish (308)

@SpaceFire Yeah... I've forgotten half the vocabulary of Ancient Sanskrit too...

Codemonkey51 (803)

A language that throws errors no matter what you add
AKA: no correct syntax

firefish (308)

@Codemonkey51 I can do that, simple C# code right here:

string cmd = Console.ReadLine(); // input command
if (true) { throw new Exception("Syntax Error"); }
Codemonkey51 (803)

syntax error: expected \r\n not \n on line endings
try again @johnstev111

AmazingMech2418 (692)

My wildest programming language ideas are

Objective BASIC

Like an object-oriented version of BASIC. (might actually make)

Adapt

A programming language where you can dynamically change the syntax with the ability to rewrite the program while it is running and variables with multiple types simultaneously. (in development)

XPL

A language based on XML (https://github.com/amazingmech2418/xpl)

Link

A language based on JSON that could allow programming via a flowchart. (https://github.com/AmazingMech2418/Link-Programming-Language)

Inventor

A language which is entirely based on transpiling. (https://github.com/AmazingMech2418/Inventor)

Possibly the worst programming language I have made actually. LOL!

X

A C-style language with a full graphics library, a safe memory system without buffer overflows, with prototypal OOP, and with a powerful mathematics library. (in planning stage currently)

Jakman (377)

@AmazingMech2418 X is already here. It is called Rust. lol

Highwayman (1364)

@AmazingMech2418 oh wow wait how did I. It see this earlier sick! Can’t waot for X

ApoorvAgrawal (39)

@AmazingMech2418 There's already modeling software with the name of "Inventor". You might need to rename it

CodeLongAndPros (954)

Something where the syntax changes based on the previous commands. No program has the same rules. Or you can only use each syntax construct x times.

5 for loops, 10 ifs...

DynamicSquid (2665)

@CodeLongAndPros

...

@TheDrone7: interesting problem for the WEEKLY challenges

Jakman (377)

@CodeLongAndPros the first style of your programming sounds good. Then you have to make a possibilty of output for every command that you pass into your program.

Highwayman (1364)

Hm I actually took a moment to think about this, and you can probably make something very similar to the first idea by just maybe shifting the alphabet around based on the previous line and played with the identifiers in the same way... why am I considering this lol. @CodeLongAndPros

DynamicSquid (2665)

Oh! I thought of another equally silly one! Make a language called "le twatter". For example:

tweet "Hello World!\n"
receive tweet "What is your name? "

post Animal:
  public comment legs
  public comment colour
  
  story(_legs, _colour):
    legs = _legs
    colour = _colour

  reply DisplayInfo:
    tweet "This animal has " + legs + " legs"

account.end
firefish (308)

@DynamicSquid

foreach usr in all-users
    account.ban(usr)
firefish (308)

@DynamicSquid Wish I could do that with real twitter

Jakman (377)

Dictionary oriented programming. Instead of using classes and objects, use an abstract dictionary as a struct. Then you can add functions to the dictionary to make the structs into classes. (Not sure if this has been made.)

ChristoferK (9)

@Jakman Like this? So far, Mac developers are really loving it.

Jakman (377)

@ChristoferK Thank you so much for informing me about this. I was not aware of this style of programming.

mwilki7 (1012)

a language made up of emojis

SixBeeps (2537)

@mwilki7 In a similar, yet different vein there's also Emoticon, which Repl.it supports apparently.

Zekka (40)

All updates to all variables (called "accounts") follow rules of double entry accounting -- each account is managed by an agent who is directed to bring the balance of each of a list of other accounts to zero by making transfers to or from them!

Those accounts follow an order of priority -- each account's balance has a positive and negative limit, meaning that not all agents' goals can be satisfied every iteration.

(I implemented a system with these rules a while ago for an unreleased virtual pet game! Later I got to show my system off to some friends at Google, but they didn't hire me over it.

If the perks aren't obvious to you, try implementing them. Also consider obvious changes to this design -- giving each agent a transfer limit, or giving agents more complicated patterns of behavior. You can still get some interesting behavior out of this design by keeping agents' decisions simple, mind.)

Barry123 (36)

Harry Potter would be nice:
Lumos
Aparecium “Hello World”
name=Veritaserum.reveal(“What is your name”)
Aparecium “Hello”+name
Avada_Kedavra

YuAndy (14)

You could build one based on Python and simplify everything: <“Hello world”; a>“What’s your name?’; <“Hi, “+a+”!”; This code will ask for your name and then say hi to you.

maxyang (32)

I present to you: Repl.It language

array = repl
vector = multiplayer repl
print = post on feed
variable = repl file
input = new repl

A very wholesome language.

nk1rwc (85)

TortureLang: more annoying than brainf***


basics

  • File extension: .tl.
  • must have as many semicolons as there are other characters on line
  • you cannot have whitespace before actual code.
  • no way to comment
  • just says boo, you suck! when there's an error
    worse:
  • processes 4 lines in one second.
  • can only process 32 lines of code.
    worst:
  • you have to wait an hour before output

syntax

Print syntax:

you must write the string on as many new lines as there are characters in string to print each character

1   Writethislineinconsole "Hello world!";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2   Hello world!;;;;;;;;;;;;
3   Hello world!;;;;;;;;;;;;
4   Hello world!;;;;;;;;;;;;
5   Hello world!;;;;;;;;;;;;
6   Hello world!;;;;;;;;;;;;
7   Hello world!;;;;;;;;;;;;
8   Hello world!;;;;;;;;;;;;
9   Hello world!;;;;;;;;;;;;
10  Hello world!;;;;;;;;;;;;
11  Hello world!;;;;;;;;;;;;
12  Hello world!;;;;;;;;;;;;
13  Hello world!;;;;;;;;;;;;

Will Supposed to output:

Hello world!

Capture input, variable, and if statement syntax:

there are only three available variable names and here they are:

  • VaRiAbLe01
  • MYSecoNdvarIABle
  • ThIsistHEthiRdaNDlaSTVariabLe
    Also, this is the variable assigning sequence, =-_-__=_=
    For if statements, the entire output is in braces ({}) and you can only have one in the entire program
    Example:
1   variable VaRiAbLe01 =-_-__=_= captureuserinput ">> ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2   if VaRiAbLe01 = "Joemama" {;;;;;;;;;;;;;;;;;;;;;;;;;
3   Writethislineinconsole "is fat"{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4   is fat;;;;;;
5   is fat;;;;;;
6   is fat;;;;;;
7   is fat;;;;;;
8   is fat;;;;;;
9   is fat};;;;;;;
10  };

Else syntax:

Elses work the same way ifs do
Same example with else statement:

1   variable VaRiAbLe01 =-_-__=_= captureuserinput ">> ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2   if VaRiAbLe01 = "Joemama" {;;;;;;;;;;;;;;;;;;;;;;;;;
3   Writethislineinconsole "is fat";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4   is fat;;;;;;
5   is fat;;;;;;
6   is fat;;;;;;
7   is fat;;;;;;
8   is fat;;;;;;
9   is fat;;;;;;
10  };
11  else{;;;;;
12  Writethislineinconsole "shut up";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
13  shut up;;;;;;;
16  shut up;;;;;;;
17  shut up;;;;;;;
18  shut up;;;;;;;
19  shut up;;;;;;;
20  shut up;;;;;;;
21  shut up;;;;;;;
22  };

That's about it Here's a sample program:

1   variable VaRiBbLe01 =-_-__=_= 10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2   variable MYSecoNdvarIABle =-_-__=_= captureuserinput "like it? >> ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3   if MYSecoNdvarIABle =-_-__=_= "yes" {;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4   Writethislineinconsole "u are evil";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5   u are evil;;;;;;;;;;
6   u are evil;;;;;;;;;;
7   u are evil;;;;;;;;;;
8   u are evil;;;;;;;;;;
9   u are evil;;;;;;;;;;
10  u are evil;;;;;;;;;;
11  u are evil;;;;;;;;;;
12  u are evil;;;;;;;;;;
13  u are evil;;;;;;;;;;
14  u are evil;;;;;;;;;;
15  };
16  else{;;;;;
17  Writethislineinconsole "you are so right";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
18  you are so right;;;;;;;;;;;;;;;;
19  you are so right;;;;;;;;;;;;;;;;
20  you are so right;;;;;;;;;;;;;;;;
21  you are so right;;;;;;;;;;;;;;;;
22  you are so right;;;;;;;;;;;;;;;;
23  you are so right;;;;;;;;;;;;;;;;
24  you are so right;;;;;;;;;;;;;;;;
25  you are so right;;;;;;;;;;;;;;;;
26  you are so right;;;;;;;;;;;;;;;;
27  you are so right;;;;;;;;;;;;;;;;
28  you are so right;;;;;;;;;;;;;;;;
29  you are so right;;;;;;;;;;;;;;;;
30  you are so right;;;;;;;;;;;;;;;;
31  you are so right;;;;;;;;;;;;;;;;
32  you are so right;;;;;;;;;;;;;;;;
33  you are so right;;;;;;;;;;;;;;;;
34  }

Supposed to output this thing:
like it? >> {enter your choice here}
If you choose yes, it will output the following:
u are evil
If you type anything else, it will output:
you are so righ
The last character was not printed since the computer will ignore anything beyond the 32-line limit.
This is why TortureLang sucks!

Highwayman (1364)

@nk1rwc I like the semicolon idea that would truly be annoying lol

nk1rwc (85)

@Highwayman yeah i bet there's an error in the examples i posted lol

darkmagic1 (1)

@nk1rwc the semicolon idea would finally teach programmers to write shorter lines of code lol

Viper2211 (58)

I think a programming language that could be written in any spoken language would be cool! Here's a bit of the idea

write to "Hello world" to the console

напишите "Hello world" на конзолу

scríobh chuig "Hello world" chuig an consól

The languages above are English, Serbian and Irish.

ChristoferK (9)

@Viper2211 Surely better to be able to be written in any written language. Otherwise, you'd end up with lots of unhappy users shouting their foreign language at the screen, and at you you down the phone, asking why it's won't do what they say.

But there are programming languages that have provisions made to be written in many different non-English languages.

eekboi (266)

Alright, so imagine a lang that is a mix from the syntax of COBOL, python, and HTML. I imagine it would look like

have Counting(num)

<wall equals"(num(counter))"><wall>
<beer equals"value(num(count(100))">on the wall<beer>

if "beer (on the wall)" != 0;
    return(line(6)) /loop\ /these are comments btw\
if not;/these are basically just if-elses\
    return(line(9));

<stop value"all">

What I did was take the easy "talkative" almost way of COBOL to make this sound like a person talking (almost), the easy function identifying of HTML, and the clean formatting of Python to make this abomination. (I used python highlighting for whatever reason)
(also i think "le twatter" is kinda funny. yes i had to put this here)

theangryepicbanana (1635)

A language where absolutely nothing is immutable

mwilki7 (1012)

not even the L values

Jakman (377)

@theangryepicbanana managing memory safety would be a stroke.

StudentFires (340)

@theangryepicbanana Perfect opposite of the perfect language.

Jakman (377)

@theangryepicbanana also how would you create data types? They are set in bounds. There are some numbers to big to use. How will you work then?

theangryepicbanana (1635)

@Jakman Data types aren't that big of an issue here. The main idea is just that nothing is read-only or immutable

Jakman (377)

@theangryepicbanana I forgot abt the functional programming style.

CodingCactus (2822)

language using only ψ dunno how it would work

sugarfi (488)

@CodingCactus it could be like https://esolangs.org/wiki/Chicken
in fact, i might prototype that right now...

DynamicSquid (2665)

@CodingCactus

ψψψψψ
ψψ  ψψψ
ψ    ψ
ψψψψψψ ψψψ
ψψ
ψψψψ
ψψ
    ψψψψ
ψψψ
ChristoferK (9)

@CodingCactus That's basically what computers are. Except where they might use a 1 (not an actual digit "1", but some representation of an on state), you're signifying that with psi. So that's kind of been around since before computers.

pythoder (183)

OHHH! you should do a mix of evry language here on repl! # A header

code here

#code here

a mix of code syntaxes that make a game or whatever..

Gameknight2169 (2)

Me and a friend had an idea for a guessing game, but the randint answer would change every 3 seconds. This idea failed, but I did make it so that it would change every time you got it wrong.

johnnyfrancis (2)

Make a language that you just have to enter regular english words and make it do the thing in code!

ImmaEatYouMan (13)

Croissant - Made from C that is more advanced than Lua but a little bit dumber than C. This would be very useful for people wanting to get into coding so they can easily and almost seamlessly move into C then C# and C++ which is very commonly used in the industry

Leroy01010 (64)

all languAGES IN THE WORLD

nk1rwc (85)

SplatLang - A Splatoon themed programming language

sorry for terrible joke that could have come from sans himself

Basics:

  • file extension: .splat
  • as much esolang as useful
  • splatoon themed syntax (you could have guessed)
  • safe like C#
  • a few good data types
  • a built in help method
  • and more!

Woomy - Print method

The method for printing something to the console is woomy(). This is a sample of using woomy():

Input:

woomy("Hello, Inkopolis!")
// this is a single line comment comment
/^ this is a squid comment.
goes over multiple lines.
named that because the ^s look kinda like squids.
will end with:
^/

Output:

Hello, Inkopolis!

Veemo - Builtin slowprint method.

veemo() will print something to the console, but wait in between each character printed.

A value for how much time to wait is measured in milliseconds

Input:

veemo("Hello, octo valley!", 60)

Output (with 0.06 seconds in between characters:

Hello, octo valley!

Getting input

The method for input is playAnotherBattle() with the prompt inside the ()s. If you put in nothing, then the prompt will automatically be >>.

Input:

playAnotherBattle("Will you rescue the Great Zapfish?\n>> ")

Output:

Will you rescue the Great Zapfish?
>> (halts until enter key is pressed)

Data Types

SplatLang supports nine data types, most of which are pretty much the same as some Java data types.
Integral:

  • byte - A 1 byte integral value
  • short - A 2-byte integral value
  • int - A 4-byte integral value
  • long - An 8-byte integral value
    Float-point:
  • float - A 4-byte float-point value
  • double - An 8-byte float-point value
    Characters:
  • char - A single ASCII/Unicode character surrounded by two 's
  • string - A sequence of ASCII/Unicode characters surrounded by two "s
    Other:
  • bool A boolean value. SplatLang boolean values are:
    • fresh - equivalent to true in other languages
    • unfresh - equivalent to false in other languages
  • void - No specific type, can be any other type

Variables, Constants, and Lists

Look at the code below (java syntax highlighting (not java code) ):

// integral (variable)
byte thisIsSoShort = 100
short aLittleLonger = 10000
int medium = 1000000000 
long lengthy = 1000000000000000
// float point (list)
float shortFloat[] = {1.11111111, 300.12345, 0.0123}
double longFloat[] = {1.11111111111111, 56633.22134552444}
// characters (constant)
con char delta = 'Δ'
con string message = "SPLATLANG IS AWESOME!!!!"
// other
con bool djOctavo = unfresh
void thingsThatAreCool[] = {120, 10010, 2000000001, 14367424553, 6.54321, 3.13432444246543, 'Ω', "YEET!", fresh} 

That shows variables, lists, and constants in one program.


Operators

Here are the operators:

// basic math
+ // addition
- // subtraction
* // multiplication
/ // division
% // return remainder
// quick basic operations
+= // increase by certain amount
-= // decrease by certain amount
*= // multiply by certain amount
/= // divide by certain amount
%= // divide by certain amount but return remainder
++ // increment by 1
-- // decrement by 1
//comparing
== // equal to
!= // not equal to
< // less than
<= // less than or equal to
> // greater than
>= // greater than or equal to
// boolean logic
&& // and
|| // or
! // not

Conditionals

The conditionals are if, also, and othersUnfresh.

int nklings = 1000
int octolings = 750

if ^inklings == 1001^/^ unfresh ^/ {
    woomy("1001 inkings in inkopolis\n")
}
also ^inklings == 1000 && octolings == 1000^/^ unfresh ^/ {
    woomy("Inkling and octoling numbers equal, they are" + inklings + "\n")
}
othersUnfresh/^ this will run since the others are unfresh ^/ {
    woomy("Unknown.\n")

Loops

And finally, there are loops. There are while, for, and forAllSquids.

// example 1:
while ^fresh^ {
    // infinite loop
    woomy("Booyah!");
}
// example 2:
bool isItFresh = fresh

while ^isItFresh == fresh^ {
    woomy("I WILL ALWAYS BE FRESH!!!")
}
// example 3:
for ^i = 0; i < 6; i++^ {
    woomy(i)
}
// example 4:
aRandomList = {"oof", "yeet", "kobe}"
forAllSquids ^string item in aRandomList^ {
    woomy(item)
}

THAT"S IT!!!


bye remind me of typos and stuff

andliu766 (21)

like this:

ask "What is your name? "
say Hello to the person.

chriswillson (0)

I want a modern language that reads even more like regular English than Python without the punctuation that we've become accustomed to in programming languages. It should write like pseudocode.

maxyang (32)

Lol, got a hilarious idea. BattlLang

torch = print
swordpoint = input
ammo = variable
arsenal = loop

A brilliant example:

ammo thing = swordpoint()
ammo i = 0
arsenal i < 1000:
torch(swordpoint*i)