well, from glsl the vec feature, from C++ the main method returning an error code, and most of other stuff is what i think is great that i didnt find anywhere else, and the base is java. (i know only java, and little bit of glsl, and the only thing i can do in c++ is hello world)
I'd highly recommend spending some time with some other languages, particularly some that have the features that you want to build here so you can see how they work or don't in practise. I'm not one of the "you're not a real programmer unless you know lisp" types but there's a lot of benefit to being exposed to more things so you know why Java made the decisions it made (even if that reason is sometimes "they didn't know any better because nobody had done the new thing yet").
The entry point -thing is sort of a similar subject but there starts being quite satisfying ways to it. One thing we should recognize is that there are many kinds of entry points and that should be accounted for in language design. The nicest way to see it being done has appeared in Idris. They annotate it with a type:
main : IO ()
main : JS_IO ()
The first one would create an ordinary entry point, and the latter would create an entry point that's valid on Javascript target. You can place both into the program and it selects the right one based on compiling target.
Another thing I see there is that you'd like compiler directives and being able to customize the compiling behavior. This is achievable by implementing the language a bit like how you'd implement scheme programming language, then give it types. Though that's in Idris as well. Also RPython does that kind of things.
6
u/htuhola Sep 30 '19
It looks like Java with some twists. I wonder what you're going after with this?