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: Ante, a coding agent in a single binary that runs offline

https://github.com/AntigmaLabs/ante
59•ubermon•1h ago•35 comments

Show HN: Voice driven murder mystery, Interview AI suspects with your voice

https://www.whodunnitai.com/
178•MrRowTheBoat•14h ago•74 comments

Show HN: A tiny LLM running at 21,000 tok/s on a $250 FPGA (Live Demo)

https://www.mikeayles.com/blog/on-chip-llm-kv260/
13•mikeayles•5h ago•4 comments

Show HN: PicPocket – Dedicated 'chats' for photo-sharing (share to organize)

https://picpocket.io/
2•amr_shawky•1h ago•0 comments

Show HN: Bio Tools – install drug design tools easily

https://github.com/David-OConnor/bio_tools
2•the__alchemist•1h ago•0 comments

Show HN: Neolabs.fyi – 100 new AI labs by research area, valuation, and more

https://neolabs.fyi/
4•polyphilz•3h ago•2 comments

Show HN: Design Engineering, as a Service

https://designshippers.com/?0
5•krm01•4h ago•1 comments

Show HN: Slashscore, an open developer graph built from public GitHub activity

https://www.slashscore.com
2•wingravity•2h ago•2 comments

Show HN: PrivateRedact – Offline PII redaction with a local LLM, no cloud

https://github.com/monjurulkarim/privateredact
3•rajubuet24•2h ago•0 comments

Show HN: My math notes for anything that touches ML

https://github.com/publications-and-more/pub
3•Amlal•2h ago•0 comments

Show HN: Vocal Slice – cut audio by selecting text, fully on-device

https://vocalslice.com/
2•terranivium•2h ago•1 comments

Show HN: filebouncer - npm package for detecting suspicious uploads.

https://github.com/Ramzi-Abidi/filebouncer
2•ramzi-abidi•2h ago•0 comments

Show HN: Self-hosted universal context layer for Mac

https://github.com/Rafaelpta/litepipe
2•rafaepta•2h ago•0 comments

Show HN: 100% native Swift harness (NOT Electron)

https://github.com/Lore-Hex/QuillCode
6•ljlolel•4h ago•2 comments

Show HN: TickClip – An AI shopping agent that can recommend not buying

https://www.tickclip.ai/
2•tickclip•3h ago•1 comments

Show HN: GlyPho – Generate editable SVG families from prompts

https://www.glypho.app/
4•shenyi•3h ago•0 comments

Show HN: A Project Oberon System version running on RISC-V instead of RISC-5

https://github.com/rochus-keller/OberonSystem/tree/op2-rv32
118•Rochus•1d ago•19 comments

Show HN: DocSift convert a PDF once, give the model only the passages it needs

https://github.com/anishmoncivarghese/docsift
2•anishvarghese•3h ago•0 comments

Show HN: I made alchemical-cosmological PCB badges

https://github.com/KaiPereira/Alchemical-Cosmological-Badges
20•kaipereira•5d ago•2 comments

Show HN: Hawser – sign, notarize, DMG, auto-update and license a Mac app

https://hawserkit.com/
2•yaveez•4h ago•0 comments

Show HN: Watching browser fingerprinting calls via Chromium's Blink layer

https://kameleo.io/blog/this-is-the-closest-well-ever-get-to-reverse-engineering-anti-bots
8•brnbs•8h ago•0 comments

Show HN: Edgi – Letterboxd or Strava for your brain

https://app.edgi.tv/
4•jshapiro•4h ago•0 comments

Show HN: gbx -- manage a fleet of git repos with a TUI

https://github.com/deemson/gbx
2•deemson•4h ago•0 comments

Show HN: Online Speedometer

https://kmspeedometer.com/
3•artiomyak•5h ago•0 comments

Show HN: Synchrium, a synchronized timer where remote peers meet at zero

https://synchrium.com/
2•areich•5h ago•0 comments

Show HN: ui.camera – Product photography for software

https://ui.camera
3•alexakten•5h ago•1 comments

Show HN: Untagged – Find the cloud spend missing required allocation tags

https://untagged.pages.dev/
2•normanbrigg•5h ago•0 comments

Show HN: Working on gym weight progress calculator

https://gymcalc.no/
2•xtremi•6h ago•0 comments

Show HN: Mangudai – Agentless attack surface manager for small tech teams

https://github.com/oktaybilge1/mangudai-overview
2•mangudai•6h ago•0 comments

Show HN: Game Engine with its own IDE and scripting language

2•am-gm•6h ago•0 comments