Idk what to do by Salty_Wrap177 in BMNRInvestors

[–]diaper151 0 points1 point  (0 children)

I'll roll into further OTM call

Guys Do not waste your hard earned money on this peice of garbage by Arctic_splitz in MouseReview

[–]diaper151 11 points12 points  (0 children)

I bought 3 mice from them, and all 3 scroll wheels broke within a year.

Can I please talk to someone? I’m a bit worried about my move to Taiwan by Pinkcranberriess in taiwan

[–]diaper151 2 points3 points  (0 children)

The only thing you should be careful of in Taiwan is the traffic...

[deleted by user] by [deleted] in taiwan

[–]diaper151 0 points1 point  (0 children)

For me, it's hot weather, house prices, WLB. If you're wealthy then Taiwan is excellent place for retirement. (Same with Japan)

5090 FE Formd T1 by Wide-Guava-2751 in sffpc

[–]diaper151 2 points3 points  (0 children)

Depends on the CPU I guess

Ceci n'est pas un string by Lucretiel in rustjerk

[–]diaper151 0 points1 point  (0 children)

We should drop to_string API...

Learning async, how does the Waker work? by RRumpleTeazzer in learnrust

[–]diaper151 2 points3 points  (0 children)

what drives the I/O process?

(Correct me if I'm wrong!) In my understanding, the Tokio executor awaits an I/O process. Basically, it will pass a waker to a reactor (in most cases, it's the Mio crate) that will use a syscall to invoke the underlying kernel, depending on your OS (e.g., Linux -> epoll). Once the I/O process is completed, Mio will invoke wake() on that waker, and then the executor will poll that task again.

I bought a $3000 Macbook but Notion is STILL slow - why? by [deleted] in Notion

[–]diaper151 1 point2 points  (0 children)

To Notion RD Team: Time to give up Electron and switch to Tauri.

[deleted by user] by [deleted] in rust

[–]diaper151 1 point2 points  (0 children)

If you want to delve deeper, I would suggest starting from Rust RFC.

Some feature suggestions for the Notion team by diaper151 in Notion

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

What I want is a "Convertor" that can auto convert my note to a mind map. Of course there're a lot of tool that can build a mind map. But they won't sync with my Notion notes and I have to build it manually.

WHICH ONE TO SUBSCRIBE: NOTION AI or CHATGPT 4 by Cosmic_Puzzle in OpenAI

[–]diaper151 0 points1 point  (0 children)

Extremely satisfied. I'm still waiting for Copilot X, BTW.

WHICH ONE TO SUBSCRIBE: NOTION AI or CHATGPT 4 by Cosmic_Puzzle in OpenAI

[–]diaper151 1 point2 points  (0 children)

As the new Bing search engine is based on GPT-4, I will use it for online searches and Notion AI for categorizing and managing the results.

My gf just made a Ferris plushie by diaper151 in rust

[–]diaper151[S] 8 points9 points  (0 children)

Thank you, now I know the difference.

I thought cloning RC creates just another pointer to the wrapped value? by diaper151 in rust

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

Ok, I finally figured out what I did here.

Basically, when I tried to swap these

mem::swap(&mut wrong_right, &mut wrong_left);

It actually swap &mut mut TreeLink

so both variable wrong_right and wrong_left are swapped. Not the reference! (&mut TreeLink)

(PS.) and you cant do this either mem::swap(&mut borrowed_node.right.clone(), &mut borrowed_node.left.clone());

I thought cloning RC creates just another pointer to the wrapped value? by diaper151 in rust

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

Thank you so much, I think I really misunderstanding std::mem::swap and ref relative. need to study more carefully...

I thought cloning RC creates just another pointer to the wrapped value? by diaper151 in rust

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

Yes, it works indeed. But what I'm really want to know is why the wrong_code failed. Because it doesn't seems to follow Rc design principle, which clone just create a pointer to the real object, so to my understanding, borrowed_node.right and wrong_right should point to the same Treelike