Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
thinkharderdev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
thinkharderdev
2y ago
It's similar but no really the same thing. It has to be done up front by initiating a multi-part upload to start. The parts are still technically accessible as S3 objects but through a different API. But the biggest limitation is that
92.
▲
by
thinkharderdev
2y ago
EBS pricing (and by extension anything the effectively bundles EBS) is absolutely insane.
93.
▲
by
thinkharderdev
2y ago
I don't think it's particularly obvious or necessary. AWS makes its money on big enterprise customers who probably don't want or need this feature. Hobbyists learning AWS in their spare time are a rounding error on AWS revenu
94.
▲
by
thinkharderdev
2y ago
The chrome browser itself I would think
95.
▲
by
thinkharderdev
2y ago
Yglesias is just repeating arguments that have been mode over and over by people who do in fact know what they are talking about (Noah Smith makes the argument well here https://www.noahpinion.blog/p/imports-do-not-subt
96.
▲
by
thinkharderdev
2y ago
> They also correctly stated that the GDP growth in the last quarter was largely driven by government spend, and if you take out the private sector, there was little growth. The entire article is pointing out quite clearly that this, in
97.
▲
by
thinkharderdev
2y ago
The fact that it's named after Murray Gell-Man, a Nobel prize winning physicist should tell you something. Intelligence doesn't save you from it.
98.
▲
by
thinkharderdev
2y ago
You linked me to an article that defines an unsafe language as: "a programming language which, by default, allows code to introduce memory-related vulnerabilities (use after free, buffer over/under flow, use of uninitialized memor
99.
▲
by
thinkharderdev
2y ago
> You'll be using an idiosyncratic definition the rest of the industry does not use, but you do you. What definition are you using that you seem to think is the one definition of memory safety that is canonical? > don't have
100.
▲
by
thinkharderdev
2y ago
Very true, but I do think there is an issue in the margin about how easy it is to ignore errors. For example, in Java you might have something like ``` void checkPermissions() throws AuthException ``` so you have to actively ignore errors b
101.
▲
by
thinkharderdev
2y ago
> An example of extraordinary code would be code that interfaces with and/or pulls in non-memory-safe legacy C code. That's my point though. Of course calling non-memory safe native code over FFI can lead to memory-safety probl
102.
▲
by
thinkharderdev
2y ago
> ordinary code is memory-safe by default What does that mean? What constitutes "ordinary"? I'm not sure there is any official definition of memory safety, but I would consider it to mean that aside from code that is expli
103.
▲
by
thinkharderdev
2y ago
A less cynical view of it is just that diagnosis of engine and dental problems is still pretty subjective so different providers will have different judgements about what constitutes a problem that needs fixing. If one dentist says you have
104.
▲
by
thinkharderdev
2y ago
(Un)safe is a bit of an overloaded term but Rust's concurrency model is safe in the sense that it statically guarantees that you won't have data races. Trying to mutate the same memory location concurrently is a compile-time error
105.
▲
by
thinkharderdev
2y ago
> It's caused a lot of trouble so far and for what? The "for what" seems pretty obvious, no? It's the same reason you would use Rust over C in any other project. Memory safety and more modern PL features.
106.
▲
by
thinkharderdev
2y ago
Not the OP but the complicated part to me is just that the fd has a global cursor which makes concurrent access require synchronization. The rust std::fs::File API at least makes this clear through mutability requirements but I imagine in o
107.
▲
by
thinkharderdev
2y ago
Ah yeah, I've implemented LRU caches this way (hash map with an intrusive linked list overlayed on the values) but didn't put 2 and 2 together :)
108.
▲
by
thinkharderdev
2y ago
Isn't that just a different data structure? How do you preserve insertion order in a hash map?
109.
▲
by
thinkharderdev
2y ago
Did you stop? If so, why?
110.
▲
by
thinkharderdev
2y ago
The actual advice from a nutritionist that was quoted was > focusing less on meal replacements and more on whole fruits and vegetables from local farmers, in addition to occasional animal products from farms where those animals were “rai
111.
▲
by
thinkharderdev
2y ago
How exactly? If we take the simplest possible "hello world" service, then protoc generates all the code for a gRPC service without you having to manually type anything
112.
▲
by
thinkharderdev
2y ago
You need all the same stuff with a REST API only instead of using tooling to codegen all the boilerplate you have to write it by hand (or use janky OpenAPI code generators which, in my experience, rarely work very well). I am increasingly a
113.
▲
by
thinkharderdev
2y ago
> Protobuf is intentionally designed to NOT require any parsing at all This is not true at all. If you have a language-specific class codegen'd by protoc then the in-memory representation of that object is absolutely not the same as
114.
▲
by
thinkharderdev
2y ago
> The worst part of all is that most people don’t need gRPC, but use it anyway. It’s a net addition of complexity and you’re very likely not getting the actual benefits. I’ve seen countless simple REST APIs built with language-native too
115.
▲
by
thinkharderdev
2y ago
> As I understand it, unsafe pretty much says "what you are doing here may violate memory safety". I don't think this is true in general. Unsafe is used pretty frequently for things that are themselves memory safe but may
116.
▲
by
thinkharderdev
2y ago
Directly from the linked article: "On average, first quarter 2024 earnings results were solid. Four sectors — Communication Services, Utilities, Consumer Discretionary and Information Technology — generated the strongest earnings growt
117.
▲
by
thinkharderdev
2y ago
This is not even remotely true. Corporate earnings are growing strongly across almost all sectors ( https://www.usbank.com/investing/financial-perspectives/mark... .)
118.
▲
by
thinkharderdev
2y ago
> First of all, there have been several languages that regions in their type system and are still backed by GC, so this is a strawman Is it? He's not claiming that GC somehow makes it impossible to have strong local reasoning. He&#x
119.
▲
by
thinkharderdev
2y ago
> ‘Secondhand smoke’ is not actually a thing which has an effect. It’s a propaganda term which ought to be avoided. Old folks today — i.e., the ones who look so much younger than old folks a generation ago — spent their childhoods and ad
120.
▲
by
thinkharderdev
2y ago
It is not required that your connection has been MITM'd. The service you are authenticating can accidentally log the plaintext password, they can store it with an insufficiently secure hash function or not salt it. A malicious browser
More ›