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

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

mousomashakel•11mo 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: PanicLock – Close your MacBook lid disable TouchID –> password unlock

https://github.com/paniclock/paniclock/
18•seanieb•1h ago•4 comments

Show HN: Stage – Putting humans back in control of code review

https://stagereview.app/
53•cpan22•1d ago•50 comments

Show HN: Smol machines – subsecond coldstart, portable virtual machines

https://github.com/smol-machines/smolvm
7•binsquare•41m ago•4 comments

Show HN: Bird, a CLI for Tired Brains

https://github.com/DavidLiedle/bird
3•DavidCanHelp•47m ago•0 comments

Show HN: SPICE simulation → oscilloscope → verification with Claude Code

https://lucasgerads.com/blog/lecroy-mcp-spice-demo/
113•_fizz_buzz_•17h ago•30 comments

Show HN: React Email 6.0 – An open-source email editor you can embed in your app

https://github.com/resend/react-email
9•code-in-public•3h ago•0 comments

Show HN: MacMind – A transformer neural network in HyperCard on a 1989 Macintosh

https://github.com/SeanFDZ/macmind
141•hammer32•1d ago•40 comments

Show HN: CodeBurn – Analyze Claude Code token usage by task

https://github.com/AgentSeal/codeburn
97•agentseal•3d ago•22 comments

Show HN: Noodlist – Letterboxd for Instant Ramen

https://noodl.ist/
6•mkdirpepper•4h ago•6 comments

Show HN: Marky – A lightweight Markdown viewer for agentic coding

https://github.com/GRVYDEV/marky
67•GRVYDEV•1d ago•35 comments

Show HN: XitDB – an immutable single-file database

https://github.com/xit-vcs/xitdb
8•xeubie•5h ago•0 comments

Show HN: Generate a realistic handwriting animation from any text

https://getmycursive.com/
2•chunza2542•5h ago•1 comments

Show HN: Home Memory – A local DB of my house, down to cables and pipes

https://github.com/impactjo/home-memory
46•impactjo•1d ago•12 comments

Show HN: Libretto – Making AI browser automations deterministic

https://github.com/saffron-health/libretto
125•muchael•2d ago•54 comments

Show HN: SmallDocs - Markdown without the frustrations

35•FailMore•2d ago•20 comments

Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years

https://www.perplexity.ai/computer/a/us-olympiad-tracker-__5Gzx3tQaKOInGlalN8sQ
5•bkls•19h ago•0 comments

Show HN: Ejectify 2 Launched: No More "Disk Not Ejected Properly" notifications

https://ejectify.app?discount=EJECTIFY2
2•nielsmouthaan•10h ago•1 comments

Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis

17•kaliades•1d ago•5 comments

Show HN: Hiraeth – AWS Emulator

https://github.com/SethPyle376/hiraeth
36•ozarkerD•1d ago•7 comments

Show HN: Gave Claude a casino bankroll – it gambles till it's too broke to think

https://letaigamble.com/
35•mackbrowne•1d ago•8 comments

Show HN: Ilha – a UI library that fits in an AI context window

https://ilha.build/
21•ryuzyy•1d ago•9 comments

Show HN: Every CEO and CFO change at US public companies, live from SEC

https://tracksuccession.com/explore
186•porsche959•2d ago•64 comments

Show HN: Ask your AI to start a business for you, resolved.sh

https://resolved.sh/
2•RancheroBeans•14h ago•1 comments

Show HN: LangAlpha – what if Claude Code was built for Wall Street?

https://github.com/ginlix-ai/langalpha
145•zc2610•3d ago•54 comments

Show HN: Omi – watches your screen, hears conversations, tells you what to do

https://github.com/BasedHardware/omi
17•kodjima33•1d ago•13 comments

Show HN: German Abitur: More good grades, fewer bad grades

https://camminady.dev/abiturnoten/
7•k1next•1d ago•3 comments

Show HN: Plain – The full-stack Python framework designed for humans and agents

https://github.com/dropseed/plain
93•focom•3d ago•51 comments

Show HN: Fakecloud – Free, open-source AWS emulator

https://github.com/faiscadev/fakecloud
35•lucas_vieira•2d ago•9 comments

Show HN: Online Sound Decibel Meter

https://soundmeterx.com/
4•artiomyak•23h ago•3 comments

Show HN: Free API and widget to look up US representatives

https://repscontact.com/
3•waterproof•17h ago•2 comments