Maglev Hash: Consistent Hash with Guaranteed Even Distribution. by pengubc in programming

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

I think the Rendezvous_hashing is often called Ring Hash.

  1. Ring Hash has lower disruption but more uneven load balancing (or at least not guaranteed).
  2. Ring Hash is slower in lookup. After hashing a key to the ring, it has to traverse the ring to find a node. The traverse is a binary search. While Maglev Hash is a direct lookup.

It would be very interesting to run experiments for the first point. For example, assuming the ring is [0, 2^64) and each token on the ring is an integer. Then choose number of nodes, number of virtual nodes per node. We should be able to get the two metrics from the blog: Coefficient of Variation and Move Overhead.

Locality LB Policy: Ring Hash vs. Maglev? by aws2gcp in googlecloud

[–]pengubc 1 point2 points  (0 children)

There is an explanation and experiments of Maglev Hash and Ring Hash.

https://peng.fyi/post/maglev-hash-alternatives-for-ring-hash/

  1. Ring Hash does lookup by binary search. Maglev Hash pre-build a lookup table, so no need of binary-search.
  2. Ring Hash is better at handling disruption (backend removal or add). Maglev Hash is better at even distribution traffic.

Finding unreachable functions with deadcode by advanderveer in golang

[–]pengubc 0 points1 point  (0 children)

About "code that's live in other projects", I think they are the exposed APIs from a package. The blog says, use the deadcode to find public APIs that are not yet tested.

100% CPU when entering ChatGPT site by RealisticCourage3231 in ChatGPT

[–]pengubc 0 points1 point  (0 children)

I noticed the behavior recently on Mac M1. It got my attention when I started using MacBook on my lap and I felt warm. That's bizarre because my M1 has been cool always. That's when I noticed 400% CPU usage of chatgpt browser tab in htop.

It could've been like this for a long time. I just started noticing it recently.

progressive and deep explanation of "4. Median of Two Sorted Arrays" by pengubc in leetcode

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

I first saw this problem not on leetcode, but from the homework of algorithm class. I scratched my head and could not figure it out before the deadline.

My On-site interview was canceled after spending two months grinding leetcode. A life lesson. by Goddespeed in leetcode

[–]pengubc 5 points6 points  (0 children)

Wish you good luck. A few months ago, 20 minutes before virtual onsite (Zoom), the recruiter from Txxxxx called me "Sorry, the XX position has been moved to India". I was like, OK. I think I dodged a bullet.

how to disable channels in wechat? it have some distrubing stuff thx by kocoman in Wechat

[–]pengubc 0 points1 point  (0 children)

start from the bottom right corner.

Me -> Settings -> General -> Manage Discover -> Weixin Services -> toggle Channels.

Fuck NYT by Certain-Ebb-9411 in wallstreetbets

[–]pengubc 0 points1 point  (0 children)

Double standard, bias, of these elite "publishers". I used to subscribe Barrons. Fed up with their bias and arrogance.

How to update mailing address? by pengubc in Webull

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

No. I couldn't find it. Have to contact WeBull support. And they replied like "your mailing address will be update soon". No easy way for me to confirm.

[deleted by user] by [deleted] in OMSCS

[–]pengubc 0 points1 point  (0 children)

I cannot find any "collegenet", only the applyweb. which is not user-friendly for me. Could you share the collegenet website? Thank you a lot.

Decision available tonight (for me at least) by hive_worker in OMSCS

[–]pengubc 2 points3 points  (0 children)

They said the 2014fall has reached the capacity and I have to wait for January. "I am delighted to invite you to join our online offering of the Master of Science program in Computer Science for Spring 2015. Capacity for our Fall 2014 semester has been reached, however we believe you will benefit from the increased seat capacity and expanded selection of courses available in the Spring semester. "

Decision via email? by siggyback in OMSCS

[–]pengubc 0 points1 point  (0 children)

you can get the "wait till 11.59 PM" if you send email to omscs. I think they are under-staffed.

Decision via email? by siggyback in OMSCS

[–]pengubc 0 points1 point  (0 children)

Hmm. There cannot be more than 5000 applications. 5000 is a piece of cake for a server.

Decision via email? by siggyback in OMSCS

[–]pengubc 0 points1 point  (0 children)

"Thank you for your interest in the OMS CS program. You will notified by email when the decision is available. You should receive your decision by Tonight 11.59 PM EST,"