News for hackers. Stuff that matters.
Re:None Programming Language by an_ko on Sunday July 19, 2015 @12:22PM (#9911659)
So it's basically an S-expression-syntax wrapper around Terra? So cool.

I really wish more languages picked up S-expressions, because they're easy to machine-generate. I can't count the number of times I've been annoyed at my otherwise favourite languages for not being able to do that.

Re:None Programming Language by sitkack on Sunday July 19, 2015 @12:35PM (#9911708)
I like how in NoneLang the file is no longer a unit of abstraction. In that test example, the entire contents of the file is wrapped in an s-expression. This most likely means that entire programs and libraries can be concatenated and still remain valid.

I absolutely love this mixture of a Lisp hosted on Terra so it can take advantage of the optional static typing.

If someone wanted to do something similar for Python they could use Hy and MyPy (would need LLVM backend).

Re:None Programming Language by sklogic on Sunday July 19, 2015 @06:54PM (#9913177)
> I really wish more languages picked up S-expressions, because they're easy to machine-generate.

There is an easy way to generate pretty much any AST using quasiquotations. S-expressions are nice, but certainly not mandatory for a full metaprogramming.

Re:None Programming Language by paniq303 on Monday July 20, 2015 @01:27AM (#9914146)
do you have more information on that?
Re:None Programming Language by sklogic on Monday July 20, 2015 @04:36AM (#9914688)
Take a look at some of the languages with quasiquotation-based metaprogramming: Template Haskell, Converge, Nemerle.

I did quite a bit of exploration in this area too, here is one of the examples: https://github.com/combinatorylogic/clike

Re:None Programming Language by lambda_ronin on Tuesday July 21, 2015 @04:58PM (#9925752)
Excuse me, I want to discuss something with you. Please, write on my email [email protected]
Re:None Programming Language by tomp on Sunday July 19, 2015 @06:20PM (#9913055)
> I really wish more languages picked up S-expressions, because they're easy to machine-generate.

This could easily be solved using a well-defined AST and a simple s-expression based AST printer/parser. That not many languages do that (one notable exception is Julia) is a shame!

Re:None Programming Language by an_ko on Sunday July 19, 2015 @07:30PM (#9913276)
If the language has a large enough community, someone's bound to come up with an AST format and parser/generator themselves.

JavaScript has https://github.com/estree/estree for example. I've written a (very experimental) S-expression syntax for JavaScript around it here https://github.com/anko/eslisp