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: NFC Energy-Harvesting PCB Business Card with an MCU

https://wilsonharper.net/projects/businesscard/
165•WilsonHarper•2d ago•17 comments

Show HN: I missed the moving blocks, so I built a real Linux disk defragmenter

https://github.com/gbin/defragger
93•gbin•5d ago•67 comments

Show HN: Card Shop Directory – Find trading card shops by state, city, and game

https://cardshopdir.com
2•laimingj•5h ago•0 comments

Show HN: I asked LLMs to choose between popular developer tools

https://github.com/betocmn/preseason
3•thedreammachine•5h ago•0 comments

Show HN: ScoutLayer – a simple API to find contacts from a domain

https://scoutlayer.io
4•yuangwya•6h ago•1 comments

Show HN: Typebase – A single-folder back end you write in TypeScript

https://typebase.io
117•andrewww-dev•4d ago•30 comments

Show HN: Break 5, the addictive, free 5 minute, daily word game

https://break5.co.uk/
3•dwgebler•8h ago•0 comments

Show HN: Galaxium, an experimental WebGPU space explorer

https://galaxium.app
133•guillaumec•6d ago•39 comments

Show HN: What Apple's OS updates silently change in the on-device AI model

https://umer9538.github.io/underfoot/
2•Umer2521•8h ago•0 comments

Show HN: Hillock: Local neuro-symbolic memory engine in <1.2GB VRAM

https://github.com/roandejager/Hillock
10•roandejager5•14h ago•2 comments

Show HN: SubSmith – Turn your own videos into language-learning material

https://subsmith.app
75•IbrahimF96•2d ago•51 comments

Show HN: The load-bearing vocabulary of Claude

https://louisabraham.github.io/load-bearing/
694•Labo333•3d ago•326 comments

Show HN: Drop a SQL schema, get an interactive ER diagram

https://mcdview.dev/
14•PatuDev•21h ago•5 comments

Show HN: Bolnee-Chat – Self Hosted Chatbot Integration in Your Business Website

https://github.com/AniketWathore/bolnee-chat
32•AniketWathore•22h ago•0 comments

Show HN: Cogram Studio – CAD and BIM workspace for humans and agents

https://studio.cogram.com/
6•alexvboe•13h ago•0 comments

Show HN: Sesame - a local-first, open-source password manager

https://usesesame.app/
65•d0mkaaa•2d ago•85 comments

Show HN: C# Game Engine with its own scripting language and IDE

https://github.com/ArcadeMakerSources/ArcadeMaker/tree/master
11•am-gm•20h ago•0 comments

Show HN: My startup-idea scanner scored 500 ideas; the best got 6.3/10

https://1mil.app/
7•fayerman•20h ago•4 comments

Show HN: OpenTIE and OpenXWA, Modern Ports of Tie Fighter and X-Wing Alliance

https://github.com/elyosh/OpenTIE/
227•elyosh•3d ago•58 comments

Show HN: CardGo – Reusable, end-to-end encrypted context cards for AI chats

https://cardgo.ai
3•trinhngocdieu•16h ago•0 comments

Show HN: BentoPDF, Hyper Compress and Kura

https://www.bentopdf.com
3•__alam__•16h ago•0 comments

Show HN: Snaketron – Competitive multiplayer Snake. Back after 14 years

https://snaketron.io
5•lopatin•17h ago•1 comments

Show HN: Delete yourself from data brokers without a subscription

https://github.com/k7cfo/remove-your-data
22•k7peak•1d ago•6 comments

Show HN: Murmell – Collaborative cloud canvas for coding agents

https://murmell.com/
8•Mossab22•17h ago•2 comments

Show HN: Cushion – PouchDB on Deno KV

https://jsr.io/@mikehall314/cushion
7•mikehall314•17h ago•1 comments

Show HN: Watches user sessions, finds bugs that matter, and fixes them

https://github.com/opslane/opslane
40•aray07•3d ago•11 comments

Show HN: Build your own theme park

https://www.magicpatterns.com/theme-park
57•thealexanderlee•4d ago•25 comments

Show HN: We built open OpenRouter that turns usage into a better model

https://github.com/experientiallabs/experiential
220•SilenN•3d ago•46 comments

Show HN: Flint – A minimal C/C++ package manager and build tool written in C

https://github.com/mainak55512/flint
12•mbhatt99•1d ago•2 comments

Show HN: Self-hosted mobile-friendly web UI for Herdr agents

https://github.com/luiscleto/shepherdr
6•lfcc•20h ago•0 comments