Coconut
thinc
Our great sponsors
Coconut | thinc | |
---|---|---|
27 | 4 | |
3,941 | 2,790 | |
- | 0.6% | |
9.4 | 6.9 | |
3 days ago | 10 days ago | |
Python | Python | |
Apache License 2.0 | MIT 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.
Coconut
- 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
-
[2022 Day 1-7] Going for 1 language per day, looking good so far
If you're looking for suggestions I want to put forward zig lang if you like C/C++ and Coconut Lang if you like Python!
- Show HN: Programming Google Flutter with Clojure
-
What is your favourite programming language? (other than Scala)
F# and also the fun, compile-to-Python, functional language called Coconut.
thinc
-
JAX – NumPy on the CPU, GPU, and TPU, with great automatic differentiation
Agree, though I wouldn’t call PyTorch a drop-in for NumPy either. CuPy is the drop-in. Excepting some corner cases, you can use the same code for both. Thinc’s ops work with both NumPy and CuPy:
https://github.com/explosion/thinc/blob/master/thinc/backend...
-
Tinygrad: A simple and powerful neural network framework
I love those tiny DNN frameworks, some examples that I studied in the past (I still use PyTorch for work related projects) :
thinc.by the creators of spaCy https://github.com/explosion/thinc
-
good examples of functional-like python code that one can study?
thinc - defining neural nets in functional way jax, a new deep learning framework puts emphasis on functions rather than tensors, I've tested it for a couple of applications and it's really cool, you can write stuff like you'd write math expressions in papers using numpy. That speeds up development significantly, and makes code much more readable
- thinc - A refreshing functional take on deep learning, compatible with your favorite libraries
What are some alternatives?
Toolz - A functional standard library for Python.
quantulum3 - Library for unit extraction - fork of quantulum for python3
fn.py - Functional programming in Python: implementation of missing features to enjoy FP
jax - Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more
Pyrsistent - Persistent/Immutable/Functional data structures for Python
horovod - Distributed training framework for TensorFlow, Keras, PyTorch, and Apache MXNet.
funcy - A fancy and practical functional tools
extending-jax - Extending JAX with custom C++ and CUDA code
returns - Make your functions return something meaningful, typed, and safe!
dm-haiku - JAX-based neural network library
effect - effect isolation in Python, to facilitate more purely functional code
AIF360 - A comprehensive set of fairness metrics for datasets and machine learning models, explanations for these metrics, and algorithms to mitigate bias in datasets and models.