TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Facebook open sources Haxl

317 pointsby ainsejalmost 11 years ago

13 comments

AaronFrielalmost 11 years ago
This is a fascinating project. Haxl is the brainchild of former Glasgow Haskell Compiler lead* Simon Marlow.<p>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 &quot;figure out&quot; the most efficient way to perform queries, including performing multiple queries in parallel? That&#x27;s what Haxl does, it allows you to specify the &quot;shape&quot; 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.<p>Here&#x27;s a link to their paper (PDF): <a href="http://www.haskell.org/wikiupload/c/cf/The_Haxl_Project_at_Facebook.pdf" rel="nofollow">http:&#x2F;&#x2F;www.haskell.org&#x2F;wikiupload&#x2F;c&#x2F;cf&#x2F;The_Haxl_Project_at_F...</a><p>* - I am not sure if he&#x27;s still committing, or if he&#x27;s only doing application development. His accomplishments in Haskell land though, are many.<p>Edited: I removed my comment about GitHub issues, seems it&#x27;s a known problem. :)
评论 #7874750 未加载
评论 #7874619 未加载
评论 #7878249 未加载
评论 #7874370 未加载
评论 #7888031 未加载
评论 #7877387 未加载
simonmaralmost 11 years ago
Here&#x27;s our paper about the ideas behind Haxl: <a href="http://community.haskell.org/~simonmar/papers/haxl-icfp14.pdf" rel="nofollow">http:&#x2F;&#x2F;community.haskell.org&#x2F;~simonmar&#x2F;papers&#x2F;haxl-icfp14.pd...</a>
评论 #7875768 未加载
评论 #7883559 未加载
lbrandyalmost 11 years ago
Hi. I&#x27;m one of the engineers who has worked on this so if anyone has any specific questions I can help answer and&#x2F;or get someone to answer.<p>As said by @nbm, we also have a blog post up: <a href="https://code.facebook.com/posts/302060973291128/open-sourcing-haxl-a-library-for-haskell/" rel="nofollow">https:&#x2F;&#x2F;code.facebook.com&#x2F;posts&#x2F;302060973291128&#x2F;open-sourcin...</a>.
评论 #7874357 未加载
评论 #7874404 未加载
评论 #7874501 未加载
评论 #7874693 未加载
评论 #7876300 未加载
nbmalmost 11 years ago
The release blog post is here - <a href="https://code.facebook.com/posts/302060973291128/open-sourcing-haxl-a-library-for-haskell/" rel="nofollow">https:&#x2F;&#x2F;code.facebook.com&#x2F;posts&#x2F;302060973291128&#x2F;open-sourcin...</a><p>It contains a lot more information about the problem it was originally created to solve, and potential other use cases.
JonCoensalmost 11 years ago
I&#x27;m an engineer on the Haxl project and am really excited to launch this today. Ask me anything!
评论 #7877028 未加载
评论 #7874489 未加载
评论 #7874955 未加载
评论 #7874522 未加载
fiatjafalmost 11 years ago
<a href="http://hackage.haskell.org/package/haxl" rel="nofollow">http:&#x2F;&#x2F;hackage.haskell.org&#x2F;package&#x2F;haxl</a><p>Why do Haskell libraries on Hackage doesn&#x27;t come even with a single example, getting started, how to use, quick start, nothing, really, just function declarations? This scares Haskell newbies.
评论 #7876113 未加载
评论 #7878430 未加载
评论 #7876368 未加载
edoficalmost 11 years ago
Slides from Marlow from 9 months ago about Haxl and it&#x27;s workings <a href="https://github.com/meiersi/HaskellerZ/blob/master/meetups/20130829-FPAfternoon_The_Haxl_Project_at_Facebook/The%20Haxl%20Project%20at%20Facebook.pdf?raw=true" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;meiersi&#x2F;HaskellerZ&#x2F;blob&#x2F;master&#x2F;meetups&#x2F;20...</a>
EGregalmost 11 years ago
How do you guys batch requests in PHP? You don&#x27;t, right? So this is an intermediate layer basically, and it sends requests every few millisecods and waits to batch things in between?
评论 #7874925 未加载
评论 #7876298 未加载
radnamalmost 11 years ago
Cool ! Are there any alternatives out there, especially to deal with fault tolerance especially when if we want to establish connection with 100&#x27;s of varied databases?
polskibusalmost 11 years ago
How does the functionality of Haxl differ from a mature ORM system? I&#x27;m thinking about .NET Entity Framework + LINQ in particular since it not only does the mapping but also assists in query generation, scheduling.
mkesperalmost 11 years ago
It would be cool if you could transform those tables into HTML tables. They would look prettier (not nice JPG noise) and would also be more accessible.
skyaheadalmost 11 years ago
are there similar things for iOS?
EGregalmost 11 years ago
<a href="http://platform.qbix.com/guide/patterns" rel="nofollow">http:&#x2F;&#x2F;platform.qbix.com&#x2F;guide&#x2F;patterns</a> ;-)
评论 #7875714 未加载