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: AetherCam, a video recorder focusing on audio

https://aethercamera.pro
2•miloo94•56m ago•0 comments

Show HN: Running Debian on the OpenWrt One

https://github.com/sjoerdsimons/openwrt-one-debian
5•mfilion•1h ago•0 comments

Show HN: Vibe coded iOS workout app with Apple Watch support

https://apps.apple.com/us/app/fitwit-ai-personal-trainer/id6757002413
4•avsavani•1h ago•2 comments

Show HN: LobsterHelper – Managed OpenClaw on Firecracker VMs

https://lobsterhelper.com
2•alex_trekkoa•1h ago•0 comments

Show HN: Manifestinx-verify – offline verifier for evidence bundles (drift)

https://github.com/OneInX/Manifest-InX-EBS
2•oneinx•1h ago•0 comments

Show HN: I vibed a better OCaml parser than Jane Street in 69 steps

https://github.com/hdresearch/parsexp
2•yevbar•2h ago•0 comments

Show HN: HelixDB Explorer – A macOS GUI for HelixDB

https://github.com/nodfans/helixdb-explorer
2•jomamax•2h ago•0 comments

Show HN: Ghostty-based terminal with vertical tabs and notifications

https://github.com/manaflow-ai/cmux
166•lawrencechen•22h ago•70 comments

Show HN: A native macOS client for Hacker News, built with SwiftUI

https://github.com/IronsideXXVI/Hacker-News
126•IronsideXXVI•6h ago•91 comments

Show HN: Minimalistic workout tracker for iPhone – Stats, Trends, Streaks

https://streakout.app/
3•toni88x•5h ago•0 comments

Show HN: Micasa – track your house from the terminal

https://micasa.dev
615•cpcloud•1d ago•195 comments

Show HN: A small, simple music theory library in C99

https://github.com/thelowsunoverthemoon/mahler.c
48•lowsun•21h ago•17 comments

Show HN: Resilient RAP: A self-healing data pipeline with <20ms BERT inference

https://github.com/tarek-clarke/resilient-rap-framework
2•tarekclarke•3h ago•1 comments

Show HN: A physically-based GPU ray tracer written in Julia

https://makie.org/website/blogposts/raytracing/
187•simondanisch•1d ago•82 comments

Show HN: Write native binary web apps with TypeScript and Express

https://github.com/tsoniclang/express
13•jeswin•4d ago•2 comments

Show HN: Mini-Diarium - An encrypted, local, cross-platform journaling app

https://github.com/fjrevoredo/mini-diarium
128•holyknight•1d ago•62 comments

Show HN: Celeste game installs as ELF binary (42kB) on ESP32/breezybox [video]

https://www.youtube.com/watch?v=nufOQWBmwpk
3•isitcontent•2h ago•1 comments

Show HN: Flask Is My Go-To Web Framework

https://www.flaskvibe.com/
2•astonfred•8h ago•0 comments

Show HN: Searchable aggregator of 24M London council spending transactions

https://cspend.uk
3•ashfn•9h ago•3 comments

Show HN: Rebrain.gg – Doom learn, don't doom scroll

109•FailMore•2d ago•52 comments

Show HN: Fostrom, an IoT Cloud Platform built for developers

https://fostrom.io/
7•arjunbajaj•13h ago•4 comments

Show HN: A Lisp where each function call runs a Docker container

https://github.com/a11ce/docker-lisp
81•a11ce•1d ago•27 comments

Show HN: 17MB pronunciation scorer beats human experts at phoneme level

2•fabiosuizu•10h ago•1 comments

Show HN: VectorNest responsive web-based SVG editor

https://ekrsulov.github.io/vectornest/
85•ekrsulov•2d ago•33 comments

Show HN: Breadboard – A modern HyperCard for building web apps on the canvas

https://breadboards.io/
92•simquat•4d ago•15 comments

Show HN: CEL by Example

https://celbyexample.com/
82•bufbuild•2d ago•40 comments

Show HN: How to Plan a n8n Workflow

https://theowllogic.com/plan-n8n-workflow
3•wayofthekatana•11h ago•1 comments

Show HN: AsteroidOS 2.0 – Nobody asked, we shipped anyway

https://asteroidos.org/news/2-0-release/index.html
465•moWerk•3d ago•68 comments

Show HN: I'm launching a LPFM radio station

https://www.kpbj.fm/
110•solomonb•3d ago•56 comments

Show HN: MatsuriMap – Free interactive map for events and festivals in Japan

https://matsurimap.kageknight.com
3•wrryyyy•12h ago•0 comments