HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
aidenybai
million
TypeScript2021–2024
aidenybai / million

million

Optimizing compiler for React

7Distinct people
14Mentions
0Explicit recommenders
17.7KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Optimizing compiler for React

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

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, 5:04:57 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 year14 dated mentions

Observed mentions: 2021-06-04 22:14:13 UTC to 2024-02-29 20:15:15 UTC.

024682021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 8 mentions; 4 submissions, 4 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 3 mentions; 2 submissions, 1 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2024

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
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC211
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC844
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC321
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC110

What Hacker News says

14 sources
aidenyb·Feb 29, 2024Submission

Show HN: Million Lint – ESLint for Performance

Hey HN! Founder of Million – We’re building a tool to that helps fix slow React code. Here is a quick demo: https://youtu.be/k-5jWgpRqlQ Fixing web performance issues is hard. Every developer knows this experience: we insert console.log everywhere, catch some promising leads, but nothing happens before "time runs out." Eventually, the slow/buggy code never gets fixed, problems pile up on a backlog, and our end users are hurt. We started Million to fix this. A VSCode extension that identifies slow code and suggests fixes (like ESLint, for performance!) The website is here: https://million.dev/blog/lint I realized this was a problem when I tried to write an optimizing compiler for React in high school (src: https://github.com/aidenybai/million). It garnered a lot of interest (14K+ stars) and usage, but it didn't solve all user problems. Tra
Read the rest
ditionally, devtools either hinge on full static analysis OR runtime profiling. We found success in a mixture of the two with dynamic analysis. During compilation, we inject instrumentation where it's necessary. Here is an example: function App({ start }) { Million.capture({ start }); // inject const [count, setCount] = Million.capture(useState)(start); // inject useEffect( () => { console.log("double: ", count * 2); }, Million.capture([count]), // inject ); return Million.capture( // inject <Button onClick={() => setCount(count + 1)}>{count}</Button>, ); } From there, the runtime collects this info and feeds it back into VSCode. This is a great experience! Instead of switching around windows and trying to interpret flamegraphs, you can just see it inline with your code. We are still in the very early days of experimentation! Million Lints focuses on solving unnecessary re-renders right now, and will move on to handling slow-downs arising from the React ecosystem: state managers, animations, bundle sizes, waterfalls, etc. Our eventual goal is to create a toolchain which keeps your whole web infrastructure fast, automatically - frontend to backend. In the next few weeks, we're planning to open source (MIT) the Million Lint compiler and the VSCode extension. To earn a living, we will charge a subscription model for customized linting. We believe this aligns our incentives with yours: we only make money when we make your app faster. We'd love to know your thoughts – happy to answer :)
8 points · Open discussion
>> React is not traditionally used for making games, but that's part of the fun and the challenge. From https://news.ycombinator.com/item?id=38437821 : > MS Flight Simulator cockpits are built with MSFS Avionics Framework which is React-like and MIT licensed: https://github.com/microsoft/msfs-avionics-mirror/tree/main/... preactjs may or may not be faster: https://preactjs.com/ Million.js is faster than preact, and lists a number of references under Acknowledgements: https://github.com/aidenybai/million#acknowledgments https://million.dev/docs : > We use a novel approach to the virtual DOM called the block virtual DOM. You can read more on what the block virtual DOM is with Virtual DOM: Back in Block and how we make it happen in React with Behind the block(). React API reference > Components > Profiler: https://react.dev/reference/rea
Read the rest
ct/Profiler From the React Developer Tools browser extension docs: https://react.dev/learn/react-developer-tools : > Now, if you visit a website built with React, you will see the Components and Profiler panels. The Redux DevTools extension also inspects apps written without React+Redux; Angular, Cycle, Ember, Fable, Freezer, Mobx, PureScript, Reductive, and Aurelia apps: https://github.com/reduxjs/redux-devtools/blob/main/extensio...
In React Jam just started, making a game in 13 days with React
aidenyb·Jun 1, 2022Submission

Show HN: I made React with a faster Virtual DOM

Hi! I made a React compatibility library for a Virtual DOM library (https://github.com/aidenybai/million). The idea is to have much faster rendering (a compiler optimizes virtual DOM beforehand) while ensuring the same developer experience React provides. This is very, VERY early stage, so be prepared for weird bugs / plugin incompatibility / etc. If you have any suggestions, I'd be more than happy if you replied in a comment with it! You can spin up the demo here >> https://stackblitz.com/github/aidenybai/million-react-compat
109 points · Open discussion
aidenyb·May 2, 2022Submission

Show HN: I made a JavaScript library to turn MPA to SPA

I've always been fascinated by projects like Turbo Drive (formerly turbolinks), which attempt to bring Single Page (SPA) like navigation to Multi Page (MPA) web applications. I recently shared my work on Million.js (https://github.com/aidenybai/million), which is a modern take on Virtual DOM. Since Million.js internally uses a diffing algorithm, I decided to try and see if I could implement my own version of Turbo Drive, based on another diffing algorithm (micromorph). Here's me integrating into an existing open source project: https://www.loom.com/share/ccd5429ddda04dfea882440b78ce61f2 It supports anchor tags, form submission, prefetching, and we're currently exploring more advance techniques with web workers and FLIP here! https://github.com/aidenybai/million/issues/177 I'm just really excited about this topic and I thought I'd share it
Read the rest
to HN to see if any of you all have any suggestions :)
4 points · Open discussion
aidenyb·Apr 6, 2022Submission

Show HN: I made Million – It's a Virtual DOM made for the future

Repo here: https://github.com/aidenybai/million My name is Aiden Bai and I'm really interested in HCI research, particularly within user interface (UI) and web development. At the time of writing this, I'm a student at Camas High School. In July 2021, Million.js began as an experiment with Virtual DOM because I was curious with how UI libraries worked. I was frustrated with the lack of a modern, fast, and modular Virtual DOM library for JavaScript. Virtual DOM had been around for almost a decade, yet many Virtual DOM libraries still struggle with render speed compared to newer methods of rendering. Today, Million.js is the first effort to bring Virtual DOM into the future after hundreds of hours of experimenting. Traditional Virtual DOM libraries have yet to leverage new technological paradigms in the new age of compiled Transitional UI L
Read the rest
ibraries. Million.js leverages the compiler to create predefined paths, instead of executing all the work in the browser. Hope this serves as an interesting example of how older technologies (relative to JavaScript time) can evolve to modern time (similar to how Solid took Knockout's fine-grained strategy and applied modern techniques)
22 points · Open discussion

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.