Live data from Hacker News

SpahQL - A query language for Javascript objects

angryamoeba.co.uk

31–37 of 37 posts

Re: SpahQL - A query language for Javascript objects

#32

So, what does performance look like for complex data sets? Any benchmarks?

None whatsoever apart from to say that it's acceptably fast for whatever data set I happen to throw at it. Another poster here mentioned in an email that he'd tried it against arrays of ~50000 object structures and it was fine.

Re: SpahQL - A query language for Javascript objects

#34
post #16

Earlier quoted context omitted.

Please provide some substance to your post. What other options exist? What are some references you've used to work with those options?

Well back when SQL was first created, there was a superior alternative named QUEL. Fast forward to today, and with the proliferation of programming languages that easily support high level concepts, it doesn't take that much imagination to think of better ways of dealing with large relation-values. linq for example. Going along a different direction, the language Prolog, and its much improved derivative Mercury take…

The main advantage of SQL(ike) is that it is familiar, and allows a lot of people to be productive quickly.

It's a shame that QUEL lost to SQL. Betamax vs. VHS, all over again.

Re: SpahQL - A query language for Javascript objects

#35
post #34

Earlier quoted context omitted.

Well back when SQL was first created, there was a superior alternative named QUEL. Fast forward to today, and with the proliferation of programming languages that easily support high level concepts, it doesn't take that much imagination to think of better ways of dealing with large relation-values. linq for example. Going along a different direction, the language Prolog, and its much improved derivative Mercury take…

The main advantage of SQL(ike) is that it is familiar, and allows a lot of people to be productive quickly. It's a shame that QUEL lost to SQL. Betamax vs. VHS, all over again.

I'm all for empowering people to do useful work, but when you're empowering them to do stupid things that will have to be rewritten later, it's less good.

Re: SpahQL - A query language for Javascript objects

#36
Nice.

Along these lines, by the way, is my Javascript port of Apple's "key-value coding":

http://quile.github.com/keyvaluecoding-js

which allows you to traverse object graphs without all the null-check nonsense. Admittedly the purpose is slightly different, but they seem related.

Post reply on HN