skysight-inc/HackerNews huggingface dataset:
I am sort of in the same boat. I use C++ for server type applications. I consider modern C++ safe enough. While there are no explicit safety guarantees I am a practical man. My servers work for years without any complaints from clients. No memory leaks, no crashes. That's the end result and I think from that perspective for me using Rust would be ROI negative as I would have to port / replace a lot of code I reuse in my various products.

Things of course would be different should the client insist on implementation done in Rust but so far not a single client of mine ever mentioned using this language.
This article strikes me as a bit of orientalism used to pimp a personal finance blog, but I guess it strikes a chord with some folks.

To be specific:

1. These aren’t philosophies, they are words. The ideas behind these words exist in other cultures as well — they aren’t unique to Japan. If one really wants to push the point that the Japanese version of these ideas are actually different (I could see an argument for that), the difference is not reflected at all in the article.

2. Related to 1, I don’t think that these ideas/“philosophies” are particularly prominent in modern day Japan. Maybe… maybe in some circles, but I don’t think that these ideas broadly represent the current zeitgeist.

Maybe I’m just too cynical about the personal finance blog genre, but I don’t appreciate the author co-opting a rich culture in such a vapid way.
Right, and in my case I was only going for .8 grams per pound. It's hard to do without going over on calories without a lot of meals being skinless chicken breast.
The weight of all those single purposes wireless chargers on planes is already a nonstarter. Airlines track weight of standard items down to the ounce, to the point that the in-flight magazines finally got removed because they were not justifying their collective weight. While many planes now have inverters where you can use an AC adapter, which can be used for phones, tablets, laptops, etc. wireless chargers can only be used for (some) phones, and they have bad efficiency (which effects fuel usage).
> In the rest of the world where people are normal that is not a problem.

That seems overly broad. The rest of the world includes some pretty nasty places.
> Even with Schengen, you'd want to have a passport when traveling within the EU

You don't need any ID to travel but it is recommend to have an ID. The ID can be a passport or National ID. It doesn't have to be a passport.

https://europa.eu/youreurope/citizens/travel/entry-exit/eu-c...
He means an EU id card. If you don't have an EU id card then you're not an EU resident and it doesn't apply to you anyway.

Edit: except Denmark, Iceland and Ireland it seems.

Further edit: OK, so id cards are not compulsory in all EU countries, so I withdraw my comment.
>Taxpayers making between $500,000 and $1 million are set to see an average tax cut of over $6,000 next year.

That...seems pretty negligible. Especially if you consider the number of people actually in that tax bracket. According to this link [0], approximately 1.6MM households are in this tax bracket...so that's about 10 billion dollars in lost revenue, which seems small relative to the size of the spending bills.
Minolta really feels like the underdog of classic camera brands. You always hear about Canon or Nikon, but no one really talks about the advantages that Minolta brought to market.

They brought both shutter/aperture priority in an SLR, first mainstream AF cameras and some amazing lenses and bodies all throughout. Its a real shame that they sold their photography assets to Sony (though they have done so wonderful things with that legacy - you can still see it in 2021).

On the other hand, as someone who shoots both MD and A mount, and uses some of their film bodies, its nice that they're not ridiculous expensive.

Except, ironically, the X1 - which is a shame because its such a neat camera, a waist level view finder on 35mm would be so fun to play with - I love it in medium format.
Slotmap seems to have a marketing problem. Why isn't it being promoted?
Is there any reason there shouldn't be a cap on state and local tax deductions (SALT) from the federal tax, apart from it affect people more in blue (high cost) states?

Why should the federal government subsidize high state and local taxes? It obviously most benefits the wealthy who are well above the current SALT cap. The standard deduction is already pretty high, ~25k for married couple. And if you're paying that much in state and local taxes, you're pretty well off.
Well if we can’t recycle it does it break down into tiny particles that then become a part of the food chain? If the answer is no then maybe worth a look.
You can remove state and local taxes from your federal taxes. Blue states have higher state and local taxes, but also contribute far more and take far less from the federal government. Its messy.
Democrats tax millionaires, not billionaires.
I'm holding out for formal-methods based static analysis on lifetimes in zig.
Yes, testing requirements generally are another barrier. For example, even as a fully vaccinated US citizen I would be required to get tested before leaving whatever country I was in to return home.

