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•6mo 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•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
Polars and duckdb interoperate nicely and can enable this flexibility
theanonymousone•6mo ago
Does Polars have a Java library?
mousomashakel•6mo 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.
theanonymousone•6mo 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•6mo 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.
skanga•6mo ago
What about Tablesaw, Apache Arrow? How does this compare ...
mousomashakel•6mo 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•6mo ago
Nice!

I’m currently using manifold-sql with duckdb for this.

mousomashakel•6mo 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.

Show HN: Tripwire: A new anti evil maid defense

https://github.com/fr33-sh/Tripwire
28•DoctorFreeman•1d ago•17 comments

Show HN: Autofix Bot – Hybrid static analysis and AI code review agent

18•sanketsaurav•18h ago•6 comments

Show HN: Sim – Apache-2.0 n8n alternative

https://github.com/simstudioai/sim
216•waleedlatif1•22h ago•50 comments

Show HN: Open-source, offline voice typing and live captions for Android

https://github.com/notune/android_transcribe_app
2•leumon•1h ago•0 comments

Show HN: Epstein's emails reconstructed in a message-style UI (OCR and LLMs)

https://github.com/Toon-nooT/epsteins-phone-reconstructed
24•toon-noot•2h ago•1 comments

Show HN: 360css CSS library inspired by the xbox360 dashboard

https://tarmo1.github.io/360css/
3•Tarmo362•3h ago•0 comments

Show HN: Jottings; Anti-social microblog for your thoughts

https://jottings.me/
14•vishalvshekkar•7h ago•10 comments

Show HN: Local Privacy Firewall-blocks PII and secrets before ChatGPT sees them

https://github.com/privacyshield-ai/privacy-firewall
103•arnabkarsarkar•2d ago•52 comments

Show HN: Workmux – Parallel development in tmux with Git worktrees

https://github.com/raine/workmux
4•rane•4h ago•0 comments

Show HN: A minimum viable Markov gibberish generator in 32 lines of Python

https://github.com/susam/mvs
3•susam•5h ago•0 comments

Show HN: Wirebrowser – A JavaScript debugger with breakpoint-driven heap search

https://github.com/fcavallarin/wirebrowser
64•fcavallarin•2d ago•15 comments

Show HN: An endless scrolling word search game

https://endless-wordsearch.com
23•marcusdev•1d ago•13 comments

Show HN: GPULlama3.java Llama Compilied to PTX/OpenCL Now Integrated in Quarkus

22•mikepapadim•23h ago•5 comments

Show HN: Gotui – a modern Go terminal dashboard library

https://github.com/metaspartan/gotui
37•carsenk•18h ago•13 comments

Show HN: A 2-row, 16-key keyboard designed for smartphones

https://k-keyboard.com/Why-QWERTY-mini
79•QWERTYmini•1d ago•67 comments

Show HN: Gemini Pro 3 imagines the HN front page 10 years from now

https://dosaygo-studio.github.io/hn-front-page-2035/news
3314•keepamovin•3d ago•957 comments

Show HN: Automated license plate reader coverage in the USA

https://alpranalysis.com
235•sodality2•1d ago•143 comments

Show HN: AlgoDrill – Interactive drills to stop forgetting LeetCode patterns

https://algodrill.io
177•henwfan•3d ago•105 comments

Show HN: I want to democratise Bloomberg Terminal

https://www.aulico.com/workspaces/new
2•lalalerodas•11h ago•1 comments

Show HN: I built a system for active note-taking in regular meetings like 1-1s

https://withdocket.com
173•davnicwil•3d ago•130 comments

Show HN: Search the lyrics of 500 HÖR Berlin techno sets

https://hor.greg.technology/
2•gregsadetsky•13h ago•2 comments

Show HN: The world's least deterministic programming language

https://github.com/andr3wV/VibeScript
4•andr3wV•13h ago•0 comments

Show HN: Forecaster Arena – Testing LLMs on real events with prediction markets

https://forecasterarena.com/
3•setrf•14h ago•0 comments

Show HN: A Real-Time 4D Fractal Explorer in the Browser Using WebGPU

https://bryanjj.github.io/nebula/
2•bryan0•17h ago•1 comments

Show HN: A lightweight Git history explorer written in Go

https://github.com/thiagokokada/gitk-go
3•kokada•17h ago•0 comments

Show HN: DuckDB for Kafka Stream Processing

https://sql-flow.com/docs/tutorials/intro/
76•dm03514•3d ago•13 comments

Show HN: I used Gemini 3 to turn 42 books into interactive webpages in 2 weeks

https://www.vibary.art/en
8•Rand_cat•20h ago•2 comments

Show HN: MCPShark – Traffic Inspector for Model Context Protocol

33•mywork-dev•1d ago•4 comments

Show HN: Mycodosing.wtf – Research‑Informed Psychedelic Dosage Calculator

https://mycodosing.wtf/
5•ing-norante•21h ago•2 comments

Show HN: Open-source UI components for apps that run inside ChatGPT

https://ui.manifest.build
3•stosssik•21h ago•0 comments