frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I built a Gröbner Basis engine that solves 7-variable systems in the browser

7•diegoofernandez•3mo ago
I'm a self-taught developer without formal education. After 3 months of intense study, I built a Gröbner basis engine that runs in the browser.

What it does: - Solves complex 4D systems like w²+x²+y²+z²=1 with symmetric constraints - 5-polynomial basis in 10 iterations - Exact BigInt arithmetic, zero approximations - Pure TypeScript, no dependencies

Why it matters: This makes advanced computational algebra accessible to anyone with a browser - no expensive software licenses needed.

Technical details: - Buchberger algorithm with optimized pair selection - AST architecture with Flyweight/Visitor patterns - Handles up to 7 variables practically

Live demo: https://romimath.pages.dev (Currently Gröbner basis - more features coming this week)

I'd love feedback from the computational math community.

Comments

diegoofernandez•3mo ago
Author here. The journey from fractions to Gröbner in 3 months was brutal but enlightening.

Technical insights for the HN crowd: - Optimized pair selection beats naive Buchberger by 40% - AST memory pooling handles 7-variable polynomial explosion - BigInt precision eliminates numerical stability concerns

For enterprise folks: This solves the "last-mile" problem of mathematical optimization - accessible tools for domain experts.

The 7-variable limit isn't a bug, it's a feature - covers 80% of real business constraints while staying performant.

Demo is live at the link. Code architecture questions welcome.

keepamovin•3mo ago
I didn't look into the code, but what language did you use? Something to WASM? Or just JS? Or a backend? Also how do you model the symbolic terms?
diegoofernandez•3mo ago
Hi! Thanks for the excellent questions. It shows you're looking past the demo and into the core architecture.

Language / Platform: The entire Romimath core engine is built purely in TypeScript, compiled directly to JavaScript (ES6+). It runs 100% client-side in the browser (as you see in the demo) to perform the heavy symbolic computation. We specifically avoided WASM for the core math to ensure maximum portability and maintainability within the JavaScript ecosystem, while still achieving extremely high performance (solving the 4D complex system in approx 2 seconds).

2. Symbolic Terms Modeling: This is the most critical part, as it ensures the engine's precision:

Custom AST and BigInt: We use a custom, modular Abstract Syntax Tree (AST) to model polynomials. All coefficients are handled using native JavaScript BigInt and our custom Rational Number class. This is non-negotiable, as it ensures infinite precision and eliminates floating-point error throughout the entire computation.

Buchberger's Pairs (P_i, P_j): These pairs drive the algorithm's progress. For each pair, we: 1. Compute the S-polynomial (cancel leading terms) 2. Reduce it against the current basis 3. Add non-zero remainders as new constraints

The speed you see comes from optimized pair selection - we skip pairs where leading terms are relatively prime (gcd=1), as they're guaranteed to reduce to zero. This avoids unnecessary computations while ensuring mathematical correctness.

The value proposition is simple: Romimath is a full-stack algebraic engine that combines the portability of TypeScript with the mathematical certainty of BigInt for complex symbolic computation running entirely in the browser.

Thanks for checking it out!

hshdhdhehd•3mo ago
https://romimath.pages.dev

clickable

Go 1.22, SQLite, and Next.js: The "Boring" Back End

https://mohammedeabdelaziz.github.io/articles/go-next-pt-2
1•mohammede•5m ago•0 comments

Laibach the Whistleblowers [video]

https://www.youtube.com/watch?v=c6Mx2mxpaCY
1•KnuthIsGod•6m ago•1 comments

I replaced the front page with AI slop and honestly it's an improvement

https://slop-news.pages.dev/slop-news
1•keepamovin•11m ago•1 comments

Economists vs. Technologists on AI

https://ideasindevelopment.substack.com/p/economists-vs-technologists-on-ai
1•econlmics•13m ago•0 comments

Life at the Edge

https://asadk.com/p/edge
1•tosh•19m ago•0 comments

