Gobbel2000

joined 2 years ago
[–] Gobbel2000@feddit.de 5 points 1 year ago (1 children)

I don't think there is a good way of having references within the same struct, but you could store reference counted matches:

matches: Vec<Rc<Match>>,
players: HashMap<String, Rc<Match>>,

You would still have to make sure that the players map is updated, maybe weak references are useful there.

Maybe you could also consider storing the players of a match in the match itself, not outside.

[–] Gobbel2000@feddit.de 49 points 1 year ago

While reading the question I thought: "That's not how Watts work", but then this "answer" hit...

[–] Gobbel2000@feddit.de 2 points 1 year ago

Cat by C418 is literally the only piece in the list I recognize.

[–] Gobbel2000@feddit.de 7 points 1 year ago (2 children)

Why does it say "Texas" on it 6 times?

[–] Gobbel2000@feddit.de 1 points 1 year ago (1 children)

Like someone noted in the vimtex issue you linked, I use UltiSnips together with snippet definitions from vim-snippets, which works pretty well with the begin snippet. vim-snippets includes a bunch more snippets too which I find quite useful, particularly for LaTeX. I don't know the vsnip plugins you mentioned but they can probably do the same.

[–] Gobbel2000@feddit.de 20 points 1 year ago

That's GDPR coming through.

[–] Gobbel2000@feddit.de 2 points 1 year ago

I am also very interested in seeing what the next generation of Rust-inspired languages will look like, and not because I am dissatisfied with Rust today. Rust has significantly raised the bar of how a good programming needs to work and any new language in the systems programming area (and beyond) will inevitably be compared to it.

[–] Gobbel2000@feddit.de 14 points 1 year ago (2 children)

Obviously two of the literally magical free energy synthesizers.

[–] Gobbel2000@feddit.de 16 points 1 year ago (1 children)

I assume you're referring to this. That was such a scary video.

[–] Gobbel2000@feddit.de 34 points 1 year ago

This is not cool of Twitter.

[–] Gobbel2000@feddit.de 23 points 1 year ago (2 children)

Being active is probably most important.

Maybe it would be possible to get a link into a "This Week in Rust"?

 

The Rustup team is looking for Beta testers, particularly for fish-shell integration, Raspberry Pi and loongarch64 support.

[–] Gobbel2000@feddit.de 4 points 1 year ago

That commonwealth is called the EU today and, along with NATO, is the reason why these countries are in a comparitively safer position. It would be much riskier for Russia to invade there.

view more: next ›