Better HN
topnewbestaskshowjobs
Log inSign up

scross

4 karma · joined Feb 20, 2015 (11y ago) · 6 submissions

My name is Stephen Cross and I'm the developer of the Loci Programming Language; read more about this here: http://loci-lang.org
Submissions

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

The intention is to avoid any kind of name clashes; I don't think this really inhibits readability.

comment 11y ago · link · parent

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).

comment 11y ago · link · parent

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.