HNHacker News
TopNewBestAskShowJobs

Jtsummers

29,848 karma · joined October 6, 2009

[ my public key: https://keybase.io/jtsummers; my proof: https://keybase.io/jtsummers/sigs/2v_NBwmgy9lrspxf8k7DN4UwIi-73h22Wxr_7kF01RM ]
submissionscomments
Jtsummers··on Trump Says He Has 'Right' to Run for Third Term: 'They Cheated Us'
The courts have ruled against a number of this administration's actions, that's the "checks" in checks and balances at work here. His power is not absolute despite what you may read in many HN comments.

EDIT: And if you really think his power is absolute, then how is Kilmar Abrego Garcia still in the US?

Jtsummers··on Florida officer found dead man, impersonated him for years, renovated his home
$214k is more than I have spent on the home I "own" (have a mortgage on) even adding in my downpayment over the last 7 years. He could have bought a home for what he claims to have spent.
Jtsummers··on Trump Says He Has 'Right' to Run for Third Term: 'They Cheated Us'
No, it's not.
Jtsummers··on Trump Says He Has 'Right' to Run for Third Term: 'They Cheated Us'
> We should stop hypothesizing

Hypothesizing? He has failed to pardon people convicted in state courts already, because he doesn't have the power to do it. This isn't some untested hypothetical. He issued a pardon for Peters in Colorado and it didn't stand. Why? Because she was convicted in a state court.

Stop spewing nonsense.

Jtsummers··on Trump Says He Has 'Right' to Run for Third Term: 'They Cheated Us'
That's not what the decision said, and the pardon is only for federal crimes. He doesn't have the power to protect himself from states.
Jtsummers··on 2026 United States Senate Election in Alaska – Dan Sullivan vs. Dan Sullivan
https://www.elections.alaska.gov/election/2026/General/Sampl... - Fixed link, the space needed to be escaped to make it into the URL here.

I agree, that seems sufficiently clear.

Jtsummers··on 2026 United States Senate Election in Alaska – Dan Sullivan vs. Dan Sullivan
With sane ballot design (adding the word "incumbent" next to Dan S. Sullivan's name), there should be little confusion over who people are voting for. So even if that was his intent, I'd be surprised if the name makes a significant impact on the election. Anyone who votes and is confused despite the incumbent being marked as the incumbent would probably have had a good chance of voting for any other candidate in the list as well.
Jtsummers··on We have traits at home
> isn't that dynamic inheritance? The seems like dynamic runtime.

Duck-typing can be implemented with static checks, and doesn't require inheritance to be involved at all.

Jtsummers··on Jared Kushner's Hacked Phone Revealed His Secret Negotiations
Email the mods when you botch a link, but also per the guidelines and FAQ you should be submitting source links, not archival links (unless the archive is the source because the actual source is gone, of course).
Jtsummers··on The foolishness of "natural language programming" (1978)
That's the HTML version, which Dijkstra did not himself produce. People took the handwritten and typed EWDs and transcribed them for the web. If you look at the PDF scan of the source document for this one it was not transcribed by Tristram Brelstaff, it was typed by Dijkstra.
Jtsummers··on Israeli military conducts operation near Iran's border
In the US? There won't be a draft unless the Republicans are ready to forfeit almost all their political power.
Jtsummers··on Israeli military conducts operation near Iran's border
The US could start another round of attacks, but this is an incredibly unpopular war. Escalating again before midterms will only hurt the party in power right now. Not that sense is something this administration has much of.
Jtsummers··on The compiler was supposed to end programming too
Your examples do not support your claim.

> that it would allow ordinary mortals to write programs

So literally not the end of programming but increasing the number of people who could program.

And your other example is about databases specifically, not programming generally.

Jtsummers··on The compiler was supposed to end programming too
Because apparently this agent isn't capable of reading the business rules that exist today that determine things like that. Seems like the prediction is a regression over the next 5 years.
Jtsummers··on The compiler was supposed to end programming too
And it's a false claim. Compilers and assemblers meant eliminating coding, turning your higher level expressions into machine code by hand. And they did exactly that. Very few people, primarily hobbyists or those with a very niche architecture, actually bother to write machine code by hand at this point for any significant amount of work.
Jtsummers··on Ask HN: Mathematicians are rarely the best math teachers but why
Because they're trained in mathematics, not pedagogy.

This is also not a math problem. It's a general STEM problem (I'm not even sure it's a problem, it's just a thing). The curricula is focused on solving problems and communicating the solution, but it is not focused on communicating the process of solving the problem. So why would they be good educators when they're not trained to communicate the process, but the solution, and education requires the former (among other thing)?

Jtsummers··on Musk ordered Starlink slowdown that blindsided Ukraine
Even my district has a chance to flip and it has always (since its creation over 50 years ago) been held by Republicans.
Jtsummers··on Musk ordered Starlink slowdown that blindsided Ukraine
That won't happen with this administration. It's backing out of sanctions on Russia, and starting to slow down (working towards eliminating, it appears) support for Ukraine.
Jtsummers··on Musk Ordered Starlink Slowdown That Blindsided Ukraine
Ah, fair point. I wish the authors would have called it by its actual name.
Jtsummers··on Musk Ordered Starlink Slowdown That Blindsided Ukraine
> Is this saying that Musk ordered by himself a restriction in the service of Starshield

No, the title and article are about Starlink, Starshield isn't even mentioned.

Jtsummers··on Subaru is killing off gas cars and will only sell EVs in Europe
> Known for its boxer engines, Subaru’s shift to an all-electric lineup is not necessarily by choice. Subaru Germany confirmed the news to Auto Motor und sport, saying the decision is due to the European Union’s emissions and driver-assistance regulations.

Yes.

Jtsummers··on Musk Ordered Starlink Slowdown That Blindsided Ukraine
Musk gave the order. The debate is to what extent, if any, this was coordinated with or directed from the WH. But it either started with Musk, passed through Musk from the WH, or was decided in the WH with Musk involved in the discussion. Regardless, he's the one who actually gave the order since this is not a "the buck stops here" kind of administration.
Jtsummers··on My coding agent deleted a project without asking. The audit log says I did it
Why would you give agents your own tokens instead of creating a new account that's agent specific with appropriately restricted permissions? At least in the latter case, if you muck up the permissions you can still identify what did the work even if it was an overreach by the agent because you mucked up permissions. I don't give my colleagues my credentials to access anything, they get new accounts with their own permissions and, consequently, their own accountability.

If you're foolish enough to give agents permission to act as you, then you're making a novice mistake. I guess this is a good chance to learn, but the right answer is to stop making novice mistakes and do things correctly. Not double down on the mistake by papering over it.

Jtsummers··on Intuitive concurrent programming in any language
The main thing this seems to provide is determinism. Where Erlang, to stick to your question, can be non-deterministic (without taking special care). I'm reading the dissertation this work is based on to see how it guarantees determinism, so at present I'm just taking their word for it.

https://www2.eecs.berkeley.edu/Pubs/TechRpts/2020/Archive/EE...

In chapter 1 they provide an example of (using Erlang syntax, completely untested so probably needs some massaging to run as I'm rusty on Erlang) this scenario, which would be deterministic in Erlang:

  counter() -> counter(1).
  counter(N) ->
    receive
      dbl -> counter(N*2);
      {inc, Arg} ->
        N1 = N1 + Arg,
        io:format("~w~n", [N1]),
        counter(N1)
    end.

  main() ->
    P = spawn(counter),
    P ! dbl,
    P ! {inc, 1}.
Because messages sent from one process to another are guaranteed to be made available in that same order, this is deterministic. They introduce a motivating example on page 5 (21 in the PDF) where a relay is introduced.

  relay() ->
    receive
      P -> P ! dbl
    end,
    relay(P).

  main_with_relay() ->
    P = spawn(counter),
    R = spawn(relay),
    R ! P,    % <- trouble starts here
    P ! {inc, 1}.
This may give the same result as the first example when run on the same node, but the guarantee is lost, it might not happen in the same order as the first version. For an example where it will likely give a different result, consider if counter were a local process to main (on the same node) while relay were a remote process (on a separate node) with high latency, it's likely that the network delay would result in {inc, 1} arriving before dbl.

The work in LF lets you write this (don't ask me how, still reading) so that the relay would be logically instantaneous even if physically it wasn't, consequently the dbl message would arrive "first" by logical time and the counter would process things as in the original Erlang code.

Of course, you can make the Erlang relay behavior deterministic, but you have to add extra code to achieve it. LF apparently gives you a simpler way to get the desired determinism without having to write the extra code yourself, it's baked into its semantics.

Jtsummers··on Monte-Carlo Simulations
You elided the reason it's a valid set, "all different or all the same for each attribute separately"

The four attributes:

- Count: 3 in each; "all the same"

- Color: red, purple, green; "all different"

- Shape: diamonds, ovals, squiggles; "all different"

- Shading: empty, solid, striped; "all different"

So for each attribute the conditions are met, they are either all the same or all different.

Jtsummers··on Monte-Carlo Simulations
> This did a good job of telling me not to trust it

What do you mean? The retirement planning with Monte-Carlo gave a better result than the base assumption of 4% returns and 2% inflation. The information MC provides let's you, when taking into account your risk threshold, whether you're satisfied with your savings or not by giving you more realistic odds of how long the money will last.

Jtsummers··on Will MOOCs Destroy Academia? (2012)
(2012), and one prior discussion:

https://news.ycombinator.com/item?id=5318644 - March 4, 2013 (62 comments)

Jtsummers··on C++26 Contracts: Introduction to Preconditions and Postconditions
> Its pretty easy for me to guarantee that my asserts will all always be run via NDEBUG.

That's the opposite of what NDEBUG does. https://en.cppreference.com/cpp/error/assert

Critical bit:

> 1) If NDEBUG is defined as a macro name at the point in the source code where <cassert> or <assert.h> is included, the assertion is disabled: assert does nothing.

It also is impossible to guarantee it unless you're the only one compiling the program. If you've built a library that others can build and relied on asserts executing for your library to be correct, you wrote a bad library.

EDIT: Neither asserts nor these C++26 contract features should be used in a way that requires that they be executed. If you do, you're using them wrong because it is valid for someone to disable them as runtime checks. If the code must run, you should use some other mechanism, I'd recommend an if statement.

Jtsummers··on C++26 Contracts: Introduction to Preconditions and Postconditions
Same uses as assert, but more options for what to do when they fail and you can move them (pre/post at least) into the function declaration so they act as a kind of executable documentation (when you compile the program so that they are executed and not dropped).
Jtsummers··on Why We're Banning AI
> when AI inevitably reaches human intelligence

What makes you so certain it's inevitable?

← PreviousPage 5 of 34Next →