21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 6y ago · link · parent
Those are both games that have a really strong core and are still close to perfection in their genres.
I think that the FPS genre has had big variations in the past 25 years though, so there’s a lot of small ways for Doom to age.
comment 6y ago · link · parent
Dumb example: imagine you had
Animal = Dog | Cat
Person = Plumber | Driver
If you want a list of “stuff” in your system , in typescript you just say you have Person | Animal.
In ML languages you would need to introduce an Either type so you’re working with Either Person Animal.
So now in your code you’ll need to introduce a bunch of Lefts and Rights. And if you end up needing to compose you’re introducing even another layer of Lefts and Rights. And you don’t get much of any or the inference capabilities of TS to just do this for you.
ML languages don’t have first class unions, they have ADTs, which introduce difficulties and lead to classic type safety weirdness like “why can’t I write a function that only accepts one ADT variant??”
Typescript resolves a lot of these, do you end up with a much better local maximum for typechecking IMO.
Typescripts type unsoundness means you unfortunately can’t really implement return type polymorphism though...
comment 6y ago · link · parent
I generally agree that there are a lot of processes that are like "use your brain and think at this step", which is hard to automate, really. Open-ended workflow tools don't really exist for this kind of thing.
(Clarifying example: what script do you write to "diagnose a response time spike"? You can definitely write up usual suspects but at one point you don't have a script that gets you from the beginning to end )
[0]: https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-...
comment 6y ago · link · parent
2. One example: make sure that HTTP routes that are GET will at most just read the DB, not write
3. I actually don’t like that the type system is where this is going into. I want to have some form of static analysis, and this is providing it.
comment 6y ago · link · parent
Things like “this writes to the database”, “this makes an unbounded query”, “this requires a random number generator “, rather than a nebulous “oh this has I/O” is very powerful and useful for maintaining a system
comment 6y ago · link · parent
Some functions would return either bytes our text (in python 2 parlance, strings or Unicode) depending on the input. People would call decode on text (despite it only making sense on bytes).
Ultimately Python 2 encouraged a programming model where if you just tested with ASCII everything worked but the instant one of your library users put in an accented character or a kanji everything would blow up.
Just to make things clear: many python 2 programs operated on bytes thinking they were text. There isn’t really a way of resolving this API without user intervention on declaration of intent (not saying 3.0 was perfectly right but not every change can be made backwards compatible if you still have existing code)
comment 6y ago · link · parent
If you make a mistake when making a tool, you can either leave it forever, permanently causing pain for users forever, or you can try to find a path to fix it.
That being said, a Python 3.0 which was _just_ “can’t call encode in string, decode on bytes” then subsequent releases fixing up other stuff over time would have been much nicer.
Like the “everything is iterators now” release could have happened later.
comment 6y ago · link · parent
There’s a lot about why the system works, but it goes to show that network effects aren’t insurmountable
It’s a bit more costly then some alternative systems, but it’s better to have an expensive line that exists rather than a cheap line that doesn’t.
comment 6y ago · link · parent
Like if you have 3 different crypto imlpementations, you have times more teams that have to get a thing right. It seems way easier to try and get it right just once.
Perhaps there's a holistic idea of "if one browser has an issue, at least it doesn't affect 100% of them" but given what CVEs look like in reality (often variations of the same attack across multiple programs) it seems like the cost/benefit would not be in our favor
comment 6y ago · link · parent
So it's not even necessarily a concious system, just the end result of easily being confused between umbrellas.
comment 6y ago · link · parent
For example, you could do a bunch of spec proving on CPUs, but you wouldn't catch something like Spectre if your definition of correctness didn't include "no information leakage can happen through timings on branch prediction".
And even then! You need to have the right definition on that front!
Having specs and formally proven code helps to make sure your code isn't prone to a certain class of errors (just like bounds checking/lack of raw pointers prevents another class of errors), but it's not a magical catch-all. Especially if you are in a space like cryptography where you're trying to assert negatives (that end up being held up by assumptions around feasibility of certain things)
comment 6y ago · link · parent
- even if they are just about that, do you think that a debtors prison is going to get that money back sooner?
- given how being broke in America is basically a death sentence, I have empathy for people trying to scrape by
- (now we’re in income reporting reform!) why isn’t Harrahs reporting the wage increase? Why even give opportunities for lies/mistakes/omissions?
Even if what you said is true, putting people in jail is not super ethical nor is it useful at accomplishing much for society, for the individuals involved, and “punishment as deference” is disproved so much.
Not seeing the argument for this programs continued existence
comment 6y ago · link · parent
Hell, shut down the restitution centers and use that budget to help cover court fees instead!
Think about it: if someone gets fined $10,000 and is working minimum wage, is there really anything good accomplished by trying to recover that much? Just cap out some wage garnishment scheme if you want to fine them.
comment 6y ago · link · parent
This is functionally what debtors prisons were used for
From the wiki summary:
> Destitute persons who were unable to pay a court-ordered judgment would be incarcerated in these prisons until they had worked off their debt via labour or secured outside funds to pay the balance
comment 6y ago · link · parent
To be honest I feel so little empathy from this author and their post.
I mean there's so much comprehensive studying about the american health care market. The US gov't has spent 50 years staring at it in trying to make it less of a nightmare!
He poses the question of quantifying worker productivity in knowledge economies as if this hasn't been a topic of discussion and like 10 iterations for the past 50 years.
He talks about a lack of criticism of institutions, when there are _centuries_ of criticism on various arms of the government and how they function. Political science is a whole branch of study!
I just get the vibe that this person almost never actually reads books, and just reads pop science takes on economics all day. I mean he's probably a major player in economics but I guess that's kinda the point.
comment 6y ago · link · parent
Simple story:
- ok we'll do a sponsored post in teen vogue - story is written up! - oh, looks like it’s out, time to post about it
There isn’t gross incompetence, at best it’s just a bit of a timing issue from the mistaken early publish.
comment 6y ago · link · parent
I get most of my stuff working in FF so don't need to jump to Chrome most of the time but for some gnarly stuff I end up in Chrome
comment 6y ago · link · parent
As to why it’s not illegal... there’s both the realpolitik “who are friends with congresspeople” as well as the wonky “how do you make it illegal? It’s just combining a lot of elements of capitalism”
The way you make it illegal, of course, is preventing stuff like directors being able to get paid big bonuses for buyouts (basically bribes to accept LBOs), by properly classifying such movements as stealing assets from the company
comment 6y ago · link · parent
There's clearly a pretty big public health crisis when it comes to food. So saying "in moderation" is very hard to judge! Clearly the status quo isn't great.
So what's a moderate amount of fat to consume?
It could be half of what people tend to consume. it could be 10%. It could be double!
Given that if you follow "eat what you like" you end up in a bad place, it's kind of hard to lend credence to stuff like paleo.
So you're back to square 1 of having not much of a great idea. My bet is that the moderate amount of stuff that would be healthy vastly differs from what the "average minus 15%" or something would be.
comment 6y ago · link · parent
I would love a layer over Git to handle workflow issues related to multi-repo projects
comment 6y ago · link · parent
If they are honest about there lack of actually effective triage then this whole controversy is of a very different valence.
Stop pretending you’re triaging well if you’re not!
comment 6y ago · link · parent
Treating every patch release of Django like a major release would be a major waste of time compared to “assume Django maintainers have a good idea of how things are used, and rely on automated test suite”