RISC-V Vector Primer

https://github.com/simplex-micro/riscv-vector-primer/blob/main/index.md
2•oxxoxoxooo•22m ago•1 comments

Show HN: Invoxo – Invoicing with automatic EU VAT for cross-border services

2•InvoxoEU•23m ago•0 comments

A Tale of Two Standards, POSIX and Win32 (2005)

https://www.samba.org/samba/news/articles/low_point/tale_two_stds_os2.html
2•goranmoomin•27m ago•0 comments

Ask HN: Is the Downfall of SaaS Started?

3•throwaw12•28m ago•0 comments

Flirt: The Native Backend

https://blog.buenzli.dev/flirt-native-backend/
2•senekor•29m ago•0 comments

OpenAI's Latest Platform Targets Enterprise Customers

https://aibusiness.com/agentic-ai/openai-s-latest-platform-targets-enterprise-customers
1•myk-e•32m ago•0 comments

Goldman Sachs taps Anthropic's Claude to automate accounting, compliance roles

https://www.cnbc.com/2026/02/06/anthropic-goldman-sachs-ai-model-accounting.html
2•myk-e•34m ago•5 comments

Ai.com bought by Crypto.com founder for $70M in biggest-ever website name deal

https://www.ft.com/content/83488628-8dfd-4060-a7b0-71b1bb012785
1•1vuio0pswjnm7•35m ago•1 comments

Big Tech's AI Push Is Costing More Than the Moon Landing

https://www.wsj.com/tech/ai/ai-spending-tech-companies-compared-02b90046
4•1vuio0pswjnm7•37m ago•0 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
2•1vuio0pswjnm7•39m ago•0 comments

Suno, AI Music, and the Bad Future [video]

https://www.youtube.com/watch?v=U8dcFhF0Dlk
1•askl•41m ago•2 comments

Ask HN: How are researchers using AlphaFold in 2026?

1•jocho12•44m ago•0 comments

Running the "Reflections on Trusting Trust" Compiler

https://spawn-queue.acm.org/doi/10.1145/3786614
1•devooops•49m ago•0 comments

Watermark API – $0.01/image, 10x cheaper than Cloudinary

https://api-production-caa8.up.railway.app/docs
1•lembergs•50m ago•1 comments

Now send your marketing campaigns directly from ChatGPT

https://www.mail-o-mail.com/
1•avallark•54m ago•1 comments

Queueing Theory v2: DORA metrics, queue-of-queues, chi-alpha-beta-sigma notation

https://github.com/joelparkerhenderson/queueing-theory
1•jph•1h ago•0 comments

Show HN: Hibana – choreography-first protocol safety for Rust

https://hibanaworks.dev/
5•o8vm•1h ago•1 comments

Haniri: A live autonomous world where AI agents survive or collapse

https://www.haniri.com
1•donangrey•1h ago•1 comments

GPT-5.3-Codex System Card [pdf]

https://cdn.openai.com/pdf/23eca107-a9b1-4d2c-b156-7deb4fbc697c/GPT-5-3-Codex-System-Card-02.pdf
1•tosh•1h ago•0 comments

Atlas: Manage your database schema as code

https://github.com/ariga/atlas
1•quectophoton•1h ago•0 comments

Geist Pixel

https://vercel.com/blog/introducing-geist-pixel
2•helloplanets•1h ago•0 comments

Show HN: MCP to get latest dependency package and tool versions

https://github.com/MShekow/package-version-check-mcp
1•mshekow•1h ago•0 comments

The better you get at something, the harder it becomes to do

https://seekingtrust.substack.com/p/improving-at-writing-made-me-almost
2•FinnLobsien•1h ago•0 comments

Show HN: WP Float – Archive WordPress blogs to free static hosting

https://wpfloat.netlify.app/
1•zizoulegrande•1h ago•0 comments

Show HN: I Hacked My Family's Meal Planning with an App

https://mealjar.app
1•melvinzammit•1h ago•0 comments