skysight-inc/HackerNews huggingface dataset:
So, basically you are saying "Rust is mostly used as an application programming language anyways, so let's not pester those users with the overhead of OOM handling"?

Fair enough. But this would mean that Rust is (factually) a systems language in the same sense that Go was initially declared to be a systems language.

If I look at the Rust community (I give it a try from time to time), I would totally agree with your point, that most users would be pestered by this overhead.
I see mostly CLI tools, "web apps" and the kind.

Furthermore, I just can't shake off the feeling that the embedded (bare metal, 16 or 32 bit architectures) or (in-house) kernel crowd will always be 2nd class citizens.

I keep saying this, but the obvious fix is for the Linux kernel to use overcommit internally
just like they expect user space to do.

I'm not a kernel developer, but aren't you (maybe) asking for a bit too much? You ask the Linux kernel devs to change the kernel in a significant way, just so you can use Rust for writing drivers in a way you write user space applications.
> C++ chances that I can compile code from 2000 without issues is minuscule.

Really? I have code from the late 90ies and it compiles just fine. Do you perhaps mean dependencies? Because the issue there is the completeness of the framework and libraries around Java rather than the language itself.
If you’re curious like I was about what a “print disability” is :

A print disability is a difficulty or inability to read printed material due to a perceptual, physical or visual disability.

And https://en.m.wikipedia.org/wiki/Print_disability
"If you have a hammer, every problem looks like a nail."

Both PHP and the success of Web applications are inextricably tied to each other. It's easy to pick up and easy to run. Others commenters have already expanded on these advantages.

PHP has treated the Web as a first citizen before anything else for the longest time. It sits on the crossroads of I/O over HTTP(S) and it's really good at what it does. The massive amounts PHP frameworks are testament to that.

Even so, moving away from that vantage point, the story shifts quickly. The rise of the Web doesn't just imply managing / processing HTTP(S) I/O - building a simple web interface, a simple REST/JSON API,... - it also means managing the complexity of data management. Data migrations, transformations, juggling processing jobs, tying API's together,... are the bane of many a PHP developer.

Many a PHP framework provide API's to do background processing via PHP scripts you run on the command line. There are plenty of PHP libraries out there to make things easier as well.

Thing is, languages like Go or Elixir run circles around PHP when it comes to things like concurrency, multi-threading and robustness. Python's idiomatic approach to data munging makes it more suitable then PHP to deal with complex textual as well as binary datasets.

PHP absolutely has it place for several classes of business problems. But definitely not for everything. Having spend a decade in PHP consultancy, I've witnessed several client projects suffer heavy delays or fall through because an entire business domain got shoehorned in PHP, and - worse - in specific PHP frameworks that bring their own additional layers of complex abstraction.

The latter is not a fault exclusive to PHP or developers who solely specialize in writing PHP, or even a specific PHP framework. Rather, it's caused by complex biases and social dynamics that tend to lead towards a narrow-minded tool-centric approach of complex business challenges.

Just like a hammer, PHP is a tool with a limited set of use cases. Just like any language.
40 years is quite a risk - 120 is far better. And saving this is easier than you think, if you commit to not eating and living outside. Importantly do what you are told, and remember your inadequacy!
Isn't Spotify Desktop an Electron app?
I agree with you and find it interesting that (so far) Apple is leaving actual equipment (beyond the watch) outside of its usual close integration of hardware and software. Users need 3rd party equipment (treadmill or rower or bike) for 3 of the exercises (which are likely the most popular exercises on Fitness+). Currently outside of very expensive commercial equipment with GymKit, there are no good options and it honestly leads to a horrible experience using 3rd party apps or missing key information (cadence, strokes per minute, etc) from your workout in Apple Health.

I am hopeful Apple pushes hard on GymKit in retail equipment otherwise I think Peloton’s ecosystem will prevail. It just works.
And that's fine. The population of each country can decide for themselves where they store their wealth and in which proportions. It's not like Bitcoin is the first tool to enable this. In fact, most Turkish people are much more used to store their wealth in precious metals.
Ugh. The BJP are Hindu nationalists that should be labeled as extremists — a bunch of Napoleon-complex-having-authoritarians...

But India is the next big thing so all companies from Apple to Facebook and everyone in between will likely pander to the government.

I’m East Indian but born in America (lucky me I guess) living in Berlin. I mean no disrespect to my fellow Indians just to convey my utter contempt for Modi and his thugs both the BJP and his gestapo the RSS.
> putting into administration any firm borrowing in foreign currency but earning in lira, and then refinancing them with lira loans.

This isn't really an option. No lender is going to exchange foreign denominated loans for Lira denominated loans during a currency crisis.

If he really cannot get the country's finances in order, he's better off just defaulting on all the loans, and starting fresh like Russia did.
> but the lack of an interface

It's not lacking, the standard library just defaults to not use it by default because handling OOM is a conceptual mess (yes, the OOM handling features C/C++ has are included in this).

But even in the standard library you have methods (some not stable) like `try_reserve` which returns an error is allocation fails.

Anyway all allocation parts are part of the standard library (or the alloc library), i.e. they are not a core part of the language itself.

I don't think anyone ever planed to use rust's standard library as-it-is in the kernel (it's just not designed for this, e.g. see panics) or pull in external dependencies from cargo/crates.io without vendoring them.

So it's totally possible to run rust without alloc caused panics.

Now besides that there is the question about panics outside of allocations. Like e.g. if code realizes it ran into a violated invariant, e.g. it knows we have a bug which isn't explicitly handled.

And guess what the kernel already has a handler for it: `BUG()` so basically any panic will call `BUG()` (and we don't panic on memory allocations).

Now maybe some tweaks to the panic system are necessary to make sure this all works well (panic=BUG(), is like panic=abort and on abort call BUG()!).

Now wrt. the integer and float parts, there are two thinks first the panic will likely call without debug assertions like overflow checks (which would call BUG()!! So many are gone, but here are some special cases around floats and 128bit integers on platforms which don't support it where calling BUG() is inappropriate but I have to look into this, tbh.

So short:

- panic on mem-alloc failure is a (lib)std/alloc thing, kernel code would anyway have used something easel

- panic in the kernel can be made into being basically BUG()

- issues around float and 128-bit integers should be fixable, at worst with a compiler flag. But embedded code is by it affected, too. So there is a good chance there is already a fix.
While I can't substantiate it, I also have the feeling that current crypto hype is unnatural and kind of a bubble. It looks like a lot of fiat money is flowing into crypto and one must wonder where this money is coming from. One obvious source is the overblown money supply of FED/ECB (with claimed reasons the COVID crisis). While initially some of this money must have been poured into things like SP500 (judging by the rapid index recovery in 2020), then it probably found a more fertile ground in the volatility of crypto markets and people's savings followed the hype (somewhat reminiscent of large scale ponzi scheme).

Money supply and the resulting inflation does not serve a good purpose to fiat in the long run, because it diminishes its ability to serve as a store of value. If its other abilities (unit of exchange and accounting) are undermined, fiat will be in real trouble. So, I guess a crypto bubble serves a good purpose as a sort of a buffer for the inflation. In other words, if lots of people lose fiat money on a crypto bubble, there will be less money lost due to inflation for the ordinary folks. Replace crypto with stock, property and other bubbles and you basically get the same effect.

So I guess what the Turkish government is doing is diminishing the ability of crypto to serve as a unit of exchange. If they don't do it, they might very well lose control of their monetary system. That is, all financial transactions (except maybe taxes) bypassing their local currency and leading to even more inflation and a default (or some kid of war).
Touché my friend, touché indeed. ;-)
IOS is 100% of the iPhone market though, given that unlike Windows in the PC market, Apple disallows installing an alternative OS, and an alternative app store in addition to disallowing alternate browsers.
It feels like we spend a disproportionate amount of energy running the bitcoin network for its benefits.

That's the reason it comes up a lot in those debates. Sure, cars use more energy emitting more CO2 right now, but the benefit of all the cars worldwide is in an entirely different dimension compared to Bitcoin. Most people intuitively grasp that stuff having a huge benefit for a huge lot of people must be allowed to use up more energy in absolute terms than stuff that has a very minor benefit for a very small group of people.
It's a singular they, not an imagined cabal.

It's a neat trick to not say anything specific and then demand people argue the specifics.
Turkey is still weak economically, it has untapped investment opportunities. The USA is extremely strong, at this point the majority of investments have been tapped and we must manufacture artificial investments (infrastructure bill) just to keep macroscopic balance (savings = investments).

What Turkey needs is more foreign investment (plus the trust of its citizens) and that requires eliminating corruption.
> For example, on Linux with overcommit (the default), even if the system is out of memory, malloc won't return null. It returns a pointer that's not null, such that your if(ptr == nullptr) will act as if everything is "ok",

Not always. The default overcommit policy will reject certain allocations that are too big. Also, you can change the overcommit policy if you need it.

Also, overcommit policy not rejecting allocations by default tends to be more useful than harmful. One example is forking processes: the memory space gets duplicated with copy-on-write, so if you didn't allow overcommit you could end up with processes that couldn't be forked due to that behavior.
Not to mention that most programs don't use all the memory they have assigned, so without overcommit you'd have a lot of problems with RAM underusage.

> So I find it extremely ironic for Linus to argue that practical programming languages are hard to use for environments that must handle OOM errors, when they are championing one of the major platforms that makes handling OOM useless by default.

Kernel and user space programming are very, very different. A lot of developers use languages with garbage collection without issues, but that's not acceptable in kernel programming. The fact that the platform provides X feature does not mean it has to be developed including X feature. In this case it's very clear. Even if they used overcommit in kernel code, Linux does not always overcommit memory, so you'd still need to manage the OOM case in kernel properly.
I think if you can integrate swoole with coroutines in the right places, some benchmarks may have it faster than phoenix even... and I know laravel has had swoole packages, but recently with octane has made it more central which is good because a lot of issues were with maintaining state with requests and multiple threads as well as database changes.
Curious.

How many of you actually brought something just because a machine/stranger recommended it to you? For me, it's almost never.

I watch YouTube a lot, as a free tier user, of course. When a video starts to play, all my focus is automatically dead-locked on the "Skip Ad" button, and sometimes "Skip trial". It's a game for me now to see how fast I can tap the "Skip". As for the content of the Ad, well, usually I ignored it all together.

Sometimes, when I'm away from the phone and suddenly a some 50 hours long Ad starts to play, I'll just continue finishing what's on hand first, and then go to my phone to tap "Skip" or switch to Twitter or Telegram to see whats fun over there -- all without notice what the Ad was saying.

Yes, sometime, some annoying Ad got into my head anyway, but ... why should I buy something that annoys me?

For me, the most effective Ad are those what I'm actively looking for. For example, if I'm looking for a running shoes, I'll click the Ad on the search page and/or listings page to see if there is a good product/deal. And I'll stop click those as soon as I made the purchase.

So personally, I don't really understand the idea of Tracking Your Every Move So We Can Sell You Stuff. How it even works?

Now if you remember this: https://news.ycombinator.com/item?id=14879204
> But it simply isn't as flexible as JavaScript

I guess it depends how you define "flexible". The language itself is clunkier, particularly anything involving closures (although that's getting better), but it does so, so much stuff out of the box (even if the APIs are often a bit footgun-y).
The last half is basically his own opinions stated as truth from God, which, to me, makes him look like a complete tool.
Personally I'm not a fan of parens around the conditional in ifs, but I don't go around spouting that it is the only true way.

It basically makes me write off the first half, even if it is correct (I'm not a linux dev, so I don't know).

Added: From the reply on lkml I'm not the only one.
There's no way we're worth $50B to them.
If you manage domains and force this stuff off your users will def complain.

My worry is we end up w a situation such as cookie notices - users have gotten so used to clicking through content screens they don’t pay attention anymore because a lot of it is meaningless
I'm not an american so can you explain if Facebook and Twitter actually have bigger sway than obviously partisan news media like Fox News?

(At least in our part of the world that media seriously outstrips any kind of influence FB and Twitter yelling has.)
That claim is moot if you can't prove articulable harm that is in excess of the articulable benefits.
The genius behind early Russian space tech
I've used the Matrix bridge to IRC a lot, and no one has complained. Of course, one has to remember to never use edit messages, or use the reply feature.

Ideally, these functions should not be available when connected to an IRC channel.
You just fell into a logical fallacy. https://en.wikipedia.org/wiki/Denying_the_antecedent

On the other hand, what the other user deducted was:

* If you attend college -> You probably end up writing properly

* OP doesn't write properly -> He probably didn't attend college

Which is a proper logical deduction rule called modus tollens.
https://en.wikipedia.org/wiki/Modus_tollens
Geri Ryan mascot incoming.
Sure. But given that housing prices were a lot lower before and that the prices of a lot of other things, among which labour, haven't risen to the same tune, I'd assume that building a house was profitable before and thus will still be profitable (though to a lesser extent) even if prices fall back to that level?

(It would presumably mean that the houses that get build would become cheaper to build, i.e. fewer luxury housing with larger margins, but that's not what people are objecting too, rightfully so.)
Ah, I didn't realise it was about writing bits of the kernel itself in Rust, now it makes sense, thanks!
Ah - they have special treatment for the Kurdish.
I'm not aware of any desktop ARM devices that can beat the M1.
> or is this supposed to mean that they created various groups and the total count of all the members is 32 lakh?

I am sure he meant this. But I am more interested in translating what he said verbatim than add/remove meaning from it. What you interpret it as is up to you. But a translator should be true to what the source said and not add/remove from that.

But to actually give more context to the video itself: Amit Shah (the speaker in the video) says that one of the members in the group sent a fake message saying that a local political opponent slapped his father (who is also a politician and an erstwhile Chief Minister). That message spread like wildfire. And many people of that State (where the election was taking place) did not take kindly to that bit of story (slapping your father is the worst thing you can do in an Indian context). So Amit Shah says that even though that message worked to the ruling party's advantage, that should never have been done. He told them (the workers of the party present in the gathering) to not indulge in such activities and instead spread the truth. After that he makes that statement that the message was spread so fast only because they have a group of 32 lakh volunteers/party workers in it who spread the message. Now obviously one group cannot have 32 lakh members. Neither is Amit Shah so tech savvy that he will moderate/admin the groups. I am sure he doesn't even know/have the time to create a WhatsApp group. There is an IT wing that manages the show. So when he says 32 lakh members in a group, you should interpret it as many groups but total count of 32 lakh. Now it definitely isn't 32 lakh groups (that would be crazy and pointless).

So only when you take the entire speech into account will you understand the context in which this was said. But if you cherry pick, you can derive any meaning you like.
Even today carbon taxes are the stupidest idea people from rich nations thought about.

Around 5BN from the developing world will laugh at this proposal.

They will not be able to trade with you? Oh well they might trade among themselves and dont have to face competition from rich countries.

I call this win win.
Governments cannot ban crypto. They may ban exchanges, but if crypto ever establishes a value of its own as a currency, the government cannot do anything. At least not without basically turning off the internet. Which is, well, not out of the question for Erdogan as he is a dictator.
These days software development is a team sport. Yeah, there’s the odd outlier extreme genius, but in general, you need to be able to communicate with other humans.

That doesn’t mean you need to be an extrovert, just that the old “weird dev that abhors human contact” stereotype just doesn’t fly anymore.

If you are asking about getting a job, you need to be able to work with other people. End of story.
If you think this is mere ignorance, I would suggest you are the ignorant party yourself.
Hate to sound cynical but this is typical Canadian. Lovely headline but ultimately really not much benefit to the people.
It's more practical than that.

It means you cannot do the bank transfer to move your Liras to a crypto exchange. It definitely puts a meaningful barrier on buying crypto.
Do you have american style credit ranking in Germany?
You keep picking half sentences that leave off the part saying we can do things to prevent catastrophe. At this point I can only believe you aren’t coming from a place of intellectual honesty.

You also keep saying scientific consensus and data points but considering I keep finding information to the contrary and you’ve provided nothing I really think you mean your own personal and emotion driven stance. Of which I don’t buy.

Yup climate change is a big issue, we'll probably solve it to a point humanity and the broader earth will be fine in a reasonable time. Just like every other crazy things we've pulled off during the same geological instant.
Yes. "Insisting to be paid" for a vaccine to combat global pandemic.

If you don't see an issue with that, then you need to amend the following:

> In historical times, vaccines didn't exist and everyone died when a pandemic struck.

Amendment: now it's the poor countries who die.

> The historical alternative to IP law is trade secrets

Yes, historically it is. But it's shades and shades of possibilities between "you pay, or you die" and "you pay, or you die, but for different reasons"
Maybe he likes to get his facts right before presenting it to the world?

Edit: according to other threads, this is part of an ongoing discussion on Rust feasibility for the kernel.
Done, just added the the header to my .htaccess. No big deal. 1 minute work.

In general a good idea to just be on top on what headers your web site actually sends and generally know what you are doing with things like cookies, etc. on behalf of your users.

That's already something you need to do and be on top off for legal reasons. Just because lots of website maintainers are kind of indifferent/hands off/sloppy/ignorant on this front does not mean it's OK for you to be that way. This is just another thing to take a conscious decision about and pay attention to. Things that you are in any case supposed to know and pay attention to. Comes with the job of running a website. Your content, your problem to deal with. Or not. Normal due diligence. Should be business as usual.
There is a really easy solution for this disaster - a trusted party could run a big relational database that was basically a non-inflating currency and really cheap to run.

Except that isn't going to work, because governments are untrustworthy and as history shows will sooner rather than later debase their currency.

All people are looking for here is a safe way to store value over time. If governments would let people keep reliable records without bringing in the inflation tax or changing the rules, things like gold and bitcoin wouldn't be anywhere near as interesting. But they are interesting, because it is normally policy to block anyone who tries to store (small-time) wealth for more than a couple of years.
die on run out of memory is a bad policy for a userspace server. Seen some hairy production incidents with that, basically solution is piss off customers until they stop coming back.

action on run out of memory should be finish up currently running work and hold off new stuff until you have resources, not die and start to reprocess the thundering herd.
When you run out of memory last thing you want to do is empty your hot caches.
"In fact, I believe that those in power who snicker about credible reports of strange objects in the sky and stymie research into them, including access to classified data, have become a threat to national security themselves."

This seems to have become a deep-seated aspect of American culture. It extends into startup land as well. We on HN seem to be deeply skeptical of new applications of technology--like Dropbox and Coinbase--despite being highly receptive to developments lower in the abstraction hierarchy.
That's why Nvidia Broadcast is such a nice app. I recommended it to a work mate who just got a newborn and more or less only one room.

It removes the background from the webcam and all background noises, including other humans, from the audio. It's impressive how good it works. Not perfect. But impressive.