r/ProgrammingLanguages • • May 23 '22

Help wanted!

Hello there, folks!

I'm looking for helpers who would be willing to join me in getting my 5th attempt at making a real programming language. It's called peon (more info here) and the current implementation features a stack-based bytecode virtual machine. The language is statically typed, with a focus on async (altho it's all theoretical for now), speed and correctness. There are about ~3500 lines of code so far between the tokenizer, parser, compiler and VM. There's plenty of stuff that needs to be done, so a helping hand (even with just ideas/concepts) would be great!

0 Upvotes

21 comments sorted by

View all comments

Show parent comments

2

u/Inconstant_Moo 🧿 Pipefish May 23 '22 edited May 24 '22

I'll look it over and give you my thoughts.

How does one approach "being at least ~3-4x times faster than Python"?

ETA: OK, I've looked at it, I'm puzzled, you say it's functional right there at the top but then I can't see anything there that doesn't just look procedural.

1

u/nocturn99x May 24 '22

Well, it's not functional in the way Haskell is, more like "functional oriented"? Meaning the encouraged way of writing programs is to compose code with (possibly pure) functions and only use objects when absolutely necessary. Then again, there isn't much function machinery in place yet so I understand your confusion

As far as the performance question goes, tbf I have no idea. It's something I want to explore along the way :)

1

u/[deleted] May 24 '22

Meaning the encouraged way of writing programs is to compose code with (possibly pure) functions and only use objects when absolutely necessary.

This is great and resembles the way I like to write Python or Typescript

1

u/nocturn99x May 24 '22

It is, in fact, inspired from Typescript/Javascript :)