Better HN
topnewbestaskshowjobs
Log inSign up

lvogel

132 karma · joined Aug 31, 2020 (6y ago) · 21 submissions

Submissions

comment 1y ago · link · parent

That's just my age showing, I guess. For me, all 2.5D shooters are DOOMlikes. I was actually first thinking about calling it a Quake-like since IMHO that is much more well known for its multiplayer, but then I never got around to implement powerups and all the other stuff people might have expected.

comment 1y ago · link · parent

Love that you liked it! Your project was the inspiration and showed me the insanity was actually feasible :D

comment 1y ago · link · parent

Yea, I actually thought of the viability of SQL for games while working on DOOMQL. It's just so easy to express a lot of game logic in SQL queries. As an avid OSRS player I was thinking about doing a simple MUD/MMO next.

Thanks for the pointer to SpacetimeDB - haven't heard of it before!

comment 1y ago · link · parent

If you want to take a look at the source code, here's the repo! https://github.com/cedardb/DOOMQL

5.

Building a DOOM-like multiplayer shooter in pure SQL(cedardb.com ↗)

255 points · by lvogel · 1y ago · 39 comments

6.

Tailored Code Generation for Every Database Query(cedardb.com ↗)

1 points · by lvogel · 1y ago · discuss

comment 1y ago · link · parent

The version is just an atomic integer assigned to that btree node which is monotonically increasing. Each writer increases the version when it releases the lock IF it has modified the node.

Wraparounds are only a theoretical issue. There would have to be exactly UINT64_MAX writers between a reader first checking the version and verifying the version.

8.

To B or not to B: B-Trees with Optimistic Lock Coupling(cedardb.com ↗)

2 points · by lvogel · 1y ago · discuss

9.

Why German Strings Are Everywhere(cedardb.com ↗)

35 points · by lvogel · 2y ago · 4 comments

comment 2y ago · link · parent

Tell me about it... Was just too expensive compared to flash. But the tech was definitely awesome and I hope it'll come back in one way or another.

When designing CedarDB, we recently had multiple instances where we thought: "If we had just a few KiB of Optane here ... "

comment 2y ago · link · parent

> Ultimately, a reliable non-volatile write cache, sized for your workload is the answer.

Author here, I agree! It's quite sad that we need such an involved solution to offset the inherent complexity of the flash medium (latency spikes, erase blocks, ...). We nearly had the perfect solution with Optane[1]: 100ns latency, instantly persisted writes and all that good stuff.

I'm still not over Intel killing it while I did my PhD on it.

[1] https://en.m.wikipedia.org/wiki/3D_XPoint

comment 2y ago · link · parent

Yes, the way it is currently implemented, the build side has to fit into RAM. There is no inherent reason we couldn't also spool to disk, but we haven't implemented that yet.

comment 2y ago · link · parent

Depends on your use case. Redis is a key-value store that is optimized for simpler workloads and is designed as a caching layer.

Umbra, on the other hand, is a full fledged, ACID compliant relational database systems with all bells and whistles.

However, Umbra can process multiple 100ks of transactions per second. If you're interested in more details, take a look at Figure 6 in this research paper: https://db.in.tum.de/~freitag/papers/p2797-freitag.pdf

Disclosure: I work for CedarDB (https://cedardb.com), the commercial spinoff of Umbra.

comment 2y ago · link · parent

Yes, we do use io_uring

comment 3y ago · link · parent

all VLDB papers are also completely open access. You can find e.g. last year's papers here: http://vldb.org/pvldb/volumes/15.

16.

Mosaic: A Budget-Conscious Storage Engine for Relational Database Systems [pdf](vldb.org ↗)

2 points · by lvogel · 6y ago · discuss