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: Searching for optimal strategies in a puzzle game with chance (Drop7)

https://drop7.dev
4•primitivesuave•1h ago•0 comments

Show HN: Impossible Machines: declaratively program the physical world

https://www.impossiblemachines.xyz
16•bhaprayan•18h ago•0 comments

Show HN: Swurf – Swipe through the real web

https://swurf.org/
10•webtjb096•11h ago•3 comments

Show HN: ZapFast, a native WhatsApp client with voice and video calls on Linux

https://zapfast.rocks/
2•earcar•23m ago•0 comments

Show HN: OnKey – I'm a bad singer, so I built an app to show where I'm off-key

https://github.com/dsmurrell/onkey
172•dsmurrell•1d ago•72 comments

Show HN: I made a jobs-near-you map

https://offpeak.fyi/search
3•vsurraco•1h ago•1 comments

Show HN: Making a smart TV dumb and then smart

https://github.com/anubhavmalhotra/r2d2-tv
76•animalhot•18h ago•54 comments

Show HN: We had AI write a wiki from 45k Enron emails, every fact cited

https://www.thisandthat.chat/enron/
47•jreynar•6h ago•46 comments

Show HN: Koala – Run AI Agents in Isolated Linux VMs on macOS

https://kunalkushwaha.github.io/homebrew-koala/
3•kunalkushwaha•2h ago•0 comments

Show HN: Uberblok – an interactive museum of ZFS internals

https://uberblok.storagebits.workers.dev/
116•storagebits•2d ago•29 comments

SHOW HN:Free interactive Python and SQL courses that run in the browser

https://www.runtime.school
2•shadowdevil•3h ago•0 comments

Show HN: Vericto – Check AI agents' SQL before Postgres or MySQL runs it

https://github.com/vericto/vericto-proxy
3•donkan168•4h ago•0 comments

Show HN: Mark – AI chat that answers with diagrams, quizzes and 3D models

https://saanora.com
3•AKSaathwik•5h ago•0 comments

Show HN: Turn regular JavaScript into a neural net

https://chenglou.me/handwired/
44•chenglou•2d ago•12 comments

Show HN: MegaKey (standardization and extension of the Hyper and Meh keys)

https://leftium.github.io/megakey/
2•Leftium•6h ago•0 comments

Show HN: Omnara – Open-source alternative to Claude Managed Agents

https://github.com/omnara-ai/omnara
111•kmansm27•2d ago•34 comments

Show HN: agent-usage-guard – a Claude Code mod to protect your usage window

https://github.com/rbartoli/agent-usage-guard
25•zzyyxx332211•1d ago•10 comments

Show HN: A billing ledger on Postgres, tested with randomized invariants

https://github.com/alt-f6/edtech-billing-core
2•Proph8•6h ago•0 comments

Show HN: UI micro interactions prompts for AI

https://www.typeui.sh/micro-interactions
78•elwingo1•23h ago•44 comments

Show HN: Dovepass – can I legally fly a drone along this exact path in SF?

https://dovepass.com
32•nimitmehra•3d ago•8 comments

Show HN: SimCity, but with Permits

https://permit.petercai.com/
935•pcai•2d ago•421 comments

Show HN: Cryptex Vault – A password manager designed to outlive its creator

https://www.cryptex-vault.com/
3•Bl4cksmith•8h ago•4 comments

Show HN: KronLSTM Walkthrough

https://kron-lstm.vercel.app/
3•aithena•8h ago•0 comments

Show HN: Replacing CAPTCHAs with adaptive proof-of-work in WordPress

https://wordpress.org/plugins/gdpr-compliant-recaptcha-for-all-forms/
14•MatthiasNordwig•1d ago•9 comments

Show HN: Build a world on your phone, explore it in XR on Vision Pro and Quest

https://3d.camilleworld.com/play/
13•suejunghuh0•23h ago•9 comments

Show HN: Sumi.css – CSS Framework

https://github.com/vladocar/Sumi.css
99•bepero•2d ago•27 comments

Show HN: CATT 0.2.1: Test agents/services against a Muse/Instinct-alike, in CI

https://github.com/Coverage-Cat/consumer-agent-testing-tool
7•botacode•20h ago•2 comments

Show HN: Pristine – an agent skill that critiques and polishes web UI

https://github.com/maddhruv/pristine
2•maddhruvhn•14h ago•1 comments

Show HN: A wysiwyg Markdown editor for macOS that works with agents

https://kirahowe.com/2026/oct/22/editmd-0-1-0
3•kmclean•15h ago•3 comments

Show HN: Death Plan Switch, a self-hosted dead man's switch for solo devs

https://deathplanswitch.com/
110•romeo19361•3d ago•66 comments