Better HN
topnewbestaskshowjobs
Log inSign up

Jtsummers

29,870 karma · joined Oct 6, 2009 (17y ago) · 12,287 submissions

[ my public key: https://keybase.io/jtsummers; my proof: https://keybase.io/jtsummers/sigs/2v_NBwmgy9lrspxf8k7DN4UwIi-73h22Wxr_7kF01RM ]
Submissions

comment 9h ago · link · parent

It was, it's been front page enews since last week.

2.

Partial Evaluation and Automatic Program Generation (1993) [pdf](cs.utexas.edu ↗)

1 points · by Jtsummers · 1d ago · discuss

comment 2d ago · link · parent

> That pension is worth seven figures.

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

The workforce was not the bulk of the cost. To reduce spending, they maybe shouldn't have done things like try to add another half trillion to the DOD budget, but instead investigated why the DOD can't pass an audit and why so many programs fail so spectacularly (delivering years late and millions or even billions over budget).

comment 2d ago · link · parent

Was it also an entry level job like these are listed as? No one with any experience should ever be applying for a GS-7/9 position, they'd be applying for the equivalent positions that this job targets (GS-14 in this case).

comment 2d ago · link · parent

"Full Performance Level" is GS-14 so that's the target grade for these hires. The GS-7 and GS-9 grades are used to hire relatively inexperienced people straight out of school or not far from it, then they'll be advanced (I don't know how fast, that's not listed here) through the grades up to the target grade.

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 2d ago · link · parent

These are jobs targeting GS-14, but entry-level positions. The hiring will be at GS-7 or GS-9 based on GPA and professional experience, then they'll be advanced through grades up to GS-14. Which currently caps at $187k in the DC area.

comment 3d ago · link · parent

I travel with my Apple laptop in a bag regularly, I reboot it pretty much just when doing OS updates, and never actually shut it down. It travels fine and doesn't overheat. This is how I've traveled with them for 15+ years now with a couple of Intel ones and now an M3, and it has never been a problem.

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

Colder temperatures also make this less stable, per the reporting. I can't imagine a sudden rapid cooling would be better than gradual cooling in this case. When you don't want to move the barrels because you're worried vibrations could cause detonation, you probably don't also want to suddenly freeze the suspension as that can also cause movement, internally, that would likely also increase the chance of detonation.

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

https://news.ycombinator.com/item?id=14928429 - One discussion from back then, 216 comments

comment 4d ago · link · parent

> just boring deep barrel sized holes in the ground and detonating underground

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

Underscores are not swallowed by HN, the only (visible) character that can get stripped out will be *, you need to explicitly escape them in regular paragraphs (in code no escaping is needed) using ** or \*. If it's a lone * surrounded by white space or the only * next to other visible characters, then it will also survive. Otherwise you get italics.

comment 1w ago · link · parent

> He was thinking out loud about ideas that could potentially be tested, not instructing people to do anything.

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

> “A question that probably some of you are thinking of if you’re totally into that world,” Trump began, clearly thinking the question himself, “So, supposing we hit the body with a tremendous — whether it’s ultraviolet or just very powerful light — and I think you said that that hasn’t been checked, but you’re going to test it. And then I said, supposing you brought the light inside the body, which you can do either through the skin or in some other way, and I think you said you’re going to test that, too. It sounds interesting. And then I see the disinfectant, where it knocks it out in a minute. One minute. And is there a way we can do something like that, by injection inside or almost a cleaning. Because you see it gets in the lungs, and it does a tremendous number on the lungs. So it would be interesting to check that.” [emphasis mine]

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

> Header files are meant to reduce the memory needed to compile programs, for example.

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

This looks like it would handle synchronizing multiple variant records/enums, and if you just wanted the "plain" enum without any payload, you'd need to do:

  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

To use the discriminant type on its own without carrying the baggage of the entire record and all its data, or to use the discriminant type across multiple records rather than creating some mega-record or manually synchronizing them. In Ada (again, don't know Zig but from the docs it's similar to what Ada is doing), adding a new value to the discriminant enum would cause a compile time error in all the variant records using it and all the case statements (match, but Ada's version), as long as they didn't have a catchall branch.

comment 1w ago · link · parent

If I'm building up a type checker and an interpreter, I very well could (continuing that example) end up with different data structures using the same discriminant (but containing different data about the system). In Rust I'd have to do something like:

  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

As someone who hasn't used Rust enough, and not knowing Zig but it appears Zig does something similar to Ada which I do know, how would you use the same discriminant across multiple Rust enums and guarantee that you implemented variants for each discriminant value?

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

> It's like saying a novelist should write a major novel in every important spoken language.

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

https://zig.guide/language-basics/unions/ - Seems like it's more similar to Ada's variant records: https://learn.adacore.com/courses/intro-to-ada/chapters/more...

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

> I imagine equipment is regularly updated and upgraded without them knowing.

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://news.ycombinator.com/item?id=38789332 - Discussion of this list from a few years ago.

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

And on CLRS, since GP brought it up specifically, that was one of the two textbooks for the algorithms course (which was really algorithms and theory of computation at that time) back when he was a GT undergrad. So he's had a long time to read them, though he probably didn't take all of the last 26 or 27 years to finish it.

comment 1w ago · link · parent

They weren't jammed.

comment 1w ago · link · parent

Why do you want him to stay? You seem to be awfully keen to defend a man who isn't doing his job and allowed a major ATC failure to occur on his watch. You're all over this thread defending a useless man.

comment 1w ago · link · parent

What good does it do for him to stay? He hasn't been doing his job, he's been filming a reality show instead. He doesn't deserve his paycheck.

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

https://news.ycombinator.com/item?id=50501844 - L3 Harris' (anemic) statement being discussed over here.
12345
410