returns
Coconut
returns | Coconut | |
---|---|---|
21 | 31 | |
3,994 | 4,221 | |
1.4% | 0.5% | |
9.5 | 6.1 | |
6 days ago | 3 months ago | |
Python | Python | |
BSD 2-clause "Simplified" License | Apache License 2.0 |
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.
returns
-
Top FP technologies
Python is not functional language itself. And as I can relate does not want to be: look at lambda for instance. But this package allows to write more robust applications. Link to lib: GitHub - dry-python/returns: Make your functions return something meaningful, typed, and safe!
-
This Week in Python (February 23, 2024)
returns – Make your functions return something meaningful, typed, and safe
- Python Functional Programming with returns library (type-safety, monads, etc.)
- GitHub - dry-python/returns: Make your functions return something meaningful, typed, and safe!
-
[Media] Rust Results in Python :D
you haven’t heard of https://github.com/dry-python/returns
-
Unleash the Power of Python Monads: A Design Pattern for Elegant Code!
returns from the DRY python group appears to offer similar functionality.
-
Rust's Option and Result. In Python.
Not to diminish this at all, but https://github.com/dry-python/returns also exists. The scope is wider, but the look and feel of the types feels very similar.
- Functional python for data process
-
Faif/Python-patterns: A collection of design patterns/idioms in Python
https://github.com/dry-python/returns#maybe-container
You can decide for yourself what is more readable: all these lambdas or the `None and f()` code.
- Show HN: Koda, a Typesafe Functional Toolkit for Python
Coconut
-
Uncommon Uses of Python in Commonly Used Libraries
Check out Coconut (https://github.com/evhub/coconut), which implements an entire functional programming language as a Python superset that compiles to Python bytecode.
-
Haskelling My Python
not too far from that there's https://coconut-lang.org/
-
Hy 1.0.0, the Lisp dialect for Python, has been released
Not a Lisp, but also an interesting take on a functional programming language that transpiles to Python is Coconut (https://coconut-lang.org/).
I'd be seriously interested in hearing from people that have actually used any of these two and what their experience was.
- Coconut Programming Language
- Coconut: Simple, elegant, Pythonic functional programming
-
Mojo is now available on Mac
> to be part of the Python ecosystem
I'd rather use Python if I'm in the Python ecosystem. So many attempts were made in the past to make a new language compatible with the Python ecosystem (look up hylang and coconu -- https://github.com/evhub/coconut). But at the end of the day, I'd come back to Python because if there's one thing I've learnt in recent years it's this:
minimize dependencies at all costs.
- I modified and hacked away xonsh source code
- Show HN: I mirrored all the code from PyPI to GitHub
-
Leaving Haskell Behind
Have you had a look at Coconut? I don't know if it'll push all your buttons but whenever I hear someone who's reasonably content with Python but wants more FP goodies I always think of it. https://github.com/evhub/coconut . It's basically a superset of Python3 that transpiles into Python3 and is compatible with MyPy. I don't think I'd code Python w/o it ever again assuming I had the choice. The biggest negative for me is that there's no IDE support for the language last I looked, though of course you can work with the transpiler output (plain Python) in your favorite Python IDE. It might be fun to play around with, I know that I really enjoyed it but then I got spoiled by the language+tooling of Scala3, but if you don't have that option ...
- Codon: A high-performance Python compiler
What are some alternatives?
Toolz - A functional standard library for Python.
classes - Smart, pythonic, ad-hoc, typed polymorphism for Python
funcy - A fancy and practical functional tools
CyToolz - Cython implementation of Toolz: High performance functional utilities
fn.py - Functional programming in Python: implementation of missing features to enjoy FP