funcy
haxl
Our great sponsors
funcy | haxl | |
---|---|---|
5 | 10 | |
3,263 | 4,231 | |
- | 0.2% | |
5.5 | 0.0 | |
7 days ago | 6 months ago | |
Python | Haskell | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
funcy
- Funcy: Fancy and practical functional tools [Python]
- Ask HN: How can I get better at writing production-level Python?
-
Ban 1+N in Django
On an unrelated note, Python folks should check out OP's library funcy [1]: "A collection of fancy functional tools focused on practicality. Inspired by clojure, underscore and my own abstractions."
Thanks for the library Suor!
-
What can you do in Haskell that you can't do in Python(for example)?
Functional semantics are available in Python, but IMO not that great. List, dict, and generator comprehensions allow you to perform most operations that you would use in a functional first programming language and there are third party libraries like toolz and funcy that implement some of the more advanced operations. The main issue I've found with using Python as a functional language is it doesn't support fluent syntax. With Scala you can do a relatively complex map/filter/reduce operation with syntactic ease list_of_ints.map(x => x*x).filter(x => x%2 ==0).reduce(x,y => x+y) With Python it's just clunky and less readable b/c of support of list comprehension syntax over fluent syntax. sum([x**2 for x in list_of_ints if x % 2 == 0]) A codebase with 5000 lines of the Scala style code will be much readable and maintainable than with the Python style code.
-
Toolz - A functional standard library for Python
Also worse looking at: https://github.com/suor/funcy
haxl
- Simon Peyton Jones – Haskell is useless [video]
- Is Haskell gaining or losing popularity?
-
Algebraic Effects: Another mistake carried through to perfection?
Sounds a bit like Haxl. From this page:
-
Ban 1+N in Django
+1. The JS event loop auto-monad-izing Promises into Haxl [1]-esqe trees of implicitly-batched loads has been a big win for us building on JavaScript/TypeScript.
If I had to move to another language, I'd really want to find a "powered by the event loop / dataloader" framework, i.e. Vert.x for Java.
Also, per dataloader, a shameless plug for our ORM that has dataloader de-N+1-ing built natively into all object graph traversals:
-
Is Meta decommissioning Sigma?
and Haxl
-
11 Companies That Use Haskell in Production
Haxl, a framework for efficient and concise data fetching.
-
I would like a job writing Haskell
You mean, Haxl? [1] But AFAIK only a few devs are involved for the development.
-
Do You Know Where Haskell Is Used?
Probably, the most googled and well-known example of Haskell application in major companies is the Facebook Meta spam filters. Messages containing spam, links to potential malware and phishing attacks are filtered by Sigma, the system that was rewritten in Haskell in 2015. The choice of language was based, among other things, on performance requirements, the need for pure functions and static typing, as well as the possibility of interactive development. The Haxl framework is used under the bonnet, which the company has open-sourced. You can find more details about the development process and technical aspects in the company’s blog post.
-
What are the advantage of Object Oriented languages over Functional languages? Particularly mutability.
Their GitHub still seems pretty active https://github.com/facebook/Haxl
-
An Ideal Data-Model-First Development Approach for the real-world apps
Since you mention Any real-world application uses a database or seventeen in the backend, it's probably worth checking out https://github.com/facebook/Haxl as its goal is to allow you to write high-level queries in Haskell and have the library call out to different datasources as efficiently as possible.
What are some alternatives?
Toolz - A functional standard library for Python.
fraxl
fn.py - Functional programming in Python: implementation of missing features to enjoy FP
unagi-streams - Unagi-chan channels for io-streams.
CyToolz - Cython implementation of Toolz: High performance functional utilities
streamly - High performance, concurrent functional programming abstractions
Pyrsistent - Persistent/Immutable/Functional data structures for Python
cspmchecker - The library FDR3 uses for parsing, type checking and evaluating machine CSP.
Coconut - Simple, elegant, Pythonic functional programming.
stm-conduit - STM-based channels for conduits.
Deal - 🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.
chaselev-deque - A collection of different packages for CAS based data structures.