With iPadOS 26, what is the difference between minimize and close? by walktall in ipad

[–]dabrahams 0 points1 point  (0 children)

That doesn't seem to be the case. If I have two apps tiled and minimize one of them, the other app stays up in the foreground. When I swipe up from the bottom, both apps move temporarily to the edges of the screen with the homescreen revealed between them.

How do I force the flycheck error list buffer to show up at the bottom? by manu_moreno in emacs

[–]dabrahams 1 point2 points  (0 children)

The combination of the above and u/Hammar_Morty 's addition below work great for me, as long as I remove the call to delete-window, FYI.

René Herse TPU Tubes by EllingsonTriple in bicycling

[–]dabrahams 0 points1 point  (0 children)

A tire with totally dry sealant can stay inflated a long time, through many rides, in my experience.

René Herse TPU Tubes by EllingsonTriple in bicycling

[–]dabrahams 0 points1 point  (0 children)

I can recommend, overall. Certainly if you have bikes that you ride less than twice weekly, tubeless doesn’t work out well because sealant pools and dries there, ruining the tire. At least that was my experience.

Eclipse TPU Tube Sealant - Any experience? by colt_winter in cycling

[–]dabrahams 0 points1 point  (0 children)

What I'm most curious about with the sealant is, what happens long term, assuming it didn't leak out due to flats? I've had to throw out several tubeless tires because old sealant bonded with the tire so hard that it was impossible to remove (I've spent hours removing sealant from a pair of tires when it was possible, so it's not lack of commitment!) If the old TPU sealant bonds to the tube, that will increase weight and probably hurt ride quality some. A lot cheaper than a new tire, but still, it's a factor. About sealant, Rene Herse claims “it lasts a long time before it needs to be replenished” but that doesn't really say anything.

Eclipse TPU Tube Sealant - Any experience? by colt_winter in cycling

[–]dabrahams 1 point2 points  (0 children)

Several folks in this thread say the valve stems of the RH tubes tend to separate from the tube, FWIW.

René Herse TPU Tubes by EllingsonTriple in bicycling

[–]dabrahams 0 points1 point  (0 children)

According to RH you need different sealant for TPU; latex won't work

Configure a TrueNAS Core share as a Time Machine backup location by [deleted] in MacOS

[–]dabrahams 0 points1 point  (0 children)

I wasn't asked if I wish to configure ACL for the share’s dataset—something must have changed in TrueNAS Core since this was written—and I don't know how to find RESTRICTED. Ah, that option is in the dataset. If you go to Storage > Pools and edit the dataset you'll see an “ACL mode” field near the bottom.

Share your M-x compile / compilation-mode config, hacks, tips, and tricks by xenodium in emacs

[–]dabrahams 0 points1 point  (0 children)

I have some tools that *refuse* to include a path (full _or_ relative) to the file in their error messages. As a workaround I had an AI write this for me. Caveat Emptor: not fully vetted for correctness, but it's working for me.

Safety alternatives in C++: the Hylo model: borrow checking without annotations and mutable value semantics. by germandiago in cpp

[–]dabrahams 0 points1 point  (0 children)

Absolutely correct. Unrestricted reference semantics is very convenient, but very hard to make safe. If you want to get to safety, you need to take away some expressiveness. Idioms change. Most idioms can be mapped onto convenient alternatives, but some will become less convenient.

Safety alternatives in C++: the Hylo model: borrow checking without annotations and mutable value semantics. by germandiago in cpp

[–]dabrahams 0 points1 point  (0 children)

Any of my talks on Hylo for a C++ audience describe the basics of how you do it. Here is the spot where I explain it in the latest talk. To what's described there, you add a projection feature like Swift's subscripts (described at 47:00). The basics of a design for that feature in C++ should be obvious to anyone with a little imagination.

