frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: React-State-Basis – An architectural auditor using linear algebra

https://github.com/liovic/react-state-basis
1•lpetronika•2h ago

Comments

lpetronika•2h ago
Hi HN,

I’ve been a software engineer for 10 years. For a long time, I viewed "application state" as just a collection of variables and logic. I was effective, but I felt like I was missing the underlying structure of why state becomes messy.

Recently, I started studying linear algebra (Axler’s "Linear Algebra Done Right"). It opened a "third eye" for me. I realized that redundant state in a React app is essentially "linear dependence." If two or more state variables always update in perfect sync, they aren't adding new information-they are just redundant dimensions in your application's state space.

I spent my holiday break building react-state-basis. It’s a real-time architectural auditor that monitors your state transitions as vectors to find these redundancies.

What the tool does:

Redundancy Detection: It identifies state variables that move in perfect synchronization (collinear) and suggests refactoring them into a single source of truth or a derived value (useMemo).

Causality Tracking: It traces useEffect chains to find "Double Render Cycles" where one state update unnecessarily triggers another.

Infinite Loop Protection: It includes a "Circuit Breaker" that detects high-speed oscillations and halts execution before the browser thread locks up.

System Health Score: It analyzes your entire state architecture to give you an efficiency score based on how many variables are actually independent.

I built a Babel plugin to handle automatic labeling, so you don't have to manually name your states. It’s designed as a development-time tool—you can easily swap back to standard React imports for your production build.

I’m a solo dev and this is my first open-source project. I’d love to hear what you think about this approach to state auditing.

https://github.com/liovic/react-state-basis

Laser-assisted 3D printing can fabricate thermoset-based electronics in seconds

https://techxplore.com/news/2025-11-laser-3d-fabricate-free-thermoset.html
1•PaulHoule•29s ago•0 comments

Nvidia CUDA Tile IR Open-Sourced

https://www.phoronix.com/news/NVIDIA-CUDA-Tile-IR-Open-Source
1•rbanffy•2m ago•0 comments

Ask HN: What information do you always wish you had when debugging a bugs?

1•nishilpatel•4m ago•0 comments

LLM Awards 2025: Based on Workflow, Value and Taste

https://apurva-mishra.com/posts/4/
1•mav3ri3k•5m ago•0 comments

Show HN: Vix.cpp v1.17.0 – Production-grade web back end examples in modern C++

1•gkirira•9m ago•0 comments

LearnixOS

https://www.learnix-os.com
2•gtirloni•11m ago•0 comments

Peter Naur's legacy: Mental models in the age of AI coding

https://www.nutrient.io/blog/peter-naur-legacy-mental-models-age-ai-coding/
1•code_myx•11m ago•0 comments

Ask HN: What did you read in 2025?

5•kwar13•15m ago•0 comments

Yann LeCun: New Vision Language JEPA with Better Performance Than LLMs

https://arxiv.org/abs/2512.10942
2•bluedevilzn•16m ago•0 comments

New Linux Patches Improve ExFAT Read Performance via Multi-Cluster Mapping

https://www.phoronix.com/news/Linux-exFAT-Reads-MC-Map
1•Bender•17m ago•0 comments

Remove CapCut Watermarks with AI – Build a Flicker-Free Inpainting System

https://blog.videowatermarkremove.com/remove-capcut-watermark-ai
1•ilmj8426•18m ago•0 comments

Humanoid robots are still novelty acts, but investment is surging make them real

https://www.theregister.com/2025/12/25/humanoid_robots_investment_surge/
1•Bender•20m ago•0 comments

3.5M Affected by University of Phoenix Data Breach

https://www.securityweek.com/3-5-million-affected-by-university-of-phoenix-data-breach/
2•Bender•21m ago•1 comments

Historical mysteries solved by science in 2025

https://www.cnn.com/2025/12/23/science/historical-mysteries-solved-2025
1•giuliomagnifico•21m ago•1 comments

Show HN: Figma Alternative Free – [In Progress]

https://www.absl.design/
4•absolute7•24m ago•0 comments

Package managers keep using Git as a database, it never works out

https://nesbitt.io/2025/12/24/package-managers-keep-using-git-as-a-database.html
3•birdculture•24m ago•0 comments

Why international money transfers are more expensive than they look

https://idealremit.com
1•bk-mira•24m ago•1 comments

Show HN: Tiny-UUID – UUID v4 in 200 bytes. That's 40x smaller than UUID package

https://github.com/takawasi/tiny-uuid
1•takawasi•27m ago•0 comments

Transform sources into structured Data Tables in NotebookLM

https://workspaceupdates.googleblog.com/2025/12/transform-sources-structured-data-tables-notebook...
1•gmays•28m ago•0 comments

Turning an old Amazon Kindle into a eInk development platform

https://blog.lidskialf.net/2021/02/08/turning-an-old-kindle-into-a-eink-development-platform/
1•fanf2•29m ago•0 comments

ChatGPT conversations still lack timestamps after years of requests

https://community.openai.com/t/timestamps-for-chats-in-chatgpt/440107?page=3
16•Valid3840•31m ago•8 comments

Reverse API Engineer

https://github.com/kalil0321/reverse-api-engineer
2•handfuloflight•31m ago•0 comments

Nano Banana Pro is the best AI image generator, with caveats – Max Woolf's Blog

https://minimaxir.com/2025/12/nano-banana-pro/
1•rcarmo•34m ago•0 comments

Unix "find" expressions compiled to bytecode

https://nullprogram.com/blog/2025/12/23/
2•rcarmo•35m ago•0 comments

Donald Knuth's Annual Christmas Lecture 2025 – Adventures with Knight's Tours

https://online.stanford.edu/donald-e-knuth-lectures
1•vismit2000•39m ago•0 comments

Neuro‑IDE: Universal Kernel Cortex

1•neuro-os•40m ago•0 comments

GNU Mes and the Module System

https://ekaitz.elenq.tech/fasterMes5.html
1•todsacerdoti•42m ago•0 comments

I'm a laptop weirdo and that's why I like my new Framework 13

https://blog.matthewbrunelle.com/im-a-laptop-weirdo-and-thats-why-i-like-my-new-framework-13/
30•todsacerdoti•43m ago•5 comments

I Built a Minimal Website and Google Ignored It

https://gokhanarkan.com/blog/minimal-website-seo/
2•gokh•44m ago•0 comments

Did I Just Ask for a Demotion?

https://andrew.grahamyooll.com/blog/Did-I-Just-Ask-For-A-Demotion/
2•yuppiepuppie•47m ago•0 comments