

An “exponential drop” would be a drop that follow an exponential curve, but this doesn’t. What you mean is a “drop in the exponent”, which however doesn’t sound as nice.
An “exponential drop” would be a drop that follow an exponential curve, but this doesn’t. What you mean is a “drop in the exponent”, which however doesn’t sound as nice.
and not an exponential speed-up (O(2^n) to O(n): exponential to linear)
Note that you can also have an exponential speed-up when going from O(n) (or O(n^2) or other polynomial complexities) to O(log n). Of course that didn’t happen in this case.
Sorry, by looking more into it I realized webview is actually a different thing than what I was thinking about.
This would be so good. As someone who fully switched to Firefox on Android I hate that chrome webview is a thing.
Why does that bother you? There’s also a Firefox Webview you can use system-wide. I think only Google apps insists on opening Chrome’s webview.
banning patients
Did you mean patents?
I can agree that the example function is not the best usecase. But the point still stand that there’s no realistic escape hatch from lifetimes and memory management in Rust.
Cow
does not work when you are actually required to return a reference, e.g. if you’re working with some other crate that requires that. Cow
also has some more strict requirements on reborrows (i.e. you can reborrow a &'short &'long T
to a &'long T
, but you can only reborrow a &'short Cow<'long, T>
to a &'short T
).
LazyLock
can solve very specific issues like static
, but is not a general escape hatch. Again, the example is not the best to showcase this, but imagine if you have to perform this operation for an unknown amount of runtime values. LazyLock
will only work for the very first one.
(Note that I’m not the article author)
In this example, you could have just made a constant with value
0
and returned a reference to that. It would also have a'static
lifetime and there would be no leaking.
I believe the intention was to demonstrate something that works with runtime values too, and a constant 0 does not.
Btw you can just write &0
to do what you proposed, there’s no need for an explicit constant/static.
compile rust 0.7 in scala
Not sure if there was another rewrite, but AFAIK (and the article agrees with me) rustc was originally written in Ocaml
Where’s the punch?
In the face of everyone expecting an upgrade
Gnome 47 will have support for accent colors if that’s what you want.
Does GNOME really need an app to change the theme?
You can also do what this app does manually. The point is that “themes” are an hack and not officially supported, as such it doesn’t make sense to provide an official interface to set them.
KDE plasma has this natively…
Do you mean for global themes, application styles or plasma styles? All application styles I can find either use Kvantum or require you to compile them manually…
Software implementations of those features is often slower, and runtime checking can often be too expensive compared to the gains.
since it seems like nobody but cachy or custom kernel runs anything but V1
Gentoo offers x86_64-v4 binary builds too.
There was a proposal for Fedora too, though it was ultimately rejected.
Ultimately the gains right now seem to be only 1-3%, though that might also be because there’s not much demand for these kind of optimizations. If more distros enable them they might become more widespread and the benefits might increase too. It’s a chicken-egg problem though.
Emails are nowhere near being competitive with discord. Sure, they’re technically more accessible, but in practice they are much less usable by random people which in turn will just avoid interacting or contributing with your project.
To be fair trees still use energy for doing this, but that energy is conveniently provided by the sun.
High or low level doesn’t matter. Mathematically it just makes more sense to use 0-based indexing https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html
It’s mentioned in footnote 6:
As an example, to make this work I’m assuming some kind of “true deref” trait that indicates that Deref yields a reference that remains valid even as the value being deref’d moves from place to place. We need a trait much like this for other reasons too.
It would only work for references that are stable after the value they reference is moved. Think for example of a &str
you get from a String
.
Can’t those be installed in toolbox?
Metro UI toggle buttons were rectangular though.
GNOME devs never said that theming is incompatible (just “not supported”), and you’re still not explaining whay you mean with “incompatible” either. Managing window controls also doesn’t seem a requirement to be “compatible”, as the app still runs fine even with client side decorations (again, it just won’t fit visually with the rest of the system).
And by the way, the problem is not theming per-se, but the fact that apps get themed by default, they inevitably break by default, and app developers are left to deal with that. Nobody ever tried to improve the situation so the solution they came up with is to have their apps always look the same.
Looks like the delay in 2011 was so big the data became available after the 2017 one