skysight-inc/HackerNews huggingface dataset:
that's because you are expecting dataclasses to create a default `__init__()` for you, which it can't do with that declaration. set init=False if you don't want it to do that.

import dataclasses

@dataclasses.dataclass
class Base:
a: int
b: int = 1

@dataclasses.dataclass(init=False)
class Child(Base):
c: int

if you want the init to be generated for you, you have to tell it how, given that "b" has a default value. so "c" needs to be keyword only here:

import dataclasses

@dataclasses.dataclass
class Base:
a: int
b: int = 1

@dataclasses.dataclass
class Child(Base):
_: dataclasses.KW_ONLY
c: int
Lua is good stuff. Besides games, it is also really useful for hardware/embedded tools. Small, relatively predictable, and easy to bind.

Especially when bringing up and testing new hardware and algorithms, it is incredibly useful to to be able to go from "wouldn't it be useful if we could test <insert scenario here>" to a fully automated system test with a few lines of Lua.
I'd guess, "pretty much all languages" don't have any growth at all.
That is an apples to oranges comparison for several reasons, including:

- People don't use autopilot in all situations, its use is biased towards the easiest driving conditions.

- Your non-autopilot statistics include old cars that have fewer safety systems.

A real comparison would normalise for these factors, which isn't trivial to do.
But this is the most trivial example of inference. Rust has neither generic implementation of higher kinded data nor global inference for the existing specific cases of it like GAT.
> Applying such decisions at such a low level will only result in the balkanization of the Internet

Are we not already there with states being able to dictate what is and isn't allowed?
You are in the privileged position that your employer actually needs you specifically because you aren't easily replaced. That can change over time.
It's going to be interesting to observe first hand how much earlier this will effectively take place, i.e. how much sooner folks will transition to only buying new EVs, because who wants to be the last person to buy a brand-new ICE just before 2035 except maybe some petrolheads.

It will also be interesting to see what this does to the used-car market in Europe, though I guess you can always sell used ICEs abroad minus their shipping cost.
No they didn't. They were all green, dropped to flat at 8:30am.
I have so many questions that ultimately lead to "what compels people to think capitalism is good?"

1. Why did those companies start up if the market wasn't there? Why are they just sitting there waiting for free money?

2. Why is it so important for chips to be manufactured in the geographical area known as the UK? Why not manufacture them where it's most efficient to?

3. What would a "semiconductor strategy" entail other than just putting money is this or that account? Are they actually DOING anything or is this just capitalist doing their parasitic money-moving crap?
> I know someone who saved companies from bankruptcy, usually heavy industries. When he get hired he install security cameras and other measures and after a few week usually find out that a lot of people are constantly stealing valuable materials from the company. It’s always people in the union with some friends that work on the floor.

And it's always some capitalist stealing wages from hundreds (or thousands) of people at a time. Incidentally, has Twitter paid the 3 months severance it owes ex-Twitter employees yet?
I understand the pragmatism but....it took me around a decade+ of doing crap jobs, that I hated, in order to subsidize the pursuit of "my passion"
Its now been 6 years where I have been able to make a living doing what I love and I have to say, it was worth the risk. Do I recommend putting all your eggs in one basket, and going through life without a 'Plan B' - no...but the twist is, the maniac dreamers, whose passion run into the gamut of iconoclasm - those people simply will not (or more realistically) cannot abide by pragmatism.. but this obsessive nature is usually symptomatic of greater 'issues' (that then may bear fruit) and everyone who forges their own path in such a way must pay the toll and suffer the consequences (think starving artists, alienated high functioning individuals, persons inhabiting or transgressive practices, etc)
I very much enjoy Rust and write a fair bit of C++ as well. I don’t think Rust will replace C++ completely but it will definitely significantly eat into its market share for certain types of applications. In the past if you absolutely needed a “modern” language and needed performance you’d basically only go C++ (or maybe C).

IMO if you’re writing a highly concurrent or parallel application it’s hard to deny how much more productive and safer it is to write it in Rust. Optimizing cpu instructions in a single thread? Rust might just be an alternative and not competitive.
Isn't this something this guy is trying to do:
https://archive.fosdem.org/2021/schedule/event/containers_da...

This achieves linux containers on macOS.
I need glasses, I thought it was a species of bear I'd not heard of that likes to jump.
They'll obviously have better luck with them than with BBC iPlayer, for which they would need the knowledge and ability to set up a British VPN.
I don't think multi-award-winning, multi-millionaire, world-famous novelist Margaret Atwood is in a position where she could possibly give a flying fuck about elevating her profile.

You can argue reasonably that communities, schools, and parents' groups have some level of responsibility for making decisions about the content of school libraries. But schools also have a responsibility to ensure that this doesn't stray into the effect of a government body (the school) restricting access to speech on the basis of its content (there was a whole Supreme Court case about exactly this).

