HNHacker News
TopNewBestAskShowJobs

pitaj

4,310 karma · joined May 17, 2016

https://github.com/pitaj
submissionscomments
pitaj··on Could a giant parasol in outer space help solve the climate crisis?
Even if it absorbs and re-emits everything, that would probably be fine. Black body radiation is emitted in practically every direction, and only a miniscule portion of that would hit the Earth.

The bigger problem with absorption is potentially heating the material to the point of vaporization.

All that said, the most practical form of this would probably be something like a fresnel lense that uses refraction or a structure that uses diffraction to redirect the light rather than reflect or absorb it.

pitaj··on Rebuilding Netflix's video processing pipeline with microservices
How much does that cost to put together, just in storage?
pitaj··on Companies embracing SMS for account logins should be blamed for SIM-swap attacks
Google Authenticator backs up to your Google account now, somehow. Not sure exactly how that works.
pitaj··on Optimistic thinking linked with lower cognitive abilities
That's not what they said. They're saying that, even if it really isn't your fault, acting as if it is your fault can help you to materially improve your situation. If you act as if there's nothing you can do, you will do nothing.
pitaj··on C23: A Slightly Better C
In Rust you can just use the method call `expr.not()`
pitaj··on Autonomous trucking is harder than autonomous rideshare
And how does that compare to Europe?
pitaj··on Ruffle: 2023 in Review
Roblox games
pitaj··on Wikihouse: Open-Source Houses
They were referring to insulation in internal walls and floors. That is, the floor between the first and second story or the wall between bedrooms.
pitaj··on Go: What we got right, what we got wrong
It's my understanding that the Go compiler will format your code every time you compile. For Rust, its a separate tool invocation.
pitaj··on Go: What we got right, what we got wrong
Interestingly, all of those (except for automatic formatting) also apply equally to Rust. Maybe that's why there's such a "Go vs Rust" culture.
pitaj··on Cross-platform Rust rewrite of the GNU coreutils
There are lints you can enable to enforce this, rather than just "pay attention".
pitaj··on Post-apocalyptic life in American health care
Medical professionals in general are stretched thin. They all have too many patients. More doctors each with fewer patients would lead to better quality.
pitaj··on Post-apocalyptic life in American health care
What do you mean "return to an NHS model"? The US never had anything of the sort.

To answer your question: Ban employers from paying for health insurance as a benefit. If individuals see directly how much it costs, that will put much more pressure on prices. And employees don't have to worry about losing their insurance if they lose their job.

Some other gradual options:

- end the AMA licensure monopoly, making doctors more plentiful lowers prices and increases quality

- reform the FDA approval process to make developing drugs and equipment cheaper

- cover preexisting conditions under Medicaid instead of forcing private insurers to

pitaj··on Rust to stabilize `async fn` and return-position `impl Trait` in traits
I guess the difference is that that isn't an async function. It's a normal function that returns a boxed future.
pitaj··on Rust to stabilize `async fn` and return-position `impl Trait` in traits
I've seen dynamic dispatch mentioned twice. What do you mean? Isn't that just `fn foo() -> Box<dyn Future<...>>`?
pitaj··on Volkswagen, Porsche, and Audi say they will use Tesla's EV charging plug
So what? For high-power charging, DC is better anyways. For low-power charging, having extra phases is useless.
pitaj··on The rabbit hole of unsafe Rust bugs
Or even stronger

    #![forbid(unsafe_code)]
Then it can't be `#[allow()]`ed.

There's also things like `cargo gieger` that will tell you how much unsafe code your dependencies have.

pitaj··on The Final Speech from The Great Dictator (1940)
> Fascism was in large part a reaction against communism and socialism

Not really. Many of the founding fascists were socialists, including Mussolini. It wouldn't be wrong to call fascism a type of or derivative of socialism.

pitaj··on YouTube Recommendations Lead to More Extremist Content for Right-Leaning Users
Gravel Institute, Thom Hartmann, Sam Seder, Richard Wolff, The Young Turks, etc
pitaj··on The Case for Memory Safe Roadmaps
> I can write a buffer overflow in any language. ... It's perfectly simple to trash memory in Rust.

Not in safe Rust.

pitaj··on For processing strings, streams in C++ can be slow
I'm surprised that the reviewer was so ignorant of amortized constant time insertion.
pitaj··on Playstation is erasing seasons of Discovery shows from customer libraries
> Time Warner

You mean Warner Bros Discovery

pitaj··on How could Al Bundy afford a house when he was making minimum wage?
I didn't say they were unimportant, I said they were less fundamental. Refer to the hierarchy of needs: health is higher on the pyramid than food, clothing, and shelter.
pitaj··on How could Al Bundy afford a house when he was making minimum wage?
Food, water, and clothing are cheaper than ever. Healthcare and tuition are less fundamental needs. So that really only leaves shelter as the one "most necessary thing" that has increased in cost.
pitaj··on Git Branches: Intuition and Reality
> How do you undo a merge that you didn't mean to do/did wrongly?

I usually used `switch` for this:

    # Check out the previous commit
    git switch -d HEAD~
    # Overwrite the branch
    git switch -C <current branch>
pitaj··on SEC charges Kraken for operating as an unregistered securities exchange
How many people have died because of FDA gatekeeping delaying the release of life-saving treatment?
pitaj··on New York may ban noncompete employment agreements and Wall Street is not happy
For those unaware:

Quant = quantitative analyst

pitaj··on SciPy builds for Python 3.12 on Windows are a minor miracle
I love how he ranted so hard - without even mentioning the embedded or realtime variants.
pitaj··on Cooperative C++ Evolution – Toward a TypeScript for C++
I don't really agree with how you represent the difficulties of unsafe Rust.

First off, unsafe Rust is not meant for writing application logic. It should be isolated within data structures, algorithms, or other abstractions exposing safe APIs.

Secondly, what you say about calling into safe Rust from unsafe contexts just doesn't sound correct. It seems like by "extra preconditions" you're talking about the requirements placed on references: that they must be initialized, non-null, and for &mut, unaliased. But these aren't requirements for calling into safe code, these are requirements for dereferencing raw pointers.

You might also be talking about the issues around moveability and Pin. But these are also not about calling into safe code, but about representing your type correctly (making certain actions only possible when pinned or whatever).

And then you talk about std and view not being practically usable from unsafe Rust, and this just doesn't align with my experience at all.

It's really not that hard to get unsafe code right (Miri is an awesome tool), and it's also not difficult to avoid unsafe code entirely if you're not comfortable with the requirements.

pitaj··on Home schooling's rise from fringe to fastest-growing form of education
> they were considered inferior military recruits.

It's not that surprising given that the Prussian schooling system upon which ours is based was meant exactly for that.

← PreviousPage 6 of 34Next →