Recent submissions

Comment · 1 year ago
Hahahaha this got me. My sarcasm/satire detectors are clearly malfunctioning today...
Comment · 1 year ago
You can also schedule code to run each "tick" of the event loop, which is a non-blocking version of a while loop.

Or you could promisify the send function and use normal async/await.

   let q = Promise.resolve(),
     sendAsync = (p) => new Promise(r => send(p, r)),
     sendOnce = (p, c, ms) => setTimeout(_ => q.then(_ => sendAsync(p)).then(c), ms)
Or you could actually spin up a new worker thread and get multithreading :P
Comment · 1 year ago
JS has an event loop, it's single threaded but still lets you write asynchronous code.

let send = (payload, callback) => fetch(...).then(callback)

fetch() returns a promise synchronously, but it's not awaited.

Comment · 1 year ago
Fascinating article. It's think the author's experiences are fairly context-dependant, with where you live, the political leanings of your social circle, your online community etc. But I have noticed an increase in the pathologizing of normal human behaviours and traits. Maybe not all character flaws should be fixed.
Comment · 1 year ago
I find it really fulfilling to meet strangers but I need to be in the right headspace and it needs to be the right atmosphere.

"Every person you look at, you can see the universe in their eyes -- if you're really looking." -- George Carlin

Comment · 1 year ago
Yeah fair enough :)
Comment · 1 year ago
I'm introverted and I enjoy networking and group activities and also meeting and chatting with strangers. I just can't do it all day every day, I need breaks.

Having social anxiety is different from not knowing how to talk to people and make friends. Bill Russel would get so worked up before games he would throw up. But he could also perform.

I think it depends on what you're anxious about. Being scared that people will dislike you is different from being scared of embarrassment and it's different from being scared you don't know what to do in the moment.

Of course all of those can be helped by simply exposing yourself to the situation over and over again. You learn that if you do embarrass yourself or if people dislike you, the world doesn't turn to ash.

Comment · 1 year ago
I really should read Jung. So much wisdom in that.
Comment · 1 year ago
I mean push the devs towards writing native swiftui.
Comment · 1 year ago
I suppose it's only the bad ones that I notice, but I can definitely get annoyed by UI that's janky, choppy, or close-but-not-quite native. It's jarring.
Comment · 1 year ago
I agree with you but I think at a certain point with large teams, the marginal benefit of hiring n+1 becomes negligible and then dips negative.

I've never worked for a company with thousands of devs but I imagine at a certain point the cost of simply collaborating and managing those devs becomes pretty high too.

Comment · 1 year ago
I don't think it's that hard for someone with experience writing shaders to emulate. The moat is that it's almost impossible to replicate with browser technology, which hurts web-based ui systems and is still a big challenge with something like flutter or jetpack compose multiplatform.

Stuff like React Native get it basically for free because their ui is still technically "native".

But apps that rely on web views are screwed and I'm sure Apple will be happy to push devs away from those solutions as they're inferior for users.

Now they just need to figure out a way to push RN apps towards true native.

Comment · 1 year ago
I clicked on this fully expecting it to be about the video game...
Comment · 1 year ago
I'm sorry but what you are describing is not what a zero sum game is.
Comment · 1 year ago
Yeah I agree. I think it's the same way as fashion - it's often not new styles, just new takes on the past. But it keeps things fresh and interesting.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton