Counting Fast in Erlang with:counters and:atomics
https://andrealeopardi.com/posts/erlang-counters-and-atomics/
#HackerNews #Erlang #FastCounting #counters #atomics #programming
Counting Fast in Erlang with:counters and:atomics
https://andrealeopardi.com/posts/erlang-counters-and-atomics/
#HackerNews #Erlang #FastCounting #counters #atomics #programming
Counting Fast in Erlang with:counters and:atomics
Erlang의 :atomics와 :counters 모듈은 BEAM VM 내에서 고성능 동시성 카운팅을 지원하는 새로운 공유 메모리 데이터 구조입니다. :atomics는 CPU 수준의 원자적 연산과 순차적 일관성을 제공해 동기화에 적합하며, Broadway의 레이트 리미팅 기능에 활용됩니다. :counters는 각 스케줄러별로 분산된 카운터를 유지해 쓰기 성능을 극대화하며, 읽기 작업이 적은 상황에 적합합니다. ETS 대비 높은 동시성 처리량과 명확한 의미론적 차별점을 갖고 있어, Erlang/Elixir 동시성 프로그래밍에서 적절한 도구 선택에 도움을 줍니다.
https://andrealeopardi.com/posts/erlang-counters-and-atomics/
CPU Counters on Apple Silicon: article + tool
Last time I wrote about profiling in Zig on Apple Silicon, I touched on PMU counter profiling. This time I decided to go further and create my own tool to fetch all available counters for Apple Silicon processors (M1, M2, and later). Brief explanation of PMU counters PMU (Performance Monitoring Unit) counters are hardware counters that track microarchitectural events inside the CPU, e.g. executed instructions, retired operations, branches, cache misses, and more.
CSS Counters in Action
https://fed.brid.gy/r/https://frontendmasters.com/blog/css-counters-in-action/