GopherCon 2016: Inside the Map Implementation - Keith Randall

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

binary tree for bucket maybe better for bigmaps

LucasLai-wv
Автор

"Go gets it right for you" Haha... Good 'ol Pikey boy knows best

TheMrKeksLp
Автор

So we have to program the language just to work around the the language ???

keepitsimple
Автор

I''m glad you're sharing this but this was maybe a bit too simple? There was a few interesting details in there but a lot of it was beginners stuff.

JohnLeidegren
Автор

12:40 And they say GO has no magic huh?! This talk shows clearly that Go's maps are just one giant monkey-patched hack! I want generics in my code. I want pointer ariphmetics in my code. Why wouldn't they let me use generics? I don't wanna write tons of boilerplate code for every single type I use. Go's core devs are using "unsafe" features everywhere but they don't allow other programmers to do that because they think we are too stupid. Oh, they are so nice and caring.

raymax
Автор

Basically it just implemented map for certain types of keys (ints, strings). I am surprised that a "modern language" can not implement a generic hash map and can spend 26 minutes on it.

pingkai