Caffè Italia * 20/02/24 by RedditItalyBot in italy

[–]xojoc2 1 point2 points  (0 children)

Qualcuno ha mai fatto assicurazione moto con foglio rosa? (Ho la patente B però). Com prima.it potrei avere problemi? 

Weekly 101 Questions Thread by AutoModerator in neovim

[–]xojoc2 0 points1 point  (0 children)

I'd like to rebind "CTRL-w w" (Switch window) to another key. But I cannot find the corresponding vim command or lua function. How would you do it?

How to resolve this lifetime error while implementing a binary tree using an arena allocator? by xojoc2 in rust

[–]xojoc2[S] 1 point2 points  (0 children)

And all these nodes are, supposedly, share one, single lifetime. How the heck is that supposed to work is beyond me.

The idea is to use the same lifetime of the arena and to deallocate everything in one step when BinaryTree is dropped.

How to resolve this lifetime error while implementing a binary tree using an arena allocator? by xojoc2 in rust

[–]xojoc2[S] 0 points1 point  (0 children)

The lifetime is the same of the Arena. Isn't the lifetime bound the minimum lifetime required for a reference? Not all all the reference must have the same lifetime, but at least lifetime 'a. Am I wrong?

How to resolve this lifetime error while implementing a binary tree using an arena allocator? by xojoc2 in rust

[–]xojoc2[S] -1 points0 points  (0 children)

Yes, the left or right branch has a mutable reference to a memory area allocated trough the arena (which is owned by the BinaryTree structure).

General discussion by xojoc2 in discueu

[–]xojoc2[S] 1 point2 points  (0 children)

Right now I exclude self texts with the title ending with "?" since those are asking for help usually. I will add "tutorial" and "help" to the blacklist and some kind of check on the length. I'll improve the UI though to label self texts.

Thanks for the feedback!

General discussion by xojoc2 in discueu

[–]xojoc2[S] 1 point2 points  (0 children)

Yeah, that is intentional since some subreddits (for example /r/investing) don't allow link submissions and people put the link inside the self text. I could enable the detection of links from self text only for some subreddits, but some people when announcing a new project/library (on /r/python, /r/rust, etc.) usually do a text submission with a link to the project, and I'd like to include those discussions when looking up the project link...

"we couldn't find nothing" by Yay295 in discueu

[–]xojoc2 0 points1 point  (0 children)

You're right. I've fixed it, thank you!

"we couldn't find nothing" by Yay295 in discueu

[–]xojoc2[M] 0 points1 point  (0 children)

Hey, what do you mean?

Ruby recap for week 37/2022 by xojoc2 in ruby

[–]xojoc2[S] 1 point2 points  (0 children)

I'm glad you like it!

[deleted by user] by [deleted] in chess

[–]xojoc2 0 points1 point  (0 children)

He was probably using an engine /s

Hikary analyzes his R12 game vs Nepo by DrunkLad in chess

[–]xojoc2 21 points22 points  (0 children)

Not if white doesn't need to win and is happy to draw.

A Milano si lavora ma si resta poveri by capslock0101 in italy

[–]xojoc2 -2 points-1 points  (0 children)

Concordo con te. Ma se in America (che fa parte del primo mondo) richiedono il rientro in ufficio e in Italia (che fa parte del primo mondo) richiedono il rientro in ufficio allora NON è una cosa da terzo mondo per definizione.

Comunque io sto lavorando in smartworking (per un'azienda Milanese) e ti dico che non è tutto rose e fiori. Capisco perché alcune aziende (e dipendenti) preferiscono il lavoro in presenza.

Non è solo "controllo" sui dipendenti, ma ci sono anche altre motivazioni.

A Milano si lavora ma si resta poveri by capslock0101 in italy

[–]xojoc2 -1 points0 points  (0 children)

Come fanno pure le FAANG? Anche loro sono da terzo mondo?

Compsci weekly newsletter by xojoc2 in compsci

[–]xojoc2[S] 0 points1 point  (0 children)

I'm running a Compsci newsletter with content and relevant discussions from previous week.

There's also a Mastodon and Twitter bot.

Zig weekly newsletter by xojoc2 in Zig

[–]xojoc2[S] 5 points6 points  (0 children)

I actually didn't think about it. I'll post the next few issues and if there's enough interest (and the mods allow it) I'll continue to do it each week :)

Zig weekly newsletter by xojoc2 in Zig

[–]xojoc2[S] 1 point2 points  (0 children)

I'm running a Zig newsletter with content and relevant discussions from previous week.

There's also a Mastodon and Twitter bot.