News for hackers. Stuff that matters.
Re:LambdaLite: A functional, relational Lisp database in 250... by ajuc on Thursday December 04, 2014 @10:30AM (#8699673)
I would still prefer

    (select :/name, :/salary from :employees where :/division = division)

I don't think these additional parentheneses add enough value to justify people learning another reinvention of sql.

It should be possible to make it accept regular sql syntax, just with added /column for table columns and referencing variables from inside.

Anyway, nice work.

Re:LambdaLite: A functional, relational Lisp database in 250... by wukix on Thursday December 04, 2014 @11:20AM (#8699982)
LambdaLite creator here. I just wanted to point out, in case it is not clear, that LambdaLite doesn't really introduce a new query language per se. The syntax is just "write any Lisp code you want" because actual Lisp closures are used where expressiveness is needed. Hopefully, this means the learning overhead is actually less: instead of needing to know both Lisp and SQL, you only need to know Lisp. (Disclaimer: obviously there is still an API to learn, but that would be the case with any SQL client library too.)
Re:LambdaLite: A functional, relational Lisp database in 250... by pareidolia on Thursday December 04, 2014 @11:09AM (#8699919)
Because the tree structure of the parenthesized expression matches the structure of the query, manipulation of this tree using editor support such as Paredit is useful.
Re:LambdaLite: A functional, relational Lisp database in 250... by wukix on Thursday December 04, 2014 @11:30AM (#8700033)
Non-lispers don't always realize that more parens can actually be a feature :)
Re:LambdaLite: A functional, relational Lisp database in 250... by debacle on Thursday December 04, 2014 @11:43AM (#8700112)
Lispers don't always realize that too many parens/brackets is a code smell in almost any other language. It makes people unnecessarily wary of (stuff (like 'this)).
Re:LambdaLite: A functional, relational Lisp database in 250... by nickik on Thursday December 04, 2014 @12:38PM (#8700441)
Its().just().the().same().for().us().lispers().abstractFactoryFactory()
Re:LambdaLite: A functional, relational Lisp database in 250... by ajuc on Friday December 05, 2014 @08:47AM (#8704432)
And I wouldn't want to write sql like that ;)
Re:LambdaLite: A functional, relational Lisp database in 250... by pekk on Thursday December 04, 2014 @01:29PM (#8700798)
Why not both?
Re:LambdaLite: A functional, relational Lisp database in 250... by sitkack on Friday December 05, 2014 @02:49PM (#8706473)
Quasiquote is going into Java 9.
Re:LambdaLite: A functional, relational Lisp database in 250... by collyw on Friday December 05, 2014 @09:19AM (#8704561)
I dunno. If I have a "complex" condition with more than two parts to it, I prefer to be liberal with parenthesis, rather than expect any future maintainer to remember all the operator precedence rules.