29,870 karma · joined Oct 6, 2009 (17y ago) · 12,287 submissions
2.
Partial Evaluation and Automatic Program Generation (1993) [pdf](cs.utexas.edu ↗)
1 points · by Jtsummers · 1d ago · discuss
comment 2d ago · link · parent
Probably just 7 figures. And not for very many retirees.
The current pension is 1%/year, let's say you start at 22 (just after graduating) and retire at 62 that's 40%, actually 44% because it's 1.1% if you retire at or after 62 with at least 20 years. It is based on your highest three year average pay. The average employee is not at the top, but let's be generous and say for people at that age and time of service today it's more like $150k (it won't be that high for most). So that's $66k/year in retirement.
For that to reach even $1 million takes 15 years, they'd be 77. So they'd get $1 million by the time they are approaching the current US life expectancy, and wouldn't be hitting two million unless they made it to age 92.
The actual average pension is more like $30k right now, so it would take 33 years to hit $1 million.
Now, the old pension was CSRS, which maxed out at 80% for 40 years of service, that was a pretty good pension. 20% pay cut to stay home, but you didn't get Social Security and you didn't (when it came around) get a match on your 401k (TSP for feds, but it's essentially the same).
comment 2d ago · link · parent
comment 2d ago · link · parent
DOD hires engineers similarly, with GS-7/9 being the out of college grade (based on GPA and degree) and then advances one grade at a time every year or so. So they'd be a GS-7 or 9 for one year, then promoted to 9 or 11, then 11 or 12. If 12 is the target, that's where it stops. Otherwise it continues about 1 grade per year until the target (faster for some folks, slower for others).
comment 3d ago · link · parent
If you have one that is overheating, then it's a problem with that one's hardware, or its specific configuration (something you've installed or some setting you've chosen to enable/disable).
comment 3d ago · link · parent
It's a lose-lose situation. The right time to address this was years ago, and that didn't happen. Now they have a bunch of materials that will explode (it's just a matter of when) so the best option out of all the bad options is the controlled detonation. The only positive outcome of this might be Congressional awareness of how bad these old explosives have been managed and a more deliberate effort out of their to push for proper cleanup of these kinds of depots. That's not likely, though, we'll just get a bunch of hearings instead.
comment 4d ago · link · parent
comment 4d ago · link · parent
The reported concern (I need to talk to a buddy of mine who did this kind of work to find out more from an expert, so I am just regurgitating the reporting until I do that) is that the barrels are sufficiently unstable to make even moving them a challenge. That would include moving them into barrel sized holes in the ground. This is why they've built up structures around the barrels in place.
Though I do agree, reading through the article some of the concerns could have been addressed by robots. Like the concern around adding stabilizing agents into the barrels. Build up the barriers (as they have done) and then send in the robots. The problem with that is that it could explode any day, which means a potentially weeks long evacuation for the area. But if it succeeds, then the only harm is the evacuation. If it partially succeeds, then it should still reduce the amount of environmental damage. And if it fails (essentially, an explosion on the first day) then it's no worse a plan than the current one.
comment 5d ago · link · parent
comment 1w ago · link · parent
Neither myself nor reaperducer said he instructed anyone, you injected that into the conversation. He did say he thought it could work, literally thought we could inject bleach, other disinfectants, or light into the body to treat COVID. That is not something a sane or competent person would ever suggest, and you even agree he did suggest it.
comment 1w ago · link · parent
https://www.politico.com/news/2021/04/23/trump-bleach-one-ye...
He did suggest, after talking about the effectiveness of disinfects (bleach included in context) on the virus, injecting things into the body. It's very unclear, like a lot of his ramblings, what the hell he was talking about precisely, but it is reasonable to think that he wanted to inject light into the body or disinfectants or both. And if disinfectants, bleach was specifically discussed.
So did he literally say we should inject bleach into arms? No. He didn't mention where the disinfectants or light would be injected, just suggested that they could be.
comment 1w ago · link · parent
That is not very accurate. Back then, C was compiled file by file and the outputs from those separate compilations were linked into the final binary (each C file is a translation unit, a term still used today). Header files were reprocessed for each new translation unit that included them, they did not save memory for compilation. They saved some memory on disk storage because shared bits of programs were extracted to a common file, but that savings was also not their purpose.
The purpose was to extract the shared bits and reuse them to prevent errors and reduce duplication. Imagine having to recreate the contents of some or all of stdio.h at the top of all your C files that import it. Now you have hundreds of places to update if that library changed, or hundreds of places to make an error in one of the function specs.
Saving memory was not a benefit, nor an intended benefit of header files. The header still has to be read for each translation unit and processed so there are no memory savings in compilation (back then) from using them. Now, today there can be some with precompiled headers, that come much later than the invention of headers for C, though.
comment 1w ago · link · parent
pub struct Bare;
impl Payloads for Bare {
type Read = ();
type Write = ();
}
pub type BareFileOp = FileOp<Bare>
Correct? So you'd need to create it with BareFileOp::Read(()), but at least it wouldn't carry any overhead of actually containing data.comment 1w ago · link · parent
comment 1w ago · link · parent
enum Parser {
bin_add(...),
bin_sub(...),
...
}
enum Typer {
bin_add(...),
bin_sub(...),
...
}
And I'd have to hope they were both complete and match (at least according to what I know now, that's why I'm asking). If I go back in to the Parser enum and add a `un_minus`, then I have to also go into the Typer enum (apologies for the bad naming, I'm at work and commenting between my way too many meetings) and manually add it. I have no compile time guarantee that both are complete and synchronized. In Ada, I modify the existing enum and both will fail to compile until I add in the variant for `un_minus`. One edit, multiple failures distributed across the code base as a result telling me all the places where I have to add in a new code branch or new variant.EDIT: Run on sentence broken up.
comment 1w ago · link · parent
In Ada, if I use an enum (carrying the example from a link I used in a cousin comment):
type Expr_Kind_Type is (Bin_Op_Plus,
Bin_Op_Minus,
Num);
https://learn.adacore.com/courses/intro-to-ada/chapters/more...Variant records using this enum have to implement the variant for each element of the enum. If I, for some reason, have multiple records using the same discriminant I can know that each one implements it for each value of the discriminant. Does Rust have a way to synchronize your enums similar to that?
comment 1w ago · link · parent
No, it's not. It's more like saying a writer should try their hand at different styles and formats of writing. So a novelist who periodically writes non-fiction essays or journalistic content or poetry (whether intended for publication or as a writing experiment), and that practice can in turn inform their writing as a novelist.
Besides, learning programming languages is much easier than learning natural languages. Most experienced programmers today know multiple languages, and most college grads in CS and Software Engineering graduate having used at least 5 or 6 languages if their school is halfway decent.
comment 1w ago · link · parent
Instead of just getting one type that includes the discriminant and records, Zig and Ada have a tag of some type whose value determines which variant is being used, and then the union (Zig) or record (Ada) is its own type.
22.
Programming Paradigms for Dummies: What Every Programmer Should Know (2009)[pdf](webperso.info.ucl.ac.be ↗)
1 points · by Jtsummers · 1w ago · discuss
comment 1w ago · link · parent
Part of the reason for this outage was that these systems are not regularly upgraded. That's why they're dealing with decades old network hardware and lines and marrying them up to modern fiber. It's expensive to do the upgrades, but instead of doing regular rolling upgrades to their network components they generally do big-bang upgrades like the one happening now (that apparently caused the outage). In 20-30 years there will be another big-bang upgrade replacing the Juniper routers and fiber lines they've been installing now, and it'll probably cause similar problems.
This also happens a lot in DOD (not surprising, same contractors doing the work and probably the same companies in the program offices for FAA as DOD giving the same bad advice), it's incredibly frustrating because it's very obvious that there are better ways to do things, but the funding isn't there until it's urgent. That's why they're still using 1980s computers with floppy disks in their critical path for ATC as well. Now that those systems are nearly impossible to maintain, there is enough noise to push funding a proper replacement effort, about 20-30 years after it should have been done.
comment 1w ago · link · parent
https://nick-black.com/dankwiki/index.php?title=Book_list_fo... - The revision they would have seen at the time of submission.
comment 1w ago · link · parent
comment 1w ago · link · parent
If he leaves maybe Trump would hire a competent replacement instead (unlikely, but can't be much worse than the current Cabinet of Clowns).
comment 1w ago · link · parent