A

A Database Written in C

Hacker News

A Database Written in C

Hey hackernews! I'd like to share a hobby and passion project I've been working on for almost a year now. It's an open-source storage engine (underlying component of a database(s)) similar to that of LevelDB/RocksDB but written entirely in C. The storage engine is called TidesDB. TidesDB is written entirely in C. It's designed as a fast, transactional key-value storage engine built on a log-structured merge-tree (LSM-tree) architecture. My journey with TidesDB began nearly 2 years ago whilst I was experimenting with various data structures and databases in Go. When I encountered the log-structured merge tree concept, I was initially overwhelmed by its complexity after reviewing other implementations. However, after studying the original paper, I realized I could potentially simplify the design by focusing on just a 2-level approach(memory level and a disk level). This was challenging at first, and I scrapped many ideas along the way, but over time I discovered how powerful this design could potentially be. The beauty of this design/architecture is its extensibility. Since the disk level contains many SSTables (Sorted String Tables), we can efficiently pair and merge them in various ways - whether in parallel for speed or incrementally to minimize resource impact. What began as a challenging learning process has I believed evolved into a unique engine design and library. You can check out TidesDB code here: https://github.com/tidesdb/tidesdb Website here (Architecture-design, documentation and more): https://tidesdb.com There are a variety of FFI libraries in the works for C++, GO, Python, Lua and more! Currently TidesDB is nearing its first major release, we are still in beta development. I'd love to get your thoughts, questions and all :)

Share card

Actual performance

9points
22comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: lua, ide, io · Missing: https docs, excited, just released
83%83% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Strong signals: para, efficiently · Missing: supports, reddit linkedin, podcasting
80%80% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, using, code · Missing: mac, agents, macos
70%70% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoStrong fit for a featured deal · Strong signals: efficient · Missing: plus, platform, intuitive
50%50% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way, para · Missing: mobile apps, ios, personal
47%47% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
11%11% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

A
A Database Written in Golang51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Database Written in Golang

Hacker News277
A
A nosql database written in go73%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A nosql database written in go

Hacker News2
Ra
Rapto – An in-memory NoSQL database written in Zig79%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rapto – An in-memory NoSQL database written in Zig

Hacker News1
Ne
Nebula – a distributed graph database written in C++77%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Nebula – a distributed graph database written in C++

Hacker News178
Mu
Mulle-container: Sets, hashtables, arrays and more – written in C46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mulle-container: Sets, hashtables, arrays and more – written in C

Hacker News5
Mu
Mulle_sprintf, an extensible sprintf written in C60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mulle_sprintf, an extensible sprintf written in C

Hacker News2
Rm
Rmux, a Redis multiplexer written in Go67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rmux, a Redis multiplexer written in Go

Hacker News2
Ri
Rift – An Intel 8051/52 assembler written in Java45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rift – An Intel 8051/52 assembler written in Java

Hacker News4
A
A Tmux Keylogger Written in Bash74%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Tmux Keylogger Written in Bash

Hacker News4
A
A pipelined RISC-V processor written in VHDL67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A pipelined RISC-V processor written in VHDL

Hacker News65