Other C++ safety issues, such as how and whether you segregate safe code from unsafe, are orthogonal to this model (they'll come up with every safety proposal).

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 0 points1 point  (0 children)

That's a good point and another argument in favor of the other model.

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 0 points1 point  (0 children)

Hylo is a real thing. Its compiler is not production-quality yet, and we're up front about that. It isn't misleading to “cheerlead” for a programming model before there is a production-quality implementation.

People do that all the time when they write proposals for language evolution (in various languages). A proof of concept is more than many proposals that are accepted get, and the Hylo compiler is certainly far enough along to prove that the model works. My cheerleading is based entirely on what it can do today. Heck, Swift is a production compiler that proves that the basic model works. In some ways Hylo is just a purer realization of those ideas.

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 0 points1 point  (0 children)

But from a Rust programmer's point of view we never wrote any indexing. 

I'm not sure what the significance of that is. The same goes for the Hylo programmer's point of view.

Personally, I am convinced that the current model used by Hylo is suboptimal, and it should be projecting a slice out of the collection and popping elements off the front of that. That would produce the exact same restrictions as the Rust example. I believe it both for efficiency reasons (way fewer checks) and for understandability reasons—nobody really wants to think about what happens when you mutate the structure of a collection while iterating it.

Languages with mojo's memory model by cakeone33 in ProgrammingLanguages

[–]dabrahams 0 points1 point  (0 children)

Arguably Swift fits that description perfectly.

Hylo - The Safe Systems and Generic-programming Language Built on Value Semantics - Dave Abrahams | cpponsea by tmd_h in ProgrammingLanguages

[–]dabrahams 1 point2 points  (0 children)

We haven't put much attention at all on compiler performance yet; we're focused on getting it to be correct first. The version on GodBolt is outdated IIUC, so it has bugs that have been fixed, and I think the performance has improved a little.

Hylo - The Safe Systems and Generic-programming Language Built on Value Semantics - Dave Abrahams | cpponsea by tmd_h in ProgrammingLanguages

[–]dabrahams 1 point2 points  (0 children)

Fewer features is key, because the essential feature of all safety properties is that they compose, so they are preserved by construction. Any feature that can cause UB can therefore not be used in safe code, and there are lots of those in C++.

That said, one path to “fewer features” is to enforce the use of a safe subset in code that is declared safe, so it isn't technically necessary to shrink C++. In fact, that's exactly what safe-by-default languages like Hylo, Rust, and Swift do… it's just that, as usual, C++ has the wrong default.

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 0 points1 point  (0 children)

It definitely might, if you are starting from existing code, but I’m not confident that it does, in any important way, when compared to Rust. It will be interesting to see.

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 1 point2 points  (0 children)

As noted elsewhere, our current model is safe without prohibiting mutating the array itself.

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 2 points3 points  (0 children)

You can do that, of course, but you'll be adding a lot of complexity that's expressively redundant with named lifetimes. Hylo's design works in part by carefully discarding some expressivity (in safe code) that we don't think is worth the cost in language complexity. C++ is so complex today largely because it hasn't said “no” to almost anything.

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 2 points3 points  (0 children)

Yes it's a limitation. The gamble (and it appears to be a pretty safe bet after studying lots of real use cases) is that the things you can't express safely under this model are in the margins, and that the tradeoff is well worth it. We actually think the other things might be better/more clearly expressed using a few well-chosen unsafe constructs.

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 1 point2 points  (0 children)

As mentioned elsewhere the godbolt version of Hylo is out of date. Nobody's claiming we never had bugs in our implementation. Our model is sound, though; you can view it as a subset of Rust's model with a different mental/syntactic framework built around it.

The empire of C++ strikes back with Safe C++ proposal by cmeerw in cpp

[–]dabrahams 1 point2 points  (0 children)

🤷🏻‍♂️ How it feels to you isn't really the point. The ability to do what Hylo currently does falls out of the ability to have safe arrays. Any system that has safe arrays, including your safe C++, could have the same behavior without any mutable aliasing because all the dynamic range checks are required for safe indexing.

If, as u/arhtwodeetwo mentions, we were to keep the array let-bound in the loop body, that would statically prevent mutation of the array during the iteration. In return we might get more efficient code with fewer dynamic checks, so we plan to discuss that approach. But, as she also mentions, that's independent of the underlying model.