skysight-inc/HackerNews huggingface dataset:
Is there a tutorial-style (or anything beginner-focused) resource for learning modern C++ that you could recommend? A lot of the learning material is about earlier versions (for understandable reasons), or at least don't seem to reflect C++ as it is today, and the best practices of writing code with the tools it provides.
Huh, sometimes I wonder if the people spending time on reasear like this might've actually spent more time with the game (development/ code) than the original developers.

Anyways, great writeup and an awesome way to exploit this historic bug.
I can guarantee you that the fabrication / transportation / installation of a new electric unit far outweighs using the existing gas unit until end of life in terms of CO2 emissions. No different than diving a old truck vs buying a new tesla. Net negative.
it's entered the tech vernacular :) do you grok it now?
Workplaces are best for doing work, earning income and making light conversation. It is risky to turn them into a battleground for every political and religious issue under the sun.

Good riddance.
I would be interested in hearing the perspective of any HN readers who are of south Asian background and working in America. Statements that tech companies in the US have caste discrimination (or reverse discrimination) for South Asians who work there, are hard for me (an Anglo-American) to judge, seeing as if it were happening (either way) there's little chance I would have noticed it.
We don't need to be carbon neutral if we find another planet to fuck up and find a way to get everyone there. In the meantime, it seems easier to just tone down how much fossil fuel we burn.
Can you point to one extension that is making 7 figures?
maybe Basecamp’s no politics at work policy wasn’t that bad after all…
There are a couple of science and science fiction authors that started posting hashes or signatures for their predictions for the future, and then post it after events played out.

I think the idea is that unlike pundits predicting the future, you don't want your particularly clever friend speculating out loud ten minutes into the suspense movie what they think is going on because they either guess the ending, or their guess makes you figure out the ending, and then it's 70 minutes of sitting there reading all of the other foreshadowing and not getting to enjoy any of it.
That's likely because you belong to a social group whose opinions are considered worthless.
Interested in what you think about startups like Flexport - 2021 3.3B in revenue (80% passthrough) = 660M net. Their last round in Jan 2022 was ~1B.

So "hype ratio" < 2. Am I looking at this right?
The marines are dumping tanks as part of a re orientation to be a true marine island hopping force in the pacific. There's debate over whether this is a viable concept in total, but little debate whether tanks make sense in that environment.
I appreciate your comment. My intention wasn't "Go is dissimilar because it's bad and Rust is good" but I can see why you'd think that. I'll attempt to clarify.

The reason I like and recommend Rust is the number of decisions it gets right which are completely orthogonal to the borrow checker. It's clear that a lot of thought was put into the unexciting parts of the language. That's why I like using it even though I don't particularly need the borrow checker and I'd be happy with GC. Some examples off the top of my head:

- Expression-oriented nature makes code easy to write and nice to read
- Compilation errors are as clear and helpful as possible
- Comprehensive yet skimmable API documentation

In short, Rust is a nice language outside of the borrow checker.

A lot of the things which strike me as nice about Rust can't be said about Go.
For that reason I think Go is a surprising suggestion for someone who likes Rust but doesn't care about ownership and lifetimes.

There are a number of minor but valid frustrations I encounter when writing Go which are completely orthogonal to the brief of "C but with GC and easy concurrency". I'd understand if these problems were a result of the language's goals but often they seem to exist for no particular reason. In that regard I think Go is quite dissimilar to Rust.

I hope that explains my viewpoint more clearly :)
> I’d say it’s like asking Vim users whether they should all move to VS Code.

If Vim was actively contributing to climate change and fouling the air of everyone around me, I'd switch tomorrow. VS Code has Vim bindings, I'm sure. I'll be okay. We're long past the point where everybody keeps being able to do their first favorite thing at all times, _and_ we somehow also solve this huge problem we've gotten ourselves into.
So cool. I’d honestly love to replace my laptop with an iPad. That apple pencil is so good.
> Climate change is a life or death situation, and we need to be acting way faster.

