Better HN
topnewbestaskshowjobs
Log inSign up

goodoldneon

918 karma · joined Jul 23, 2018 (8y ago) · 309 submissions

Submissions

1.

Node.js worker threads in production: what's easy, what's not(inngest.com ↗)

8 points · by goodoldneon · 5mo ago · 1 comment

2.

There are too many JavaScript schema libraries, so support only one(inngest.com ↗)

6 points · by goodoldneon · 5mo ago · discuss

3.

You can't cancel a JavaScript promise (except sometimes you can)(inngest.com ↗)

97 points · by goodoldneon · 7mo ago · 61 comments

comment 7mo ago · link · parent

Great point :D

comment 7mo ago · link · parent

It isn’t for all repeated vowels; only for when the 2 vowels don’t make a single sound. So “chicken coop” wouldn’t have a dieresis

comment 7mo ago · link · parent

Kinda hyperbolic, but a lot of truth

7.

TypeScript Enums Are Terrible(youtube.com ↗)

1 points · by goodoldneon · 7mo ago · 1 comment

comment 8mo ago · link · parent

I switched from Cursor to Neovim and at first I hated Neovim’s poor AI ghost text. Now I kind of like the break from heavy AI when I write code.

The vast vast majority of my code is written by Claude Code, so I don’t write much. But when I do it’s like an exercise in warding off programming atrophy

comment 8mo ago · link · parent

> You shouldn't be blocking the main event loop for 30 seconds! The main event loop is not intended to be used for heavy processing.

This article is talking about an SDK that runs in users' apps. Users can run whatever code they want, so the SDK has to find a way to keep sending the outgoing heartbeats

comment 8mo ago · link · parent

> Reading the article, I didn’t see this answered: why not scale to more nodes if your workload is CPU bound?

It's an SDK that runs in users' apps. So userland code blocks the event loop, preventing outgoing heartbeats from the SDK

11.

Node.js worker threads are problematic, but they work great for us(inngest.com ↗)

70 points · by goodoldneon · 8mo ago · 30 comments

12.

What Python’s asyncio primitives get wrong about shared state(inngest.com ↗)

79 points · by goodoldneon · 8mo ago · 48 comments

comment 12mo ago · link · parent

We'll release an Upstash Workflows adapter soon! StepKit is ultimately just an in-code API that lets you define workflows in a backend agnostic way. We want you to define workflows that can run in Upstash, Inngest, Cloudflare... really anywhere!

comment 12mo ago · link · parent

Vercel Workflow Kit takes a very different approach. Lack of step IDs (which makes them worse at handling code changes), compilation step, more opinionated about backends ("worlds", as they call them). Vercel Workflow Kit has magic that admittedly makes it a little easier to get started, but that magic causes problems when you want a mature product.

Cloudflare Workflows are actually complementary to StepKit! We'll soon release an adapter that lets you define StepKit workflows that run as Cloudflare Workflows. We have a POC in `packages/cloudflare` in our repo

comment 12mo ago · link · parent

Inngest engineer here! For a little extra context, the `@stepkit/core` package is basically just an API for defining a workflow. There isn't much to it because we don't want to be overly opinionated on backend implementations!

The `@stepkit/sdk-tools` package is a set of tools for building your own StepKit SDK. The vast vast majority of stuff in there is optional, but highly valuable if you want to avoid reinventing the wheel when building your own SDK.

comment 1y ago · link · parent

Why is nominal typing desirable?

comment 1y ago · link · parent

PEPs are often great documentation. They definitely don't cover everything, but they can be helpful

comment 1y ago · link · parent

Because I get rewards when I use it. I always pay at the end of the month so I never pay interest

comment 1y ago · link · parent

I use Cursor and I get a lot of benefit from its autocomplete suggestions, but its composer is horrible so I never use it. The dream of telling AI to make changes on its own hasn’t arrived

comment 1y ago · link · parent

I always make sure recover is used in all goroutines I start. I don’t want a panic in a random goroutine to crash my whole server

comment 1y ago · link · parent

Looks like you're being downvoted but you're right. A tiny fraction of high school students would actually care about these classes -- high school me wouldn't

comment 1y ago · link · parent

IIRC, the lifecycle hook only prevents destruction of the resource if it needs to be replaced (e.g. change an immutable field). If you outright delete the resource declaration in code then it’s destroyed. I may be misremembering though

comment 1y ago · link · parent

To be clear, it's running in TypeScript types only -- not JavaScript. Absolutely insane

comment 1y ago · link · parent

Do not base your company’s tech decisions on FAANG companies unless your company is a FAANG company. Your challenges are likely very different from theirs

comment 2y ago · link · parent

Right, you can change punctuation to clarify it. However, it doesn't change the fact that the Oxford comma could make the list readable as a parenthetical phrase.

I'm not saying the Oxford comma is bad. I'm just saying that it isn't 100% perfect as many people imply.

comment 2y ago · link · parent

They went to Oregon with Betty, a maid, and a cook.

Is Betty a maid or did they go with 3 people?

comment 2y ago · link · parent

The Oxford comma isn't a panacea. Sometime it makes a list read like a parenthetical phrase

comment 2y ago · link · parent

If performance is so important for your app that `var` is causing issues then JavaScript is likely the wrong language

comment 2y ago · link · parent

If the incentives for creating content decrease then where will AI source from?
12345
11