DmitryOlshansky

Joined 9 years ago

Karma
276
Submissions
149
Member since
Jul 25
https://olshansky.me
View on Hacker News

Recent submissions

Comment · 1 month ago
The bonus is synchonizing at arbitrary point in stream and that ASCII is UTF-8
Comment · 1 month ago
I think one area where spinlock could be useful is fibers. There you have an option to schedule another fiber instead of spinning CPU until timeslice runs out.
Comment · 4 months ago
I’ve replaced Asio recently with stright epoll event loop and got about 16% RPS better. That is for resonably sized SQL server, so be careful with nice precanned libraries.
Comment · 4 months ago
I would argue that _premature_ abstraction is worse than _some_ duplication of code.

Also I’ve seen the kind of codebase that seems to be LZW packed due to the sheer desire to DRY everything out. Not pleasant thing, by the time you goto 10 layers deep on some “helper” function you forgot why you in there.

Comment · 5 months ago
There is a big difference between JIT compiled _dynamic_ language and ahead of time compiled static language. While modern JS engines show that difference sometimes can be narrowed down with sophisticated JIT and runtime, it is still there.
Comment · 5 months ago
Running NFA is O(nm) not NP.
Comment · 10 months ago
On a related note getting my share of data back from OneDrive was a painful exercise - tons of spurious write errors I spent best part of my evening getting everything back to my filesystem. Yes remote by default was enabled without my consent.
Comment · 1 year ago
I just wonder if it has the three laws builtin.
Comment · 1 year ago
Comment · 1 year ago
I guess this will be killed soon enough, like so many Google projects.
Comment · 1 year ago
I too adopted Scala in 2014 and was really satisfied with FP side and how it all was tied with JVM. Honestly I always felt that JVM is a nice platform with a horribly verbose “assembly” language that is Java.

Fast forward to around 2020 and I had to organize a team to build search engine in JVM. Given how hard it is to find decent Scala developer I surrendered and did this project in Kotlin. Java devs easily pick up and write sensibly FP-style even code, and builtin coroutines are cool. Even though I had to open up the internals of coroutines to get tracing to work they felt a very welcome change compared to say monadic explicit async.

So for me Kotlin is kind of watered down Scala for typical Java folks and I could tolerate it compared to perspective of writing plain Java.

Comment · 1 year ago
Why not full VM with JIT? Seems much easier and more compatible with apps out there.
Comment · 1 year ago
Used cucumber as living specification for our search engine. Sooner or later we realized it was just matching a list of expected JSONs with a bunch of awkward Given, And Then mixed in. Scraped that stuff for our own Kotlin DSL, made the whole thing more flexible and faster to boot.
Comment · 1 year ago
I recall the Zookeeper paper from Yahoo scientist which basically details a more useful version of Google’s chubby. I find reliability and design of Zookeeper fascinating these days cool kids use etcd mostly because of relatively complex protocol of Zookeeper (there is a few implementations but they lack the polish of Java client).
Comment · 1 year ago
I recall playing Warcraft I with my friend over null modem. Kind of boutique LAN party.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton