XL: An Extensible Programming Language
xlr.sourceforge.io
XL: An Extensible Programming Language
1–10 of 87 posts
Re: XL: An Extensible Programming Language
#2Re: XL: An Extensible Programming Language
#3This seems to be Prolog with a large dose of syntactic sugar.
Re: XL: An Extensible Programming Language
#4Really, all use cases. I'm actually a fan of the parenthesis. Lisp feels like aesthetic perfection to me. Languages like Haskell and XL here just look like line noise to my brain.
Re: XL: An Extensible Programming Language
#5Anyone with recommendations for reading would be welcome to dump those here.
Re: XL: An Extensible Programming Language
#6Re: XL: An Extensible Programming Language
#7Re: XL: An Extensible Programming Language
#8 typedef _Load("libvector.so")(int) vector_int;
to add arbitrary "builtin" types to the language. The idea being that "libvector.so" would use some spec-defined API to extend the core C language with the new features. This would replace a slew of features in the core C++ language (templates, classes, any sort of reflection, etc.), with some sort of 3rd party dylib you load. The idea is to keep the core language simple in the sense that it doesn't contain its own extension mechanism as syntax.I think my only worries would be how to handle life-time analysis, i.e., the moral equivalent of destructors, copy constructors, move-semantics, etc; maybe the dylib ('libvector.so', in this case) has to register stack-clean-up, copying, and move-semantics code-generation for the compiler?
Re: XL: An Extensible Programming Language
#9This seems to be Prolog with a large dose of syntactic sugar.
More Lisp than Prolog… I don’t see any constraint-solving here, just macros.
And it's not compile-time only, I'm pretty sure you can't do this as a macro:
>loop Body is { Body; loop Body }
Re: XL: An Extensible Programming Language
#10Seems cool. But I'm not convinced extensible languages benefit from adding a variety of syntactic forms. As your ability to extend the feature-set increases, the need for a single regular syntactic form increases. Lisp may not be appealing to beginners because of its parenthesis, but they absolutely are what makes it work so well for its intended use cases. Really, all use cases. I'm actually a fan of the parenthesis…