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•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
Polars and duckdb interoperate nicely and can enable this flexibility
theanonymousone•8mo ago
Does Polars have a Java library?
mousomashakel•8mo 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•8mo 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•8mo 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•8mo ago
What about Tablesaw, Apache Arrow? How does this compare ...
mousomashakel•8mo 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•8mo ago
Nice!

I’m currently using manifold-sql with duckdb for this.

mousomashakel•8mo 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: 1Code – Open-source Cursor-like UI for Claude Code

https://github.com/21st-dev/1code
31•Bunas•1d ago•19 comments

Show HN: mdto.page – Turn Markdown into a shareable webpage instantly

https://mdto.page
35•hjinco•8h ago•24 comments

Show HN: Contribute to GitHub Anonymously

https://github.com/livrasand/gitGost
3•livrasand•1h ago•4 comments

Show HN: pgwire-replication - pure rust client for Postgres CDC

https://github.com/vnvo/pgwire-replication
37•sacs0ni•5d ago•6 comments

Show HN: Routing with OSM, PgRouting and MapLibre

https://github.com/bytefish/PgRoutingExperiments
3•bytefish•1h ago•0 comments

Show HN: OpenWork – An open-source alternative to Claude Cowork

https://github.com/different-ai/openwork
215•ben_talent•2d ago•53 comments

Show HN: Hc: an agentless, multi-tenant shell history sink

https://github.com/alessandrocarminati/hc
34•acarminati•12h ago•2 comments

Show HN: CC TV remote plugin, pauses your binge-watching when Claude goes idle

https://github.com/HermannBjorgvin/claude-plugins/tree/main/tv-pauser
3•hermannbjorgvin•2h ago•1 comments

Show HN: Web PWA unifying translate/FSRS Anki/conjugations

https://lekalearning.com/
9•watduyuwan•2h ago•0 comments

Show HN: I built a text-based business simulator to replace video courses

https://www.core-mba.pro/
84•Core_Dev•19h ago•38 comments

Show HN: Fluent, a tiny lang for differentiable tensors and reactive programming

https://github.com/mlajtos/fluent
3•mlajtos•3h ago•0 comments

Show HN: BGP Scout – BGP Network Browser

https://bgpscout.io/
24•hivedc•20h ago•11 comments

Show HN: TinyCity – A tiny city SIM for MicroPython (Thumby micro console)

https://github.com/chrisdiana/TinyCity
136•inflam52•1d ago•24 comments

Show HN: Gambit, an open-source agent harness for building reliable AI agents

https://github.com/bolt-foundry/gambit
86•randall•20h ago•16 comments

Show HN: Reversing YouTube’s “Most Replayed” Graph

https://priyavr.at/blog/reversing-most-replayed/
75•prvt•18h ago•21 comments

Show HN: Flag AI Slop in PRs

https://haystackeditor.com/slop-detector
5•yatvij•2h ago•0 comments

Show HN: Claude Code plugin for ecommerce development

https://github.com/medusajs/medusa-claude-plugins/tree/main/plugins/medusa-dev
4•sebrindom•4h ago•0 comments

Show HN: Tabstack – Browser infrastructure for AI agents (by Mozilla)

121•MrTravisB•2d ago•22 comments

Show HN: SkillRisk – Free security analyzer for AI agent skills

https://skillrisk.org/free-check
2•elevenapril•4h ago•6 comments

Show HN: Sparrow-1 – Audio-native model for human-level turn-taking without ASR

https://www.tavus.io/post/sparrow-1-human-level-conversational-timing-in-real-time-voice
120•code_brian•2d ago•47 comments

Show HN: Webctl – Browser automation for agents based on CLI instead of MCP

https://github.com/cosinusalpha/webctl
131•cosinusalpha•2d ago•36 comments

Show HN: Claude Quest – Pixel-art visualization for Claude Code sessions

https://github.com/Michaelliv/claude-quest
5•miclivs•5h ago•1 comments

Show HN: pubz: easy, conventional NPM publishing

https://github.com/mm-zacharydavison/pubz
3•billybat•6h ago•0 comments

Show HN: The Hessian of tall-skinny networks is easy to invert

https://github.com/a-rahimi/hessian
28•rahimiali•1d ago•23 comments

Show HN: Tusk Drift – Turn production traffic into API tests

https://github.com/Use-Tusk/tusk-drift-cli
22•jy-tan•1d ago•1 comments

Show HN: Timberlogs – Drop-in structured logging for TypeScript

11•enaboapps•3d ago•6 comments

Show HN: Tiny FOSS Compass and Navigation App (<2MB)

https://github.com/CompassMB/MBCompass
133•nativeforks•2d ago•46 comments

Show HN: Free AI Image Upscaler (100% local, private, and free)

https://freeaitoolforthat.com/ai-image-upscaler
5•tamnv•10h ago•5 comments

Show HN: HyTags – HTML as a Programming Language

https://hytags.org
68•lassejansen•3d ago•33 comments

Show HN: A cross-platform toolkit to explore OS internals and capabilities

6•DenisDolya•4d ago•2 comments