Forwarded from 🇺🇦 Go for two :)
New package with a generic set type has been accepted :)
https://github.com/golang/go/issues/69230
https://github.com/golang/go/issues/69230
package set // import "golang.org/x/exp/collection/set"
Package set defines Set, an experimental prototype for what may become the
canonical representation of a set recommended for use in public APIs.
A Set[E] is transparently represented as a map[E]struct{}, and so it may be used
as the operand of a range loop.
Example:
var x, y, z set.Set[int]
x = set.Of(1, 2, 3) // "{1, 2, 3}"
y = set.Of(3, 4, 5) // "{3, 4, 5"}
z = x.Intersection(y) // "{3}"
for elem := range z {
println(elem) // "3"
}
// more examples https://github.com/golang/go/issues/69230#issuecomment-6040903375
GitHub
golang.org/x/exp/collection/set: new package with a generic set type · Issue #69230 · golang/go
(Please see the pinned comment below for recent updates. 7 Oct 2026. --jba) (Please see https://github.com/golang/go/issues/69230#issuecomment-5095993889 below for the API recommended by the Collec...
❤7🤮3🌚3👍1
Блог*
"День выборов" вышел в 2007 году, то есть 19 лет назад
"Кунг-фу панда" вышел в 2008 году, то есть 18 лет назад
🌚15🤔3👍1
В связи с многочисленными просьбами папищеков вопрос: возвращать реакцию клоуна?
Anonymous Poll
70%
Да
10%
Нет
20%
Кешбери (= всё равно)
🤡8👍4🌚3🤝3💩2
Блог*
В связи с многочисленными просьбами папищеков вопрос: возвращать реакцию клоуна?
Реакцию клоуна я в своё время убрал из-за неоднозначности смысла: она может означать, что лирический герой тот, о ком идёт речь в посте, является клоуном, а может, что клоуном является админ из-за того, что тот запостил. Два разных смысла, оба обоснованные, но различить невозможно.
😁25💩6🥴4🤷3🤡2👍1🤮1🌚1
Forwarded from Blockchain & GenAI are Stupid
This media is not supported in your browser
VIEW IN TELEGRAM
😁25🥴7🤣4❤1👍1
Forwarded from Кулешов разгоняет IT | AI
This media is not supported in your browser
VIEW IN TELEGRAM
Программирование текстом. Не знаю как вы, но когда мне присылают какой-нибудь очередной набор скиллов (aka промптов), которые автор сгенерировал, сам их не читая, то я буквально ревьюю это всё это так, как на этом видео.
Ни разу не читал, что там происходит. Вот прямо идентичный процесс ревью/принятия решений.
Ни разу не читал, что там происходит. Вот прямо идентичный процесс ревью/принятия решений.
❤11🤮6💯3😱2😢2🤔1🌚1
#prog #ml #article
The Decoherence Trap
The Decoherence Trap
This essay introduces the concept of decoherence: the accumulation of locally valid but mutually incompatible or redundant models within a system, such that the cost of change is dominated by translating among those models and preventing unintended side-effects.
In other words, it's what happens when slop drowns out the signal in an endless sea of noise.
👍10
👍9