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: Talos – Open-source WASM interpreter for Lean

https://github.com/cajal-technologies/talos
55•mfornet•22h ago•7 comments

Show HN: Are You in the Weights?

https://www.intheweights.com/
358•turtlesoup•14h ago•210 comments

Show HN: I built an 11-LLM consensus engine to detect AI hallucination

https://github.com/jaquelinejaque/quorum-saas-starter
3•jaquelinejaque•1h ago•0 comments

Show HN: Gerrymandle - Daily puzzle game where you redraw electoral districts

https://gerrymandle.cc/
177•realmofthemad•21h ago•71 comments

Show HN: Crawlie – Free open-source SEO audit tool for humans and agents

https://github.com/spronta/crawlie
12•seandotexe•12h ago•2 comments

Show HN: Appaca – AI Workspace for Operators

https://www.appaca.ai/index.html
3•susros•4h ago•2 comments

Show HN: An 8-bit live gamecast for baseball

https://ribbie.tv/watch
247•brownrout•1d ago•137 comments

Show HN: We built an 8-bit CPU as 2nd year EE students

https://github.com/c0rRupT9/STEPLA-1
102•CorRupT9•3d ago•43 comments

Show HN: High-Res Neural Cellular Automata

https://cells2pixels.github.io/
198•esychology•2d ago•52 comments

Show HN: Building Cursor for Traders

https://runhalcyon.com/
3•chips2011•7h ago•3 comments

Show HN: Capacitor Alarm Clock

https://github.com/ArcaEge/capacitor-alarm-clock
150•arcaege•5d ago•46 comments

Show HN: Inkwash, a watercolor sketching app and explanation

https://johnowhitaker.github.io/inkwash/about
244•Yenrabbit•5d ago•28 comments

Show HN: BeamWeaver – LangChain/DeepAgents-style agents and workflows for Elixir

https://github.com/caudena/beam_weaver
2•caudena•9h ago•0 comments

Show HN: Spin Lab

https://srijanshukla.com/artifacts/spin-lab/
39•srijanshukla18•2d ago•27 comments

Show HN: cuTile Rust: Safe, data-race-free GPU kernels in Rust

https://github.com/nvlabs/cutile-rs
105•melihelibol•2d ago•18 comments

Show HN: Display.dev – the agent-agnostic workspace for HTML and .md artifacts

https://display.dev/
12•ottilves•21h ago•7 comments

Show HN: Run Agent Skills with mistral.rs v0.8.10: /v1/skills support and more

17•ericlbuehler•1d ago•0 comments

Show HN: Fata – Spaced repetition to fight skill rot from AI coding

https://fata.dev
121•djoume•1w ago•53 comments

Show HN: Deconvolution – a Rust image deconvolution and restoration crate

https://github.com/pbkx/deconvolution
33•rmi0•3d ago•5 comments

Show HN: StarScope – Free astronomy dashboard for observers outside the US/UK

https://starscope.live/feed
20•xenophin•3d ago•2 comments

Show HN: OSymandias – Open-source runtime for multi-agent AI systems

https://github.com/andreisilva1/OSymandias
3•andreisilva1•14h ago•1 comments

Show HN: bote - A fast, modern and low-memory approach to processing a big JSON

https://github.com/jankdc/bote
5•jankdc•14h ago•1 comments

SHOW HN: I built a "living proof-of-work" profile for builders

https://kritive.com
5•sonOfHades•15h ago•3 comments

Show HN: I built a daily flag quiz in honor of the World Cup

https://orbisearth.web.app/
4•sestarkman•15h ago•0 comments

Show HN: Garden of Flowers – an archive of pictorial typography before ASCII art

https://garden-of-flowers.heikkilotvonen.com/
159•california-og•3d ago•27 comments

Show HN: Kage – Shadow any website to a single binary for offline viewing

https://github.com/tamnd/kage
704•tamnd•4d ago•140 comments

Show HN: Pagecast – Publish Markdown/HTML Reports to Cloudflare Pages

https://github.com/Amal-David/pagecast
3•amaldavid•15h ago•0 comments

Show HN: BlitzGraph – Supabase for graphs, built for LLM agents

https://blitzgraph.com
15•lveillard•2d ago•7 comments

Show HN: Veterinarian turned founder, AI lawn diagnosis

https://grassdx.com/
77•andrewbr•3d ago•60 comments

Show HN: A knowledge engine that keeps up with AI driven code

https://codesummary.io/
3•jerrodcodes•17h ago•0 comments