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

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

mousomashakel•9mo 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: Jemini – Gemini for the Epstein Files

https://jmail.world/jemini
27•dvrp•13h ago•2 comments

Show HN: Simple org-mode web adapter

https://github.com/SpaceTurth/Org-Web-Adapter
39•turth•3h ago•1 comments

Show HN: Nerve: Stitches all your data sources into one mega-API

https://playground.get-nerve.com/
4•mprast•1d ago•0 comments

Show HN: Maths, CS and AI Compendium

https://github.com/HenryNdubuaku/maths-cs-ai-compendium
30•HenryNdubuaku•4h ago•4 comments

Show HN: 2D Coulomb Gas Simulator

https://simonhalvdansson.github.io/2D-Coulomb-Gas-Tools/index_gpu.html
4•swesnow•35m ago•0 comments

Show HN: Rollin – Wheelchair accessibility scores for 56K+ locations (free API)

https://joinrollin.com/
3•thattechiedude•1h ago•2 comments

Show HN: Interactive Chord Finder, Free Piano Scale and Chord Explorer

https://interactivechordfinder.com
2•magikMaker•1h ago•1 comments

Show HN: AsdPrompt – Vimium-style keyboard navigation for AI chat responses

https://asdprompt.com/
2•contrary2belief•2h ago•0 comments

Show HN: Claude-engram – Brain-inspired persistent memory, runs inside Claude.ai

https://github.com/mlapeter/claude-engram
3•mlapeter•2h ago•2 comments

Show HN: Microgpt is a GPT you can visualize in the browser

https://microgpt.boratto.ca
265•b44•1d ago•24 comments

Show HN: VOOG – Moog-style polyphonic synthesizer in Python with tkinter GUI

https://github.com/gpasquero/voog
89•gpasquero•1d ago•37 comments

Show HN: Pangolin: Open-source identity-based VPN (Twingate/Zscaler alternative)

https://github.com/fosrl/pangolin
73•miloschwartz•1d ago•23 comments

Show HN: GEDB – A pure-Go embedded database

4•ReturnErr•5h ago•0 comments

Show HN: JeffTube

https://jmail.world/jefftube
19•dvrp•15h ago•3 comments

Show HN: Knock-Knock.net – Visualizing the bots knocking on my server's door

https://knock-knock.net
211•djkurlander•1d ago•88 comments

Show HN: 2d platformer game built with Codex (zero code)

4•armcat•6h ago•6 comments

Show HN: SnkvDB – Single-header ACID KV store using SQLite's B-Tree engine

https://github.com/hash-anu/snkv
4•hashmakjsn•6h ago•1 comments

Show HN: Lightwave – Real-time notes app, 3.5 years of hand-rolled JavaScript

44•jv22222•22h ago•29 comments

Show HN: Harmonic embeddings beat random init and work frozen – no tokenizer

https://github.com/atech-hub/Wave-Coherence-as-a-Computational-Primitive
2•atech-77•7h ago•1 comments

Show HN: Tanin – TUI Noise Generator

https://github.com/AnonMiraj/Tanin
4•anongazelle•12h ago•2 comments

Show HN: Copy-and-patch compiler for hard real-time Python

https://github.com/Nonannet/copapy
63•Saloc•5d ago•11 comments

Show HN: Rover – Embeddable web agent

https://www.rtrvr.ai/blog/10-billion-proof-point-every-website-needs-ai-agent
27•arjunchint•2d ago•14 comments

Show HN: GPU Perpetual Futures Prototype

https://github.com/zacharyfrederick/compex
9•ozzymandiaz96•1d ago•3 comments

Show HN: Off Grid – Run AI text, image gen, vision offline on your phone

https://github.com/alichherawalla/off-grid-mobile
122•ali_chherawalla•1d ago•64 comments

Show HN: Animus Invoice – Invoice tracking without the busywork

https://animusinvoice.com/beta.html
2•ilkerozbay•11h ago•0 comments

Show HN: Arcmark – macOS bookmark manager that attaches to browser as sidebar

https://github.com/Geek-1001/arcmark
89•ahmed_sulajman•2d ago•20 comments

Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

https://github.com/datavorous/sameshi
228•datavorous_•2d ago•68 comments

Show HN: SQL-tap – Real-time SQL traffic viewer for PostgreSQL and MySQL

https://github.com/mickamy/sql-tap
229•mickamy•2d ago•44 comments

Show HN: Fieldnotes

https://fieldnote.ink
14•samcgraw•1d ago•10 comments

Show HN: DSCI – Dead Simple CI

https://github.com/melezhik/DSCI
18•melezhik•1d ago•8 comments