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

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

mousomashakel•10mo 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: FluidCAD – Parametric CAD with JavaScript

https://fluidcad.io/
68•maouida•2h ago•14 comments

Show HN: Eve – Managed OpenClaw for work

https://eve.new/login
7•zachdive•3h ago•0 comments

Show HN: A WYSIWYG word processor in Python

https://codeberg.org/chrisecker/miniword
32•chrisecker•2h ago•16 comments

Show HN: I built a site that shows every world event you lived through

https://youdidntnotice.com/
5•lip404•1h ago•3 comments

Show HN: Marimo pair – Reactive Python notebooks as environments for agents

https://github.com/marimo-team/marimo-pair
114•manzt•3d ago•29 comments

Show HN: Keeper – embedded secret store for Go (help me break it)

https://github.com/agberohq/keeper
56•babawere•12h ago•32 comments

Show HN: I run AI background removal in the browser–no upload,no server

https://www.allplix.com/en/background-remover
5•shadoxise•3h ago•0 comments

Show HN: QVAC SDK, a universal JavaScript SDK for building local AI applications

28•qvac•1d ago•9 comments

Show HN: I built a Cargo-like build tool for C/C++

https://github.com/randerson112/craft
165•randerson_112•1d ago•156 comments

Show HN: Figma for Coding Agents

https://getdesign.md
7•omeraplak•6h ago•5 comments

Show HN: Dynamic Map of YouTube Channels

https://www.ytmap.xyz/
5•Bachal•4h ago•7 comments

Show HN: Unlegacy – document everything, from COBOL to AI generated code

https://www.unlegacy.ai/
3•Absonsonson•4h ago•0 comments

Show HN: CSS Studio. Design by hand, code by agent

https://cssstudio.ai
161•SirHound•1d ago•97 comments

Show HN: Druids – Build your own software factory

https://github.com/fulcrumresearch/druids
60•etherio•2d ago•13 comments

Show HN: Do All the Things

https://www.doallthethings.app/
6•brainbun•9h ago•5 comments

Show HN: Steadcast – Free Mac podcast player for learning, not background noise

https://steadcast.co
3•steadcast•8h ago•1 comments

Show HN: Rust based eBook library for Python, with MIT license

https://github.com/arc53/fast-ebook
30•larry-the-agent•23h ago•3 comments

Show HN: Moon simulator game, ray-casting

https://mooncraft2000.com
109•JKCalhoun•4d ago•25 comments

Show HN: Kaggle x Duolingo x Codecrafters

https://capalent.com
3•gen_specialist•7h ago•3 comments

Show HN: FeedSense – A private recommendation system built from your own sources

4•langtang1996•7h ago•1 comments

Show HN: Zeroclawed: Secure Agent Gateway

https://github.com/bglusman/zeroclawed
3•bglusman•7h ago•3 comments

Show HN: VigIA – A deterministic FSM in .NET 10 to stop LLM hallucinations

https://github.com/JordanCT/VigIA-Orchestrator
2•JordanCT•8h ago•0 comments

Show HN: Guruka.com – free guided mediations. No signup, private, works offline

https://guruka.com/
32•eummm•1d ago•13 comments

Show HN: Orange Juice – Small UX improvements that make HN easier to read

http://oj-hn.com/
141•latchkey•2d ago•157 comments

Show HN: Brutalist Concrete Laptop Stand (2024)

https://sam-burns.com/posts/concrete-laptop-stand/
784•sam-bee•3d ago•236 comments

Show HN: Is Hormuz open yet?

https://www.ishormuzopenyet.com/
475•anonfunction•1d ago•208 comments

Show HN: I pipe free sports streams into Jellyfin – no ads, just HLS

https://github.com/pcruz1905/hls-restream-proxy
114•pruz•2d ago•36 comments

Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes

https://github.com/meribold/btry
64•meribold•4d ago•19 comments

Show HN: 41 years sea surface temperature anomalies

https://ssta.willhelps.org
147•willmeyers•1d ago•71 comments

Show HN: Unicode Steganography

https://steganography.patrickvuscan.com
55•PatrickVuscan•3d ago•14 comments