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

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

mousomashakel•9mo 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: Argus – VSCode debugger for Claude Code sessions

https://github.com/yessGlory17/argus
11•lydionfinance•45m ago•0 comments

Show HN: ANSI-Saver – A macOS Screensaver

https://github.com/lardissone/ansi-saver
24•lardissone•1h ago•2 comments

Show HN: Moongate – Ultima Online server emulator in .NET 10 with Lua scripting

https://github.com/moongate-community/moongatev2
265•squidleon•1d ago•154 comments

Show HN: PKGSmith

https://pkgsmith.app/
2•Fogh•1h ago•0 comments

Show HN: JotSpot – a super fast Markdown note tool with instant shareable pages

https://jotspot.io/
2•Rageypeep•1h ago•0 comments

Show HN: µJS, a 5KB alternative to Htmx and Turbo with zero dependencies

https://mujs.org
14•amaury_bouchard•7h ago•2 comments

Show HN: Somnia – a dream journal that locks 2 minutes after your alarm fires

https://www.somniavault.me/
2•SushanKKsdfsdf•2h ago•0 comments

Show HN: Bulk Image Generator – Create AI variations and remove bg in batch

https://bulkimagegenerator.app/
3•fairyFayra•2h ago•0 comments

Show HN: OSle – A 510 bytes OS in x86 assembly, now with a C API

https://github.com/shikaan/osle/releases/tag/16800a5
2•shikaan•2h ago•0 comments

Show HN: Smelt – Extract structured data from PDFs and HTML using LLM

https://github.com/akdavidsson/smelt
2•smeltcli•3h ago•0 comments

Show HN: Recruiter Analytics for Developer Portfolios

https://portlumeai.com/blog/recruiter-analytics-developer-portfolio-tracking
4•portlumeai•3h ago•0 comments

Show HN: Diamond – an interactive CLI for editing trees

https://github.com/justindmassey/diamond
2•justindmassey•3h ago•0 comments

Show HN: I open-sourced my Steam game, 100% written in Lua, engine is also open

https://github.com/willtobyte/reprobate
31•delduca•17h ago•15 comments

Show HN: Kula – Lightweight, self-contained Linux server monitoring tool

https://github.com/c0m4r/kula
69•c0m4r•16h ago•49 comments

Show HN: Claude-replay – A video-like player for Claude Code sessions

https://github.com/es617/claude-replay
91•es617•1d ago•30 comments

Show HN: 1v1 coding game that LLMs struggle with

https://yare.io
24•levmiseri•1d ago•7 comments

Show HN: OculOS – Any desktop app as a JSON API via OS accessibility tree

https://github.com/huseyinstif/oculos
7•stif1337•8h ago•1 comments

Show HN: Reconstruct any image using primitive shapes, runs in-browser via WASM

https://github.com/taiseiue/primitive-playground
40•taiseiue•4d ago•8 comments

Show HN: Nirvana – A TUI YouTube Music Player with a Physics-Based Visualizer

https://github.com/iamekabir-web/Nirvana
4•ekabir•4h ago•0 comments

Show HN: A trainable, modular electronic nose for industrial use

https://sniphi.com/
33•kwitczak•3d ago•24 comments

Show HN: Making Braindance from Cyberpunk 2077 a reality

https://www.braindance.dance/
4•shibo•8h ago•0 comments

Show HN: Git-lanes – Parallel isolation for AI coding agents using Git worktrees

https://github.com/bugrax/git-lanes
5•bugrax•8h ago•3 comments

Show HN: Swarm – Program a colony of 200 ants using a custom assembly language

https://dev.moment.com/
186•armandhammer10•1d ago•61 comments

Show HN: Mb-CLI – CLI for Metabase. Designed for humans and AI coding agents

https://github.com/andreagrandi/mb-cli
3•andreagrandi•9h ago•0 comments

Show HN: Graph-Oriented Generation – Beating RAG for Codebases by 89%

https://github.com/dchisholm125/graph-oriented-generation
10•dchisholm125•19h ago•2 comments

Show HN: NeoNetrek – modernizing the internet's first team game (1988)

https://neonetrek.com
5•yuriksan•17h ago•0 comments

Show HN: Interactive 3D globe of EU shipping emissions

https://seafloor.pages.dev
19•marcohaber•1d ago•7 comments

Show HN: Jido 2.0, Elixir Agent Framework

https://jido.run/blog/jido-2-0-is-here
319•mikehostetler•2d ago•65 comments

Show HN: PageAgent, A GUI agent that lives inside your web app

https://alibaba.github.io/page-agent/
145•simon_luv_pho•1d ago•73 comments

Show HN: Modembin – A pastebin that encodes your text into real FSK modem audio

https://www.modembin.com
25•a13x57•1d ago•3 comments