throwaway143829

Joined 2 years ago

Karma
42
Submissions
28
Member since
Dec 27
View on Hacker News

Recent submissions

Comment · 2 years ago
Why do you think this implies they are building a search service rather than just scraping your site for more training data?
Comment · 2 years ago
Couldn't the zero value be nil? I get that some types like int are not nil-able, but the language allows you to assign both nil and int to a value of type any (interface{}), so I wonder why it couldn't work the same for sum types. i.e. they would be a subset of the `any` type.
Comment · 2 years ago
Enums and sum types seem to be related. In the code you wrote, you could alternatively express the Hot and Cold types as enum values. I would say that enums are a subset of sum types but I don't know if that's quite right. I guess maybe if you view each enum value as having its own distinct type (maybe a subtype of the enum type), then you could say the enum is the sum type of the enum value types?
Comment · 2 years ago
> in some sense

I think you missed the point - this is what they mean by "defined so loosely as to be uninformative." By saying "in some sense" you are allowing arbitrarily abstract definitions of the term "computer" thereby making the term itself no longer useful.

Comment · 2 years ago
What's the difference between this recipe and `impbcopy image.png`? Is it just for the pixelated effect?
Comment · 2 years ago
Your comment seems to presume that AI will not get any better than it is now. Imagine an AI that understands how to create deep, impactful music better than humans do, because it understands how music works at a biochemical level. Imagine it can even predict the dynamics you're describing, about employing "unwanted artifacts" in the music as a way to evolve new genres. It would no longer need to create such obviously derivative works at that point, and it could generate music that sounds completely unique to us. It may take a long time to reach that point, but when it does, the kinds of music that it generates won't be able to be dismissed so easily.
Comment · 2 years ago
Yeah, I'm very confused by this. Why is the example also showing a hard-coded 2023 in the component usage? Shouldn't the component be responsible for rendering that?
Comment · 2 years ago
sqlite3, but I think bulk inserts would improve perf for other DBs too.
Comment · 2 years ago
TLDR to get better performance, use bulk inserts instead of inserting one row per query. And (unrelated to DB perf) don't use the spread operator in JS for passing function args (the author says not to use the spread operator at all but you don't need to go that far)
Comment · 2 years ago
Have you seen protobuf.js? I've dug quite deep into its generated code and have not seen any runtime magic. It's just directly working with the protobuf wire format and transferring the data to/from fields with very explicit code.

I can't speak for Google's official implementation though.

Comment · 2 years ago
Stores don't have the space for that currently. Though it may be possible to redesign them in such a way that they do.
Comment · 2 years ago
Can confirm, I broke the robot once when I accidentally had the sign flipped on the PID error term.
Comment · 2 years ago
find is pretty slow compared to fd. It also spends a lot of time searching through directories like .git or node_modules which you typically want to exclude.
Comment · 2 years ago
Handling "end of data" isn't really something that any serialization format needs to specify, so I don't think this needs to be called out for JSONL specifically. e.g. in JS if you're using a ReadableStream you can just check whether a read returns .done==true. This is true regardless of the data you're reading, JSONL or otherwise

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton