frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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: Context-aware Japanese furigana using Sudachi and ModernBERT

https://www.ezfurigana.com/
9•epitrochoid413•2h ago•4 comments

Show HN: Repolog, website audit for SEO, performance, security, and AI readiness

https://repolog.io/
4•petersas•41m ago•0 comments

Show HN: TypistStories, new Gothic novel released

https://typiststories.com/
2•afonsosoares•53m ago•2 comments

Show HN: AISlop, a CLI for catching AI generated code smells

https://github.com/scanaislop/aislop
59•Heavykenny•1h ago•50 comments

Show HN: Continue? Y/N: A 60-second game about AI agent permission fatigue

https://llmgame.scalex.dev
359•Wirbelwind•1d ago•144 comments

Show HN: Local-first semantic knowledge graph with magnetic-pull retrieval

https://github.com/Astralchemist/rig
3•akashi_dev•1h ago•0 comments

Show HN: Get a webhook the moment a webpage changes

https://docs.firecrawl.dev/features/monitoring
3•ericciarla•2h ago•1 comments

Show HN: Ktx – Open-source executable context layer for data agents

https://github.com/Kaelio/ktx
79•lucamrtl•1d ago•17 comments

Show HN: Compile-time model-id validation with declared capability

https://github.com/yujonglee/openrouter-toolkit
5•yujonglee•3d ago•2 comments

Show HN: Open-Source AI Racing Harness

https://www.elodin.systems/post/elodin-ai-grand-prix-race-sim-harness
72•danAtElodin•1d ago•21 comments

Show HN: Hallucinate – Massively Multiplayer Online Rave

https://hallucinate.site
429•stagas•1d ago•190 comments

Show HN: Open-source Workspace (mail,docs,spreadsheet,drive) web/iOS

https://tinycld.org/
107•nathanstitt•2d ago•38 comments

Show HN: TapToyPia

https://memalign.github.io/m/taptoypia/index.html
19•memalign•5d ago•8 comments

Show HN: I made an emergency page for my family

https://help.delduca.org
80•delduca•2d ago•102 comments

Show HN: Static-allocation MLP inference in ANSI C using a 2-slot ring buffer

https://github.com/GiorgosXou/MLPico
3•xou•12h ago•0 comments

Show HN: htop for the airwaves — a live 802.11 RF dashboard in your terminal

https://github.com/yeet-src/airtop
6•r3tr0•13h ago•0 comments

Show HN: Posthorn, self-hosted mail gateway

https://github.com/craigmccaskill/posthorn
79•craigmccaskill•2d ago•60 comments

Show HN: Bootstrap a team of coding agents from a template, OSS

https://github.com/awebai/aweb-team-coord-worktrees
3•juanre•20h ago•0 comments

Show HN: Terraforming game where the Python code you write IS the gameplay

https://store.steampowered.com/app/868160/Code_Terraform/
3•investorsHeaven•5h ago•2 comments

Show HN: Py-SQL-cleaner – format SQL embedded in Python strings

https://github.com/enumura1/py-sql-cleaner
5•enumura•21h ago•0 comments

Show HN: Mira – Search for files semantically – no exact filenames required

https://github.com/Heidar-An/Mira
3•Heidaradar•15h ago•1 comments

Show HN: A website that tracks every stock trade Congress makes

https://congress.kadoa.com/
61•hubraumhugo•2d ago•23 comments

Show HN: Audiomass – a free, open-source multitrack audio editor for the web

https://audiomass.co/?multitrack=1
548•pantelisk•4d ago•120 comments

Show HN: Imagine Kickstarter, but doubters get paid if the project flops

https://trypieces.com/p/as9wuvhp1qwb4NvpMGG2FU
6•johndebord•17h ago•8 comments

Show HN: Tunnel.to – dead simple localhost reverse tunnels

https://tunnel.to
7•StuntPope•1d ago•1 comments

Show HN: Beacon CLI for self-hosted monitoring, remote access and deployments

https://github.com/Bajusz15/beacon
7•matebajusz•1d ago•1 comments

Show HN: OpenBrief – Local-first video downloader/summarizer

https://github.com/tantara/openbrief
92•tantara•3d ago•17 comments

Show HN: Scrolodex – A super simple window switcher for macOS

https://scrolodex.app/
4•Jaydenaus•19h ago•0 comments

Show HN: LiteParse v2, now in Rust 100x faster

https://github.com/run-llama/liteparse/
13•pierre•1d ago•0 comments

Show HN: Workout to Work – A desktop app that annoys you into exercising

https://gitlab.com/tivat/workout-to-work
3•blingojames•21h ago•0 comments