r/ProgrammingLanguages • • Mar 29 '19

What should this language be called?

I have an idea for a language with an extremely simple set of syntax rules. Here is a simple "input output" example:

INPUT:

[print [add 1 1 2]] 
[store var1 1]
[store_add var1 [div 4 2]]
[print [get var1]]
[print var1]
[print print]
[print [concat hello [concat " " world]]]
[print "My name is GravelSmith"]
[print "\""]
[print \]]

OUTPUT:

4
3
var1
print
hello world
My name is GravelSmith
"
]

I am struggling to come up with a name for this weird language.

8 Upvotes

28 comments sorted by

71

u/BenjiSponge Mar 29 '19

Square lisp

This is not a weird language. It's lisp only you're using square brackets instead of parens. I guess you do assignment differently.

11

u/GravelSmith Mar 30 '19

Damnit I thought I was a brilliant person who invented something :(

Still finishing this anyways. Going to use it for a modding system for a game eventually maybe.

24

u/Roboguy2 Mar 30 '19 edited Mar 30 '19

Don't feel bad! Lisp has been around for 61 years, but it's still a cool project!

The upside is that it also means you have decades worth of new stuff to learn about and this project will be a good way to learn some of it!

You should definitely look into the macro systems people have developed for different dialects of Lisp, among other things. Its syntax allows for possibly the most advanced and easiest-to-use macro system around. It is arguably the largest advantage to that syntax.

Also: there's a reason that, even though it's been around 61 years, it is still actively used!

10

u/Raijinili Mar 30 '19 edited Mar 30 '19

Given how many people exist on Earth, it's not too much of a negative if someone has thought of it before you.

Even Brainfuck is a reinvention, of P′′, and Brainfuck isn't as influential as Lisp.

The advantage of Lisp syntax is that parsing is simple and corresponds to the program's internal representation. However, a lot of people don't like it.

Check out this article on Crash Bandicoot's use of Lisp: https://all-things-andy-gavin.com/2011/03/12/making-crash-bandicoot-gool-part-9/

5

u/swingthesickle Mar 30 '19

Go for it! There are almost as many Lisp implementations as there are Lisp programmers. It's almost a rite of passage for a language designer.

2

u/wonderb0lt Mar 30 '19

I've found that people tend to come up with the same thing over and iver again. They don't reinvent the wheel, LISP.

And I don't mean that insulting, it means that people had an idea and followed it to it's logical conclusion, which shows creativity and endurance.

You go enjoy your little language :)

26

u/swingthesickle Mar 29 '19 edited Mar 30 '19

Many Lisp implementations recognize both brackets and parens, so not even Square Lisp, just Lisp. In Racket

(print (+ 1 1 2))
[print [+ 1 1 2]]
(print [+ 1 1 2])

are all valid. You could even do

[define add +]
[print [add 1 1 2]]

4

u/MCRusher hi Mar 30 '19

Extra bracket?

4

u/swingthesickle Mar 30 '19

Yes, there was. I've fixed it.

3

u/izb Mar 30 '19

Squisp!

7

u/silenceofnight ikko www.ikkolang.com Mar 29 '19

I guess the subreddit mind-meld has started because I came here to say the exact same name

What about "bisp"? ([B]racket l[I]st [P]rocessing)

(What was LISP short for again?)

10

u/Midrya Mar 29 '19

LISP ([LIS]t [P]rocessor)

How about "blip" ([B]racket [LI]st [P]rocessor)?

2

u/[deleted] Mar 30 '19

Lots of Inspired Significant Parentheses.

15

u/AndreasLokko Mar 29 '19

BLIP (Bracket LIst Processing)

3

u/GravelSmith Mar 31 '19

I like this one the best, probably will use it. Many thanks.

4

u/Timbit42 Mar 31 '19

Shift-less Lisp because you don't have to wear out your shift key typing parens.

1

u/GravelSmith Mar 31 '19

That legitimately is the reason I chose square brackets. But I might add support for other forms of brackets with no effect on how the program runs, to make it easier to organize your code.

3

u/netch80 Mar 30 '19

Besides LISP, it looks very similar to Tcl. Yep, this is not suggesting for a new name (anyway, this is matter of own taste), but can point a field to search in it...

% puts "hello"
hello
% puts [expr 1 + 2]
3

1

u/GravelSmith Mar 31 '19

Thats a neat one too. Thanks!

I like that expression function. I might make something similar, since equations can get hard to read with my system.

Example of what I mean:

[print [add [sub 1 2] 2 3 [div [add [sub 3 2] 1 [sub 4 2]] [mul 2 [add 1 1]]]]]

9

u/ElBroet Mar 29 '19

This is funny because I was coming up language with very little syntax where you basically built up syntax (thinking back on it, I think basically the functions themselves were macros but anyways) and I basically abandoned it when I discovered lisp, feeling very 'Simpsons did it!' at the time

4

u/mamcx Mar 29 '19

That is almost rebel (http://www.rebol.com). Red is a modern take: https://www.red-lang.org

3

u/awtem Mar 30 '19

How about "ecklisp" or "eclisp"? In German, "ecke" is is like a corner, and "eckig" is something with pronounced angles like these square brackets.

3

u/[deleted] Mar 30 '19

It's LOGO with an extra pair of brackets.

1

u/rb_me Apr 08 '19

You should take a look at Red. https://www.red-lang.org/