Are you uploading them or linking to external images?
Are you uploading them or linking to external images?
Are you uploading them or linking to external images?
cc @movq for jenny and @lyse for tt
cc @movq for jenny and @lyse for tt
cc @movq for jenny and @lyse for tt
just let me know which domains are missing, and I'll add them!
otherwise, just upload the image using the media upload button ๐
just let me know which domains are missing, and I'll add them!
otherwise, just upload the image using the media upload button ๐
just let me know which domains are missing, and I'll add them!
otherwise, just upload the image using the media upload button ๐
But you can follow feeds across pods and other self-Hosted Twtxt feeds (it's all just Twtxt) ๐
But you can follow feeds across pods and other self-Hosted Twtxt feeds (it's all just Twtxt) ๐
But you can follow feeds across pods and other self-Hosted Twtxt feeds (it's all just Twtxt) ๐
โจ Follow button on their profile page or use the Follow form and enter a Twtxt URL. You may also find other feeds of interest via Feeds. Welcome! ๐ค
โจ Follow button on their profile page or use the Follow form and enter a Twtxt URL. You may also find other feeds of interest via Feeds. Welcome! ๐ค
i := fIndex(xs, 5.6)
Can also be
i := Index(xs, 5.6)
The compiler can infer the type automatically. Looks like you mention that later.
Also the infer is super smart.. You can define functions that take functions with generic types in the arguments. This can be useful for a generic value mapper for a repository
func Map[U,V any](rows []U, fn func(U) V) []V {
out := make([]V, len(rows))
for i := range rows { out = fn(rows[i]) }
return out
}
rows := []int{1,2,3}
out := Map(rows, func(v int) uint64 { return uint64(v) })
I am pretty sure the type parameters goes the other way with the type name first and constraint second.
func Foo[comparable T](xs T, s T) int
Should be
func Foo[T comparable](xs T, s T) int
i := fIndex(xs, 5.6)
Can also be
i := Index(xs, 5.6)
The compiler can infer the type automatically. Looks like you mention that later.
Also the infer is super smart.. You can define functions that take functions with generic types in the arguments. This can be useful for a generic value mapper for a repository
func Map[U,V any](rows []U, fn func(U) V) []V {
out := make([]V, len(rows))
for i := range rows { out = fn(rows[i]) }
return out
}
rows := []int{1,2,3}
out := Map(rows, func(v int) uint64 { return uint64(v) })
I am pretty sure the type parameters goes the other way with the type name first and constraint second.
func Foo[comparable T](xs T, s T) int
Should be
func Foo[T comparable](xs T, s T) int
i := fIndex(xs, 5.6)
Can also be
i := Index(xs, 5.6)
The compiler can infer the type automatically. Looks like you mention that later.
Also the infer is super smart.. You can define functions that take functions with generic types in the arguments. This can be useful for a generic value mapper for a repository
func Map[U,V any](rows []U, fn func(U) V) []V {
out := make([]V, len(rows))
for i := range rows { out = fn(rows[i]) }
return out
}
rows := []int{1,2,3}
out := Map(rows, func(v int) uint64 { return uint64(v) })
I am pretty sure the type parameters goes the other way with the type name first and constraint second.
func Foo[comparable T](xs T, s T) int
When introducing generic functions you switched the parameter
s to be the slice and not the element to search for. Maybe keep it consistent with the rest of the code samples and change s and x to xs and s. Or even better, use nicer names. :-)Also, you might want to tell a few sentences about the
~. When I first encountered underlying types I was a bit puzzled.Keep up the great Go talks!
Bird in a treeAnd finally, the sunset made for a nice end of the day.
Added avatar support, and reply button.
It's pretty obvious that the GUI does not scale properly yet, but I'll worry about that once the last feature is added. Now I'm only missing the 'post status' gui, I need to think a bit about how I want that implemented.
Anyways - here's the latest screenshot..
โจ Follow button on their profile page or use the Follow form and enter a Twtxt URL. You may also find other feeds of interest via Feeds. Welcome! ๐ค
โจ Follow button on their profile page or use the Follow form and enter a Twtxt URL. You may also find other feeds of interest via Feeds. Welcome! ๐ค