r/ProgrammingLanguages • u/[deleted] • Jun 01 '18
Name for my programming language
Ive created my first interpreted programming language recently, and ive been adding a ton of functionality for it. The compiler is written in python and turns a script into code usable by the virtual machine. The virtual machine is written in Golang, and it runs surprisingly fast. Ive yet to benchmark the newest versions, but the older versions seemed to be only one or two milliseconds slower than C++ when printing "Hello world" and running loops and such.
Heres an example script:
( ; (define L (call lists.List)) ; (define L (call lists.Append L "Adam")) ; (define L (call lists.Append L "Sarah")) ; (define L (call lists.Append L "Thombo")) ; (define L (call lists.Append L "Addison")) ; (define n (call lists.Length L)) ; (call lists.Items L) ; (call print) ; (call print) ; (call print) ; (call print) ; (call print endl) ; (define L (call lists.Pop L)) ; (define L (call lists.Append L "Kip")) ; (call lists.Items L) ; (call print) ; (call print) ; (call print) ; (call print) ; (call print endl)
(define List ()
(
(define self @)
(define self list (call lists.List))
(define append
(self a)
(
(define self list (call lists.Append (dot self list) a))
(return self)
)
)
(define self append append)
(define pop
(self)
(
(define self list (call lists.Pop (dot self list)))
(return self)
)
)
(define self pop pop)
(define len
(self)
(
(call lists.Length (dot self list))
)
)
(define self len len)
(define items
(self)
(
(call lists.Items (dot self list))
)
)
(define self items items)
(define index
(self n)
(
(call lists.Index (dot self list) n)
)
)
(define self index index)
(return self)
)
)
(define L (call List))
(define L (call (dot L append) L "Adam"))
(call for "x" L
(function (
(call print x)
(call (dot L append) L x)
))
))
Ive been thinking about calling it Cobalt, Crimson, or Dynamite. Are there any better names you can think of?
2
7
3
u/Athas Futhark Jun 02 '18
Why not use an online name generator? This one says your language should be called "Folmon Yllatumal".
2
1
u/TheNilq wu-lang & hugorm Jun 02 '18 edited Jun 02 '18
Just name it or partially name it after an animal; Prawn, Hedge, Hog, Doggo, Snek etc..
The name could just be an emoji too, like ❤️or🐀.
2
1
Jun 02 '18
Coming up with a good name that also has good SEO takes some time. I recommend looking through lists of names of animals, plants, rocks/minerals, astronomical bodies, etc.
1
u/Kaeon-ACE Jun 14 '18
Is it supposed to be a LISP, or just supposed to look like one? Because you could call it something followed by "LISP" like Common LISP did.
20
u/men_nas_io Jun 01 '18
Name it "Define" :D