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: Jev Plays Pokémon Red

https://jev-pokemon.vercel.app/
216•pancomplex•22h ago•88 comments

Show HN: Hacker Atlas - A map of what Hacker News talks about

https://hackeratlas.com/
69•andrearitossa•23h ago•23 comments

Show HN: Make math automatic with Mathy

https://gmays.com/making-math-automatic-with-mathy/
98•gmays•4d ago•28 comments

Show HN: Ekselio – Loveable for finance workflows (local first)

https://www.gptbeyond.com/try?home=1
15•kdautaj•15h ago•4 comments

Show HN: Print Graph Paper

https://printgraphpaper.app/
3•artiomartiom•5h ago•0 comments

Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design

https://github.com/devdotfast/whiteboard
403•sidharthkmenon•1d ago•134 comments

Show HN: Jevgpt – reinventing the wheel with another wheel

23•kunggaochicken•2d ago•2 comments

Show HN: Gutcheck, grep for meaning with a local CPU model

https://github.com/sfmqrb/gutcheck
2•sfmqrb•7h ago•0 comments

Show HN: Recurse – Develop and deploy specialist agents faster

https://recurse.run
5•ozankabak•14h ago•2 comments

Show HN: Air-gapped file encryption as self-decrypting HTML page

https://cms-sfx-demo.apeleg.com/
84•emurlin•2d ago•30 comments

Show HN: I discovered roads in the US across > 1000 themes

https://road-about-a-theme.pinedesk.biz/
12•91awebsi•20h ago•8 comments

Show HN: Koi.rest – watch some fish and regain your balance

https://koi.rest
216•hxii•1d ago•60 comments

Show HN: Jevlang. delegate every if/while condition to Jev

https://github.com/RoyWiggins/jevlang
3•roywiggins•9h ago•0 comments

Show HN: AgentRun: DSL to turn agents into workflows

https://github.com/Parcha-ai/agentrun
46•miguelrios•2d ago•12 comments

Show HN: Treepeat – Code similarity detection using Tree-sitter

https://github.com/dsummersl/treepeat
65•91awebsi•3d ago•8 comments

Show HN: Agentic CUDA Kernel Optimizer

https://github.com/bertaye/agentic-cuda-optimizer
33•bertaye•1d ago•11 comments

Show HN: Make cursed fonts like Times New Bastard

https://bastardica.mitpit.com
848•MitPitt•2d ago•123 comments

Show HN: Hamilton – a no-internet Android health dashboard, named after my dog

https://play.google.com/store/apps/details?id=com.gads.hamilton&hl=en_US
10•hamilton_app•1d ago•12 comments

Show HN: Doom or Bloom, map your AI worldview

https://www.doom-or-bloom.com
56•transitivebs•20h ago•45 comments

Show HN: Tenjin – A Jev based x402 tool router for Claude Code

https://github.com/BackTrackCo/tenjin-agent
2•AliAbdoli•12h ago•0 comments

Show HN: Paper-docx – agent-native Python-docx fork with 78% fewer DOCX failures

https://github.com/paper-instruments/paper-docx
6•i_rush_carriers•17h ago•0 comments

Show HN: Most Hated Tools

https://www.mosthatedtools.app/
30•leonagano•1d ago•20 comments

Show HN: Drop – A rootless Linux sandbox with gVisor support

https://droprun.sh/
189•mixedbit•3d ago•63 comments

Show HN: BuyerCue – Find potential customer by paid-placement evidence

https://www.buyercue.io
2•apsquared•15h ago•1 comments

Show HN: Avoid smooth spinners, use low-FPS spinners

https://nh2.me/low-fps-spinners/low-fps-spinners.html
21•nh2•1d ago•27 comments

Show HN: JevBench, a reproducible benchmark for typed decision models

https://benchmarkheaven.com/jev-models
148•florianstandhar•3d ago•38 comments

Show HN: Aslmp, an async Python SLMP client for Mitsubishi MELSEC PLCs

https://github.com/AcaysiaChem/aslmp
3•AiasT•17h ago•0 comments

Show HN: Digitron – a virtual analog synth and sequencer

https://apps.apple.com/us/app/digitron-synthesizer/id6737997923
2•sillydevices•17h ago•0 comments

Show HN: Obsidian Plugin for OpenModelica

https://community.obsidian.md/plugins/modelica-studio
4•cs3f16•18h ago•0 comments

Show HN: I couldn't deal with another Claude Code tab

https://aidash.dev/
4•grollat•18h ago•2 comments