Priya Raghunathan
@priyar
Member · Member since Oct 2013
Compiler engineer. Mostly C++ and LLVM.
0 followers · 0 following
Badges and trust level are earned across the whole community.
- Topics created
- 3
- Posts created
- 8
- Likes given
- 26
- Likes received
- 57
- Days visited
- 0
- Solutions
- 2
Days visited count across the whole community, not just this forum.
Most active topics
- Why does iterating a sorted list run faster than an unsorted one in this C++ loop?
10 replies · 13 votes
- Docker container exits immediately with code 0
1 replies · 4 votes
- Async Python: run blocking code without freezing the event loop
1 replies · 2 votes
Most liked posts
- Why does iterating a sorted list run faster than an unsorted one in this C++ loop?
I have a loop that sums every element of a large std::vector<int> that is at least 128. If I sort the vector first (outside the timed region), the loop runs abo
13 likes
- Floating point: why is 0.1 + 0.2 != 0.3?
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
11 likes
- SQL: get the latest row per group
An index on (customer_id, created_at DESC) makes both of these fast.
8 likes
- Python: what is the difference between __str__ and __repr__?
__repr__ is for developers: unambiguous, ideally valid Python that recreates the object. Used by the REPL, repr(), and containers. __str__ is for users: readabl
7 likes
- Embedded C: volatile still needed for memory-mapped registers?
Still required: volatile stops the compiler from caching or eliding the accesses. Barriers order accesses but do not force them to happen. You often need both o
4 likes
Top categories
Top tags
- #asyncio 1
- #c++ 1
- #concurrency 1
- #containers 1
- #cpu-architecture 1
Recent badges
- Async Python: run blocking code without freezing the event loop
Liked by Dmitri Vasko
I call a blocking library function inside an async def handler and the whole server stalls. How do I run it without blocking?
Likes received · 10/12/2026
- Kubernetes pod stuck in CrashLoopBackOff, no logs
kubectl logs for my pod returns nothing and the pod restarts every few seconds. How can I see why it crashes?
Likes given · 10/12/2026
- Docker container exits immediately with code 0
Liked by Amara Nwosu
FROM node:22-alpine WORKDIR /app COPY . . RUN npm ci CMD npm start & docker run returns right away and docker ps shows nothing. Logs are empty.
Likes received · 10/12/2026
- Why does iterating a sorted list run faster than an unsorted one in this C++ loop?
Liked by Jonah Weiss
I have a loop that sums every element of a large std::vector<int> that is at least 128. If I sort the vector first (outside the timed region), the loop runs abo
Likes received · 10/12/2026
- Spark: how to avoid a shuffle when joining a small table?
Broadcast the small side: from pyspark.sql.functions import broadcast facts.join(broadcast(lookup), "country_code") Spark also does this automatically below spa
Likes given · 10/12/2026
- Embedded C: volatile still needed for memory-mapped registers?
Liked by Hollis Grant
Still required: volatile stops the compiler from caching or eliding the accesses. Barriers order accesses but do not force them to happen. You often need both o
Likes received · 10/12/2026
- Embedded C: volatile still needed for memory-mapped registers?
Liked by user8841203
Still required: volatile stops the compiler from caching or eliding the accesses. Barriers order accesses but do not force them to happen. You often need both o
Likes received · 10/12/2026
- Embedded C: volatile still needed for memory-mapped registers?
Liked by Svetlana Orlova
Still required: volatile stops the compiler from caching or eliding the accesses. Barriers order accesses but do not force them to happen. You often need both o
Likes received · 10/12/2026
- Embedded C: volatile still needed for memory-mapped registers?
Liked by Lin Mei
Still required: volatile stops the compiler from caching or eliding the accesses. Barriers order accesses but do not force them to happen. You often need both o
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Keiko Arai
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Lin Mei
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Hollis Grant
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Mateus Brandão
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by user8841203
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Jonah Weiss
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Tomás Ferreira
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Dmitri Vasko
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Oskar Lindqvist
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by user3307719
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026
- Floating point: why is 0.1 + 0.2 != 0.3?
Liked by Ben Achterberg
No — 0.1 and 0.2 have no exact binary representation, so the sum is 0.30000000000000004. Compare with a tolerance: Math.abs(a - b) < Number.EPSILON and use inte
Likes received · 10/12/2026