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: FinLang – A deterministic, auditable rules engine for finance (AGPL)

https://github.com/FinLang-Ltd/finlang
2•angus_finlang•1h ago•1 comments

Show HN: Open-source Agent in Rust that can't delete your database

https://github.com/stakpak/agent
5•kajogo•1h ago•0 comments

Show HN: ResendForward – OS server and UI for use with Resend.com inbound

https://github.com/lsherman98/resendforward
2•lsherman98•2h ago•0 comments

Show HN: Unflip – a puzzle game about XOR patterns of squares

https://unflipgame.com/
163•bogdanoff_2•5d ago•44 comments

Show HN: Minivac 601 Simulator - a 1961 Relay Computer

https://minivac.greg.technology/
8•gregsadetsky•6h ago•0 comments

Show HN: Whirligig.live

https://whirligig.live
4•idiocache•5h ago•0 comments

Show HN: Real-time 4D Julia set navigation via gamepad

https://banditcat.github.io/Atlas/Atlas.html
16•BanditCat•4d ago•0 comments

Show HN: Multi-agent AI stock analyzer – 408% return trading Korean market

4•prism_insight•6h ago•0 comments

Show HN: Tiny Diffusion – A character-level text diffusion model from scratch

https://github.com/nathan-barry/tiny-diffusion
165•nathan-barry•6d ago•19 comments

Show HN: Unrestricted Windows automation MCP with 9.68x GPU amplification

https://github.com/For-Sunny/nova-mcp-research
5•Opus_Warrior•9h ago•0 comments

Show HN: High-Performance .NET Bindings for the Vello Sparse Strips CPU Renderer

https://github.com/wieslawsoltes/SparseStrips
17•wiso•5d ago•6 comments

Show HN: Listiary – A FOSS wiki engine built on nested, interactive lists

https://github.com/listiary/Listiary
3•demon_of_reason•11h ago•0 comments

Show HN: Encore – Type-safe back end framework that generates infra from code

https://github.com/encoredev/encore
75•andout_•2d ago•47 comments

Show HN: DBOS Java – Postgres-Backed Durable Workflows

https://github.com/dbos-inc/dbos-transact-java
111•KraftyOne•3d ago•57 comments

Show HN: ChronoGuard–Zero-trust proxy for browser automation with temporal ctrls

https://github.com/j-raghavan/ChronoGuard
2•j-raghavan•15h ago•0 comments

Show HN: Epstein Files Organized and Searchable

https://searchepsteinfiles.com/
317•searchepstein•2d ago•54 comments

Show HN: Smooth window arrangement in macOS restored

https://github.com/ranvel/SmoothMove
2•ranvel•17h ago•0 comments

Show HN: ZenPaint, a pixel-perfect MacPaint recreation for the browser

https://zenpaint.org/
16•allthreespies•1d ago•5 comments

Show HN: Chirp – Local Windows dictation with ParakeetV3 no executable required

https://github.com/Whamp/chirp
32•whamp•2d ago•18 comments

Show HN: Cj–tiny no-deps JIT in C for x86-64 and ARM64

https://github.com/hellerve-pl-experiments/cj
21•hellerve•1w ago•1 comments

Show HN: Keepr – A Secure and Offline Open Source CLI Password Manager

13•bsamarji•2d ago•14 comments

Show HN: An easy-to-use online curve fitting tool

https://byx2000.github.io/curve-fit/
35•byx•1w ago•13 comments

Show HN: SelenAI – Terminal AI pair-programmer with sandboxed Lua tools

https://github.com/Almclean/selenai
4•moridin•22h ago•0 comments

Show HN: UnisonDB – B+Tree DB with sub-second replication to 100+ nodes

https://github.com/ankur-anand/unisondb
14•ankuranand•1d ago•1 comments

Show HN: RAG-chunk – A CLI to test RAG chunking strategies

https://github.com/messkan/rag-chunk
7•messkan•1d ago•3 comments

Show HN: A game where you invest into startups from history

https://startupgambit.com
3•vire00•1d ago•0 comments

Show HN: Pdsink – A new USB-PD 3.2 sink stack for embedded devices

https://github.com/pdsink/pdsink
5•pu•1d ago•1 comments

Show HN: Socratic, a knowledge-base builder for agents where YOU stay in control

https://github.com/kevins981/Socratic
3•kevinsong981•1d ago•2 comments

Show HN: AI Domain Data Standard – Self-Hosted, DNS-Based Identity for AI

https://github.com/ai-domain-data/spec
3•dylanl37•1d ago•0 comments

Show HN: Dumbass Business Ideas

https://dumbassideas.com
38•elysionmind•2d ago•30 comments