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: cuTile Rust: Safe, data-race-free GPU kernels in Rust

https://github.com/nvlabs/cutile-rs
62•melihelibol•10h ago•12 comments

Show HN: VoiceDraw – Talk system design out loud, the diagrams draw themselves

https://voicedraw.com/
41•ajaypanthagani•11h ago•17 comments

Show HN: Sabela – A Reactive Notebook for Haskell

https://sabela.datahaskell.com/
37•mchav•2d ago•3 comments

Show HN: Pen and paper resource development game with an emergent world

https://www.jameshylands.co.uk/2026/06/sortis-paper-empire-game.html
23•jhylands•13h ago•1 comments

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

https://garden-of-flowers.heikkilotvonen.com/
150•california-og•1d ago•26 comments

Show HN: Otty – a native and beautiful terminal emulator

https://otty.sh/
9•ilchenearly•4h ago•3 comments

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

https://fata.dev
111•djoume•5d ago•51 comments

Show HN: Veterinarian turned founder, AI lawn diagnosis

https://grassdx.com/
73•andrewbr•1d ago•60 comments

Show HN: Azure DevOps TUI Management Style

https://github.com/elpulgo/azdo
9•elpulgo•12h ago•1 comments

Show HN: machine0 – Persistent NixOS VMs You Control from the CLI

https://machine0.io
90•bwm•1d ago•35 comments

Show HN: Easy text to social media cards platform

https://cards.tinygods.dev
2•danipolani•7h ago•0 comments

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

https://github.com/tamnd/kage
693•tamnd•2d ago•139 comments

Show HN: The Oct Programming Language for scientific programming

https://github.com/yuechen-li-dev/oct
3•YuechenLi•8h ago•0 comments

Show HN: Trace – Offline Mac meeting transcripts you can flag mid-call

https://traceapp.info
202•AG342•3d ago•83 comments

Show HN: Numax - a portable runtime for distributed apps

https://github.com/GianIac/numax
4•gianiac•8h ago•1 comments

Show HN: Private Markets SEC Filings Index

https://search.stillhousedata.com
4•lemonlym•8h ago•0 comments

Show HN: Ctx, save tokens by loading only the relevant tools

https://github.com/stevesolun/ctx
6•stevesolun•12h ago•0 comments

Show HN: SharkClean MCP

https://github.com/a-funk/sharkclean-mcp
16•afunk•4d ago•4 comments

Show HN: Discover Wikipedia articles popular on Hacker News

https://www.orangecrumbs.com/
136•octopus143•2d ago•33 comments

Show HN: Dev-friendly native OTel: only OSS stateful, on-the-wire Observability

5•jratkevic•12h ago•1 comments

Show HN: Exploiting Slack's video embeds to achieve E2EE communication

https://v1c.rocks/log/exploiting-slack-video/
31•victorio•1d ago•3 comments

Show HN: Almost all of MonsterWriter's back end is open source

https://www.monsterwriter.com/building-linkedrecords.html
3•WolfOliver•12h ago•0 comments

Show HN: Zero Browser

https://github.com/nz366/zero_browser
11•zeron0a•1d ago•7 comments

Show HN: Homebrew 6.0.0

https://brew.sh/2026/06/11/homebrew-6.0.0/
1474•mikemcquaid•5d ago•361 comments

Show HN: Microlearning apps with a TikTok-style feed to beat doomscrolling

https://usescroll.app
5•maclinz•14h ago•3 comments

Show HN: I am building a map of people who lived in the Roman Empire

https://new.roman-names.com/
210•metiscus•6d ago•49 comments

Show HN: Paca – Lightweight Jira alternative for human-AI collaboration

https://github.com/Paca-AI/paca
172•pikann22•3d ago•64 comments

Show HN: Memento – Self-hosted agentic search and LLM wiki over your email

8•georgeck•14h ago•6 comments

Show HN: Claireon – MCP Server for Unreal Editor

https://github.com/believer-oss/claireon
9•karl_gluck•15h ago•1 comments

Show HN: I wrote a C++ ray tracer from scratch without AI

https://github.com/themartiano/luz
152•martiano•1d ago•64 comments