Live data from Hacker News

Show HN: Self-hosted stack-based programming language

github.com

1–10 of 24 posts

Re: Show HN: Self-hosted stack-based programming language

#4

Any chance that this is inspired by Forth?

Define "inspired". I became aware of Forth while implementing Elymas. But the decision to make it stack based was actually because I was too lazy (after some attempts) to implement a correct LALR-parser-generator.

Re: Show HN: Self-hosted stack-based programming language

#7
post #4

Any chance that this is inspired by Forth?

Define "inspired". I became aware of Forth while implementing Elymas. But the decision to make it stack based was actually because I was too lazy (after some attempts) to implement a correct LALR-parser-generator.

If you want a more conventional syntax, I'd suggest trying with a recursive-descent/precedence-climbing parser.

Re: Show HN: Self-hosted stack-based programming language

#8
I find the differing syntax between function and variable storage to be interesting. Is there any particular reason these aren't unified? Assuming anything in brackets is a first-class "function" object, something like this should be possible:

    2 /two define
    { two add } /addTwo define

Re: Show HN: Self-hosted stack-based programming language

#9
post #8

I find the differing syntax between function and variable storage to be interesting. Is there any particular reason these aren't unified? Assuming anything in brackets is a first-class "function" object, something like this should be possible: 2 /two define { two add } /addTwo define

That looks quite a bit like Postscript.

Re: Show HN: Self-hosted stack-based programming language

#10
post #6
post #5

The README claims easy Domain-specific-language creation. Here is a concrete example how code which utilizes these features looks like: https://gist.github.com/Drahflow/c463717d5c72e114ac63

For the love of brackets...

:) Why does this comment remind me of the abbreviation (I heard) of LISP, Lots of Irritating and Superfluous Parenthesis. :)
Post reply on HN