go-sumtype
A simple utility for running exhaustiveness checks on Go "sum types." (by BurntSushi)
go-server-core
An attempt to build a plugin based server (by student020341)
go-sumtype | go-server-core | |
---|---|---|
11 | 7 | |
403 | 0 | |
- | - | |
0.0 | 0.0 | |
about 1 year ago | about 2 years ago | |
Go | Go | |
The Unlicense | The Unlicense |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-sumtype
Posts with mentions or reviews of go-sumtype.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-13.
-
Small sum types in Golang
I find this implementation to be quite minimal and less clumsy than alternatives. Sure, you don't get nice exhaustive pattern matching. Also, type inference gets in the way when instantiating UserKey (though you can wrap it in constructor functions). But expressing your intent using types still makes your code much more convenient and easier to understand.
-
Switching from C++ to Rust
The call out to sum types is something I feel. I've been using Rust daily for almost 10 years now, and sum types are absolutely still one of the things I love most about it. It's easily one of the things I miss the most in other languages. I'm usually a proponent of "using languages as they're intended," but I missed exhaustiveness checking so much that I ported a version of it to Go[1] as a sort of lint.
[1]: https://github.com/BurntSushi/go-sumtype
-
Rusty enums in Go
A Google search for golang sum types currently shows my project as a second hit: https://github.com/BurntSushi/go-sumtype
-
Carbon Language: An experimental successor to C++
I've been writing Go and Rust nearly daily for about a decade now (Go is more than a decade, Rust is about 8 years). You are not going to teach me anything about the pros and cons of either language in a reddit comment. I do not need to be taught about the "iota mess" when I've written tooling for exhaustiveness checking in Go.
-
a go linter to check switch statements for default
https://github.com/BurntSushi/go-sumtype forces exhaustive type switches for interfaces specifically annotated to need that.
-
Go: Making state explicit using the type system
We can fix these two problems by relying on static analyzers such as go-sumtypes
-
Hacking sum types with Go generics
See also https://github.com/BurntSushi/go-sumtype
- What I'd like to see in Go 2.0
-
Upcoming Features in Go 1.18
go-sumtype[0] has completeness checking for sealed interfaces.
[0] https://github.com/BurntSushi/go-sumtype
-
I want enum more than generics
Pretty easy to achieve outside of the compiler: https://github.com/BurntSushi/go-sumtype
go-server-core
Posts with mentions or reviews of go-server-core.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-19.
-
Carbon Language: An experimental successor to C++
What language would you use to build a server? I've been using go for a while and have enjoyed using the different emerging frameworks and even just the standard packages.
-
Is there an issue with hosting multiple applications on 1 port through a gateway application?
That's true - there are totally unrelated projects all running under this 1 system. I suppose I could launch a series of these servers that only include pieces they need. That's easy enough here.
-
Go shoutout in the Rust Programming Book.
Oh cool, that is the case, yes. There are a lot of other issues with what I'm doing, but at least that isn't one of them. You can look at it here if you're curious but honestly I don't know how much longer I'm going to build it up before that joke from ~2018 is put down and I adopt whatever go server framework is popular now.
-
Web gateway utilizing golang plugins
Here is the main server, here is the router I made with some project specifics in mind, and here is a monster repository that is holding several sub projects that are all reachable from the gateway. Files contains various files served by the sub applications, src contains the go code that gets compiled into plugins.
-
Our policy at work - are we wrong, though?
Y-yea, me too... it's totally obvious that tomato is a restful router, right?
-
Big yikes
Well, we are on reddit. I'll take validation where I can get it. Want to criticize my shitty golang router?
What are some alternatives?
When comparing go-sumtype and go-server-core you can also consider the following projects:
go101 - An up-to-date (unofficial) knowledge base for Go programming self learning
hylo - The Hylo programming language
enumer - A Go tool to auto generate methods for your enums
crubit
go - The Go programming language
HVM - A massively parallel, optimal functional runtime in Rust
val - A small library to bring NaNboxing to C
hack-game - it reminds me of .hack
mo - 🦄 Monads and popular FP abstractions, powered by Go 1.18+ Generics (Option, Result, Either...)
Vale - Compiler for the Vale programming language - http://vale.dev/