If it is truly a "life or death" situation, then what you want to do is slow down and carefully evaluate your options to ensure you're not actually going to make things worse.

If California truly is the "land of unintended consequences" then why would we presume that will suddenly disappear just because we're doing the "right" thing?

The rhetoric and the actions do not match. Particularly here.

You're just taking some customers off of gas. Isn't the most obvious outcome that there will be alternative uses found and those industries will buy the glut? Shifting usage from one end of the stack to the other doesn't seem to do anything important in the face of this "life or death" scenario.
> the semantics it learns sometimes have significant artifacts resulting from associations that are common in news coverage

I think this is largely the point. The game is significantly easier (for me at least) when I limit myself to thinking about what words would have high co-occurrence in English print journalism.
Rust's advantages don't stop at concurrency or type safety. In my experience, the type system is actually much more concise and the APIs are a lot more explicit than any other language I've tried. It's clear when the argument you're passing is going to be mutated or not and move semantics help a lot on designing good APIs (not having to remember to close a File or being able to use it after it's closed, for example). Not to mention sum types with pattern matching, being expression based, etc. I also find that Structs and Enums being values instead of references (as opposed to Classes in other languages), reasoning about the code is a lot more straightforward, which goes back to my point about explicit mutability. A huge part of it also goes to great libraries created by the community, that usually cares about API soundness.

It's very common in Rust to do a big refactor or write a program from scratch and have it work on the first or second try, which may release a good amount of dopamine for some.[0]

Not saying the language is perfect, but it can feel pretty good, to the point of being addictive, while also freeing to know you can think less about the variants and let the compiler do it for you, and the reliability of the created program is usually pretty amazing. It can also be annoying, specially when you're learning it and try doing something in a way that's just not viable in an easy way (e.g. manually creating a Linked List).

[0] https://old.reddit.com/r/rust/comments/uixup6/just_wanted_to...
Taskjuggler?
How does that work when apparently there are Indian managers that discriminate against lower caste Indians under them?
According to this information [1] has not been revealed and supposedly affected 12% of credit scores calculated from March 16 to April 6.

[1] https://www.inman.com/2022/05/31/equifax-coding-issue-possib...
Literature is nice. My dad has a big collection of literature books that number in the thousands. I've read probably 20% of them.
I’m sure laying off 10% of their workforce will expediate fixing this problem.
For a smaller/younger SAAS: If a customer environment is suddenly running at 100% of some resource when it wasn’t before, that’s an important thing to alert on / investigate.

For established players it’s lost in the noise, but if it were me I’d appreciate a heads up for big changes.
Caste discrimination is more relevant than most other forms of discrimination we quabble about here in the US.

For those it affects, that is.
Great analysis! If only people would read this before jumping to conclusions.
But 3/4 of that heat goes around the wok.
That policy doesn't mean that there's no politics at work, just that there's no open discussion of the politics that are affecting employees and the company. See for example:

https://www.wired.com/story/trapped-in-silicon-valleys-hidde...
"Steel man" means the opposite of a straw man argument. https://www.lesswrong.com/tag/steelmanning
ATGMs are single-shot and 50lbs. They're hard to carry around the battlefield, and the people carrying them aren't carrying much else.

Furthermore: Tanks provide 40+ shots upon their call, and tanks easily maneuver around the battlefield at 30mph or faster.

Finally, Tanks have 3000m to 4000m range. Javelin only has 3000m range, while NLAW only has 1000m range. The tank is faster, the tank is more maneuverable, the tank is better armored, the tank has more range, the tank has more bullets, the tank has bigger shots (120mm rounds blow a bigger hole in the enemy than Javelins do). When the tank fires, their shells travel at literally hypersonic (Mach5) speeds. There's various stories of how tank-commanders saw an enemy's ATGM, fires back with the main cannon, and pops their thermal-smoke grenades to avoid the missile.

At 2000m or 3000m range, its really hard to actually fight a competent tank crew. Even if you are provided with the best of the best weapons (an NLAW is fully outranged and outgunned)

