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: HackerTV – HN's most-recommended Youtube videos as 24/7 TV channels

https://hackertv.org
238•dsalzman•1d ago•49 comments

Show HN: Kairos – Open-source risk and fraud decisioning platform

https://github.com/finic-ai/kairos
75•ayanb9440•7h ago•13 comments

Show HN: Handball Logos – Collection of logos of handball clubs

https://handball-logos.com/
2•yaman071•35m ago•0 comments

Show HN: Uncracked City, detective game where you question LLM suspects that lie

https://uncracked.city
9•passkey1510•7h ago•3 comments

Show HN: Pauseless – Free silence/filler-word remover from videos, on-browser

https://tahaygun.github.io/pauseless/
5•tahaygun•2h ago•0 comments

Show HN: Subvocal – Talk to your computer without making noise

813•aarushyadav•1d ago•385 comments

Show HN: Hacker Times, a New York Times-inspired version of Hacker News

https://hackertimes.ca/
452•polpenn•1d ago•145 comments

Show HN: HackerBooks – HackerTube, but for books mentioned on HN

https://hackerbooks.org
1842•roansh•2d ago•304 comments

Show HN: Interactive notes on RLHF, attention, LoRA and LLM evals

https://concepts.laxmena.com/
40•laxmena•12h ago•4 comments

Show HN: Bema: Work messaging built for humans

https://getbema.app/
24•ben_d•15h ago•20 comments

Show HN: Modelpeers – a changelog for the AI models and agents you use

https://modelpeers.com
4•liorgrossman•4h ago•0 comments

Show HN: I've updated my Linux System Call website and API

https://syscall.sh/
231•guitmz•1d ago•55 comments

Show HN: HackerChurn – which SaaS tools HN wants to cancel

https://hissingkitty.com/hacker-churn
68•drewlem•12h ago•24 comments

Show HN: Warsaw in voxels – An interactive 3D map of the city centre

https://p.migdal.pl/warsaw-vibe-voxel/
316•stared•1d ago•52 comments

Show HN: Election.run – election night in one window

https://election.run/
7•vegcel•13h ago•0 comments

Show HN: I built a little browser game to practice Vim commands

https://hjkl.duy.run
67•dh1011•1d ago•49 comments

Show HN: ZapFast, Native WhatsApp for Linux, macOS, and Windows with Calls

https://zapfast.rocks/
3•earcar•8h ago•5 comments

Show HN: Recto: A desktop app where you can design with AI, edit with your mouse

https://recto.design
5•maroofkhan2007•9h ago•6 comments

Show HN: Confetti – Start designing hardware with plain English prompts

https://confetti.build
4•enaic•9h ago•0 comments

Show HN: Graftfork: rebase fork patches onto each upstream release, test-gated

https://graftfork.com/try
2•craigm26•9h ago•1 comments

Show HN: An MCP proxy that sends 97% fewer tool-definition tokens per request

https://github.com/datolabs-io/mcp-toolsearch-proxy
2•TDabasinskas•9h ago•0 comments

Show HN: PyWolf3D, a wolfenstein3D clone written from scratch in Python

https://github.com/atifcodesalot/pyWolf3D
30•BSPtree•1d ago•8 comments

Show HN: Scroll from your own skeleton to the edge of the observable universe

https://vatsaltanna.com/traveltoinfinity/
6•vatsaltanna•10h ago•0 comments

Show HN: DrawDB – turn any live database into an ER diagram with one query

https://github.com/drawdb-io/drawdb
5•1ilit•10h ago•1 comments

Show HN: Open-Source Searchable Job Board for HN's Hiring Threads

https://flaviaouyang.github.io/hackerjobs/hiring/
6•whoisflavia•15h ago•2 comments

Show HN: Backuparr – Backups for the *ARR Stack and Plex/Jellyfin/Emby

https://github.com/rsaturns/backuparr
2•rsaturns•10h ago•0 comments

Show HN: I rebuilt my old canvas 3D library as a small WebGL 2 library – phoria2

https://kevs3d.co.uk/phoria2/
106•kevs3d•3d ago•29 comments

Show HN: Mintype – Free, zero-knowledge notes app with whiteboards (AGPL)

https://mintype.app
7•project59•21h ago•1 comments

Show HN: Kvittas, an Expense Splitting App

https://kvittas.app
10•primalscreamer•15h ago•8 comments

Show HN: Ads-Boy: Track Planes on Your Game Boy

https://www.bjmalicoat.com/projects/adsboy
2•bmalicoat•11h ago•0 comments