Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
GO e Sketch Data Structures
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Gleicon Moraes
August 27, 2020
Programming
36
0
Share
GO e Sketch Data Structures
Apresentação no TDC 2020 São Paulo - ebook:
https://github.com/gleicon/ebook-go-sketch
Gleicon Moraes
August 27, 2020
More Decks by Gleicon Moraes
See All by Gleicon Moraes
To vibe or not to vibe - Como a IA está mudando a maneira que fazemos código
gleicon
0
120
6% (kindle) - the impact of leadership
gleicon
0
88
Arquivei - Como democratizar os dados de sua empresa
gleicon
0
200
oscon_scal_perf.pdf
gleicon
0
61
Contratando em Tecnologia
gleicon
1
490
Devops Days Recife 2019
gleicon
0
89
Go datastores
gleicon
0
130
Como arquiteturas de dados quebram
gleicon
0
230
APIs e Sistemas legados
gleicon
0
270
Other Decks in Programming
See All in Programming
Programming with a DJ Controller — not vibe coding
m_seki
3
710
t *testing.T は どこからやってくるの?
otakakot
1
860
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
950
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
230
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
24
16k
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
180
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
3
380
個人的に嬉しかったpnpmの新機能・3選
matsuo_atsushi
0
120
Spec-driven Development: How AI Changes Everything (And Nothing)
simas
PRO
0
540
Kingdom of the Machine
yui_knk
2
1.3k
[RubyKaigi 2026] Require Hooks
palkan
1
270
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
300
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
290
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
240
New Earth Scene 8
popppiees
3
2.2k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
210
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
190
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
We Have a Design System, Now What?
morganepeng
55
8.1k
AI: The stuff that nobody shows you
jnunemaker
PRO
6
620
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
160
Transcript
pen4education Trilha – Go Diversão com Go e Estruturas de
dados probabilísticas Gleicon Moraes VP Engenharia Gympass github.com/gleicon
pen4education https://github.com/gleicon https://twitter.com/gleicon
pen4education Go ? • Primitivas de concorrência • Batteries included
• Muscle Memory • Single Binary
pen4education Estruturas probabiliasdhjasd ?!? • Estruturas de dados probabilisticas •
Sketch Data Structures (Sketch -> Rascunho) • Trocas entre espaço/precisão/velocidade
pen4education Estruturas probabiliasdhjasd ?!? • Estruturas de dados probabilisticas •
Sketch Data Structures (Sketch -> Rascunho) • Trocas entre espaço/precisão/velocidade
pen4education Por onde começar ?
pen4education Cache 101
pen4education Nazaré
pen4education Nazaré https://github.com/gleicon/nazare • Protocolo Redis • Command Line •
Banco de dados local com snapshot • Concorrencia • Não tem muita certeza das coisas :(
pen4education Nazaré
pen4education Bloom Filter/Cuckoo Filter • BitSet (buckets) • Hash Functions
• Remoção • Espaço • Não tem muita certeza das coisas :(
pen4education Bloom Filter/Cuckoo Filter Tipo Velocidade no pior dos casos
Storage (guarda todos os valores) Falso Positivo Falso Negativo Delete ? Map (dict) Numero de elementos Sim Não Não Sim Bloom Tamanho do BitSet Hash Function Sim Não Não Cuckoo Tamanho do BitSet Hash Function Sim Não Sim
pen4education HyperLogLog
pen4education HyperLogLog
pen4education HyperLogLog Count HLL Erro 10 10 0.0000% 50 50
0.0000% 250 250 0.0000% 1250 1250 0.0000% 6250 6250 0.0000% 31250 31253 0.0096% 156250 155914 0.2150% 781250 778300 0.3776% 3906250 3874441 0.8143% 10000000 9969753 0.3025% HLL total size: 32776 Map total size: 10000000 (em bytes)
pen4education Ebook PDF e fonte em https://github.com/gleicon/ebook-go-sketch
pen4education Obrigado https://github.com/gleicon
[email protected]
we are hiring @ gympass https://www.linkedin.com/jobs/gympass-vagas/
None