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•12mo 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•12mo 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•12mo 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•12mo 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: A modern Music Player Daemon based on Rockbox firmware

https://github.com/tsirysndr/rockbox-zig
57•tsiry•2d ago•7 comments

Show HN: TikTok but for scientific papers

https://andreaturchet.github.io/website/index.html
95•ciwrl•14h ago•49 comments

Show HN: OpenGravity – A zero-install, BYOK vanilla JS clone of Antigravity

https://github.com/ab-613/opengravity
74•ab613•10h ago•23 comments

Show HN: Doomscroll the Goverment's UFO Files as One Gigantic Microfilm

https://hypergrid.systems/war.gov-ufo-viewer/microfilm2?page=2
4•keepamovin•1h ago•2 comments

Show HN: E2a – Open-source email gateway for AI agents

https://github.com/Mnexa-AI/e2a
34•mnexa•9h ago•3 comments

Show HN: Safe-install – safer NPM installs with trusted build dependencies

https://www.npmjs.com/package/@gkiely/safe-install
12•gkiely•5h ago•2 comments

Show HN: adamsreview – better multi-agent PR reviews for Claude Code

https://github.com/adamjgmiller/adamsreview
78•adamthegoalie•1d ago•46 comments

Show HN: An index of indie web/blog indexes

https://theindex.fyi
137•rocketpastsix•1d ago•39 comments

Show HN: NodeDB – High Perfomance Multi-Model Database

https://github.com/nodedb-lab/nodedb
3•fs90•7h ago•1 comments

Show HN: I made a Clojure-like language in Go, boots in 7ms

https://github.com/nooga/let-go
267•marcingas•2d ago•82 comments

Show HN: Countries where you can leave your MacBook at a random coffee shop

https://vouchatlas.com
69•canergl•2d ago•83 comments

Show HN: Rust but Lisp

https://github.com/ThatXliner/rust-but-lisp
202•thatxliner•2d ago•71 comments

Show HN: Building a web server in assembly to give my life (a lack of) meaning

https://github.com/imtomt/ymawky
418•imtomt•2d ago•223 comments

Show HN: It's like Fiverr but for AI agents – Platform and Open-source kit

https://streetai.org/docs/truuze.html
5•degutemesgen•9h ago•1 comments

Show HN: n8n like workflows for AI agents that control a real VM

https://github.com/aadya940/orbit-ui
5•aadyachinubhai•9h ago•1 comments

Show HN: I've implemented multi-repo workspace support in Agent of Empires

https://github.com/njbrake/agent-of-empires
5•seluj78•9h ago•0 comments

Show HN: A geocities inspired place for your vibed tools

https://www.tinytooltown.com/
5•shanselman•10h ago•0 comments

Show HN: Rapunzel – a tree-style tab terminal emulator for Codex Claude Gemini

https://github.com/salmanjavaid/rapunzel/tree/main
3•WasimBhai•11h ago•0 comments

Show HN: SyncBank – Self-hosted bank sync for EU banks

https://syncbank.app/
4•samdsgn•12h ago•0 comments

Show HN: Mimik – open-source local-first alternative to Scribe and Tango

https://github.com/westpoint-io/mimik
3•max-roma•12h ago•0 comments

Show HN: TRUST – Coding Rust like it's 1989

https://github.com/wojtczyk/trust
166•wojtczyk•5d ago•87 comments

Show HN: SLayer, a semantic layer maintained by your agent

https://github.com/MotleyAI/slayer
11•yannranchere•15h ago•3 comments

Show HN: Mochi.js: bun-native high-fidelity browser automation library

https://mochijs.com/
46•ccheshirecat•2d ago•19 comments

Show HN: I built Tokenyst to stop getting shocked by Claude Code API bills

https://github.com/jher7/tokenyst
8•herrj•16h ago•0 comments

Show HN: All 55,256 Slides of the WAR.GOV/UFO Files Searchable and Linkable

https://hypergrid.systems/war.gov-ufo-viewer/?item=095-dow-uap-pr38-unresolved-uap-report-middle-...
14•keepamovin•1d ago•2 comments

Show HN: Learn2Burp – Surgery-free solution for R-CPD

https://learn2burp.com
2•mmanthey•17h ago•0 comments

Show HN: Git for AI Agents

https://github.com/regent-vcs/re_gent
121•doshay•3d ago•67 comments

Show HN: Veles – Hybrid (BM25 and semantic) local code search MCP, in Rust

https://github.com/julymetodiev/Veles
3•juliusml•18h ago•0 comments

Show HN: Airbyte Agents – context for agents across multiple data sources

152•mtricot•6d ago•47 comments

Show HN: Tilde.run – Agent sandbox with a transactional, versioned filesystem

https://tilde.run/
202•ozkatz•5d ago•133 comments