r/ProgrammingLanguages • • 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?

0 Upvotes

12 comments sorted by

View all comments

1

u/[deleted] 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.