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: Hacker Times, a New York Times-Inspired Version Hacker News

https://hackertimes.ca/
59•polpenn•1h ago•18 comments

Show HN: Subvocal – Talk to your computer without making noise

583•aarushyadav•10h ago•312 comments

Show HN: Warsaw in voxels – An interactive 3D map of the city centre

https://p.migdal.pl/warsaw-vibe-voxel/
222•stared•10h ago•36 comments

Show HN: I've updated my Linux System Call website and API

https://syscall.sh/
214•guitmz•17h ago•51 comments

Show HN: HackerBooks – HackerTube, but for books mentioned on HN

https://hackerbooks.org
1812•roansh•1d ago•300 comments

Show HN: PyWolf3D, a wolfenstein3D clone written from scratch in Python

https://github.com/atifcodesalot/pyWolf3D
17•BSPtree•11h ago•3 comments

Show HN: Hacker News, à la Lobsters

https://git-aarvin.github.io/hackers/
3•hn-aarvin•3h ago•1 comments

Show HN: I rebuilt my old canvas 3D library as a small WebGL 2 library – phoria2

https://kevs3d.co.uk/phoria2/
101•kevs3d•2d ago•29 comments

Show HN: OmniDiff – Opensource, super fast, content aware Git difftool, in Rust

https://github.com/ivankovic/omnidiff
311•FabCH•1d ago•94 comments

Show HN: Arvre – A TUI for Claude Code sessions' forks

https://github.com/victorcarrico/arvre
4•vcarrico•7h ago•0 comments

Show HN: Point your camera at a landscape to learn about its geology

https://outcrop.rocks/
256•headsupernova•4d ago•54 comments

Show HN: ClickBench inspired leaderboard for multiple database benchmarks

https://benchmark.pivotlake.io/
3•thinkredstone•12h ago•0 comments

Show HN: Noctty – A fast, native terminal for Windows

https://github.com/amanthanvi/noctty
3•amanthanvi•8h ago•1 comments

Show HN: HackerTube for Apple TV. Videos HN Recommends, on Your TV

8•jnaina•16h ago•4 comments

Show HN: Jenesis, Java builds 18% faster, rebuilds up to 88% faster

https://jenesis.build/why/tool/
5•raphw•9h ago•0 comments

Show HN: Is Software Solved?

https://issoftwaresolved.com/
11•krasun•14h ago•0 comments

Show HN: Modern CSS Quiz

https://modern-css.com/quiz/
5•symbolhunter•10h ago•0 comments

Show HN: My Mac wouldn't switch to my USB-C earbuds, so I made an app that does

https://github.com/ishanray/AudioAutoSwitch
3•ishanr•10h ago•0 comments

Show HN: A language model that lives in a boot sector

https://github.com/kerlenton/bootgpt
105•kerlenton•2d ago•6 comments

Show HN: Wrapped – your neighborhood's year in complaints

https://311wrapped.com/
2•eltokh7•10h ago•2 comments

Show HN: The DNA of DOOM – How code structure survives across 44 ports

https://squid-protocol.github.io/gitgalaxy/museum-of-code/doom-dna/
4•joe-esquibel•10h ago•3 comments

Show HN: 3D pixel-art basketball game – no deps, no build step

https://vladsez.github.io/iso-hoops/
3•vldszn•11h ago•5 comments

Show HN: BBRouter – Ben Eater's 8-bit computer, simulated on 3D breadboards

https://bbrouter.com/bbrouter/ben-eater-sap-1
57•creack•2d ago•14 comments

Show HN: Deedglass – An agent said it updated 1 row; Postgres changed 301

https://github.com/deedglass/deedglass
4•ajuxarjun•12h ago•0 comments

Show HN: A SQL parser and type checker written in TypeScript types

https://github.com/ismailkarsli/TypeSQL
3•ismailkarsli•12h ago•1 comments

Show HN: Vaire, Self-Hosting Postgres Through the One Glorious CLI

https://github.com/mbvlabs/vaire
2•mbvisti•12h ago•0 comments

Show HN: Blorgle – a word game with a community-driven word bank

https://blorgle.com/daily
2•theblorgler•12h ago•0 comments

Show HN: AgentTrafficCop – Stop AI agents from looping and burning money

https://agenttrafficcop.com
4•bshafiq•12h ago•0 comments

Show HN: A2Flow – A workflow engine built around "Agent as Workflow"

https://kaitoy.github.io/a2flow/
2•kaitoy•12h ago•0 comments

Show HN: NetIntel – Deterministic Operational Intelliegence for Linux

https://ni.gnsoftlab.com/releases/1.0.0/
2•s_gnsoftlab•12h ago•0 comments