Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
the_duke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
751.
▲
by
the_duke
5y ago
Critical Role is a relatively big deal. They did a Kickstarter to turn the first season of the live DnD campaign into an animated show, which finished at over 10 million. The rights have been bought by Amazon and it will release on Prime.
752.
▲
by
the_duke
5y ago
I might be missing something, but I have trouble seeing how CRDTs can work for regular CRUD style applications. Just the first example that pops into my head: edit A sets an invoice status to paid, edit b changes the invoice amount from 100
753.
▲
by
the_duke
5y ago
The benchmark linked in the comments shows 7-38% improvements. Nothing to scoff at, but if you need PGBouncer that probably won't make enough of a difference.
754.
▲
by
the_duke
5y ago
Event sourcing could be a great architecture for general purpose applications - if we had good frameworks and specialized event stores built for this purpose. Some features that would be needed: * Automatic , schema based event and aggrega
755.
▲
by
the_duke
5y ago
> I'm essentially abusing spaces to act like client-side folders/groupings of rooms. That's exactly one of the intended purposes!
756.
▲
by
the_duke
5y ago
You can assign regular workers to your sites hosted with Pages. The workers act as a middleware. You can `fetch` the static content and then do any processing/logging you want.
757.
▲
by
the_duke
5y ago
I second that. Using nix for building docker images [1] is brilliant, especially when combined with flakes. You don't need messy shell scripts to set up the environment and can get 100% reproducibility. You just build a regular Nix der
758.
▲
by
the_duke
5y ago
You can use any external logging service that has an HTTP API. Not ideal, but it works fine. I'm doing this with Cloudflare workers by sending access logs to a self hosted Matomo analytics and error logs to Loggly. But in general, Clou
759.
▲
by
the_duke
5y ago
Terraform is also working on allowing actual code: https://github.com/hashicorp/terraform-cdk
760.
▲
by
the_duke
5y ago
I think the goal with this one was to be zero-friction and allow any WASI module to serve requests, without requiring language-specific bindings. It's obviously not a great design, and a more serious standardized version would use int
761.
▲
by
the_duke
5y ago
An attempt to capture customers leaving ExpressVPN makes sense.
762.
▲
by
the_duke
5y ago
I haven't seen anyone question why they would write such a blog post in the first place. This might suggest that they have a potential buyer who is aggressively trying to convince them to sell. This could be Mozilla, considering their
763.
▲
by
the_duke
5y ago
Whoops, indeed, the intended target was https://news.ycombinator.com/item?id=28549925 .
764.
▲
by
the_duke
5y ago
I disagree on this one. Before `class`, people built ad-hoc class-like constructs based on prototype inheritance. Often in slightly different ways, with different constructor choices and different implementation details. For larger code bas
765.
▲
by
the_duke
5y ago
I switched to NixOS about a year ago. It's been amazing for me. Especially when combined with home-manager [1], which provides declarative user environments and flakes [2], which provide a even more declarative and more easily shareab
766.
▲
by
the_duke
5y ago
Chained function calls only work if the types in question have immutable functions that support chaining. This is the case for arrays with `map`, `filter` and for promises with then/catch. But it's not the case for the majority of
767.
▲
by
the_duke
5y ago
I believe they have shifted to a Rust implementation. https://github.com/mozilla-services/syncstorage-rs
768.
▲
by
the_duke
5y ago
Sync is optional, and you can use a custom server and self host it.
769.
▲
by
the_duke
5y ago
The way I like to solve this is to still define the columns as `TEXT`, but just add a custom named CHECK constraint that validates the maximum length. Eg: `ALTER TABLE users ADD CONSTRAINT username_max_len CHECK LENGTH(username) <= 100
770.
▲
by
the_duke
5y ago
> Containers halfway solved some big existing problems that most people don't seem to see very well A big reason for that in the past much fewer developers were confronted with this problem domain. In larger companies packaging and
771.
▲
by
the_duke
5y ago
You can do it in most languages by just using a wrapper type with fallible constructors. A lot more awkward than dependent types, but no popular language has those.
772.
▲
by
the_duke
5y ago
You can always extend Electron apps with platform-native capabilities. Things like Neon [1], a wrapper for writing node bindings in Rust, make this particularly convenient. You can then use Rust to call into platform native APIs. It's
773.
▲
by
the_duke
5y ago
F# has quite a bit of awkwardness related to dotnet compatibility. In practice you have to use a lot of C# class based code, which brings an inherent mismatch to the functional model and makes code look more like a multi-paradigm language l
774.
▲
by
the_duke
5y ago
ByteDance had 37B in revenue in 2020. A 3B refinancing deal - done at a time of very favorable interest rates - is really a non-story.
775.
▲
by
the_duke
5y ago
Defending against patent trolls is an aspect. But the flip side is that this gives corporations a great tool to handicap competition. If a competitor emerges, they can threaten legal action. And with a huge patent portfolio the big players
776.
▲
by
the_duke
5y ago
Yes! I'm in the same boat. Linux / NixOS. I was wondering if it's something with my system setup, but Chromium does not show the same issue.
777.
▲
by
the_duke
5y ago
I think the rendering pipeline issue that caused excessive battery usage on MacOS was fixed quite a while ago.
778.
▲
by
the_duke
5y ago
Odd that there is no information from Airbus there. FYI: the comment section contains some interesting background.
779.
▲
by
the_duke
5y ago
> The magical behaviour of `collect` when given a collection of results to produce a result That functionality is incredibly useful though. I use it all the time. But it's also really hard to discover. I've seen quite a few de
780.
▲
by
the_duke
5y ago
The 2021 edition, while a breaking change, will affect only a tiny amount of code. Most crates will be able to put `edition = "2021"` into Cargo.toml without any other modiciations. Only some relatively minor parsing and semantics
More ›