Scopes – Retargetable programming language and infrastructure
bitbucket.org
bitbucket.org
Also, I wish more languages had homepages like the Go one[0]. It takes a lot of reading to get to the point where you can see some non-trivial code[1], which is frustrating.
[0]: https://golang.org
[1]: https://scopes.readthedocs.io/en/latest/tutorial.html#a-mild...
That being said, this looks like a really interesting and promising language. If the borrow-checker is unobtrusive and doesn't require ridiculous boilerplate, then you can count me in! Good work!
I couldn't find anything more about "view propagation" either but I strongly suspect it's no more powerful. Probably less and/or buggier at this point, given its relative maturity.
struct A<'a, 'b>(&'a u8, &'b u8);
and
struct B<'a>(&'a u8, &'a u8);
without lifetime annotations?
These kinds of introductions always read like "we're going to combine these and these and these awesome features from all your favorite languages" and well, what's not to like? Wouldn't everyone want this? So I can't help but wonder: why didn't anyone previously succeed at creating such a language? What are you going to do differently?
There are a LOT of decisions that go into design and implementation of programming languages. Due to combinatorial explosion, vast majority of combination was never tried. This is still true even after you group "similar" combinations. But usual standard of similarity used by many people is "How is Rust different from Go?", which is too laughable to answer. To me, Scopes seems different enough that the author should not feel any need to answer questions like yours.
So, they need to get a combination of features to whatever is the minimum of usability the target audience expects. I also push for it to integrate well with legacy libraries with no overhead. Scope author is doing that for C libraries. As a side effect, it's a big boost on productivity since people can always lean on whatever libraries are already there.
https://blog.racket-lang.org/2019/01/racket-on-chez-status.h...
Since you're a Chez fan, I'll also throw in its historical overview in case you missed it. That they had Scheme on 8-bitters really tripped me out. Talented team.
Introducing a language should now include "What are the cool new things in this language?" The short list where this shines, e.g., "Go - compiles really fast and no classes". "Rust - deep safety and a novel macro system". "Python - Batteries included and easy to write."
A language also needs to include some design philosophies. Sometimes its simple: "DRY"; sometimes its the tradeoffs ordered in Zen of Python. You need to say something.
So, what's this new language do again?
From their page:
- Aims to combine the expressivity of Scheme with the convenience of Python, Lua or Javascript and the performance of C.
- Compile-time resource management using view propagation, an annotation-free variation of borrow checking.
- Support for live code execution as well as offline compilation of object files.
- Statically typed but fully inferred type system via forward propagation. Supports closures as zero-cost abstraction.
etc.
I don't know how tough the crowd is nowadays but I was already sold when I read the 1st and 2nd items above.
On the "goals aren't results" front, the second one is also one that I'd want to see how it plays out a bit more before getting too excited; it's also possible that it may not be possible at it currently exists in the author's heads.
error: execution engine failed: The file was not recognized as a valid object file
Anybody have any idea what's up? scopes test_object.sc && clang -O3 -s -o test.exe test.o text data bss dec hex filename
172 24 44 240 f0Accessible through this page via the hamburger menu > click “Read the docs”:
> C/C++ requires programs to be built and linked before they can be executed. For this, a build system is typically employed.
> In contrast, Scopes’ primary execution mode is live, which means that the compiler remains on-line while the program is running, permitting to compile additional functions on demand, and to use other services provided by the Scopes runtime library.
> However, Scopes can also build object files compatible with GCC and Clang at runtime using compile-object, which makes it both suitable for classic offline compilation and as foundation for a build system.