-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] veery
lang transpiler to wren
lang
#1159
Comments
Although I know that you have strong views and many ideas on how you'd like to see Wren develop, I didn't know that you had plans for an entirely new language. I couldn't find a repo for it on Github though I imagine you'll be creating one in due course so people can play around with it. Anyway, I gather that Veery's parser is creating AST structures rather than emitting code directly as Wren's VM does at present. With the help of bits from the If there were a transpiler to C or C++ (say), then that would be an exciting development as we'd then only be a step away from having an AOT native code compiler for Veeery/Wren! Of the three features you mention, I can't say I'm bothered about the first though I would welcome character literals being added to Wren itself - either as a new primitive type or just as an alias for the corresponding codepoint. The third is probably too difficult and not worth the effort. Incidentally, I see that you're maintaining the ornithological connection as Veery is a type of thrush :) |
For now, I'm looking to see how much traction the idea can have. For me,
This is one of the future goals, but I think the code must be consolidated a lot first. It can also be used as a tool to automagically produce the module boiler plate in a standardized way.
Right now,
Don't tell anyone it is a secret ;) In addition, I found it short and funny because it also read as |
Sorry if I've already let the cat out of the bag ;) It is a good name and one that doesn't appear to have been used before for a programming language. |
Hi,
I would like to talk about a new language
veery
that I've been thinking/working on for a while, and that started to be functional recently (but still need a lot of love).Merging pieces from wren repl with
wrenanalyzer
(with some small fixes to both), I achieved to make a self hosted transpiler. While supporting theveery
language is the main goal, the idea is to make a full featured compiler infrastructure (maintaining the transpilation, repl and ideally generating some executable files of some form). That way both language can benefit from that compilation infrastructure. I think that later I will support more languages but it is a low priority for now.As of today,
veery
lang is a small deviation of wren:===
and!==
(short hand forObject.same(_,_)
)'a'
.if (false) {} else {}
to prove that AST transformation work).But I plan to add more changes so it does feel better to my taste.
The idea would be to have a unique tool like:
Currently I have early stages
veery-c
(compiler) andveery
(straight wren-repl) to prove everything work, until I try to merge both.I'm currently thinking about how to distribute it. Currently the "bootstrap" compiler is in the same git tree as the rest of the libraries and utilities, and I am debating of splitting it...
I think it could be an interesting experiment, so users can more easily toy with the compiler/transpiler to implement their own syntax sugar changes, features and tools. (Thought it requires a little bit of effort in case of error since source line numbering are not preserved).
Comments ? Ideas ?
The text was updated successfully, but these errors were encountered: