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: Janus – Go binary that runs GGUF models via Vulkan on AMD/Intel/Nvidia

https://github.com/Vibra-Ingenn/Janus
26•Maverick617•1h ago•2 comments

Show HN: Open-source model routing for coding agents at Astra-level performance

66•adchurch•1d ago•20 comments

Show HN: Rhun, an open-source code editor written in assembly

https://rhun.app/
12•vladcodes•1h ago•2 comments

Show HN: Premortem – AI agents that red-team your startup idea

https://premortem.site
4•ahoskins•1h ago•2 comments

Show HN: Graphene – Data analysis toolkit for your coding agent

https://github.com/graphene-data/graphene
3•kcmarr•54m ago•0 comments

Show HN: Ledge.sh – Runnable Markdown Notes

https://ledge.sh
195•dancablam•1d ago•87 comments

Show HN: What 482 hospitals charge vs. what insurers pay, from their own files

https://www.billmender.com/hospital-prices
4•curatedmcp•2h ago•1 comments

Show HN: Breadcrumb, record everything on your mac + context manager for AI

https://innerloop.works/breadcrumb
10•jv22222•4h ago•2 comments

Show HN: Ferry – Sync your coding agent setup to remote Linux boxes

https://dlhck.github.io/ferry/
2•dlhck•3h ago•0 comments

Show HN: A working 3D model of an Enigma machine

https://enigma.design
106•primitivesuave•2d ago•40 comments

Show HN: I built an app that scours the internet to create a daily news briefing

https://github.com/yogthos/newsroom
2•yogthos•4h ago•1 comments

Show HN: CoIsland – Your whole engineering stack in a notch

https://coisland.app/
5•LeDonT•7h ago•1 comments

Show HN: MCP server for editing Excel with real-time calc and diffs

https://github.com/pixelsmasher13/gridpath
4•escapingsingula•4h ago•0 comments

Show HN: Winamp-style native audio player for macOS

https://vibeplayer.app/
4•cmicali•5h ago•0 comments

Show HN: ASCII Art generator using depth maps

https://polyglyph-nu.vercel.app/
2•tonerow•5h ago•1 comments

Show HN: I made a computer vision tool for evaluating deadlift form

https://github.com/jeremyipark/vision-demos/tree/main/deadlift
3•dr_blueberry•5h ago•0 comments

Show HN: JBR-001 – An open-source 3D printable desktop robot

https://projecthub.arduino.cc/syntheticaidata/jbr-001-a-desktop-companion-robot-powered-by-arduin...
130•gvuksic•2d ago•31 comments

Show HN: Yantra – an LALR(1) parser generator for C++

https://github.com/TantrixAuto/yantra
31•renjipanicker•19h ago•15 comments

Show HN: Dental Scope – Interactive 3D dental anatomy

https://dental-scope.com/
128•Zeruxe•2d ago•66 comments

Show HN: Secret Santa Name Generator – draw names in the browser, no sign-up

https://secretsantanamegenerator.com/
2•xmasdong•6h ago•1 comments

Show HN: TrueScribe – Linux local AI transcription studio

https://truescribe.app/
5•tinykerneldev•6h ago•0 comments

Show HN: Gutsy, a 0.8B Jev-compatible decision model that runs on your CPU

https://github.com/kouhxp/gutsy
7•mrkn1•6h ago•2 comments

Show HN: OpenC6 v2.0 – Bare-metal BIOS and RISC-V microkernel for ESP32-C6

https://github.com/Rompass/openc6-bios
4•Rompass•7h ago•0 comments

Show HN: Q-DeflateRFC1951 compatible hyper-density compression SaaS

https://microforce.dev
2•Gen-N•7h ago•0 comments

Show HN: NSL – WSL for Linux

https://frostyard.github.io/nsl/
162•bketelsen•2d ago•107 comments

Show HN: Sharedclipboard.com – Peer-to-peer encrypted clipboard in the browser

https://sharedclipboard.com/
2•oleksii88•7h ago•0 comments

Show HN: Using 2D DFT, dithering, etc. to maximize eInk manga image quality

https://github.com/ciromattia/kcc
83•seam_carver•3d ago•20 comments

Show HN: Real-time Solar System with 526k asteroids and all tracked satellites

https://space.bl2.net/
397•wanick•2d ago•107 comments

Show HN: Mini React – React like UI library

https://vladocar.github.io/mini-react/
2•bepero•9h ago•0 comments

Show HN: The Kio Programming Language

https://jdevuyst.github.io/kio/
5•jdevuyst•10h ago•0 comments