To carry similar firepower to a tank, you'll need 40 troops, each carrying a 50lb Javelin into the battlefield. Sure, the tank can die to one Javelin, but your 40 troops can all die to a few 152mm shells... and troops don't have the luxury of sitting in a vehicle (troops carrying 50lb weapons move slower than the armored cars we call "tanks"). Nor do they have immunity to sniper rifles or machine gun fire.

And once you have those troops in position, there's still the problem of the innate slowness of the ATGMs compared to tank APFSDS / HE-frag rounds. Yes, rockets are fast, but tank-rounds are far far faster.

-------

No one can deny the shear offensive prowess of the tank on the modern battlefield. ATGMs are very good tools as well, but even they pale compared to a tank APFSDS round or HE-frag round from a tank.

Now those benefits are negated in urban environments. Close quarters combat, within 500m or 200m is common, as ambushes can be setup anywhere. But still, the tank's role is needed in these urban environments. The 120mm tank gun is the only weapon that can repeatedly blow up squads who are hiding inside of a house for example. (It'd be too expensive to use ATGMs vs a house, but its not that expensive to use tank HE-frag or APFSDS rounds).
I'm so glad no one at my current technology workplace discusses politics anywhere-- not in Slack, Email, nor Conference calls. I literally haven't heard a single political opinion at work, and I freakin love it!

I previously worked at Unity Technologies (3d game engine company) and as well as a CRM Consultancy, and I was amazed by how much time people spent arguing their political agenda. It was a major contributing factor of why I left both places. I had this feeling of "Why are these people chatting about things irrelevant to our work, while I am working? They should be working too-- they're paid to work, not chat & check their slack feed for 30-60 minutes a day about politics"
"No politics at Google" is an impossible stance.
While caste systems might seem far off and irrelevant in the modern world there is actually a rather extreme amount of caste based discrimination in work places. It's an issue we need to talk about and resolve.

I can't talk to this particular activist's positions, but Dalit Activism is a very relevant and worthy cause - it causes pretty significant discrimination even in the US.
funny how they cheered for diversity but completely overlooked the caste system
We don't allow testimonials and discussions and criticisms of companies in the ordinary non-YC job "Who's Hiring" thread either; once a month, Dan has to go patrol those threads looking for people trying to start off-topic discussions on people's job ads.
I can do 900 miles in about 12 hours, at my max.

With a 300 mile range, I'd need at least 2 stops that are 4-6 hours, unless if I find a super rapid charger. That turns a sucky 12 hour day with 1-2 hours of stops into a 16 hour trip with probably 1-2 hours of additional stops still.

So now I need to power through or get a hotel.
I'm not sure that OVH is meeting all criteria for a safe building containing a lot of wood for any use, let alone for data center use.

Let's see what will come out of this.
Because I can't make any decisions. I've been robbed of the ability to express my skills using my own methods to accomplish our mutual goals.
It's a strange feeling to find myself agreeing with the North Korean government.
Yup. "We can't fix all of humanity's problems overnight, so let's do nothing at all." is a false dichotomy.
Sheesh. I only worked in Sorrento Valley (San Diego tech/Qualcomm) & heard about it multiple times there. & I’m pasty white.

Not discounting your experience, but I couldn’t imagine that Sorrento Valley would have larger issues about it than Silicon Valley.
While I like gas stoves for cooking in my current apartment I occasionally would smell small amounts of gas and didnt think much of it. I took apart the stove and discovered that not a single fitting from the wall to internally had been done properly (they must use a special type of teflon tape on the threads or a special type of grease. They had neither). The stove was constantly leaking gas. On top of that it had THREE pilot lights constantly running (two for the top, one for the oven) that ended up creating actually quite a bit of heat. I disabled the two top pilots and left the bottom and now light it by hand.

