Hacker Newsnew | past | comments | ask | show | jobs | submit | vanviegen's commentslogin

Without the borrow checker, how should memory be managed? Just never deallocate?

The borrow checker does not deal with ownership, which is what rust’s memory management leverages. The borrow checker validates that borrows (references) are valid aka that they don’t outlive their sources and that exclusive borrows don’t overlap.

The borrow checker does not influence codegen at all.


It would be the same as in any language with manual memory management, you'd simply get a dangling pointer access. The 'move-by-default' semantics of Rust just makes this a lot trickier than in a 'copy-by-default' language though.

It's actually interesting to me that the Rust borrow checker can 'simply' be disabled (e.g. no language- or stdlib-features really depending on the borrow checker pass) - not that it's very useful in practice though.


Yes, Rust has a pretty steep learning curve. If you're not writing very low level stuff and don't need to squeeze out every last bit of performance, there are many other, simpler languages to choose from.

I think we may safely assume that Rust's designers are smart people that have made every effort to keep Rust as simple as it can be, given its intended use.


Watch cartoons if you don't want 'real'. Those made by Disney are said to be 'magic'.

Sorry for being snarky. It's just that I have large difficulties enjoying 24 fps pan shots and action scenes. It's like watching a slide show to me. I'm rather annoyed that the tech hasn't made any progress in this regard, because viewers and makers want to cling on to the magic/dream-like experiences they had in their formative years.


But that would mean that everybody is experiencing a quality level based on the least common denominator.

I think TV filters (vivid, dynamic brightness, speech lifting, etc) are actually a pretty decent solution to less-than-ideal (bright and noisy environment, subpar screen and audio) viewing conditions.


Yes, and records sound better than digital audio.

You've just learned to associate good films with this shitty framerate. Also, most established film makers have yet to learn (but probably never will) how to make stuff look good on high frames. It's less forgiving.

It'll probably take the next generation of viewers and directors..


Sure. You do a source install every time you require a python version newer than system python.

I'll be using uv for that though, as I'll be using it for its superior package management anyway.


Uhh... What?

Not sure why you’re being downvoted, that’s a ridiculous statement. 2000€ for a laptop is definitely premium pricing, not mid range.

I wouldn’t call anything with less than 64gb of memory premium, and if we look at macbooks were already looking above 3000

I think they are saying you sound like:

"It's One Banana, Michael. What Could It Cost, $10?" - Lucille Bluth


MacBooks are premium, no matter how much memory they have

Absolutely not, they are nothing more than their specs

99% of laptop users will notice no difference between 64G of RAM and 16GB of RAM. For example, I am a software engineer with an M1 MacBook Pro with 16GB of RAM for work and a personal M4 MacBook Pro with 24GB of RAM. There is no noticeable performance difference for my workloads.

'Premium' means things like build quality, speaker and microphone quality, camera quality, display quality, etc. etc. These are all things that are much more important to most people than raw specs.


NATO works by projecting a united force. Nations unconditionally backing each other up. The USA is now clearly no longer a part of that. That's not to say that the USA will do nothing if a NATO member is attacked. It might. Or not.

One can only imagine what America not fighting an attack on NATO member would have on nuclear proliferation.

We're currently in the position of the USA threatening to attack a NATO member (Denmark)

Limiting Nuclear proliferation was already fucked.

Trump tore up Iran's "we won't do nukes" deal, doesn't matter whether you think they were genuine or not, it demonstrates we will go back on a deal so our word isn't worth anything.

Ukraine shows that the west will not actually protect you like they claim, so your only option is getting nukes to really deter people.

North Korea and Pakistan demonstrate that you can pretty much do whatever you want with just a couple nukes, the west will cower in fear over idle threats.

No country would look at any of this and conclude that they have any choice but to build nukes to protect themselves.


Any country without nukes, that is not currently developing them, is stupid imo.. Nukes are the only thing that can guarantee sovereignty now. Ukraine gave up their nukes.

Do you believe the existing nuclear powers will just allow any country to join their ranks without a fight?

Europe is already considering to have a nuclear shield.

This is because if Trump


No need to consider. The UK and France have nukes. France even has a two-tier response. Not enough to vitrify Russia or China five times over, but enough to make them reconsider.

For much of NATO history, the US is NATO. The US doesn’t want it to be like that anymore because it needs to strategically shift to the other side of the world. So, the US says “What if Europe can be NATO? If we can force them to meet the GDP commitment then maybe we don’t need to worry about them too much and commit less of our own resources to this theater.” But of course people interpret this as if the US is abandoning the alliance. No, the US just has other problems to deal with in the world.

That is the rationalization, but don't be surprised if the US would not confront China at all.

The main flow of capital in the US had been going to the mil.industry, but that is not the case anymore. It is mainly surveillance tech that is receiving capital. In a very unhealthy economy, this all looks eerily pre-'30s.

The US, right now, is only threatening weak countries, they don't have the industrial power to confront China, nor do they want it. This shouldn't be a surprise, some ideologues behind this maga-project belief in an America from one pole to the other. They believe in "spheres of influence", and as such China has their own sphere of influence. A sphere of influence means a kind of colony, where natural resources, people and industry are all resources to be extracted by them. It is the Russian model, it is the model of criminal mobs, it is might makes right, it is a multi-polar world.

Meanwhile, re-industrialization projects have been scrapped, partners have been scared of, and tariffs have hit the industry that was still left in America.

Monopolists are parasites on the economy, and the US is already very weakened from that. As the Japanese said, the US is still a great power, but the throne is empty. I suspect there will be skirmishes with other "great powers" over exploitable resources like Africa, Middle East, Europe, but I don't expect the current crop to go all-in on China.


The US has been the biggest opponent to a European (or EU) army, fearing loss of influence and control. It was very much in US interest at the time.

Yes, the US has always been the driving force behind NATO. It provides close to 40% of the combined military personnel, and an even higher portion of military spending.

No longer committing to defend other NATO countries, even if their military spending exceeds the target, is abandoning the alliance though. NATO is little else than that commitment.


Well, the very fact that we are even discussing it means Trump already weakened NATO as an alliance.

> but they seemed to disagree with the most harmful Trump policies as well.

I imagine Republicans such as this still populate a majority of the house and Senate. If they disagree, they are sure making an effort to do so silently.


The amount of things Trump did circumventing Congressional approval might suggest that he does not a clean pass even though Republicans have majority in both the house and the senate.

They have (had?) the power to impeach the president for a lot less than he's already done. Yet they don't.

That's on Congress for allowing Trump to repeatedly circumvent their approval.

They seem to be ahead of schedule abolishing a working democracy before the midterms.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: