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: Rotating torus in terminal (but with kitty graphics protocol)

https://andreadimatteo.com/torus-v0-5.html
18•deotman•6d ago•3 comments

Show HN: Sign language translation with smart glasses

https://github.com/aadisang/hand-wave
17•aadisang•3d ago•10 comments

Show HN: textlog – A quiet, text-only microblogging platform, open-source, no JS

https://textlog.cc/about
182•stagas•1d ago•72 comments

Show HN: Wyzer Programming Language

https://github.com/Wyzer-Lang/wyzer
209•v0id_isgood•1d ago•109 comments

Show HN: A free DOCX editor with MCP server for editing

https://revise.io/help/mcp-server
13•artursapek•4h ago•1 comments

Show HN: Compactdiff – see what compaction dropped from an agent session

https://github.com/mkmkkkkk/compactdiff
5•mileskoldin•5h ago•1 comments

Show HN: Presse – a Rust CLI tool to compress and merge PDFs

https://github.com/SimonBure/presse
3•saientifik•6h ago•0 comments

Show HN: CrossPlay - Games, puzzles and tools for your e-reader

https://crossplay.ma-r-s.com
10•ma-r-s•18h ago•0 comments

Show HN: ContentIQ – Evaluate and optimize content quality before publishing

https://app.contentiq.net/
2•Sharanxxxx•9h ago•0 comments

Show HN: Modern C++ Build Tools for Module Feature

https://github.com/mcpp-community/mcpp
7•sunrisepeak•16h ago•3 comments

Show HN: Pokémon Emerald Ported to Raspberry Pi Pico 2

https://github.com/mattdeeds/pokeemerald-rp2350
55•mdeeds•1d ago•28 comments

Show HN: The Channels SDK – Bring Any Agent to Any Channel (Slack, MS Teams)

https://github.com/CopilotKit/channels-sdk
118•davidmckayv•2d ago•24 comments

Show HN: Simple algorithm and color space to generate diverse skin tones

https://toneyalexander.github.io/inclusive-color-space/
621•automatoney•4d ago•99 comments

Show HN: A terminal glued to the macOS dock

https://github.com/palamim/starboard
50•leopalamim•2d ago•15 comments

Show HN: A free mini game that makes you a smarter fly fisherperson

https://read-the-water.netlify.app/
22•mpc75•4d ago•10 comments

Show HN: Certo – An open source platform to deliver Open Badges

https://github.com/schroedinger-Hat/certo
16•thejoin95•1d ago•0 comments

Show HN: Sidebar – a private ESP32 intercom for five kids, no accounts

https://www.sundaradnus.ca/writing/sidebar-building-a-ham-radio-for-my-son
14•nonstopnonsense•1d ago•6 comments

Show HN: Elevators

https://john.fun/elevators
1676•Jrh0203•1w ago•414 comments

Show HN: S-Bahn Seat Picker

https://welidev.github.io/sbahn-picker/
7•weli•1d ago•4 comments

Show HN: Clef – spaced repetition for piano over MIDI

https://playclef.com/
6•danieldratschuk•1d ago•3 comments

Show HN: Remembrane – agent memory in one SQLite file, zero dependencies

https://github.com/satyasairay/remembrane
11•satyasairay•1d ago•0 comments

Show HN: ssh ssh.place

https://ssh.place
185•jeninh•5d ago•120 comments

Show HN: ReadMyStatement – Where did the money go?

https://readmystatement.com/
2•nadermx•21h ago•1 comments

Show HN: Zaivern Code – a Rust cockpit for parallel AI coding agents

https://github.com/tacyan/zaivern-code
2•tacyan•21h ago•0 comments

Show HN: Run an 80B Qwen in 4.3 GB of RAM on a Mac, and a 35B on an iPhone

https://github.com/leonickson1/Swiftlet
310•leonickson•5d ago•142 comments

Show HN: Maple-Preview – Ternary 20B MoE running at 120 tok/s on a iPhone

https://deepgrove.ai/maple-preview
171•edwardbzhang•3d ago•52 comments

Show HN: Bor – Open-source policy management for Linux desktops

https://getbor.dev/blog/2026-08-02-bor-v080-release/
196•eniac111•6d ago•29 comments

Show HN: Fine-tune an 8B model on a 4 GB laptop GPU

https://github.com/MakazhanAlpamys/Soup
137•MakazhanAlpamys•4d ago•28 comments

Show HN: File-based HTTP endpoints for Python with its own isolated dependencies

https://github.com/tanrax/bitpoint
5•andros•1d ago•1 comments

Show HN: Wallfacer – A terminal session manager for Claude Code, and more

https://github.com/pradipta/wallfacer
36•pradiptasarma•2d ago•22 comments