And beside all of that it's totally legitimate to complain about stupid decisions that you think will hurt students.
The account dubbed "throwaway" is twice as old as the other account.
Many Indians in America or Americans of Indian descent disagree with the rise of fascism in India. Of course many also fall into the default nationalistic mode and become defensive.

Actions to take against a ruling party that has widespread support from the police, legislature, judiciary, and media are limited.

In India, about 15% of Indians are Christians, Muslims, or other non Hindus. And among Hindus, about 40% are Dalits. The majority of Indians in India are threatened by this rise in fascist actions and rhetoric.

And yet, even against all odds, a few people in India stand up for justice. The silence or inaction of the majority should not be criticized too harshly since it is not easy to put everything on the line. But those that do deserve all of humanity’s appreciation.

Under Modi, India’s press is not as free anymore - April 2, 2020 - Vindu Goel and Jeffrey Gettleman
https://archive.ph/zPhMH

Jailed Indian journalist gets bail almost two years after arrest - September 10, 2022 - Shaikh Azizur Rahman
https://archive.ph/5sxUA

Rana Ayyub, journalist and Modi critic, barred from leaving India - March 30, 2022 - Aakash Hassan
https://archive.ph/Ibu7S
This is the opposite of what I encountered doing consulting, where often the best outcomes were achieved by asking the internal teams what they thought, and then telling the “leaders” who were petrified of accepting such advice without external validation of it.
Of the two mentioned possibilities, it's the first one you suffer :)

May be it's just a kind of clickbait technique.
I find the visual differentiation of the opaque titels visually appealing haha
I agree with your points.

There's some serious work going on with the GIL these days. And also about immutability and reducing reference counting.

> [...] it took them a few point releases to include some quality of life improvements for migration that really allowed legacy libraries to transition

I wouldn't hold that against the transition too much. No one gets everything right from the start.

About typing: owing to Python's culture, I don't think mainstream Python will be statically typed by default (or even obligatorily) anytime soon.
6.4% is the "headline" number. Some of the statistics that go into the inflation calculation are often manipulated [1].

Likely, the realistic number is much higher and has been for a while. Anecdotally, people only care about the incremental direction of their quality of life - is it going up or going down? The trend for that speaks for itself.

[1] https://www.investopedia.com/terms/h/hedonicpricing.asp
Pydantic has __post_init__.

This is a based on code I have in my editor right now. Typing straight into the comment box so it might be wrong.

Toy = Literal['toy']
class Spec(BaseModel):
sample_size = Union[float, Toy]

def __post_init__(self):
self.sample_size = 0.1 if self.sample_size == 'toy' else self.sample_size
"A consultant is someone who borrows your watch to tell you the time."
There's a whole lot of current computing that is just hacked together on top of unscalable bad-in-retrospect ideas from the 70s and 80s. If I had a couple billion dollars I'd be interested in hiring a small group of very bright people to see what building a computing platform and infrastructure from scratch with no concern for compatibility with the current paradigm would look like.
Show HN: Track and Compare Audio Transcription with Whisper × W&B
Hi HN,

based on Whisper [0] and Whisper.cpp [1], I created a comparison of transcription performance (quantitative metrics such as relative speed).

You can find the code in the Colab [2] and a blog post [3] containing a how-to guide and visualizations.

In the future, I'd love to add WER evaluation and visualizations based on ground-truth data.

Bonus: Normally you would log these results from Python to Weights & Biases, but there is a way to log even from C++ / the cli by using `subprocess`

Would love to know what you think of this comparison and what features / attributes you would like to see in a more sophisticated comparison.

Thanks!

[0]: https://news.ycombinator.com/item?id=32927360
[1]: https://news.ycombinator.com/item?id=33877893
[2]: https://colab.research.google.com/drive/1mXZUdIbvdNVOFRJaIhW...
[3]: https://wandb.ai/hans-ramsl/gradient-dissent-transcription/r...
The structure of unions is such that it facilitates and encourages seniority as well as corruption including ties to the mob. It's no accident that unions are targets of corruption by the feds for various forms of malfeasance.
Valentine's Day has dark origins
I saw and worked with quite a lot consultants.

Many of them are great at creating fancy diagrams and design documents, some of them are good at communications, but I have yet to find them that can deliver any real quality code in the end before they move to their next project somewhere else.

I will avoid consultants, along with contractors in software field as much as I can.
That it would not be higher than 6.2%.

Economists surveyed by Dow Jones had been looking for respective increases of 0.4% and 6.2%. So it was not "within expectations". And CORE CPI is even more improtant it increased 0.4% monthly and 5.6% from a year ago, against respective estimates of 0.3% and 5.5%.

"While price increases had been abating in recent months, January’s data shows that inflation is still a force in a U.S. economy in danger of slipping into recession this year."

