« first day (2332 days earlier)      last day (1147 days later) » 

5:51 AM
@Jason @Stargateur yes, mem::take is what I wanted
 
 
2 hours later…
8:15 AM
@Jason No, but I'm going to now
 
Good morning! O/
@EnnMichael Curious to hear more about it!
 
Guten morgens
 
 
2 hours later…
10:32 AM
flamegraph ist dank
2
 
 
3 hours later…
1:27 PM
Is the usage of once_cell preferable to lazy_static? So far it seems so, unless I'm missing something?
From the documentation:
> The implementation is based on the lazy_static and lazy_cell crates and std::sync::Once. In some sense, once_cell just streamlines and unifies those APIs.
… and if I had read the next paragraph:
> Should I use lazy_static or once_cell?
> To the first approximation, `once_cell` is both more flexible and more convenient than `lazy_static` and should be preferred.
> Unlike `once_cell`, `lazy_static` supports spinlock-based implementation of blocking which works with `#![no_std]`.
> `lazy_static` has received significantly more real world testing, but once_cell is also a widely used crate.
 
1:54 PM
Interesting. I don't think I ever used once_cell.
 
@E_net4thecircusstopper I haven't used it before either, as lazy_static did what I wanted it do, but once_cell notes that it's on track to become part of std.
There was this stream in which Ryan Levick created a boiled down version of once_cell, so I'll have a look at that this evening as well.
 
So people are moving away from lazy_static now? O boy.
 
@E_net4thecircusstopper Is this bad?
 
It's a surprising development, considering that people were advocating for the inclusion of lazy_static! into libstd a few years ago.
 
@E_net4thecircusstopper Oh, the joys of a growing community. I really, really hope we won't screw this up though I somewhat have a feeling we already did. Competing packages for the exact same problems, divided community, etc. Sounds pretty much like every other language and their packaging problems once they left the early state of "used by only a selected few"
 
2:12 PM
@E_net4thecircusstopper Hum, I'm not aware of the history behind lazy_static and once_cell, but it seems KodrAus, who opened the tracking issue, is involved in lazy_static, so it seems fine to me at first glance?
 
@Jason Nice find! I'm in the same boat as Enet, I've never used once_cell, but I used lazy_static a lot (especially in embedded projects). If it is true what you're saying, and it seems it is, then maybe lazy_static will be deprecated at some point in favour of once_cell (or whatever the name of that one will be once it will become part of the standard library) and if that's going to happen, I will be very happy with that result:
no split there, no competing solutions, it will be crystal clear what to use.
 
2:38 PM
I do use lazy_static a lot but I'd prefer that the community chooses a non macro based solution. Standardizing on lazy_static would have been wrong IMO
 
It would indeed feel a bit odd, considering that we can achieve the same thing without macros.
 
I see lazy_static as basically the more convenient wrapper around (an abstraction essentially equivalent to) once_cell, which used to be necessary because you couldn't do much of anything in a static initializer.
Notably, when once_cell was first written, you couldn't even write static MY_FOO: Lazy<Foo> = Lazy::new(|| ...);
Language evolution has thus made the main reason for lazy_static mostly irrelevant, and only the core abstraction really remains to be added to std.
 
 
7 hours later…
9:25 PM
posted on March 03, 2021 by Niko Matsakis

Today the lang team held its March planning meeting (minutes). We hold these meetings on the first Wednesday of every month. The planning meeting is used for: Checking in on the status of our active projects Planning the design meetings for the remainder of the month After each meeting, we post an update (like this one!) with notes and meeting announcements. Update from active projects Di

 

« first day (2332 days earlier)      last day (1147 days later) »