HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
autumnai
leaf
Rust2015–2021
autumnai / leaf

leaf

Open Machine Intelligence Framework for Hackers. (GPU/CPU)

6Distinct people
18Mentions
1Explicit recommenders
5.5KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Open Machine Intelligence Framework for Hackers. (GPU/CPU)

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

> I get it, you don't like seeing Open Source (MIT/ZLIB/Apache2) posted about. No you don't get it. I love hearing about such products - from the people who love using it so…

hobofan used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year18 dated mentions

Observed mentions: 2015-11-10 13:46:02 UTC to 2021-06-01 11:39:18 UTC.

024682015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 8 mentions; 3 submissions, 5 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC312
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC835
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC101
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC312
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC101
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101

What Hacker News says

18 sources
I tried to create a ML framework[0] that would work on both CUDA and OpenCL (and natively on the CPU) around 2015/2016, which included creating FFI wrappers for both CUDA and OpenCL. This is where my experience on the subject (and my contempt for NVIDIA) comes from. Me memory isn't perfect, but IIRC the situation was roughly the following: We were quite short on resources (both devtime and money), which meant that we had to choose our scope wisely. Optimally we would have implemented both CUDA and OpenCL 2.0, but we had to settle for OpenCL 1.2 (which offered reduced performance, but was "good enough" for inference). IIRC OpenCL 2.0 was very very similar in what capabilities it assumed and offered to the CUDA version at the time, and cards like the GTX Titan X had "compute capabilities" that supported features like shared virtual memory b
Read the rest
etween CPU and GPU in CUDA at the time. In fact the advances around memory management (and async copying) that were present in CUDA and not in OpenCL 1.x were the main source for the performance differences between the two. From everything that I can tell at that point in time, if NVIDIA would have wanted to support OpenCL 2.0 they could have done so based on technical requirements. What the reason for not doing so is, is just pure speculation (lack of internal resources due to focusing on devtools?), but to me it always looked like they were using the edge they got via their proprietary libraries like cuDNN to get a foot into the field of ML and then purposefully neglected OpenCL to prevent any competitors from catching up. Classic Embrace, Extend, Extinguish. [0]: https://github.com/autumnai/leaf
In AMD Demonstrates Stacked 3D V-Cache Technology: 192 MB at 2 TB/SEC
Though this is a snapshot from ~2015, I don't think anything has significantly changed since then: I developed a (more or less popular, though not in wide use) ML framework[0] back then. NVIDIA pretty quickly contacted us and offered to send a Titan X (top-of-the-line back then) our way. We also tried to make the framework work with OpenCL, but were severely limited in doing so. Mostly because Nvidia intentionally limits their GPUs to an older OpenCL version that has an uncompetitive featureset. They started doing that once they had a decent lead in the market over AMD. With that OpenCL was no longer vendor agnostic, but rather AMD-only, and you would always need to fully support both backends to support both vendors. Yes, Nvidia may produce the best GPUs right now and have great market and mindshare, but there is nothing "honest and dese
Read the rest
rved" about how they got there. [0]: https://github.com/autumnai/leaf
In Which GPUs to get for deep learning
The first two are total bullshit metrics. Basically any Github metric in isolation doesn't mean much. Anecdotally, I once worked on a ML framework in Rust[0]. For at least a few months after release the metrics looked good on paper (Top 5 Rust project by stars at the time) and also had a few smaller contributors. Sadly next to no actual adoption and no healthy community around it that was able to pick it up after we had to stop maintenance. Downloads are about as bad. Just have one or a few users that have CI or deployment patterns that download the package a lot, and your numbers lost any meaning. [0]: https://github.com/autumnai/leaf
In Open Source: From Community to Commercialization
hobofan·Apr 22, 2018Recommendation phrase
> I get it, you don't like seeing Open Source (MIT/ZLIB/Apache2) posted about. No you don't get it. I love hearing about such products - from the people who love using it so much that they feel the need to spread the word around. Submissions about project news are also great, because they can be separately up/downvoted, and don't ride on the coattails of trending submissions. That plus deceitful marketing tricks ("ranked #2 on Github" for a buzzword keyword you picked out, doesn't mean shit) is clearly spam in my book. > and I don't profit from it Is it not true that you run a VC-funded company that is behind gun, as you have claimed on other occasions? If it's VC-funded there probably is a profit goal in the foreseeable timeline. > ~8K developers in our community Stars on Github doesn't translate to community members, especially if they
Read the rest
are gained by high-publicity actions, like posts on HN. This is meant as advice coming from someone who made the mistake of seeing them equivalent in the past. We got ~5k stars via HN for Leaf[0], and I know that only about 10-20 people tried to even use the library. Judging from the activity on the gun repo, it does look to be a little bit better, but not by much. [0]: https://github.com/autumnai/leaf
In Fluree DB – A scalable blockchain database
> 1. Why are you're learning a language at the same time you're trying to launch an MVP? And a fairly involved language such as rust. Back when we decided to build Leaf[0] we were in a situation where we needed a language with the characteristics similar to the ones of C, C++, Rust (embeddable, no runtime, etc.). Before starting development on Leaf we didn't have any extensive experience in any of those languages, and I still think that Rust was the right choice for the project. I'd guess that the requirements of the MVP were similar. Since he also noted that it's his first time programming full-time, he had to learn _some_ language. Sure, it's not optimal to learn a core competency of your business while founding it, but I can also tell you from personal experience that sometimes that's still a better choice than the alternatives. > And
Read the rest
a fairly involved language such as rust. I'd say Rust is only as involved as your requirements of it: - You don't have to deal with raw pointers? -> No need to learn `unsafe` - You're not particularly worried about extreme performance/memory usage at first? -> Clone now, learn lifetimes later [0]: https://github.com/autumnai/leaf
In My journey with Rust in 2017 — The good, the bad, the weird
> - Neural network programs are usually not large and therefore do not need the type safety that Rust offers TensorFlow Fold [1] uses static type checking at model compilation time, presumably because it is meant to consume structured data, and needs to know what the opaque tensors it passes around are supposed to represent. I don't fully comprehend that type system, and debugging type errors was annoying (huge stacktrace full of passing type info around), but after I managed to imitate it well enough to hack up my own blocks, I didn't investigate further. A language-level type system like Rust's would probably have made things easier for me. EDIT: I just remembered that there's also Leaf [2], which claims to be among the faster neural network libraries (although their comparison is a bit outdated). Evidently there are people seriously pu
Read the rest
rsuing machine learning in Rust (still uses CUDA for GPU acceleration, though). [1] https://github.com/tensorflow/fold [2] https://github.com/autumnai/leaf
In Show HN: Juggernaut – Experimental Neural Network in Rust
We are developing the Rust Machine Intelligence Framework Leaf[1] for which we created the portable High-Performance Computation Framework Collenchyma [2], which abstracts over CUDA, OpenCL and commen host CPU. Although we are ready to bring Machine Learning to OpenCL supported devices, the OpenCL ecosystem lacks the fundamental kernels, tooling and library that already exist for the CUDA ecosystem (e.g. cuDNN[3]). But we looking forward to support OpenCL, maybe SPIR-V accelerates the process. [1]: https://github.com/autumnai/leaf [2]: https://github.com/autumnai/collenchyma [3]: https://developer.nvidia.com/cudnn
In It’s Time to Open Up the GPU

Showing the 15 most recent of 18 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.