Rishav
484 posts

Rishav
@RishavVajpayee
Software Developer | Open source 🚀
New Delhi, India Katılım Ocak 2017
424 Takip Edilen1.2K Takipçiler

I may or may not be ceo of anthropic because i’m anxious nowadays
Polymarket@Polymarket
BREAKING: Anthropic CEO says Claude may or may not have gained consciousness, as the model has begun showing symptoms of anxiety.
English
Rishav retweetledi

Funny enough, anything may or may not happen.
Polymarket@Polymarket
BREAKING: Anthropic CEO says Claude may or may not have gained consciousness, as the model has begun showing symptoms of anxiety.
English

I believe the POST AGI world would revolve around the owners of Compute, Space and Energy, Out of which compute is already being figured out.
As Massive data centers ( for Generative AI ) are Bad for Earth, I think the next Revolution is in the sector of Space where the these data centers are moved to orbit to leverage Unlimited Solar power, Natural cold Space Cooling and Reduced Environmental Impact.
English

Problem :
Implement a per-user API rate limiter.
Operations
* allowRequest(userID) -> bool
* getRemainingQuota(userID)
Rules
* Max N requests per T seconds
* Sliding window (not fixed window)
Concurrency Traps
* Time-based eviction while requests are arriving
* Per-user isolation vs global lock
* Memory growth control
What this tests
* Concurrent data structures
* Lock sharding
* Time-sensitive correctness;
Rishav@RishavVajpayee
just wrote a sliding window rate limiter in Go. Highlights: • sharded user space • sliding window (UnixNano int64 timestamp log) • background process which evicts stale users, memory stays lean • per user isolation github.com/rishavvajpayee…
English

just wrote a sliding window rate limiter in Go.
Highlights:
• sharded user space
• sliding window (UnixNano int64 timestamp log)
• background process which evicts stale users, memory stays lean
• per user isolation
github.com/rishavvajpayee…
English