Can't imagine all that gas was great for my health though.
Are you sure? My macOS 12.4 has a /usr/bin/python3 that is happy to accept "-m -m http.server 8080"
We get talks about discrimination based off race and gender at work. Caste discrimination is even more deserving because it's much less obvious to non-indians.
I don't align well with most of the most outspoken social groups, so, yeah, probably true.
Am I understanding correctly that she got severe backlash on a topic nobody in the US cares about except the beneficiaries of an obscure identity politics in India... that nobody thats not from India, in America, cares about?

Seems like exhibit A for something the rest of us should be aware of, and balance opinions on. Since there are many people from India in the US.
Just because I know you won’t have a good answer - explain how a Dalit activist being called ‘Anti-Hindu’ when it is Hinduism that calls for the caste based system is not evidence of the exact kind of caste being present at these companies(a publicly documented problem.)
"Steel man" refers to an argument that is the opposite of a "straw man."
I'm Indian, live in the US (Midwest, south, outside big cities) and I'm happy to just meet another fellow Indian lol. Couldn't care less about caste or language or whatever.

We are already so far away from home, atleast we can look out for each other.

I'm not in tech so I've never lived anywhere with many Indians. I'm guessing these types of issues start to crop up when you have higher chances of meeting many people in your exact social group back in India and end up forming cliques.
To be fair, the GCT is 24000km (15000mi) long. You’d really have to hoof it to clear it before winter sets in. Essentially a jogging speed for ten hours a day, for six straight months, no time off.
> All that may change by 2023 — at least in new Los Angeles buildings. The L.A. City Council last week passed a motion that would ban most gas appliances in new residential and commercial construction in the city, citing an effort to combat climate change.

I understand this article is aimed at the effects this will cause on restaurants, but I think this could have much larger implications for everyone in the area. This sounds like it's going to put an artificial larger load on an aging electrical grid that is already failing due to lack of generating capacity, without adding any additional generation capacity. So more brown/blackouts during peak loads while increasing the chances of hitting the peak simultaneously by increasing load. Where are they going to get this extra power from?
> Gas is very efficient.

The way my entire kitchen noticeably heats up from pan-searing anything says otherwise.
What are the best ways of identifying this kind of discrimination for a non-Indian? How can I tell if it’s happening in my workplace?
This is really hard. I love it
Ah, you beat me to it by one minute. :)
Unfortunately just because people don't openly discuss their politics it doesn't mean that there isn't hiring discrimination going on.
I'd like to have some clarification on the following claims:

- Rust async is a mess
- Python async is a mess

What does "mess" means here?

I have been writing Rust code for a few months, and Python code for more than a decade. I have to admit that I do not know the internals of the Python's async model, but as a "user", I think that trio (and asyncio with 3.10 / 3.11 is getting better) is really great.

The ability to call `trio.run` / `asyncio.run` anywhere to start an async loop does not "contaminate" the async/await keywords up to the entrypoint. Which is great.

In Python, calling an async function returns a coroutine object (that can be awaited). In Javascript it returns a Promise. In Rust it returns a Future.

From the "user" point of view, it's all the same. And I don't know many developers who are interested in how it works under the hood, because (like in math/physics/science in general) it's very useful to sit on the shoulders of others.

If I understand correctly, Rust gives you the tools, and the "shoulders" belong to the library developers (like tokio). Which is fine to me.

So, I really do not understand what "mess" means, what it refers to, and what I (as a "user") can do about it. Also, if the internals change, how will this impact my code?
Technically correct. The best kind of correct.
Thousands of software engineers are cheap, because software scales. So if they still have a better app than the local taxis, they would still have an edge.

At least in Germany the taxi apps are so crappy that you still need to call for a taxi most of the time, you then don't have a map where they know where to find you and you know where they are.

Uber has that but no/few drivers in my area. I would use Uber if they had drivers, even if it was the same price as the taxis.
Does the Indian-ness of the manager matter? Nobody actually thinks discrimination is okay.
But why could someone trying to start a company like that not get some funding from a company like YC? The expectations would of course be different but it could still end up profitable for everyone.
> Some are overpriced and upscale, some are cheaper than your local chain grocery store

