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: ExitPath – Open-source ways out of Slack, Notion and Microsoft 365

https://exitpath-ruddy.vercel.app/
121•zerocool0101•6h ago•33 comments

Show HN: Take Voyager 1 apart, down to a single memory chip

https://rshekhar.com/voyager/
120•raj-shekhar•6h ago•25 comments

Show HN: Mastra Factory, the open-source software factory we use to build Mastra

72•codekarate•5h ago•21 comments

Show HN: Type Fighter 2

https://typefighter2.com/
121•torumitch•11h ago•54 comments

Show HN: Robotics needs better CAD, so I wrote a B-rep kernel and 3,487 tests

https://springcraft-ai.github.io/springrep/
4•atomarch•1h ago•0 comments

Show HN: Nobody blocks a keyboard – Rooted Android as a physical USB Deck

https://github.com/mr-anjaneyam/Emittr
47•mr-anjaneyam•2d ago•41 comments

Show HN: PocketOps for SigNoz: The Open Source Datadog Alternative

https://github.com/avens19/pocketops
3•avens19•2h ago•0 comments

Show HN: Poptato – App launcher, command runner, and fuzzy menu for Linux

https://github.com/skorotkiewicz/poptato
5•modinfo•3h ago•1 comments

Show HN: Beat – a to-do list that completes its own tasks

https://gobeat.ai/auth/login
6•brdo•2h ago•1 comments

Show HN: BPM – Baby Plus Music Visualizer

https://hberg.com/bpm/
9•hberg•4h ago•5 comments

Show HN: Fazor – offline electrical calculators for Android (IEC and NEC)

https://kalkansoftware.com/fazor/
2•sabahattink•1h ago•0 comments

Show HN: Indexing Doctor – free checker for why Google isn't indexing a page

https://indexingdoctor.com/
3•alescalaios•1h ago•0 comments

Show HN: Fun with bicycle trainers and web APIs

https://joelriley.com/fun-with-trainers
6•okayestjoel•3h ago•3 comments

Show HN: RailCall – Local-first agent runtime with approvals and signed receipts

https://railcall.ai/
2•nickyocean•2h ago•2 comments

Show HN: Herdr mod that makes managing agents like playing Runescape

https://github.com/davidvgilmore/RuneSpace
3•davidvgilmore•2h ago•0 comments

Show HN: I made my own Voyager Golden Record

https://yashmouje.com/record
3•yashmouje•3h ago•2 comments

Show HN: Alloy CSS, dialogs, menus and tabs that work with JavaScript off

https://alloyhtml.com/example.html
207•prafandy•1d ago•37 comments

Show HN: Unref – A Python dead code finder built on Ruff's parser

https://github.com/Apakottur/unref
58•McAvey•2d ago•17 comments

Show HN: Sci-Fi Futures – Reverse-engineering tech from classic sci-fi novels

https://scififutures.vercel.app
2•ninajlu•3h ago•3 comments

Show HN: Escape Rooms for Lateral Thinkers

https://enigma-game.specr.net/
3•vunderba•3h ago•0 comments

Show HN: A deterministic typesetting tool for Orthodox Music

https://orthosetter.com/
5•rpmisms•3h ago•2 comments

Show HN: Math 2.0

https://math2.tamnd.com/areas/
16•tamnd•13h ago•3 comments

Show HN: Waku.One is a shared memory and a board for your team's AI agents

https://www.waku.one/
2•ShenSeanChen•4h ago•0 comments

Show HN: TrnRT – An open-source LLM inference engine for AWS Trainium

https://github.com/RunanywhereAI/trnrt
54•sanchitmonga22•1d ago•7 comments

Show HN: Spooky Particles, sends failed Vercel deploys to your coding agent

https://spookyparticles.com
2•n8peace•4h ago•1 comments

Show HN: Reprise, a read-later app with narration on the neural engine for iOS

https://reprise.page
5•jeffd•5h ago•0 comments

Show HN: Klistra – A complete studio for spec-driven AI motion design and video

https://klistra.ai/
2•pvarghav•5h ago•0 comments

Show HN: Maplibre-gl-pie-charts – WebGL pie charts for MapLibre and Mapbox

https://github.com/zwang-geog/maplibre-gl-pie-charts
2•zifanw9•5h ago•0 comments

Show HN: Cloudish – Cloud for agents to deploy containers themselves

https://www.cloudish.ai/
4•javierluraschi•5h ago•2 comments

Show HN: TypingCompiler – Practice typing with real code snippets

https://www.typingcompiler.com/test?title=Rust%3A%20Custom%20Fibonacci%20Iterator
2•girouetten21•5h ago•0 comments