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: Nightcrawler – A local AI pentesting agent running on a smartphone

https://github.com/garagehq/nightcrawler/
46•NickySlicks•3h ago•16 comments

Show HN: Isopolis – Isometric pixel map of SF

https://sf.isopolis.city/
277•nuwandavek•13h ago•61 comments

Show HN: We Fixed UniFi's Slow PPPoE Performance with PPPoE Half-Bridge

https://arcbox.dev/blog/unifi-pppoe-half-bridge-acceleration
42•uneven9434•5h ago•14 comments

Show HN: ssh ssh.place

https://ssh.place
150•jeninh•13h ago•85 comments

Show HN: Kakehashi – Experimental userspace to run macOS binaries on Linux ARM

https://github.com/wie-project/kakehashi
237•vlad_kalinkin•21h ago•60 comments

Show HN: A Handwritten Blogging Platform

https://handwritten.blog/
152•emilesilvis•3d ago•71 comments

Show HN: Runthru – open-source Interactive Demos

https://github.com/marktolson/runthru
5•marktolson•1h ago•0 comments

Show HN: NixOS-DGX-Spark – Nix and NixOS on the DGX Spark

https://github.com/graham33/nixos-dgx-spark
118•graham33•21h ago•38 comments

Show HN: Make your Framework 12 sound like a creaky door

https://github.com/ArcaEge/creakwork12
88•arcaege•17h ago•17 comments

Show HN: Bor – Open-source policy management for Linux desktops

https://getbor.dev/blog/2026-08-02-bor-v080-release/
180•eniac111•1d ago•26 comments

Show HN: Fuse – statically typed functional programming language

https://fuselang.org
113•the_unproven•1d ago•40 comments

Show HN: Shitty – fast terminal. Memory-unsafe and faster than yours

https://github.com/pg83/shitty
153•pshirshov•15h ago•135 comments

Show HN: A MicroVM Launcher for BSD and Linux Guests on macOS/Linux (libkrun)

https://github.com/tsirysndr/bsdkrun
2•tsiry•4h ago•0 comments

Show HN: New Parts for Old Computers

https://newold.computer/
8•joshu•9h ago•0 comments

Show HN: The best-paid AI/tech job anyone advertises pays $824k, not $100M

https://ctaio.dev/en/jobs/
4•norejisace•4h ago•1 comments

Show HN: Kuvu AI – Your All-in-One AI Creative Studio and Marketing Studio

https://kuvu.ai/
2•longyuanpro•4h ago•0 comments

Show HN: TermBoard – A TUI dashboard for Python projects

https://github.com/HeyShinde/TermBoard
2•heyshinde•4h ago•0 comments

Show HN: Elevators

https://john.fun/elevators
1643•Jrh0203•2d ago•401 comments

Show HN: SaaS payment integration in ~10 lines of code

https://github.com/paycan-app/paycan
5•mehraban•5h ago•3 comments

Show HN: Mu – Tools for Agents

https://github.com/micro/mu
50•asim•16h ago•22 comments

Show HN: Hacker News CLI

https://github.com/ViktorRingnes/hackernews
2•viktorringnes•5h ago•0 comments

Show HN: Do Codex skills save tokens? A six-run task-size benchmark

https://codex-howto-benchmark.nguyenvantamdk2.chatgpt.site
5•phelannguyen164•10h ago•1 comments

Show HN: I'm a 15 Year Old Wannabe Engineer, This Is a Cycloidal Gearbox I Built

https://github.com/tom-ilan/cycloidal_gearbox
325•tomilan•1d ago•110 comments

Show HN: Daily Math Puzzle

https://dozenal.game
4•sarreph•6h ago•2 comments

Show HN: Eight: a symbolic, indentation-based programming language

https://git.disroot.org/EightLang/Eight/src/branch/alpha
2•Vextoly•6h ago•1 comments

Show HN: Syncular – offline-first SQL sync with TypeScript and Rust cores

https://github.com/syncular/syncular
75•quambo•1d ago•27 comments

Show HN: ssh paint.dn.ht

2•dhotson•6h ago•0 comments

Show HN: An AI wrote and illustrated a book of fables about threads and packets

https://booyaka101.github.io/thedailyfable/day07/
6•Booyaka101•10h ago•2 comments

Show HN: MicroCodex Coding Agent – OpenAI/codex reimplemented in C++ <1MB binary

https://github.com/paoloanzn/microcodex
19•paoloanzn•18h ago•16 comments

Show HN: Katharos Functional programming and CSP-style concurrency for Python

https://github.com/kamalfarahani/katharos
36•kamalf•1d ago•8 comments