frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fahmatrix – A Lightweight, Pandas-Like DataFrame Library for Java

https://github.com/moustafa-nasr/fahmatrix
46•mousomashakel•11mo ago
Hey HN, I’ve built Fahmatrix, a minimal, fast Java library for working with tabular data — inspired by Python’s pandas, but designed for performance and simplicity on the JVM.

After working extensively with Python’s data stack, I often ran into limitations related to speed, especially in larger or long-running data workflows. So I built Fahmatrix from scratch to offer similar APIs for manipulating CSVs, performing summary statistics, slicing rows/columns, and more — but all in Java.

Features:

Lightweight and dependency-free

CSV/TSV import with auto-headers

Series/DataFrame structures (like pandas)

describe(), mean(), stdDev(), percentile() and more

Fast parallel operations on numeric columns

Java 17+ support

Docs: https://moustafa-nasr.github.io/Fahmatrix/ GitHub: https://github.com/moustafa-nasr/fahmatrix

I’d love feedback from the Java and data communities — especially if you’ve ever wanted a simple dataframe utility in Java without needing full-scale ML libraries.

Happy to answer any questions!

Comments

rickette•11mo ago
Congrats on putting this out there. There isn't a de facto pandas-like library in Java like you said. But for Kotlin there is: https://github.com/Kotlin/dataframe
mousomashakel•11mo ago
Thanks so much! Yep, I’ve seen the Kotlin DataFrame lib — very elegant. Fahmatrix is meant for plain Java users who want similar capabilities without switching ecosystems. Appreciate the support!
uwemaurer•11mo ago
Always great to see efforts to make working with data frames easier. Here are some similar data frame libraries for Java:

https://github.com/jtablesaw/tablesaw

https://github.com/dflib/dflib

My preferred way is just use duckdb java API. I didn't see anything better in performance/efficiency. Also a SQL query is often easier to write

theanonymousone•11mo ago
Yes. It has bothered me for a long time too. Maybe the best mix is a dataframe library with basic operations (column select, non-null etc), which also allows SQL for more complex stuff?
radus•11mo ago
Polars and duckdb interoperate nicely and can enable this flexibility
theanonymousone•11mo ago
Does Polars have a Java library?
mousomashakel•11mo ago
Totally agree that SQL can be the best tool for many jobs. My goal with Fahmatrix is to serve the opposite niche: where devs want something that's Java-native, procedural, and simple without reaching for an external engine. SQL support or DSL might come later though — I see the appeal.
theanonymousone•11mo ago
Sure. So maybe notehr comment would be to make it (particularly the Series class), as compatible with Java Streams as possible.

Next step would likely be compatibility with popular libraries such as Apache Commons Math: https://commons.apache.org/proper/commons-math/userguide/sta...

mousomashakel•11mo ago
Thanks! I'm aware of those great projects. Fahmatrix aims to offer a lightweight, dependency-free alternative that’s easy to embed in any Java app. DuckDB is super impressive, especially for SQL-heavy tasks — but my goal is more about a native, fluent API for those who prefer direct Java code over SQL.
skanga•11mo ago
What about Tablesaw, Apache Arrow? How does this compare ...
mousomashakel•11mo ago
Good question. I’ll publish benchmarks soon, but the core difference is that Fahmatrix is fully Java, no JNI, and minimalistic — ideal for small projects or environments like Android. Tablesaw and Arrow are more powerful, but heavier. Fahmatrix aims to be the “just enough” middle ground.
owlstuffing•11mo ago
Nice!

I’m currently using manifold-sql with duckdb for this.

mousomashakel•11mo ago
Thanks! That’s a great combo — manifold-sql + duckdb gives you strong typing with powerful SQL under the hood. Fahmatrix is aiming to complement that approach for cases where you want quick, native Java code without SQL — e.g., when building data flows or custom logic inline. Would love to hear if you’ve hit any pain points that a Java-native approach could help with.

Show HN: Free textbook on engineering thermodynamics

https://thermodynamicsbook.com/
144•2DcAf•18h ago•38 comments

Show HN: The Unix Magic poster, annotated (updated)

https://github.com/drio/unixmagic
37•drio•8h ago•2 comments

Show HN: Turning a Gaussian Splat into a videogame

https://blog.playcanvas.com/turning-a-gaussian-splat-into-a-videogame/
215•yak32•3d ago•53 comments

Show HN: Tiao, A two-player turn-based board game

https://playtiao.com
45•trebeljahr•13h ago•20 comments

Show HN: Startup Equity Adventure Game

https://options-game-polymathrobotics.pythonanywhere.com/
27•iliabara•11h ago•11 comments

Show HN: AgentSwarms – free hands-on playground to learn agentic AI, no setup

https://agentswarms.fyi/
15•rohan044•13h ago•4 comments

Show HN: AI memory with biological decay (52% recall)

https://github.com/sachitrafa/YourMemory
87•SachitRafa•13h ago•37 comments

Show HN: Auge Vision from Your Terminal

https://auge.franzai.com/
21•franze•14h ago•3 comments

Show HN: Matrirc – run irssi in 2026, talk to people on Matrix

https://github.com/pawelb0/matrirc
9•pawelb0•12h ago•0 comments

Show HN: A free ESG stock screener that publishes its losses and methodology

https://jumpstartsignal.com/
27•irldexter•1d ago•25 comments

Show HN: I remade my blog into a Windows 3.1 environment

https://passo.uno/
23•theletterf•22h ago•18 comments

Show HN: Friendly prediction markets to turn trips into a running tournament

https://bets.bernikins.com/
4•k0rm•7h ago•0 comments

Show HN: Paper Millionaire – A Startup Stock Option Horror Roguelike

https://paper-millionaire.pagey.site/
4•freakynit•6h ago•0 comments

Show HN: CrabPDF – privacy-first PDF editor that edits real text

https://crabpdf.com/
4•rabbithols•10h ago•1 comments

Show HN: Kloak, A secret manager that keeps K8s workload away from secrets

https://getkloak.io/
61•neo2006•1d ago•52 comments

Show HN: I've built a nice home server OS

https://lightwhale.asklandd.dk/
186•Zta77•2d ago•80 comments

Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite

https://github.com/russellromney/honker
310•russellthehippo•3d ago•80 comments

Show HN: A Karpathy-style LLM wiki your agents maintain (Markdown and Git)

https://github.com/nex-crm/wuphf
255•najmuzzaman•2d ago•112 comments

Show HN: Nitrum – Rust Toolkit and CLI for AWS Nitro Enclaves

https://github.com/matzapata/nitrum
4•matzapata•11h ago•1 comments

Show HN: Browser Harness – Gives LLM freedom to complete any browser task

https://github.com/browser-use/browser-harness
129•gregpr07•2d ago•62 comments

Show HN: Gova – The declarative GUI framework for Go

https://github.com/NV404/gova
140•aliezsid•3d ago•28 comments

Show HN: Out Loud – open-source desktop TTS app for macOS/Windows/Linux

https://github.com/light-cloud-com/out-loud
2•julia-kafarska•11h ago•0 comments

Show HN: Logic Designer – Webapp

https://logic-designer.github.io/logic-designer-main/
5•logic-designer•11h ago•0 comments

Show HN: Browse GitHub repos in Emacs without cloning

https://github.com/agzam/remoto.el
22•iLemming•1d ago•12 comments

Show HN: Polynya – Turn your Postgres into workspaces for AI

https://polynya.dev/
4•hasyimibhar•12h ago•0 comments

Show HN: Mdlens – Reduce token spend and boost retrieval on Markdown-heavy repos

https://github.com/Dreeseaw/mdlens
3•dreeseaw•13h ago•0 comments

Show HN: Agent Vault – Open-source credential proxy and vault for agents

https://github.com/Infisical/agent-vault
155•dangtony98•4d ago•55 comments

Show HN: Stop Destroying Your Charging Cables

https://www.bbc.com/future/article/20260421-your-bad-habits-are-destroying-your-charging-cables
9•wasimsk•14h ago•0 comments

Show HN: Time Pin – a Geo Guessr style game but history themed

https://www.crazygames.com/game/time-pin
7•AndreiCx•14h ago•0 comments

Show HN: <Hyper-frame> – an iframe element to embed any website

https://www.hyper-frame.art/
5•keepamovin•15h ago•5 comments