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

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

mousomashakel•5mo 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: TabPFN-2.5 – SOTA foundation model for tabular data

https://priorlabs.ai/technical-reports/tabpfn-2-5-model-report
29•onasta•1h ago•4 comments

Show HN: See chords as flags – Visual harmony of top composers on musescore

https://rawl.rocks/
86•vitaly-pavlenko•1d ago•18 comments

Show HN: qqqa – A fast, stateless LLM-powered assistant for your shell

https://github.com/matisojka/qqqa
86•iagooar•8h ago•73 comments

Show HN: What Is Hacker News Working On?

https://waywo.eamag.me/
5•eamag•1h ago•0 comments

Show HN: Flutter_compositions: Vue-inspired reactive building blocks for Flutter

https://github.com/yoyo930021/flutter_compositions
38•yoyo930021•12h ago•12 comments

Show HN: ShellAI – Local Terminal Assistance with SLM

https://github.com/micrictor/shellai
3•mtud•3h ago•0 comments

Show HN: CoordConversions NPM Module for Map Coordinate Conversions

https://github.com/matthewcsimpson/CoordConversions
8•smatthewaf•1w ago•1 comments

Show HN: A CSS-Only Terrain Generator

https://terra.layoutit.com
358•rofko•2d ago•82 comments

Show HN: fx - A (micro)blogging server that you can self-host

https://github.com/rikhuijzer/fx
3•huijzer•9h ago•0 comments

Show HN: The Legal Embedding Benchmark (MLEB)

https://huggingface.co/blog/isaacus/introducing-mleb
11•ubutler•1w ago•0 comments

Show HN: I made a MVP development agency and want your feedback on the site

https://mintmvp.com/
2•alwassikhan•11h ago•2 comments

Show HN: Standards compliant SAX-style XML parser for JavaScript

https://github.com/federicocarboni/saxe
2•federicocarboni•12h ago•0 comments

Show HN: Data Formulator 0.5 – Vibe with your data (Microsoft Research)

https://data-formulator.ai/
4•chenglong-hn•12h ago•0 comments

Show HN: SixSevenStudio – open-source Video Editor For Sora

https://github.com/palmier-io/sixsevenstudio
5•hchtin•1d ago•1 comments

Show HN: SSH terminal multiplayer written in Golang

https://github.com/MShel/sshOuroboros
2•mishk0sh•16h ago•0 comments

Show HN: a Rust ray tracer that runs on any GPU – even in the browser

https://github.com/tchauffi/rust-rasterizer
94•tchauffi•3d ago•29 comments

Show HN: Dynamic Code Execution with MCP: A More Efficient Approach

https://github.com/pranftw/aiter-app
2•pranftw•18h ago•0 comments

Show HN: Strange Attractors

https://blog.shashanktomar.com/posts/strange-attractors
794•shashanktomar•5d ago•77 comments

Show HN: Tamagotchi P1 for FPGAs

https://github.com/agg23/fpga-tamagotchi
68•agg23•1w ago•11 comments

Show HN: MyTimers.app offline-first PWA with no build step and zero dependencies

https://mytimers.app/
46•y3k•2d ago•28 comments

Show HN: JermCAD – A YAML-powered, vibe-coded, browser-based CAD software

https://github.com/jeremyaboyd/jerm-cad
4•jermaustin1•1d ago•0 comments

Show HN: Wosp – advanced full-text search on the command line

https://github.com/atrettel/wosp
7•atrettel•1d ago•0 comments

Show HN: FinBodhi – Local-first, double-entry app/PWA for your financial journey

https://finbodhi.com/
40•ciju•3d ago•21 comments

Show HN: Pipelex – Declarative language for repeatable AI workflows

https://github.com/Pipelex/pipelex
122•lchoquel•1w ago•27 comments

Show HN: Kumi – a portable, declarative, functional core for business logic

https://kumi-play-web.fly.dev/?example=monte-carlo-simulation
4•goldenCeasar•1d ago•0 comments

Show HN: In a single HTML file, an app to encourage my children to invest

https://roberdam.com/en/dinversiones.html
247•roberdam•1w ago•436 comments

Show HN: sudocode – manage specs, tasks, and context-as-code for coding agents

https://github.com/sudocode-ai/sudocode
15•alexsngai•1d ago•5 comments

Show HN: Why write code if the LLM can just do the thing? (web app experiment)

https://github.com/samrolken/nokode
434•samrolken•5d ago•320 comments

Show HN: Zee – AI that interviews everyone so you only meet the best

https://www.zeeda.com/
4•davecarruthers•1d ago•5 comments

Show HN: Cj–tiny no-deps JIT in C for x86-64 and ARM64

https://github.com/hellerve-pl-experiments/cj
3•hellerve•1d ago•0 comments