Some also sell imported fruits and veggies...
You can’t run a food truck and not guarantee your food doesn’t make people sick, that’s not even allowed in the Land of the Free.
> But from a future prediction perspective, i.e. the forecasting and thus the manipulation of training to obtain a certain performance, did it make sense?

Those are two different questions. For forecasting without manipulation of training it would still make sense. But it wouldn’t make sense for causal analysis.
Because they only care about visible diversity
Startups are in survival or hyper growth mode. They don't usually have a lot of time for these topics as much as big tech.
Come on, this isn't a steelman.
I don't whether you're also including "build your own data center" inside bare-metal, but a data center has many moving parts. Keeping servers up and running is the easiest of all.
SolidJS: Past, Present, Future
In the DevOps/OnCall role you have to be prepared to deal with "all kinds of software bugs and hardware deviations on a daily basis" which doesn't sound like a barrel of laughs.
Who is the "they" in your comment? I don't quite understand.
And if every minor usage of energy considers itself a rounding error, on aggregate the combined waste rivals that of a major one.
bamboo grown sustainably and turned to charcoal for use wouldn't be introducing new c02 into the atmosphere. it would be carbon neutral. Its definitely better than natural gas which uses carbon that was sequestered millions of years ago
Yeah I don't mean to criticize Go's generics for being less featureful given how late they were introduced, but they do currently prevent me from building any kind of mapping/filtering/pipeline style code because of their limitations (no generic type parameters on methods). A Go implementation of Result or Option could paper over the lack of sum types if we only had that.

The more I think about it, what I really want is something with the ML feeling of Rust, but in the space that Go occupies (good performance GC languages). Go frustrates me because it nails the runtime and tooling side of things but falls far short of it in the other ways I mentioned.
i seriously doubt that no politics at work policy was to undermine discussions about employees struggles

to me it seems that people got carried away by political debacle so much they forgot what they should actually be doing on their job

moreover i doubt Basecamp had a caste problem to begin with
It's my understanding that zero-knowledge concepts can be extended to databases, in a way where I can query a database and get a result without knowing the contents, perhaps to pass on to a trusted system to perform another action.

Depending how you slice it, I either do or don't get to know if the result set is empty. In the latter case, there's a variation of this crush registration system where I don't get to know if Sally has a crush on me, but I do find out if anyone has a crush on me. Of course if the answer is empty set, I don't know if I'm unloved or only loved by people that don't use the app. Which could be pretty heavy.
I think it is pretty well accepted that they fund Firefox just to avoid being a monopoly with Chrome. The other stuff is just icing on the cake
The occupational risk seems pretty high. I recall hearing that using a wood stove indoors to prepare 3 meals a day is equivalent to smoking two packs of cigarettes a day. People would be upset if their employer forced them to smoke two packs of cigarettes a day. For the customer that's in there for an hour or two, though, not a big deal.
The difference is that the barrier to entry is so much lower now. If I were trying to help someone just starting out, I would point them at something like repl.it instead of whatever is preinstalled on their machine.

The system Python and Ruby installs on macOS at this point are more of a hindrance to newbies than a help. You have to explain the differences between versions and hope they don't have to deal with any conflicts.
I've never cooked with copper pans, but I've made all three of those on induction and a steel pan without issues. Temp changes are noticeable almost immediately. There are also aluminum pans with a steel insert at the bottom, made for induction, that have terrible heat retention if you prefer that.
/b/ and /pol/ aren't the whole thing
Dupe of yesterday's 875 comment thread

https://news.ycombinator.com/item?id=31593799
Great, you seem to have a semblance of understanding of the issue. Now go talk to the c-suite execs & even lower level managers that are actively discriminating against people, get them to stop, & then all will be well. Things can revert to the form you & most likely wish it would be.
Continuous glucose monitoring on the Apple Watch
Standard ML Grammar for Tree-Sitter