Hacker GitHub

← All repos

lukechampine/ply

View on GitHub ↗ ★ 126 Go

Painless polymorphism

10 mentions on Hacker News by 2 people: 0 stories, 10 comments · first 2017-01-09 · latest 2024-10-10

Mentions per year 10 mentions · busiest year 2017 (5)
20082026
  1. …what it's called! I did this in my compile-to-Go language, but I didn't know the name for it: https://github.com/lukechampine/ply?tab=readme-ov-file#suppo...
    comment by nemo1618 · 2024-10-10 · in Fun with Go Iterators
  2. Check out my experiment with adding map/filter/reduce to Go: https://github.com/lukechampine/ply Ultimately I concluded that map/filter/reduce really need to be paired with a concise lambda syntax in order to be ergonomic. Writing out a…
  3. …have their true needs met by adding a few more built-ins to the language. I pursued that idea here: https://github.com/lukechampine/ply I sympathize with the programmers who really do need generics and would like to program in Go, because…
    comment by nemo1618 · 2018-09-02 · in Notes on the Go2 Generics Draft
  4. You might be interested in my project: https://github.com/lukechampine/ply The idea is that when people say "generics", they usually just mean map/filter/reduce. So ply just bakes those into the language directly instead of adding new…
    comment by nemo1618 · 2018-08-28 · in Go 2 Draft Designs
  5. …a compile-to-Go superset that adds some generic functions/methods. You may have come across it: https://github.com/lukechampine/ply My perspective was that when I find myself wishing for generics in Go, what I really want is not full-blown…
  6. You might be interested in my side project: https://github.com/lukechampine/ply It's a small superset of Go that allows you to call map/filter/reduce methods on any slice. It's not true generics (you can't define your own generic functions…
    comment by nemo1618 · 2017-07-13 · in Toward Go 2
  7. …Go's primary strength is. btw, I'll take this opportunity to plug my own "Go generics" solution: https://github.com/lukechampine/ply . It's like a Coffeescript for Go that lets you use stream HOFs like map/filter/reduce without any runtime…
    comment by nemo1618 · 2017-05-07 · in My Struggles with Rust
  8. …the code needs no generics at all. Having said that, I would not complain if the concept of Ply ( https://github.com/lukechampine/ply ) becomes part of standard Go.
  9. You might be interested in my side project: https://github.com/lukechampine/ply IMO when people say they want generics in Go, they really just want a few functional-style methods and functions on slices (e.g. map, filter, reduce methods,…
    comment by nemo1618 · 2017-03-24 · in 3.5 Years, 500k Lines of Go
  10. >generics seem like a pretty easy thing to write a preprocessor for I am basically doing this: https://github.com/lukechampine/ply Ply is like Go except you can write things like []int{1,2,3}.filter(even) and it will Just Werk. It's not…
    comment by nemo1618 · 2017-01-09 · in Go and Dogma