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: Fast, native Mac file manager (filters, fuzzy find, 9 MB, no Electron)

https://whimfiles.com
41•whimbyte•5h ago•32 comments

Show HN: Phobos – A tiny scale-free kernel language with tile-DAG support

https://www.joa-ebert.com/posts/2026-07-07-phobos-lang/
2•joajoa•36m ago•0 comments

Show HN: PostgreSQL performance and cost across 23 EC2 instance types

https://postgres.saneengineer.com
4•anivan_•1h ago•0 comments

Show HN: A simple random animal generator

https://randomanimalgen.com
2•mark_literacy•3h ago•1 comments

Show HN: Pulpie – Models for Cleaning the Web

https://usefeyn.com/blog/pulpie-pareto-optimal-models-for-cleaning-the-web/
96•snyy•21h ago•25 comments

Show HN: A Haskell programmable-CAD environment, in the browser with WASM

https://doscienceto.it/waterpark/
4•hungryjoewarren•3h ago•1 comments

Show HN: InstantVideos.org – short documentaries in ~30 seconds

https://instantvideos.org/
23•pw•13h ago•31 comments

Show HN: Otari: your open-source LLM control plane

https://github.com/mozilla-ai/otari
18•angpt•16h ago•1 comments

Show HN: A free, GPU-accelerated Texas Hold'em GTO solver in C++/CUDA

https://bupticybee.github.io/texassolver_gpu_page/
4•bupticybee•5h ago•2 comments

Show HN: 99 Business Ideas

https://99ideas.jaksa.me/
2•jaksa•5h ago•2 comments

Show HN: Homegames. An open-source game platform I've been making for 8 years

https://homegames.io
224•homegamesjoseph•1d ago•54 comments

Show HN: Osint tool that finds exposed files on domains

https://search.cerast-intelligence.com/
58•PatchRequest•1d ago•24 comments

Show HN: Disclosure Lookup – a Caido plugin that finds where to report a vuln

https://github.com/disclose/caido-lookup
2•caseyjohnellis•9h ago•0 comments

Show HN: orzma – a terminal emulator that renders webviews inside the terminal

https://github.com/not-elm/orzma
8•notelm•18h ago•9 comments

Show HN: Focal Harvest – CLI research pipeline to search, scrape and notify

https://github.com/techno-neighbour/focal-harvest
8•xlr8_track•19h ago•0 comments

Show HN: I Built LangGraph for Swift

https://github.com/christopherkarani/Swarm
24•christkarani•22h ago•3 comments

Show HN: Bramble – Local-first password manager

https://github.com/flythenimbus/bramble
147•MegagramEnjoyer•4d ago•48 comments

Show HN: Paint the Earth on a live, interactive globe (collaborative art.)

https://earth.tattoo
19•earth-tattoo•1d ago•14 comments

Show HN: Nectar, a Rust-like React that compiles to WebAssembly

https://buildnectar.com
9•blakeburnette•22h ago•1 comments

Show HN: KiCad in the Browser

https://demo.pcbjam.com/
107•ViktorEE•2d ago•32 comments

Show HN: Tarot.free – Free Tarot Readings

https://tarot.free/
3•nadermx•13h ago•2 comments

Show HN: Dedtxt is a quiet, cross-platform plain-text editor

https://dedtxt.app/
5•chrisportka•13h ago•1 comments

Show HN: An interactive, interlinked city exploration project (St. Louis)

https://stlouing.com/
7•stlouing•18h ago•1 comments

Show HN: GeoLens – a self-hosted catalog and map builder for spatial data

https://getgeolens.com/
3•ishiland•13h ago•1 comments

Show HN: Capsule – E2E encrypted file sharing

https://withcapsule.dev/
5•seanathan•13h ago•0 comments

Show HN: Visualize Model Spikiness in 3D

https://www.modelmap.tech/
18•afunk•4d ago•4 comments

Show HN: Cindy – Managing infrastructure at breakneck speed

https://cindy.rs
2•martinkroner•14h ago•0 comments

Show HN: L9gpu – GPU telemetry that ties each GPU to the K8s pod or Slurm job

https://github.com/last9/gpu-telemetry
18•nishantmodak•15h ago•0 comments

Show HN: Char-width – final answer to measure terminal text width

https://www.npmjs.com/package/char-width
3•dawson0•21h ago•0 comments

Show HN: Schwifty – quickly find and reuse previously executed commands

https://github.com/vanesterik/schwifty
2•bakkerinho•15h ago•2 comments