Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
spion
3y ago
How about in Docker on ARM Mac?
92.
▲
by
spion
3y ago
For offline first apps, or for applications where very high degree of control for the content is needed (e.g. legal docs) and realtime collaboration isn't that valuable, there is also the option to use 3-way merge instead. The benefit
93.
▲
by
spion
3y ago
This particular example with the string types was Haskell, but Rust often makes you think about performance decisions at all times as well. I'm fully aware that that's the point of Rust, however (and yes there are ways to stop wor
94.
▲
by
spion
3y ago
The example is, interestingly possible in TypeScript, at a very cheap cost function modifiesValField(struct: {val: number}) { struct.val = 0; } Structural types and inline interfaces (or as I like to call them inyourfaces) are
95.
▲
by
spion
3y ago
I've been on both camps, so I'm hoping I can give some insight. Lots of statically typed languages are very strict about their types and have too many of them. You have to admit, when you're trying to build something difficul
96.
▲
by
spion
3y ago
Is this documented anywhere?
97.
▲
by
spion
3y ago
How do you version the functions? How does the server determine which function to call? Does it use the name of the function, or its source code file, or something else? If I rename the old version and call it `actionOld` while the new vers
98.
▲
by
spion
3y ago
> You just define a function and call it, very nice. What do you do when you change the action API (arguments / return type) and deploy? What happens with browsers still having the old code that assumes the old contract?
99.
▲
by
spion
3y ago
You don't need to use drizzle migrations. There are much better migration tools.
100.
▲
by
spion
3y ago
Can you elaborate?
101.
▲
by
spion
3y ago
Have you tried drizzle? https://orm.drizzle.team/docs/select#aggregations (note: it produces type-safe results too)
102.
▲
by
spion
3y ago
I have the opposite problem - I don't want to see scrollbars. I have the touchpad and scrollwheel for that. I don't need anything taking away space from actual content, especially in narrow sidebar menus. A semi-transparent strip
103.
▲
by
spion
3y ago
The drizzle example I linked to is a realistic example into what would actually be involved in using JSON aggregation in the datbase in PG. Its painful to write manually. I wish postgres had FOR JSON ( https://learn.microsoft.com&
104.
▲
by
spion
3y ago
MS should've dropped the .NET branding once it became cross-platform.
105.
▲
by
spion
3y ago
If this is not done carefully, it can also be slow in some situations, even with the right indeces in place. Lets say we have the following slightly contrieved case: organizaiton(id, name, description) -> users(id, name) -> posts(id,
106.
▲
by
spion
3y ago
I would modify this to "Don't use Prisma if you're using serverless" With actual servers and prisma running close to the underlying database, it should be much better. Regarding using joins, that's not necessarily t
107.
▲
by
spion
3y ago
I often rename a field in a typed language, just as a way to ask the compiler which parts of the code are affected by or use that field then I continue my reading there. Its like a grep, except it can, for example, differentiate between &qu
108.
▲
by
spion
3y ago
https://www.bmj.com/content/363/bmj.k5094
109.
▲
by
spion
3y ago
For TypeScript (browser, chrome), it should be in the devtools under the Performance tab, (backend) is node --prof and --prof-process
110.
▲
by
spion
3y ago
You use OpenID which sorta does all of this for you.
111.
▲
by
spion
3y ago
Yeah it did. My bad writing "at most". But the problem is with "at least once" (email sending cannot be made idempotent AFAIK)
112.
▲
by
spion
3y ago
The more I look at it, the more I think that Deno is actually a perfect fit for infrastructure as code. The first reaction I get is usually "What, JavaScript!?". Here is why its better than it looks like. Deno easily runs TypeScri
113.
▲
by
spion
3y ago
I like how updating the data and enqueueing a message can be part of a single transaction. That's indeed pretty powerful. A bit of an aside, but not sure we want at-most-once delivery for email.
114.
▲
by
spion
3y ago
That's because they're not really that hard. Compilers are essentially pure functions, encryption is as well. State is another beast entirely. If I had to put on my innovator cap and do a relatively weakly informed guess, I'd
115.
▲
by
spion
3y ago
The problem (very reliable storage of large amounts of data) is really hard too.
116.
▲
by
spion
3y ago
More like six days lately.
117.
▲
by
spion
3y ago
How is the language server support?
118.
▲
by
spion
3y ago
I would use it anyway. This article misses some subtleties that make uuids really great, as well as some real points against uuids (impact of v4 uuids on index access and uuid v7 as a solution to that)
119.
▲
by
spion
3y ago
Or maybe jq does have some design flaws.
120.
▲
by
spion
3y ago
The main problem is treating one-thing and many-things the same way. Its not a great PL design choice (and its why we can't have slurp as a filter). If streams (not arrays) were also first-class, we would easily have `smap`, `sselect`
More ›