frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
Polars and duckdb interoperate nicely and can enable this flexibility
theanonymousone•1y ago
Does Polars have a Java library?
mousomashakel•1y 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.
skanga•1y ago
What about Tablesaw, Apache Arrow? How does this compare ...
mousomashakel•1y 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•1y ago
Nice!

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

mousomashakel•1y 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.
theanonymousone
•
1y 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•1y 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.

Show HN: I have created a browser FPS game with kamikaze drones

https://sectorlock.com/
2•canerg•26m ago•1 comments

Show HN: Send flowers from your AI agent and make your mum happy

4•fabian_shipamax•32m ago•1 comments

Show HN: Titles – Can you write a better Hacker News title?

https://www.orangecrumbs.com/hn-titles
2•oyster143•37m ago•0 comments

Show HN: A fast, private, cross-platform Markdown editor built with Tauri/Rust

https://github.com/skanga/mdedit
2•skanga•44m ago•1 comments

Show HN: I made a word building game supporting anagrams and one handed use

23•busymom0•4d ago•4 comments

Show HN: Engrim – A universal, local-first SQLite memory engine for AI CLIs

https://github.com/timgordontg/engrim
68•timgordontg•11h ago•38 comments

Show HN: Think Turing Complete, but you write the circuits in TypeScript (WIP)

https://play.simten.dev
18•charlesfrisbee•5d ago•9 comments

Show HN: GET Together – A social network where you don't need POST to Post

https://gettogether.dev
95•nchudleigh•14h ago•51 comments

Show HN: Browser-Based Tempest – Transmitting VHF Morse via Monitor EMI Leakage

https://github.com/TA1EEI/vhf-morse-transmitter-monitor
5•TA1EEI•2h ago•0 comments

Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple

https://github.com/marsbos/mador
95•bosmarcel•19h ago•31 comments

Show HN: Pod – A review site for dev tools where the reviewers are AI agents

https://askpod.ai/
10•marvy101•3h ago•12 comments

Show HN: Forget Rigid Stock Screeners – A Universal Query API for Financial Data

https://financialdata.net/universal-query
5•_FDN_•6h ago•0 comments

Show HN: Guile-Secure Your Stack

https://guile.in
3•Harsha2193•6h ago•0 comments

Show HN: Kadō – open-source habit tracker, with non-binary habit score, for iOS

https://github.com/scastiel/kado
76•scastiel•1d ago•32 comments

Show HN: The Token Times · a monthly newspaper on AI

https://befailproof.ai/thetokentimes/
3•nivedit-jain•7h ago•1 comments

Show HN: TERMy – A fast terminal assistant that does not use LLMs

https://github.com/gioblu/NPC-Forge/blob/main/docs/development.md
215•gioscarab•3d ago•45 comments

Show HN: Server hardening playbook where every item is failure/fix/verify

https://github.com/Sanexxxx777/server-hardening-playbook
4•Aleksandr_NFA•11h ago•0 comments

Show HN: Golden hour API and a 3D globe of the best light

https://golden.sendafun.com/
2•gpszys•11h ago•0 comments

Show HN: Lantunnel – a P2P-first private mesh for reaching your LANs

https://github.com/lantunnel/lantunnel
4•buhuipao•12h ago•2 comments

Show HN: Open-Source eInk Bike Computer

https://opentrailpaper.com
414•stingrae•2d ago•131 comments

Show HN: VODForge – a free local desktop UI for YouTube video/playlist downloads

https://getvodforge.com/
37•coopernusbaum•19h ago•12 comments

Show HN: Reactor Atlas

https://reactoratlas.com
77•fedecaccia•4d ago•25 comments

Show HN: Blunderbase: A Personal Chess Database

https://github.com/philphilphil/blunderbase
5•philphilphil•1d ago•0 comments

Show HN: Byosynch – Continuous two-way file sync over SSH for Mac and Linux

https://byosynch.com/
3•hamiltonc•19h ago•0 comments

Show HN: HexBOTs – a cellular automaton with robotic lawnmowers

https://hexbot-genesis.netlify.app/
3•unitX•20h ago•0 comments

Show HN: Time Pin – a history themed GeoGuessr-style game

https://playtimepin.com/
4•AndreiCx•20h ago•1 comments

Show HN: Moadim.io – A scheduler for agents

https://moadim.io/
36•tupe12334•2d ago•18 comments

Show HN: I wrote a guide to rendering video from plain HTML/CSS/GSAP

https://sidheart.gumroad.com/l/lyudd
2•SifatAhmed•9h ago•1 comments

Show HN: PixelDraw – simple drawing software for web(WASM) and desktop

https://akshy.codeberg.page/pixeldraw/
2•yhska•1d ago•0 comments

Show HN: Personal Context MCP

https://lanes.sh/showcase/personal-context-mcp
27•s-xyz•2d ago•9 comments