Hacker GitHub

← All repos

BurntSushi/ty

View on GitHub ↗ ★ 198 Go

Easy parametric polymorphism at run time using completely unidiomatic Go.

7 mentions on Hacker News by 1 person: 0 stories, 7 comments · first 2013-04-06 · latest 2016-08-24

Mentions per year 7 mentions · busiest year 2013 (4)
20082026
  1. …out this function, which does unification in a generic context, given some function type: https://godoc.org/github.com/BurntSushi/ty#Check ... For example, it reduces a lot of the reflection boiler plate:…
  2. …functions in Go, if you're willing to sacrifice both type safety and performance. e.g., https://godoc.org/github.com/BurntSushi/ty/fun Javascript is unityped, and you can certainly pretend Go is unityped too, by using `interface{}`…
    comment by burntsushi · 2015-12-09 · in Why Go Is Not Good (2014)
  3. …a.Year < b.Year }, sorted := QuickSort(less, albums).([]Album) For more fun things, see: http://godoc.org/github.com/BurntSushi/ty/fun
    comment by burntsushi · 2014-01-17 · in Go by Example
  4. …something that is less onerous on the caller, but probably slower. [1] Here's the source. [2] [1] - https://github.com/BurntSushi/ty#examples [2] - https://github.com/BurntSushi/ty/blob/master/fun/list.go#L17
    comment by burntsushi · 2013-07-16 · in Golang Diaries II
  5. …as slice, map and channel types. I exploit some of this in my `ty` package. [1,2] [1] - http://godoc.org/github.com/BurntSushi/ty [2] - http://blog.burntsushi.net/type-parametric-functions-golang
    comment by burntsushi · 2013-05-01 · in Go 1.1 RC1 is out
  6. …compile time type safety, but performance still seems to remain roughly the same. [1] - http://godoc.org/github.com/BurntSushi/ty/fun#ParMap
    comment by burntsushi · 2013-04-07 · in GoPy – Extend CPython by writing Go
  7. If you want to skip to the more interesting tidbits, see the `Examples` section for the github.com/BurntSushi/ty/fun package docs [1]. [1] - http://godoc.org/github.com/BurntSushi/ty/fun
    comment by burntsushi · 2013-04-06 · in Writing type parametric functions in Go