And who knows what rule changes or quarantine requirements I might run into? It's less of a big deal for business travel but things could get expensive in both time and money if it's vacation.

Just something I won't deal with right now barring urgent need.
That's an interesting take on Rust. Given that I have written a lot of code in Standard ML, I might give Rust a try after all.

GP's statement "If you care about security, correctness and performance but don't care about developer speed, use Rust." threw me a little off here. Because, Standard ML is very quick and easy to develop in. So should Rust not inherit that property?
I'm not arguing for or against this but there are some points of subtlety:

First, this is not at all guaranteed. It's the current state of the bill in the House, and the Democrats are arguing amongst themselves, were on vacation last week, and will return to a list of critical legislation over the next few weeks (debt ceiling, defense, then maybe this if they can pencil in some time to spend $1.75T).

This is in regards to the SALT cap, which didn't exist at all until 2017, and in the House bill it's raised to something like an $80k limit. Sen. Sanders in the Senate wants to income-cap it instead. The summary from the article does a better job of explaining than the editor who wrote the headline:

"Taxpayers making between $500,000 and $1 million are set to see an average tax cut of over $6,000 next year [...] The bill still raises taxes on the top 0.1%, with the average household making over $1 million paying over $65,000 more."

So an overall tax cut for the top couple percent up to the top 0.1% in high-income/property tax states. Which lean blue. Just four years ago much of the press around this was howling at how Trump was doing this to punish blue states (IMO it was primarily to balance the corporate tax cuts for reconciliation, with tax-those-who-didn't-vote-for-me being secondary), and now it seems difficult to repeal since it can be seen as a fresh new tax cut.

IMO analyses need to treat the ultra-rich independently; it doesn't seem fair to group a couple making $500k and owning a house in New Jersey with the 0.001% and then to start talking about averages. Though I can understand there's not going to be a ton of sympathy for the plight of a couple making north of $500k.

IIUC, SALT tax deduction limit will expire in 2025 naturally. Though Sanders's proposed amendment may extend it indefinitely?
Most (or all?) EU citizen have state issued IDs that are basically mandatory for every single citizen. UK doesn’t have a mandatory ID.
To add to your point, here is a distribution of heights: https://capitalaspower.com/2019/10/visualizing-power-law-dis... and here is a distribution of ages: https://siepr.stanford.edu/research/publications/life-expect...
Waste not, want not
Sales tax is indeed double taxation. That's why you're allowed to deduct it on your federal taxes under the SALT rules.
This. I’m a huge fan of tax cuts but the double taxation thing never made any sense to me. But then I realized it resonated with a lot of people so I just went with it. In todays society if someone favors reducing taxes it’s wise to just roll with it.

One of the biggest advantages to deriving revenue from taxation is that if you tax everyone 10% by the time the money changes hands 10 times you’ve got your dollar back. It’s all double taxation
Would you mind thinking for a moment and then telling us?
Also, passports for a family of four don't come cheap. Around ~50-70e per person, in addition to taking significant time. For the same money, they can get two more nights at a holiday resort
“Sled Driver: Flying the Fastest Jet” by Brian Shul
Somewhat dim red lights is my mood for needing to go pee in the middle of the night.
Not really, as advancements in evolution are predicated on unstable software (genetic variations)
Batteries aren’t flammable liquid that sprays all over the place and ignites in a crash.
You're most welcome! I'd be happy to discuss this with anybody interested. The best way to reach me is via twitter DM https://twitter.com/ryanberckmans
OK, a fair point. Let me be specific. What I consider a good math book for undergraduate students should have the following:

- Explain the reason first instead of jumping into the definition straight away. I'm not taking about applications in physics etc., just a simple sentence like, "We have to learn series first in order to understand limits, and limits are necessary for understanding differentiation." Just one short sentence is enough to create a map in my mind and actually give me a decent reason to learn the topic. Seems obvious? Most math books chapters start with a definition.

- Give examples. Really. How am I going to even remember the topic if you have failed to give even one example?

- Give exercises for self-study. This is where the actual learning happens: at this point I can text whether I understood the theory or not. Moreover, it is through exercising that retention happens. Without exercises I can force myself to learn 50 pages and have only a vague memory of it the next day.

- Provide the solutions to the exercises. I get it, if it's a textbook, you want to separate them - that's fine. But not providing them at all means the books is only half-useful for self-study.

If a book has all these, I already consider it decent enough. Additional points for explaining particularly difficult points in more detail (good profs know well where their students are lost most often). If it makes sense, providing examples of practical application in sciences is always useful as it gives me some mental anchors connecting ideas and helping them to stick.
Doing sysadmin/devops for over 20 years now and restic is the easiest and most robust backup tool I've seen.
Have you looked at Office 365/Outlook? A $100 a year subscription gets you a lot of firepower.
There's a more general proposal to tax unrealized capital gains, for the wealthy. It came up in funding negotiations for this bill but wasn't ever in a draft IIRC.
I opened an account with Sendgrid for a new project the other week. Account got banned right away, didn't even log in one time and they said to contact support to get it unblocked. Only issue is to contact support you have to be logged in and their alternative form also wants you to log in.

Sendgrid is not friendly.
They’re presumably hiring for multiple jobs though, which knocks that number right back down.

I’ve heard of individual tenure-track jobs attracting 750 full applications. Low hundreds is probably more typical, depending on the school, year, and field (and 2020-1 has been absolutely bonkers), but it still wouldn’t take many to get to 3k total. This is especially true if counting informal “inquiries” rather than a complete application, which often involves quite a bit of customized writing (research plans, teaching statement, etc).
I tried to implement removing of elements from the tree, just as an exercise, and I see no problems with borrow checker at all. I use Rust since version 1.0, so borrow checker is my friend.

Rebalancing of the left branch is a bit complicated, so I implemented just detach() method, which takes out the element with it subbranches from the tree. From there, you can implement your favorite deletion method. For production, I will just mark a node as deleted and then compact the tree later, to have predictable timings.
> NVidia client-side library must exactly match the version of the loaded kernel module

Sure about that? I was sure I’ve run Docker containers with GPU stuff compiled for different versions than my driver. Like their nbody container image runs every time I set up the nv container runtime with Docker, regardless of driver version.
And convincing countries to give you monopoly on various things, and to wielding power over countries to make them pressure other countries to do the same.
But (unless you've got an excerpt that says otherwise) the Rustonomicon is about unsafe Rust. And I was explaining that safe Rust has data race freedom.

The Rustonomicon is not warning you about scary hidden problems in safe Rust, it's warning you about scary problems you need to care about when writing unsafe Rust, so that your unsafe Rust has appropriate safety rails before anybody else touches it.

// Safety: Can't touch this while anybody else might write

This reminds me of the mutex thing. Look at C++ std::mutex. You could implement exactly that in Rust. But, that's not what std::sync::Mutex is at all. Because if you implemented it in Rust, C++ std::mutex is either useless or unsafe and clearly we'd prefer neither.

But do you have some examples of Rust shared memory IPC that you believe are unsafe? It might be instructive to either show why they're actually safe after all or, alternatively, go add the unsafety explanations and work out what a safe wrapper would look like.
SlotMap literally cannot, because it must keep track of versions of the used slots, and the slots include the memory space for the data.

DenseSlotMap sort of can. It still can't reclaim the memory used by empty slots for the same reason (at a cost of 8 bytes per slot), but can reclaim the memory used by the actual elements stored.

So if you store 1 million items at one point in a DenseSlotMap, and then clear them all and then shrink to fit (which is actually missing from the API, but I'll fix that soon) you will waste 7.6 megabytes on the empty slots but nothing on the actual data that used to be stored.
I'm most definitely an EU resident/citizen (Finnish/citizen of Finland to be precise) and I do not have an EU ID card. I only have my passport.
I am on a mission to solve 100 Project Euler problems using the Awk programming language. About 20 solved so far: https://github.com/ketancmaheshwari/projecteuler
Union Busting Firm and Starbucks Unite to Fight Union Push
>"I've heard this cold war doom and gloom stuff way too many times."

Why would I care what you've heard. I expressed my opinion. I do not need "good reason" for it. You are entitled to your own. Go start the war and celebrate.
I'd love to! Did you make sure your FOSS project is easy to build from source? I don't have to spend hours nagging the dev team for mysterious compilation bugs and dependencies? Projects that make this easy are the extreme exception, so if you actually get it right, then yes, I completely sympathize.
I think you can implement fibers and continuations in WASM by converting the whole program into a giant switch statement and heap allocating frames. There are a few scheme-to-C compilers that do that I think.

Mind, it is not going to be fast as it is going to be hard to generate efficient code ...
I still have the Mac. It's now over 35 years old!
Remember that the computer only had 128K of memory.
There were like three applications. MacWrite, MacPaint, MacDraw. MacDraw was the most crash-prone.

What else might you like to know? I'll have to dust off some old neurons.
> He's catering to an audience of hateful people that can't even eat breakfast without it being in bad faith.

This sounds like a parody of an accusation of bad faith. If some people can't even eat breakfast without being accused of acting in bad faith, that says more about the people making the accusation.
With all the glass being thrown away for some reason the concrete industry came to my mind. Made me wonder if crushed glass could be used in concrete since glass is essential sand? I know concrete needs a specific type or sand and maybe glass would be a no go for cement but it popped in my mind and has me wondering what we could replace the sand with. Also the main issue I see with glass is it is at least twice as heavy. So the carbon emissions savings would need to offset the transportation emissions.
Right but you don’t need any of that really - you just need normal office space.
I'm surprised by the levels in Houston. I wouldn't expect so much pollution in such a populated area. Louisiana gets a bonus mention-- there are quite a few polluters along the Mississippi just north of New Orleans. I can only imagine the impact this has on their water quality
The Asianometry newsletter wrote a really insightful newsletter about the US Government's Semiconductor Chip Buying Problem[1] (He also has Youtube video[2] you can watch on the same newsletter)

In the newsletter and video he talks about the US's Trusted Foundry Program and the different pitfalls and challenges that came with the program.

[1]https://asianometry.substack.com/p/the-government-semiconduc...

[2]The US Military's Semiconductor Buying Problem
https://www.youtube.com/watch?v=oSNhk4TflKA
I use Emborg on servers with no GUI.
Name one bank in Vietnam that has no such requirement.

The credit score database only applies to locals and not foreigners living there, so that is what my reference was.
> Think about that for a moment, why might that be a bad idea?

This isn't obvious to me. Can you help me understand?
This is not a nice comment and a rather reliable way to either get your comments downvoted, flagged or to get your account banned eventually. There are some guidelines for commenting linked in the footer of the page. For your convenience:

https://news.ycombinator.com/newsguidelines.html#comments
So many reasons to blog (or speak/otherwise share info in a public forum)

Some others

- As a form of documentation: there's no better documentation than what targets a general audience. Since those who need documentation often DONT have your team's tribal knowledge, translating the lessons learned to a general audience helps onboard people into some of the principles and ideas the team uses. Bonus: it's indexed on Google, so your team will hopefully run into it if they have the problem the article discusses.

- To sharpen your thinking: you don't _really_ know something unless you can teach someone something. Often people will buy a book or take training to 'fill in the gaps'. TBH the real way I feel good about 'filling in the gaps' on a topic is when I'm forced to write or teach the topic, for sheer fear of embarrassment that I say something dumb.

- To receive critique and grow your skills: when you put an idea out, the feedback you get from the broad Internet will be blunt and unforgiving. In case you want to pop your bubble of nearby friends that don't want to offend you, you'll definitely get some different perspectives (some pedantic/annoying, others kinder)
There are roughly two levels to the discussion:

1. Do you like strong type systems? If so, Rust us great! If you really would e itching for some python or JS, it may bother you, even though the Rust type inference really makes it a non-issue.

2. Do you care about allocations? One could be cheeky and rephrase it as "do you care about performance", but caring about allocations is one of the more advanced optimization concerns and GCed languages can have great performance if you dont hit their pathological cases. But the thing about Rust is that you have as much control as possible to avoid allocating. Entire libraries can allocate nothing more than temporary stack variables, with their primary data being lifetime constrained references the user passes in.

2.5 if you dont care about allocations, then does `Rc<Foo>` bother you? There are very easy escape hatches when you _just don't care_ if that thing is shared and don't want to deal with lifetimes. But Rust _lets you choose_.

To me, its a pleasure to use.
Why would they have to exclude based on ethnicity now but not before? Even when UK was part of EU, kids who were not EU nationals still needed visa to go to UK.
i use sendgrid for a small project because it's free and has template support, but the site is unbelievably unresponsive. it takes 30+ seconds for anything to load. we have a paid account at work and it's exactly the same, so it's not my connection or the free tier. my assumption is that twilio has left it on autopilot.
I don’t want to get into politics on HN, but I’ll say it’s a bad idea because many people don’t want to pay another penny in taxes. And this isn’t about my personal politics. If you want a tax because society will benefit, great - many of us are for it. But that’s not the debate.

If the government was efficient or effective at spending, then it’s just a question of, “well, do we agree spending on X benefits our community or society?”

Where I live, the infrastructure is in bad shape. Public schools are an embarrassment. Teachers are paid nothing (hence, we have unqualified teachers because skilled ones go into other fields). Homelessness is a separate industrial complex where we pump billions each year, but there are no results.

The debate on taxes always turns into the rich or whoever “paying their fair share”. But there’s another topic of greed, blatant corruption, and incompetence in the government apparatus that we have. If I give another penny from my dollar, I don’t see how my community benefits. There’s no accountability. Why should I pay my community gets nothing in return? In fact, it’s not that my community pays and another community wins. It’s that the money seems to go down a black hole of bureaucratic corruption and greed.
Puzzling through exact sequences (3B1B)
You mean the country of the Zaibatsu? Where the economy is stagnant for the past several years? That has several global conglomerates like Sony and Toyota?
> An analysis from the Tax Policy Center on the latest version of the bill shows that, while nearly all Americans making under $1 million will get a tax cut, those on the upper end of that spectrum — the merely rich making between $500,000 and $1 million — will see a much bigger dollar-value tax cut than the bulk of the working and middle class

So everyone under 1 million gets a tax cut, but the 500k-1m range sees a bigger cut.

I mean, it seems good at first, it be nice to amortize the break more evenly, but I think it's because it's done through a deduction mechanism instead of altering the brackets themselves, so it's probably harder to control.

What exactly is the "bad angle" though here? Is there a different way to do it?

P.S.: Also they do the comparison on tax dollar. Which seems strange. Obviously the same percentage cut for someone making more money will be bigger, so if someone makes 6x more money the same cut will result in 6x more absolute dollar no? Is it true that the 500k-1mil earners are getting a special treatment here or is it just the way the same treatment applies to them?
I want to run the same containers I deploy though, we deploy native code, and right now we are not deploying on ARM.

So paying the price of Docker x86 images chomping CPU and being significantly slower is a downgrade from Intel.
+1, good combination of lightweight (for travel) and high performance (for game or for work) but can get quite hot sometimes. Plus for OS would recommend Pop OS with dual boot. no issues with Nvidia in 20.04 and works out of the box.
As a Scandinavian we used to visit UK a lot. Now I don't really see any reason to go there or to show it to my kids