Better HN
topnewbestaskshowjobs
Log inSign up

kelindar

134 karma · joined Nov 7, 2017 (9y ago) · 13 submissions

Submissions

comment 1y ago · link · parent

This might be useful to some if you need a very light pub/sub inside one process.

I was building a small multiplayer game in Go. Started with a channel fan-out but (for no particular reason) wanted to see if we can do better. Put together this tiny event bus to test, and on my i7-13700K it delivers events in 10-40ns, roughly 4-10x faster than the plain channel loop, depending on the configuration.

2.

Event – Fast, In-Process Event Dispatcher(github.com ↗)

170 points · by kelindar · 1y ago · 37 comments

comment 2y ago · link · parent

This library was created to provide an easy and efficient solution for embeddings and vector search, making it perfect for small to medium-scale projects that still need some vector search. It's built around a simple idea: if your dataset is small enough, you can achieve accurate results with brute-force techniques, and with some optimizations like SIMD, you can keep things fast and lean.

4.

Go library for in-process vector search and embeddings with llama.cpp(github.com ↗)

114 points · by kelindar · 2y ago · 29 comments

comment 5y ago · link · parent

Honestly, I enjoy programming in Go and been using it on a daily basis for the last few years. Most importantly, when it comes to performance it's often not the language that matters but how you structure your code. It's very much possible to build a terrible C++ program which thrashes memory and will be very slow. And I feel like Go is actually lacking those nice data-oriented libraries.

comment 5y ago · link · parent

That's the idea, a transaction commit log decoupled from underlying durable storage allows you to build your own persistence layers. I'm still thinking to build a simple (memory-mapped?) layer, but as an optional, separate lib.

comment 5y ago · link · parent

Wait no, that repo was an experiment that I'll be rebasing and finally building a real ECS based on the columnar storage library.

comment 5y ago · link · parent

It's actually possible, columns are simple Go interfaces and can be re-defined and defined for specific types. You can easily build implementation of columns that actually load data from disk or even a remote server (RDBMS, S3, ..?) and retain the indexing capability.

On the flip side, you could actually fit more data in-memory than with non-columnar methods, since the storage is column-by-column, it compresses very well. For example boolean values are stored as bitmaps in this implementation, strings could be stored in a hash map so there's only one string of a type that kept in memory, even if you have millions of rows.

9.

About Being a Principal Engineer at Grab(engineering.grab.com ↗)

2 points · by kelindar · 7y ago · discuss

10.

A Lean and Scalable Data Pipeline to Capture Large Scale Events(engineering.grab.com ↗)

1 points · by kelindar · 7y ago · discuss

11.

Querying Big Data in Real-Time with Presto and Grab's TalariaDB(engineering.grab.com ↗)

1 points · by kelindar · 7y ago · discuss

12.

Emiter: High Performance Clustered Low Latency Publish/Subscribe Platform in Go(github.com ↗)

3 points · by kelindar · 9y ago · discuss

13.

Yet Another Fast Go Binary Serializer(github.com ↗)

2 points · by kelindar · 9y ago · discuss