1,249 karma · joined May 24, 2017 (9y ago) · 214 submissions
comment 2mo ago · link · parent
What's wrong with static polymorphism that have been around for at least 31 years? (1995 per [1]). Also know as CRTP [2] Apart, of course, from ugly verbose compilation errors...
And now c++23 "deducing `this`" [3,4] modern replacement which is supposed to improve compilation time and remove the verbose errors.
[1] https://www.artima.com/articles/the-most-important-c-non-boo...
[2] https://en.cppreference.com/cpp/language/crtp
[3] https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p08...
[4] https://devblogs.microsoft.com/cppblog/cpp23-deducing-this/
comment 5mo ago · link · parent
- gemini-cli can have remote a2a agents connected to it. (See https://github.com/tanaikech/gemini-cli-gas-a2a-subagents and the medium article linked in that repo description.) Haven't tried it but I tried the local use case below.
- can expose a custom Google ADK "agent" via one-liner as a2a, which you can connect to the gemini-cli the same way.
5.
Seattle considers expanding tax on Amazon and others to plug budget deficit(geekwire.com ↗)
5 points · by fhrow4484 · 3y ago · discuss
comment 3y ago · link · parent
The record layer https://github.com/FoundationDB/fdb-record-layer which allows to store protobuf, and define the primary keys and index directly on those proto fields is truly amazing:
https://github.com/FoundationDB/fdb-record-layer/blob/main/d...
comment 3y ago · link · parent
Not quite sure there's a golf course there. Here's an overview of the same jail a "real housewives of salt lake city" is in.
https://www.the-sun.com/entertainment/7141761/jen-shahs-pris...
"It’s unclear why Shah asked to serve at that specific prison but People says other notable inmates who have been sent to the Bryan camp have included Hidalgo County, Texas, Commissioner Sylvia Handy; Jenna Ryan, who participated in the January 6 Capitol attack; and Lea Fastow, a former assistant treasurer at Enron."
https://www.kbtx.com/2023/01/08/reality-tv-star-wants-serve-...
I wonder if the buildings have A/C. Summer in Texas can be pretty hot
10.
Dad says glitch in ‘Find My iPhone’ app directs angry strangers to his home(nypost.com ↗)
60 points · by fhrow4484 · 3y ago · 59 comments
comment 3y ago · link · parent
This gist is notable as it's:
- not in pdf format
- complete (https://news.ycombinator.com/item?id=29597454 is just an excerpt)
- not a 404 dead link like many of the previous post.
comment 3y ago · link · parent
Sure there are advantages to it, but if the email is bigCo, it effectively has the same drawbacks as SSO from same bigCo (i.e unfair account suspension, you're screwed)
With email+password, even if you lost access to let's say your Gmail, you can still login with that Gmail address and your password and go change the email in your account profile.
comment 3y ago · link · parent
> When it comes to the G-Forces being pushed on you, many roller coasters have peak G’s at or above these limits. Most people are probably familiar with the different rides at Walt Disney World so let’s use those for examples. At EPCOT, Mission Space is a centrifuge-based ride where you go through a simulated launch and landing on Mars. The sustained G’s on that ride is 2.5 G’s, close to how many G’s New Shepard will experience during launch.
> For the descent, Blue Origin says you must be able to withstand 5.5 G’s, if you ever rode Rock ‘n Roller Coaster at Disney’s Hollywood Studios, you would have experienced up to 5 G’s during the initial launch of the ride.
Epcot Mission Space (the "Orange" version) is pretty intense as it's really sustained G-forces, but manageable. During the ride, you have to reach in front of you to press some buttons, and that's when you feel the G-forces most. But for SpaceX/BlueOrigin, passengers do nothing.
Rock n Roller Coaster itself for the peak G is done by kids, not a big deal.
comment 3y ago · link · parent
If someone runs a lab, and they have Ebola or other virus in their fridges, and it leaks due to poor handling practice, that doesn't mean Ebola was engineered...
So it's possible to agree with both the opinions of the virologists-podcasters AND of the director of the FBI, isn't it?
comment 3y ago · link · parent
This opens a new window with that profile, but you can switch between each window at will.
The lack of discoverability of that "about:profiles" page is indeed a UX issue compared to chrome, but other that that it works pretty well.
For most use cases, I find the more lightweight multi-account-containers more useful though.
comment 4y ago · link · parent
Tit-for-tat is literally how agreements around the world works.
"Reciprocity treaty" if you want to make it fancy sounding, but it's just "tit-for-tat" for Taxes, Tariffs, Visitor visa & rules, etc.
17.
Google and Twitter veteran maps out a Twitter alternative(techcrunch.com ↗)
11 points · by fhrow4484 · 4y ago · 1 comment
comment 4y ago · link · parent
Which mechanism would cause myocarditis when you get COVID 19?
The 2nd link in nradov's comment (https://news.ycombinator.com/item?id=33599243) states:
> These findings indicate that introducing the mRNA vaccine into the circulatory system can lead to acute cardiac inflammation. The mechanism behind this requires further elucidation. However, it is speculated that this may be due to the pro-inflammatory properties of lipid nanoparticles (LNPs) used as carriers for mRNA.
The actual COVID-19 infection doesn't have any lipid nanoparticles, does it?
Agree with overall sentiment of your comment though: the overall real-bad symptoms caused by an infection when fully unvaccinated are probably not worth skipping vaccine.
The clinical trials in op's article as well as nradov's comment on "aspiration" to reduce myocarditis risk during vaccination are both important topics to explore.
comment 4y ago · link · parent
Are the 3 ways explained to cover a margin call how it works in practice? can one choose either of these 3 options?
> Fourth grade math. If you have $110 million in assets and $100 million in liabilities you are said to be levered 10:1.
Actually got some trouble on the 4th grade math ... morning coffee not working properly?
$110m assets - $100m liabilities = $10m of "surplus".
liabilities:surplus ratio is 100:10 --> 10:1.
> You’ve got $1,600 in assets against $1,000 in debt, so $600 in equity, so ~1.67:1 levered.
here liability = 1000, a better name for the surplus is "equity" at 600,
1000:600 ratio --> ~1.67:1
4th grade math checks out :)
20.
The decline of plant mineral nutrition under rising CO2(cell.com ↗)
1 points · by fhrow4484 · 4y ago · discuss
comment 4y ago · link · parent
Instagram app in a crash loop when opening the messages tab or trying to scroll down feed, or doing anything really
comment 4y ago · link · parent
Nice conclusion, but half of the solution in this article is to work "12:00 to 4:00 every Saturday"...
Does your work matter that much that you have to sacrifice every weekends?
My 2¢: fight harder to carve time during weekdays instead
comment 4y ago · link · parent
(I don't fully believe GP's comment of "The engineer that can solve this problem will allow top speeds in the range of 400/500 kph on /existing/ TGV tracks.", as narrow turns is probably a bigger contraint than the pantograph problem. Maybe a few of the more straight lines can benefit, but there's more constraints to solve before taking turns at 400/500 kph!)
comment 4y ago · link · parent
https://youtu.be/_ZZMViMDjto at 16:40 explains the problem. It's in french, but you can get the gist visually as it's a for-kids documentary.
Tldr is a wave on the cable is created at high speed, making it impossible for the train to stay in contact with the cable. The documentary also touches on another top speed limitation: how agressive the turn angles are, limiting the top speed.
comment 4y ago · link · parent
Specifically: the car is only the first part, then there's extra warranties from dealership, financing, etc.
A standardized quote that gives you the price of these optional items would go a long way in making the experience smooth.
Private companies can solve the issues themselves (Carvana), but that's coming at a significant $ premium so far.
The FTC rule mentioned in the article mentions this:
> Require full upfront disclosure of costs and conditions: The proposal would require dealers to make key disclosures to consumers, including providing a true “offering price” for a vehicle that would be full price a consumer would pay, excluding only taxes and government fees. It would also require dealers to make disclosures about optional add-on fees, including their price and the fact that they are not required as a condition of purchasing or leasing the vehicle, along with disclosures to consumers with key information about financing terms.
comment 4y ago · link · parent
https://turbotax.intuit.com/tax-tips/home-ownership/deductin... seems to indicate there's a cap on the amount, as well as number of homes (only primary and secondary, not third, fourth etc)
Or are people going around those caps somehow?