News for hackers. Stuff that matters.

scross

Re:Loci: A C++-like systems programming language on Friday February 20, 2015 @06:44PM (#9083855)
I think this page answers your question: http://loci-lang.org/LanguageGoals.html

Basically I've had a lot of experience working with C++ on various projects and while I like it very much I've also observed its weaknesses (right now I'm struggling against slow build times); after a while it seemed logical to build a language that would solve a lot of these problems so that I wouldn't have to face them over and over again for each project.

Re:Loci: A C++-like systems programming language on Friday February 20, 2015 @02:56PM (#9082561)
This question was asked by someone else earlier and I answered it in full here: https://github.com/scross99/locic/issues/1

I hope this helps.

Re:Loci: A C++-like systems programming language on Friday February 20, 2015 @02:54PM (#9082550)
Well, theoretically, you have two choices:

* Use the garbage collector. * Don't use the garbage collector.

I'd expect most users to choose option (2), however the idea is to support garbage collection for those users who find it to be worthwhile.

I say this choice is theoretical because the current implementation doesn't yet have a garbage collector (this is not a high priority task); ultimately I want to provide a second implementation of std.memory that supports garbage collection and when users build their project they can choose whether they want the garbage collected implementation.

Re:Loci: A C++-like systems programming language on Friday February 20, 2015 @02:50PM (#9082528)
The intention is to avoid any kind of name clashes; I don't think this really inhibits readability.
Re:Loci: A C++-like systems programming language on Friday February 20, 2015 @02:49PM (#9082520)
Yep, it's not the most attractive parser ever. I chose to use Bison in order to save a lot of time/work and to take advantage of its GLR implementation; unfortunately its interaction with C++ isn't pleasant (due to the use of a union type for the symbol values).
Re:Loci: A C++-like systems programming language on Friday February 20, 2015 @02:45PM (#9082500)
Yes, this is true; the point was to highlight more generally the complexity of ensuring correctness when moving/copying C++ objects versus doing the same thing in Loci.