ANNNNNDD....they changed the weighting.

"January’s CPI report will take some time to analyze, as the BLS changed its methodology in how it reports the index. Some components, such as shelter, were given higher weightings, while others, such as food and energy now have slightly less influence."

Food and energy? Less influence? Housing prices, which are slowing, giving more weight? Hmmmm.....
Some countries and cities in Europe have put the ban in place well before 2035:

https://greencitizen.com/news/amsterdam-announces-a-ban-on-f...

Amsterdam by 2030, and the Netherlands as a whole is trying to do it by 2025.

edit: Fascinating to me that pointing out basic facts is worthy of downvoting.
No, those usually lag behind
This is a common failure in authoritarian organizations. We'll be in a much better place when Corporate America either adopts or is forced to adopt a more egalitarian way of management.

This is one of the major reasons why I chose to make less money working at a smaller company, as it isn't big enough to accommodate these "reality distortion fields".

I keep wanting to read Moral Mazes, but unfortunately I've yet to get to it.

https://en.wikipedia.org/wiki/Moral_Mazes
There's, like, far more to the story. I suggest you watch the documentary, even if just to know which Modi actions and quotes you need to focus on obfuscating and distracting from.
> Recall that nearly all union rules are set by seniority, not personal factors like having a bad day or having a child.

I'm unable to understand what you're saying here. Of course, union rules are not set by personal factors. I meant that they make it less easy to fire you for personal factors due to the heavier emphasis on due process in unionized workplaces.

In most non-union workplaces in the US, you can get fired because your boss had a bad day, or (practically) if you announce that you're pregnant. The latter case is theoretically protected, but it's very hard for an average person to get an appropriate lawyer, show a pattern and sue the workplace.
I have seen no evidence of build quality being higher in the unionized GM and Ford than the non-unionized Toyota, Hyundai, and Honda plants in the US. The opposite may even be true.
Another thing about consultants is if you call up in the middle of the night and need a team in Singapore the next day and stay for two weeks to work on a crisis they’ll do it. FTE’s will laugh or quit.
people on the factory floor are able to steal enough valuable materials that a heavy industry company (I mean, multiple companies) approaches bankruptcy? and management doesn’t have sufficient inventory logs to notice something is amiss?

that doesn’t sound like a true story.
https://archive.is/H0Uji
My org has found that we are preferred over consultancies for certain classes of work, exactly for this reason, consultancies produce garbage systems.
Pre-seed, seed startups with employees in office have higher revenue growth
Unions are almost always good for employees, at least in theory (assuming the union is making good decisions). More market power is better than less market power.
Future-proofed, self-documenting code?
I love bans like this that are 17 years out. It allows a politician to act like they are making a stand and doing something decisive when in reality they know they'll be long gone before having to actually ever have to deal with any of the consequences or actually implementing it.
No place for this nonsense on HN.
No, instead they’re doubling down on layoff vibes to keep everyone in check
> The flipside to this is, you, the seller, sees zero money from people who were tasked to "do a quick search for quotes and providers and let us know at the meeting tomorrow", and went away from your website simply thinking "ok this company doesn't even list a pricerange; move along".

The people who look for quotes in organizations that are likely to want to be targeted by the company are themselves salespeople and business development employees, not developers, who know how "contact sales" and the sales pipeline in general work.

In other words, it is mutual self selection that benefits both parties. All others outside of that range need not apply.
> 100MW/107MWh

Oh good, only 3,000 more of these and things should be peachy.
TikTok’s Talks with U.S. Have an Unofficial Player: China
Sounds like the US fed is managed better than the Bank of Canada.

I think the real estate lobby has too much voice up here.
Who's going to be first to extend the deadline when they realise there isnt the infrastructure, generating capacity or desire from public for this?
Paywall removed: https://www.wsj.com/articles/tiktoks-talks-with-u-s-have-an-...
As long as the checklist catches more costly errors than the time to use it and the (very likely) negative secondary effects to critical thinking and innovation.

Love tools that help, eg checklists, when used right.

But over time they have a very strong tendency to become set-in-stone dogma, at which time they will create a priesthood and a very large dead zone where thinking and flexibility is no longer allowed.
The article ignores the fact that caffeine increases fat oxidation, allow you to burn stores of lipids that would otherwise be unavailable - literally giving you access to an extra pool of physical energy.

Since all energy produced by the body is derived from food and conversation of energy is a thing, of course you'll need to pay for it later ... by eating.
In the US, you don’t really have the luxury of picking a different union. This is one reason unions suck in the US.
I don’t understand. Why would phishing attacks bother getting EV certificates? Users can’t tell the difference in modern browsers.
Why Is New York City Removing Free Broadband in Favor of Charter?
Because long term strategic decisions require taking risks, and that means potentially missing out bonuses if it fails, and possibly getting fired.

