1,874 karma · joined Jun 12, 2019 (7y ago) · 701 submissions
[ my public key: https://keybase.io/thinkharder; my proof: https://keybase.io/thinkharder/sigs/Ibpz0COsvz2qYl2K8YfzrhucHf2rcZIxityh5WvYC_k ]
comment 2y ago · link · parent
Is it? He's not claiming that GC somehow makes it impossible to have strong local reasoning. He's just saying that, for whatever reason, the designers of most languages have made choices contrary to that goal. Which seems obviously true to me. Counter-examples exist of course but looking at the mainstream GC'd general purpose programming languages (Java, C#, Python, etc) it is true.
> Third, the whole point of static types is to slice apart the heap into independently non-aliasing parts using this technology called "classes" and "fields"
The whole point according to who? "Object-oriented" design means many things to many people and from what I understand the original idea was gesturing at something that we would now call the "actor model" which legitimately does try and carve up the heap into non-aliased, owned data structures which can only be mutated through message passing, but OO as it is actually implemented in the real world seldom even approaches those original goals. And languages like Java do nothing to prevent you from storing mutable references to the same object in multiple different objects. This is drawn out more eloquently than I am capable of doing in this post https://without.boats/blog/references-are-like-jumps/
comment 2y ago · link · parent
Color me skeptical for a few reasons:
1. From what I understand the negative effects of air pollution more generally are pretty well documented at this point. Cigarette smoke is just one more source of particulate matter in the air which has those ill effects. Just one that was perpetually present at (more or less) all times everywhere.
2. Complete smoking bans are relatively new (although in some places going on 30 years old at this point) but restrictions on where you could smoke happened more gradually. Also the amount of smoke being inhaled by non-smokers is a function of how many smokers there are as well of rules about where you can smoke. The percentage of adults who smoke peeked in the early 1960s and started declining more rapidly in the early 1970s.
comment 2y ago · link · parent
Passwords are reasonably secure since we've been using them for a long time but there is in fact a huge chain of trust required to keep them secure and links in that chain frequently break.
comment 2y ago · link · parent
comment 2y ago · link · parent
How the price improvement gets allocated is complicated. Some of the price improvement goes to the broker (in the form a payment-for-order-flow) and some goes to the actual investor (you). But in either case the retail investors are strictly better off.
comment 2y ago · link · parent
I agree. To me the correct analog for S3 is a block storage device (a very weird one where blocks can be any size and can have a key associated with them) and not a filesystem. A filesystem is an abstraction that sits on top of a block storage device and so an "S3 filesystem" would have to be an abstraction that sits on top of S3 as the underlying block storage.
comment 2y ago · link · parent
1. They are very close to the information theoretic minimum needed to encode the information so are more space-efficient than bloom filters or cuckoo filters.
2. They have a natural way to store metadata (at the cost of additional space of course) so you can associate a few bits of metadata with each set bit at pretty reasonable space cost.
comment 2y ago · link · parent
* The Haber-Bosch process (for creating synthetic fertilizers)
* Fracking (strictly in terms of the promise to unlock previously un-usable petroleum reserves, whether or not that's a good thing depends on how climate change affects humanity in the longer run)
* Solar cells
* Penicillin (and antibiotics more generally)
* Vaccines in general
* mRNA vaccines in particular (maybe too early to tell, we'll see if the COVID vaccines were a one-hit wonder)
* Semaglutide (again, maybe too early to tell)
comment 2y ago · link · parent
I don't agree with this. Part of the benefit of static types is to make it easier for programmers to reason about programs. But part is also to make it easier for compilers to reason about programs. By encoding more invariants in the type system it is possible to turn a larger class of bugs into compiler errors.
comment 2y ago · link · parent
comment 2y ago · link · parent
What agreement? They offered a service with no guarantees that it would be provided in perpetuity. If they offered "free unlimited storage for life" and then backed out of that based on some legalese on page 75 of their EULA then I agree that would be slimy. But that is not what happened here.
> they are able to momentarily drive their prices down, eat the losses long enough to run their competition out of business
This can happen and when it does it is anti-competitive. But that is not what happened in this case. Do you really think that Google thought they could drive AWS and Microsoft out of business with below cost storage on Google Drive? Seems unlikely. And even if they somehow managed to do that, they would immediately have competitors undercutting them on price again as soon as they raised prices enough.
What seems much more likely to me is they offered unlimited storage as a competitive feature of Google Workspace thinking it would still be profitable even with some customers using much more storage. But because we can't have nice things a bunch of people realized they could essentially use the unlimited plan as an ultra-cheap object storage service and were storing 100s of TB of data. Rather than raise everyone's prices to subsidize bad actors, it seems much more reasonable to just discontinue unlimited storage.
comment 2y ago · link · parent
This part only works if you don't have other large competitors. But this obviously not the case for cloud storage. It is an extremely competitive commodity product.
> bad for consumers
How exactly is it bad for consumers to get products below cost?
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
1. You have a service that takes some user input
2. The service allocates a buffer on the stack for 20 bytes (the max input allowed)
3. Service doesn't actually validate that the user input is < 20 bytes
4. It writes the input into the buffer, but keeps writing past the end of the buffer.
5. It eventually overwrites the return pointer so now the user input can control where the execution jumps to on return
6. In the user input, the malicious user includes some shell code to do any arbitrary thing they want.
7. The overwrite the return pointer to jump back into the shell code and now they are executing arbitrary code in the server process.
This sort of thing was embarrassingly easy to do on old linux kernels before ASLR was implemented. Now it is dramatically harder because there are all sorts of countermeasures in place to prevent it (ASLR, stack canaries, executable vs non-executable memory, etc).
To get a sense of what a more modern real world exploit looks like, give https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-i... a read.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
I brought it up specifically in this context (and article about patent litigation) because I think it is potentially a good idea in some domains (like patent law) where the overriding consideration should legitimately be economic efficiency. I think it is entirely reasonable to design our intellectual property rights around the idea that the person or firm that can derive the most economic value from any piece of IP is the most desirable owner of that IP.
comment 3y ago · link · parent
You can but them someone will immediately offer to buy it and you would have to raise the declared value until they stopped trying to buy it (ie to the actual market value). Presumably you would also not be allowed to just immediately lower the declared value again after. Or maybe buyers can make "standing" offers that are valid for 1 year so you can't change the declared value while there is an outstanding offer for more than that.
> The whole point of the idea is that you're required to sell it for the listed price
I would phrase it differently. The point is create conditions such that the equilibrium declared value is aligned with the market value. And more generally, to try and ensure assets are allocated to their highest value uses.
However, I actually don't think this is a workable system for owner-occupied housing for all sorts of practical and political reasons. I brought it up in the context of patents because I think it does make sense for intangible, yet hard to value corporate assets like patents. Ideally you want patents and other IP to be owned by whoever can get the most value out of them.
comment 3y ago · link · parent
They can't force you to sell, you have the option of just updating the declared value to the new market price.
But I brought this up initially in the context of patents because I don't think this would actually be a practical or politically palatable way to handle property taxes on owner-occupied housing. But when we're talking about intangible corporate assets like patents most of these problems go away (IMO).
comment 3y ago · link · parent
TBH that seems like the easiest issue to solve. For instance, to make an unsolicited bid you have to escrow %20 of the price. If the owner chooses to updated the declared value, you get that back. But if they choose to sell and you walk away (or don't actually have the other %80 to complete the sale) then you forfeit that to the owner. Or you can even disincentivize "malicious" offers more by saying that if the owner chooses to update the declared value then you still forfeit the escrowed cash but it goes to offsetting the increased tax bill for the current owner.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Of course in the real world there would need to be some way to prevent "predatory" offers (where the "buyer" can't or won't actually close the deal if you accept the offer) but that seems solvable to me. You may have to put down a non-refundable deposit or escrow the sale price, etc.