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

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

mousomashakel•6mo 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: Local Privacy Firewall-blocks PII and secrets before ChatGPT sees them

https://github.com/privacyshield-ai/privacy-firewall
25•arnabkarsarkar•1d ago•4 comments

Show HN: oeis-tui – A TUI to search OEIS integer sequences in the terminal

https://github.com/hako/oeis-tui
11•wesleyhill•1w ago•0 comments

Show HN: Wirebrowser – A JavaScript debugger with breakpoint-driven heap search

https://github.com/fcavallarin/wirebrowser
47•fcavallarin•23h ago•10 comments

Show HN: Vibe code and generate full WordPress plugins

https://steem.dev/
2•fasthightimess•1h ago•0 comments

Show HN: Automated license plate reader coverage in the USA

https://alpranalysis.com
200•sodality2•20h ago•117 comments

Show HN: Lego QR Code Maker

https://brickqrcode.com
2•tm11zz•1h ago•0 comments

Show HN: Pfff – Turn daily frustrations into XP with witty AI responses

https://pfff.me
2•killersheep•2h ago•0 comments

Show HN: A 2-row, 16-key keyboard designed for smartphones

https://k-keyboard.com/Why-QWERTY-mini
70•QWERTYmini•20h ago•58 comments

Show HN: TreatyHopper – Pay Less Taxes

https://treatyhopper.com
2•realberkeaslan•3h ago•2 comments

Show HN: VoxCSS – A DOM based voxel engine

https://github.com/LayoutitStudio/voxcss
47•rofko•1w ago•5 comments

Show HN: Gemini Pro 3 imagines the HN front page 10 years from now

https://dosaygo-studio.github.io/hn-front-page-2035/news
3288•keepamovin•1d ago•940 comments

Show HN: 8B Parallel Coordinated Reasoning Model

https://github.com/stepfun-ai/PaCoRe
2•hzwer•5h ago•0 comments

Show HN: AlgoDrill – Interactive drills to stop forgetting LeetCode patterns

https://algodrill.io
173•henwfan•2d ago•105 comments

Show HN: I built a system for active note-taking in regular meetings like 1-1s

https://withdocket.com
171•davnicwil•2d ago•129 comments

Show HN: MCPShark – Traffic Inspector for Model Context Protocol

31•mywork-dev•20h ago•3 comments

Show HN: Fanfa – Interactive and animated Mermaid diagrams

https://fanfa.dev/
151•bairess•1w ago•33 comments

Show HN: I built an AI travel planner after wasting 6 hours on Reddit

https://voyaige.io
2•npunzi•4h ago•2 comments

Show HN: I launched a podcast to interview makers

https://happymaking.art/
10•sillysideprojs•18h ago•1 comments

Show HN: Fate, a new data framework for React and tRPC, inspired by Relay

https://github.com/nkzw-tech/fate
29•cpojer•1d ago•3 comments

Show HN: I added a print edition to my indie blog

https://www.contraption.co/introducing-the-print-edition/
4•philip1209•19h ago•5 comments

Show HN: Detail, a Bug Finder

https://detail.dev/
66•drob•1d ago•27 comments

Show HN: DuckDB for Kafka Stream Processing

https://sql-flow.com/docs/tutorials/intro/
75•dm03514•2d ago•13 comments

Show HN: Mizu – Zero-dependency web framework

https://github.com/go-mizu/mizu
2•tamnd•15h ago•0 comments

Show HN: Open-Source Excel AI Agent

https://github.com/SylvianAI/sv-excel-agent
3•williamshuang•15h ago•0 comments

Show HN: Bloodhound – Grey-box attack-path discovery in Rust/Go/C++ binaries

https://www.bloodhoundsecurity.ca
4•michaelafam1•1d ago•6 comments

Show HN: Lockenv – Simple encrypted secrets storage for Git

https://github.com/illarion/lockenv
103•shoemann•3d ago•34 comments

Show HN: Cargo-rail: graph-aware monorepo tooling for Rust; 11 deps

https://github.com/loadingalias/cargo-rail
3•LoadingALIAS•17h ago•1 comments

Show HN: ReadyKit – Superfast SaaS Starter with Multi-Tenant Workspaces

https://readykit.dev/
121•level09•1w ago•35 comments

Show HN: MimicKit – RL framework for humanoid motion imitation

https://github.com/xbpeng/MimicKit
3•xbpeng4•21h ago•0 comments

Show HN: I got tired of switching AI tools, so I built an IDE with 11 of them

https://hivetechs.io
19•hivetechs•1d ago•17 comments