Bringing in consultants essentially gives you the ability to say "we vetted it, and it sounds like a low-risk approach". This means you can sell it to the board, to other exec's, sell it to the rank and file, etc. And if it fails, you can blame it on KPMG or Bain or whoever. "Bain said it was cool" is a perfectly valid excuse.

Spending $300k to CYA and protect your $600k bonus is a terrible choice for the company but a fantastically rational choice for an individual executive.
> If someone right now starts a new project in C++ and not Rust it's because that's what they think is best all things considered, not because they don't need memory safety.

I guess most reasons are 'use what we know well', and 'use what we have tooling for'. But there's probably some others.
> My point is just that this is not unique to India, and one should not look down at India and call out on it for doing what everyone else is doing.

Nobody is claiming that India's corruption is unique or unprecedented, just that it is happening. Germany and the US have done a lot worse than selective prosecution, and it would be better if India did not do those other, worse things.

"It's all right because the US and Germany did it" gives you slavery and death camps.
Outflow of $831M from Binance in 24 Hours
This gives us enough time to start building out that infrastructure and generating capacity gradually until then.
soecifically, tesla profitability per vehicle is 8 times that of toyota (as of Nov 2022).
The follow-up question should be along the lines of "what could make the right choice easier/the lazy choice?" Often you CAN actually make it so that fixing the issue IS the lazy option, but you may need the right skillset applied to it. E.g, manual process that could have been automated it someone with automation skills had been available.
Lol. YouTube and Facebook conspire with governments all the time.
This. I look at old code I wrote and cringe at things like

def foo(...):
...
return yhat, sse, aic, bic

yhat, _, _, _ = foo(ytrue)
plot(ytrue, yhat)
How does this help the point you are trying to make?

> doesn't stop comfortably wealthy westerners who've never been harassed by any government or quasi-government institutions

It comes across like a prejudiced assumption, and just hurts it. Flames others into an incendiary mess. Why are you so mad, who is it towards? Westerners? Dungeons and dragons of all things has been dealing with these ethics surrounding laws for years. Games. Your anger is misdirected at "hn types" because that is just a generalization.

Regardless, your principle stands. The ends justifying the means as a principle is despised for good reasons even if some laud it as well.
You know what, I cba.

I'm the only one providing explanations here. I'm the only one who bothered to try to provide a source for the claims I was making. I explained that I don't believe there's more recent data, so yes, I am supporting my "thesis" with an article from 2012. Everyone is just making baseless comments here anyway, "ree, Zuck bad", so whatever, believe what you like for all I care.

The point I was originally trying to make was that technology companies (including Facebook) compensate their employees with billions of dollars of stock every year[1] ($12b last year in the case of META). This means the employees of technology companies are generally significant shareholders of the company – whether they're the largest, second largest or third largest owner is frankly irrelevant to my point – employees benefit massively when the share price goes up because in many cases most of the wealth of those employees is tied to the company stock.

None of what I'm saying here should be controversial and is widely understood by tech workers at companies like Facebook, Google and Amazon.

I have no idea what Zuck or BlackRock being a large individual holder of META stock has to do with anything. Do you guys think that the thousands of employees at Facebook should (or could) have 10% of the company each or something? Obviously Zuck owns more than any individual holder – it's his company. And yes, obviously, there are large institutions that hold Facebook on behalf of their clients – most of whom by the way are just average people who have money invested with companies like BlackRock for their retirement. Are you guys also surprised to hear that 89 year old Doris doesn't manage her retirement portfolio on Robinhood or something?

If you're honestly unhappy that companies like Facebook don't give enough of their stock away to employees then I don't know what to say to you. You'll find one of the main complaints institutional share holders will cite when it comes to owning the stock of tech companies is that they give away far too much stock to their employees. This dilutes investors like BlackRock at the benefit of employees receiving SBC.

In my opinion the reality here is completely opposite to what this community is trying to paint. But I know, I know. Zuck is rich and therefore he must be a bad boy who doesn't care about any one or anything other than his own wealth.

[1] https://www.macrotrends.net/stocks/charts/META/meta-platform...
>For starters, the incident coincided with a Chinese spy balloon's journey across US airspace.

Something of nearly zero importance to the army. What were they going to do, send paratroopers at it?

>Second, it was quite clearly far from a wise use of military resources.

While true, I doubt this caused a significant waste of resources.

The third issue is fair.

The original source opinion piece seems better than this writeup.
Like he acknowledged the rail workers?
There is a sampling bias at play right here in HN with the Modi-bashing comments. Indians, and India, is doing great overall. Modi's leadership has played a big role in this.
Indians are (generally) emotionally people, and by no means is it an authoritarian state. In fact, we need wise leaders with vision to manage this population.
My man, this is 12 years away. Also, I don't think much of the implementation rests on the politicians?