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: Nari Qwen3-TTS and Qwen3-ASR – High accuracy, low latency and cost

https://narilabs.com/blog/nari-labs-leads-coval-voice-ai-benchmarks/
37•toebee•4h ago•10 comments

Show HN: Neobrutalism.dev – Just added Base UI support and added new color theme

https://www.neobrutalism.dev/
96•samke-•4h ago•45 comments

Show HN: Apollo Lunar Module landing simulation

https://gosandeep.com/eagles-descent/
22•gosandeep•5d ago•1 comments

Show HN: Pelican-bicycle alternatives

https://gally.net/temp/20260914pelican-alternatives/index.html
89•tkgally•7h ago•38 comments

Show HN: Pull every comment out of a Google Sheet, in the browser

https://bensunter.com/commentpulse.html
2•bsunter2•51m ago•0 comments

Show HN: Kinesis – Control your Mac with the Meta Neural Band

https://github.com/callbacked/kinesis
105•callbacked•8h ago•32 comments

Show HN: Fly.exe – An EON systems like virtual fruit fly uploaded to computer

https://github.com/Ibtisam-Mohammad/Fly.exe
20•Ibti_sam•4h ago•4 comments

Show HN: Pushie – Get notified with a simple webhook

https://pushie.net
14•vasanthv•5h ago•6 comments

Show HN: Is this photo edited? Client-side image forensics

https://vajba.com/image-forensics/
16•trivsamt•4d ago•7 comments

Show HN: Threshyr – An offline automatic time tracker with on-device AI

https://threshyr.com
3•affanBajwa•2h ago•1 comments

Show HN: I built Otis, a minimal AI agent that runs local models out of the box

https://triangllabs.ai/otis
14•petrenk0n•7h ago•0 comments

Show HN: MCP Harbor – An MCP Registry

https://ai.mcpharbor.dev/
3•Lbesecker195•3h ago•0 comments

Show HN: Helical Time – Visualizing time as a continuous 3D torus

https://github.com/nimabeh/helical-time
4•nimabe•4h ago•0 comments

Show HN: Cognition-Claude-proxy – Use Devin model catalog with Claude Code

https://github.com/coderexpert123/cognition-claude-proxy
2•hrishi1990•4h ago•0 comments

Show HN: Rebuno - An open-source runtime for production agents

https://github.com/rebuno/rebuno
3•nnww•4h ago•0 comments

Show HN: DNSMint – Give a sandbox its own domain and HTTPS cert in one API call

https://dnsmint.com/
2•kxbnb•4h ago•0 comments

Show HN: AttaLambda: a language where types and data are made of untyped lambdas

https://attalambda.com
2•kserrec•4h ago•0 comments

Show HN: AgentDrive – persistent, versioned file storage for AI agents

https://tokencanopy.com/products/agentdrive
4•tokencanopy•4h ago•3 comments

Show HN: what-time Neural Parser for Schedule extraction in English, Hindi

https://github.com/MagicBeansAI/what-time
2•das_vicky•4h ago•0 comments

Show HN: Requirement5 – a digital card collection game

2•FailMore•4h ago•0 comments

Show HN: Local catalog of 3k agent skills with a static risk scan

https://github.com/xm1k3/ai-community-skills
2•xm1k3•4h ago•0 comments

Show HN: Backtotal – the total is given, work back to the four digits

https://backtotal.com/
3•Dogs2478•5h ago•3 comments

Show HN: Shortcut Express – My attempt to get the world using keyboard shortcuts

https://github.com/chimit/shortcut-express
2•motomac•5h ago•0 comments

Show HN: Push Notifications for Hacker News

https://www.hazumi.news
2•jrhey•5h ago•0 comments

Show HN: Fidelic, a Salesforce emulator in a Docker container

https://www.fidelic.dev/
2•ifykhanikhan•5h ago•0 comments

Show HN: Botbin – A zero-login HTML pastebin for AI agents

http://botbin.io/
2•obilgic•5h ago•0 comments

Show HN: msgspec-serde, Fast serialization for msgspec, flatbuffers, & arrays

https://github.com/ebrevdo/msgspec-serde
2•yablak•5h ago•0 comments

Show HN: Drone flight over world cities and neighbourhoods

https://citydrones.kingsbridge-consultancy.com/
3•beerglass•5h ago•2 comments

Show HN: GSE Cleaner – In-browser streaming parser for large GEO datasets

https://byqing.com/gse/
2•niqing•5h ago•0 comments

Show HN: 1080p is 920px tall – 1k real browser viewports

https://screensize.net/reports/viewport-stats
38•zenpe•13h ago•20 comments