MehdiHK

Joined 12 years ago

Karma
181
Submissions
83
Member since
May 20
https://mehdikhan.dev/
View on Hacker News

Recent submissions

Comment · 1 year ago
One of my favorite books! Any plans to make this series a book as well? (Will be an instant buy for me)
Comment · 1 year ago
Moravec's paradox
Comment · 1 year ago
Comment · 1 year ago
> If you need true multithreading

I didn't say multithreading anywhere. Mutitasking (concurrency) != Multithreading.

You can do pre-emptive concurrency with a single thread in other runtimes, where each task gets a pre-defined amount of CPU time slice, that solves fair scheduling for both IO and CPU-bound workloads. Nobody is supposed to pick NodeJS for CPU-bound workload, but you cannot escape JSON parse/stringify event-loop blocking in practice (which is CPU-bound).

Comment · 1 year ago
> JSON.stringify was one of the biggest impediments to just about everything around performant node services

That's what I experienced too. But I think the deeper problem is Node's cooperative multitasking model. A preemptive multitasking (like Go) wouldn't block the whole event-loop (other concurrent tasks) during serializing a large response (often the case with GraphQL, but possible with any other API too). Yeah, it does kinda feel like amateur hour.

Comment · 1 year ago
No pricing page? Also how does it compare to Cribl?
Comment · 1 year ago
Comment · 1 year ago
Not related to VPC, but I'm a big fan of the author. Loved his book "Grokking Algorithms: An Illustrated Guide for Programmers and Other Curious People" when it came out a few years ago. If you know anyone struggling with common data structures and algorithms, this book can make it fun for them.
Comment · 1 year ago
This.

I'd also add that code readability goes a long way too. Rust compiler has better checks than Go, but when LLMs make mistakes it's a lot easier to identify and fix generated Go code than Rust.

So the balance between verbosity and readability is important too, in addition to soundness checks. Java and Go are both verbose, but Go is intentionally designed for readability.

And compile time as already mentioned. Go wins there too.

All of these help together to iterate faster with fast and often subtly wrong generated code. LLMs will continue to be less wrong as the available training samples increase over time. That's something for the future to see what wins there.

Comment · 2 years ago
Comment · 2 years ago
That's quite interesting. Thank you for the link.
Comment · 2 years ago
Prometheus scrapes metrics at constant intervals. How does being serverless helps here?
Comment · 2 years ago
Comment · 2 years ago
Oh, didn't realize that. How does it handle key input in Windows? Text Services Framework or something else?
Comment · 2 years ago
Cool. Do you have plans for Windows and macOS frontends?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton