Readit News logoReadit News
vollbrecht commented on Tree Borrows   plf.inf.ethz.ch/research/... · Posted by u/zdw
Arnavion · 2 months ago
Stacked borrows is miri's runtime model. Run it under miri and you will see the error reported for the `*x = 10;` version but not the `write(x);` version - "Undefined Behavior: attempting a write access using [...] but that tag does not exist in the borrow stack for this location".

rustc itself has no reason to reject either version, because y is a *mut and thus has no borrow/lifetime relation to the &mut that x is, from a compile-time/typesystem perspective.

vollbrecht · 2 months ago
Ah that make sense. Thanks for clarifying.
vollbrecht commented on Tree Borrows   plf.inf.ethz.ch/research/... · Posted by u/zdw
vollbrecht · 2 months ago
Hmm i just tested out the claim that the following rust code would be rejected ( Example 4 in the paper).

And it seams to not be the case on the stable compiler version?

  fn write(x: &mut i32) {*x = 10}
  
  fn main() {
      let x = &mut 0;
      let y = x as *mut i32;
      //write(x); // this should use the mention implicit twophase borrow
      *x = 10; // this should not and therefore be rejected by the compiler
      unsafe {*y = 15 };
  }

vollbrecht commented on Cloudflare to introduce pay-per-crawl for AI bots   blog.cloudflare.com/intro... · Posted by u/scotchmi_st
vasilzhigilei · 2 months ago
I worked at Cloudflare for 3 years until very recently, and it's simply not the culture to behave in the way that you are describing.

There exists a strong sense of doing the thing that is healthiest for the Internet over what is the most profit-extractive, even when the cost may be high to do so or incentives great to choose otherwise. This is true for work I've been involved with as well as seeing the decisions made by other teams.

vollbrecht · 2 months ago
You are probably right that this is not the case right now. 25 years ago you could say the same about google employees. Incentives change with time, and once infrastructure is in place it's nearly impossible to get rid of it again.

So one better makes sure that it has not the potential to further introduce gatekeepers, where later such gatekeepers will realize that, in order to continue to live, they need to make a profit over everything else, and then everything is out of the window.

vollbrecht commented on A surprising enum size optimization in the Rust compiler   jpfennell.com/posts/enum-... · Posted by u/returningfory2
NoTeslaThrow · 5 months ago
Ok, but in the context of the language at hand? Presumably the IR has distinct semantics from the language that generates the IR. Does UB just strictly resolve to LLVM UB? That's very reasonable!
vollbrecht · 5 months ago
You can find a general overview for the language at hand in "The rust reference"[1]. For a more formal document, you can have a look in to the ferroscene language specification list of undefined behaviour[2] section. From there you can jump to different section, and see legality rules, and undefined behavior sections for each.

The ferroscene language spec was recently donated to the rust foundation.

[1] https://doc.rust-lang.org/reference/behavior-considered-unde... [2] https://spec.ferrocene.dev/undefined-behavior.html

vollbrecht commented on Lessons from open source in the Mexican government   lwn.net/Articles/1013776/... · Posted by u/signa11
huijzer · 5 months ago
I found this part interesting:

> González Waite said that all of the large proprietary software companies ""are big bullies"". He has been called into the US embassy and been threatened because Mexico was using technology that was not from the US; those threats were dialed back when he explained that the government also used software and services from Amazon, Google, and Microsoft. Various companies use the US government to bully other countries, but they also use license audits as a reaction to projects that move to open-source software. Every time a successful switch happened, ""six months later there was an audit""; having the right legal team helps defend against those tactics, he said.

It matches also what I heard from someone working for the Dutch government. He said that whenever they needed a new software system, that Microsoft would send multiple consultants for "free" which all could "help" the transition to a new service from Microsoft.

vollbrecht · 5 months ago
There was an interesting story with the LiMux[1] ( Linux & Munich) project. The local government in Munich used it for quite some time. But than Microsoft came and installed there German Headquarters in Munich. With that new headquarter and enough lobbying, LiMux was forced out by the then new government just the moment it got "successful".

[1] https://en.wikipedia.org/wiki/LiMux

vollbrecht commented on Quad9 – A public and free DNS service for a better security and privacy   quad9.net/... · Posted by u/janandonly
tomzin0 · 6 months ago
vollbrecht · 6 months ago
So they provide full information on what happened, with all legal papers attached at the end, and a link to a site that gives you a list of all "blocked sites" that where effected by that order.

While the outcome is quite unfortunate, the way they provide all info here seams like a plus in my book here.

If a state/entity comes after your org tomorrow, and you got to either fight legally or leave the market (like cisco in the story), what would you do?

vollbrecht commented on NAT Is the Enemy of Low Power Devices   blog.golioth.io/nat-is-th... · Posted by u/hasheddan
dent9876543 · 7 months ago
That NAT is a problem presumes that we actually want our IoT devices reaching out to the out-of-intranet zone.

NAT gets the blame, and the intranet as a concept is generally a big corp term.

But I prefer my IoT devices not to need to reach out of my network. For me, NAT is an unwitting ally in the fight against such nonsense.

vollbrecht · 7 months ago
The mere existence of Tailscale should give a hint that NAT is only a speedbump and not any protection whatsoever. It protects you against nothing. Every method that Tailscale uses to traverse NAT can be in isolation used by any other piece of software. For more info about that you can read the following article.

https://tailscale.com/blog/how-nat-traversal-works

vollbrecht commented on New DOGE site update breaks down government jobs by salary/age/headcount   doge.gov/workforce... · Posted by u/mlindner
vollbrecht · 7 months ago
They split data into three branches ( executive, judicative, legislative), only to show that they have data for the executive and not the other branches?

So that is at best a incomplete picture, and at worst a specific framing of a particular view.

I am neither endorsing nor rejecting what is happening (i am not American), just want to point this out here.

vollbrecht commented on Anchoreum: A game for learning CSS anchor positioning   anchoreum.com... · Posted by u/thomaspark
vollbrecht · 7 months ago
Seams not supported in firefox
vollbrecht commented on Nvidia's RTX 5090 power connectors are melting   theverge.com/news/609207/... · Posted by u/ambigious7777
userbinator · 7 months ago
One word: cost.

Look up how much industrial/automotive connectors cost, and you'll see the huge difference in quality.

vollbrecht · 7 months ago
Yes cheap connectors exist and there is a marked for it, like everything "cheap". But to what point one wants to "defend" a trillion dollar company, on a product that was never marketed as "cheap", that actually comes with a hefty price tag, to skimp on something that is 0.01% of there BoM cost. If you sell for a premium price you should better make sure your product is premium.

u/vollbrecht

KarmaCake day177January 26, 2024View Original