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

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

mousomashakel•7mo 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: GeneGuessr – a daily biology web puzzle

https://geneguessr.brinedew.bio/
23•brinedew•2d ago•7 comments

Show HN: Gaming Couch – a local multiplayer party game platform for 8 players

https://gamingcouch.com
159•ChaosOp•4d ago•29 comments

Show HN: Coderive – Iterating through 1 Quintillion Inside a Loop in just 50ms

https://github.com/DanexCodr/Coderive
3•DanexCodr•4d ago•0 comments

Show HN: Lamp Carousel – DIY kinetic sculpture powered by lamp heat (2024)

https://evan.widloski.com/posts/spinners/
77•Evidlo•1d ago•13 comments

Show HN: AI Accel,Tension-based pruning framework(40% sparsity, 1.5-2x speedups)

https://github.com/wwes4/AI_Accel_1.5x
2•wwes369•2h ago•0 comments

Show HN: A Claude Code plugin that catch destructive Git and filesystem commands

https://github.com/kenryu42/claude-code-safety-net
3•kenryu•5h ago•0 comments

Show HN: Minimalist editor that lives in browser, stores everything in the URL

https://github.com/antonmedv/textarea
443•medv•1d ago•162 comments

Show HN: Exploring Mathematics with Python

https://coe.psu.ac.th/ad/explore/
248•Andrew2565•6d ago•27 comments

Show HN: Vibium – Browser automation for AI and humans, by Selenium's creator

https://github.com/VibiumDev/vibium
422•hugs•1d ago•116 comments

Show HN: I embedded 10M StreetView images

https://view.geospot.sdan.io/
7•sdan•11h ago•2 comments

Show HN: I treated my brain like a buggy server and wrote a patch (Shi-Mo Model)

https://github.com/317317317apple-a11y/shi-mo-protocol/blob/main/README.md
8•ShiMo_Protocol•15h ago•1 comments

Show HN: Why many AI-generated websites don't show up on Google

https://pagesmith.ai/seo-for-ai-generated-sites
7•manu_trustdom•16h ago•3 comments

Show HN: I built an OCI container runtime in Python(for fun)

https://github.com/Kaleab-Ayenew/puncker-rt
5•kalishayish•13h ago•0 comments

Show HN: Frame an web synth for desktop or mobile with hand gesture support

https://oyehoy.net/
2•markrai•9h ago•0 comments

Show HN: Kill List–A local-first PWA where tasks deletes if not done by midnight

https://killlist-production.up.railway.app
2•msldiarra•9h ago•4 comments

Show HN: CineCLI – Browse and torrent movies directly from your terminal

https://github.com/eyeblech/cinecli
339•samsep10l•3d ago•106 comments

Show HN: Typed-Prompts – Type-Safe Prompt Engineering

https://github.com/f/awesome-chatgpt-prompts/tree/main/packages/prompts.chat
2•fka•10h ago•3 comments

Show HN: FIDO2 PRF with TPM and Fingerprint Auth for Confer on Linux

https://vitorpy.com/blog/2025-12-25-confer-to-linux-tpm-fido2-prf/
2•vpb•10h ago•0 comments

Show HN: Turn raw HTML into production-ready images for free

https://html2png.dev
147•alvinunreal•2d ago•80 comments

Show HN: A local-first, reversible PII scrubber for AI workflows

https://medium.com/@tj.ruesch/a-local-first-reversible-pii-scrubber-for-ai-workflows-using-onnx-a...
36•tjruesch•1d ago•11 comments

Show HN: OmniWM a macOS tiling window manager Niri inspired

https://github.com/BarutSRB/OmniWM
5•Barut1•10h ago•1 comments

Show HN: WebPtoPNG – I built a WebP to PNG tool, everything runs in the browser

https://webptopng.cc/
20•akseli_ukkonen•1d ago•19 comments

Show HN: ReadHn - Reading list for top HN posts

https://www.readhn.top/
10•taabishm2•23h ago•0 comments

Show HN: Jmail – Google Suite for Epstein files

https://www.jmail.world
1547•lukeigel•5d ago•359 comments

Show HN: Pivor, Open source self-hosted CRM

https://github.com/Lexaro-Software/pivor
5•acaronlex•13h ago•2 comments

Show HN: I Updated My 2D Ant Game for the Holidays

https://github.com/aanthonymax/ant-and-apples
3•aanthonymax•13h ago•0 comments

Show HN: Microsoft Agent Viewer

https://acs-viewer.pages.dev/
8•ellg•1d ago•0 comments

Show HN: Kapso – WhatsApp for developers

https://kapso.ai/
42•aamatte•2d ago•21 comments

Show HN: ssh tiny.christmas

11•eieio•19h ago•4 comments

Show HN: CLI to share secrets using one-time public keys

https://github.com/scosman/secret_share
3•scosman•14h ago•0 comments