News for hackers. Stuff that matters.
Re:Facebook open sources Haxl by AaronFriel on Tuesday June 10, 2014 @02:08PM (#7874285)
This is a fascinating project. Haxl is the brainchild of former Glasgow Haskell Compiler lead* Simon Marlow.

The tl;dr of Haxl: what if you could describe accessing a data store (a la SQL) and have the compiler and library work together to "figure out" the most efficient way to perform queries, including performing multiple queries in parallel? That's what Haxl does, it allows you to specify the "shape" of your query, the type checker verifies its correctness, and the library executes it in parallel for you, without the developer having to know about synchronizing access or anything.

Here's a link to their paper (PDF): http://www.haskell.org/wikiupload/c/cf/The_Haxl_Project_at_F...

* - I am not sure if he's still committing, or if he's only doing application development. His accomplishments in Haskell land though, are many.

Edited: I removed my comment about GitHub issues, seems it's a known problem. :)

Re:Facebook open sources Haxl by vamega on Tuesday June 10, 2014 @03:25PM (#7874750)
He also wrote a book called Parallel and Concurrent Programming in Haskell[1], which I've heard is an excellent read[2].

[1] http://chimera.labs.oreilly.com/books/1230000000929

[2] http://www.serpentine.com/blog/2014/03/18/book-review-parall...

Re:Facebook open sources Haxl by freyrs3 on Tuesday June 10, 2014 @04:26PM (#7875101)
It's a great read indeed. If anyone is interested in more concrete applications of Haskell then a read through this should be enough to convince anyone that we can do some really amazing parallel programming on top of Haskell's RTS.
Re:Facebook open sources Haxl by simonmar on Tuesday June 10, 2014 @03:03PM (#7874619)
He is still committing, but not quite so often :)
Re:Facebook open sources Haxl by Evgeny on Saturday June 14, 2014 @11:54AM (#7892996)
Is it a cultural reference? Found it in bestcomments, so looks like many people do get it, but I don't. Genuinely interested having English as a second language.
Re:Facebook open sources Haxl by efnx on Tuesday June 10, 2014 @07:50PM (#7875951)
I see what you did there, haha.
Re:Facebook open sources Haxl by thisisdave on Wednesday June 11, 2014 @10:46AM (#7878249)
I feel like I'm missing something.

I haven't used databases much, but don't most SQL implementations already "figure out" the most efficient way to perform queries? Can't most implementations already perform queries in parallel?

Re:Facebook open sources Haxl by AaronFriel on Wednesday June 11, 2014 @11:04AM (#7878344)
Yes, but this is designed for non-SQL datastores, and arbitrary application code connecting portions of "data acquisition" and "data operation". Imagine if instead of an ORM, you had a single system that weaved together your application code and the database queries, and ensured that where they could execute in parallel, they did.
Re:Facebook open sources Haxl by thisisdave on Wednesday June 11, 2014 @12:36PM (#7878906)
That makes sense. Thanks
Re:Facebook open sources Haxl by carlio on Tuesday June 10, 2014 @02:20PM (#7874370)
GitHub is currently having problems - https://twitter.com/githubstatus
Re:Facebook open sources Haxl by emmanueloga_ on Friday June 13, 2014 @06:05AM (#7888031)
reminds me of http://ql.io/ (which does not seem to have taken off... last commit: Apr 24, 2013).
Re:Facebook open sources Haxl by pjc50 on Wednesday June 11, 2014 @07:29AM (#7877387)
Isn't that what an SQL query planner does?
Re:Facebook open sources Haxl by AaronFriel on Wednesday June 11, 2014 @11:04AM (#7878351)
Yes, but this is for non-SQL systems, and it does quite a bit more. It's more like an ORM in this respect, because it weaves together the query planning and processing part which handles retrieving data, and the execution of operating on that data.