espup
go-sumtype
espup | go-sumtype | |
---|---|---|
7 | 11 | |
200 | 403 | |
4.0% | - | |
8.6 | 0.0 | |
11 days ago | about 1 year ago | |
Rust | Go | |
Apache License 2.0 | The Unlicense |
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.
espup
-
Rust Based Linux Process Manager with both a TUI and a GUI
https://github.com/esp-rs/espup/issues/19 https://github.com/tauri-apps/tauri/issues/1355
-
Switching from C++ to Rust
Thanks for mentioning it. I already tried using it a few months ago and brushed it off as still being a WIP, but it still didn't work when I tried again just a few days ago. Asking in the Matrix chat when first trying it sadly only got me a "works for me" from the developers.
What Espressif is doing with their esp-idf and porting it to Rust is promising, but overall it still needs work. Using the toolchain to develop on the ESP32 was at least slightly painful half a year ago before they introduced espup[1], having to keep a patched LLVM around etc., and supposedly support for their Xtensa architecture is coming to LLVM soon[2] so this will improve in the future.
I'd also love to see Bluetooth support in esp-idf-svc[3], but they seem to be lacking people with the required knowledge to design and implement an abstraction for it[4].
[1]: https://github.com/esp-rs/espup
-
Embedded Rust tutorials on the ESP32-C3
The environment setup can now be done with espup, its a Rust tool that replaces the bash scripts and also works in Windows.
- ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
-
How do I program an ESP32 S3 in Rust using podman from WSL?
Installing it locally should be relatively simple with espup, let me know if you finally decide to go for this option and have some questions!
-
Rust for Embedded Development (e.g. microcontrollers)
We even have our own installer (written in Rust of course :D) - https://github.com/esp-rs/espup
go-sumtype
-
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
What are some alternatives?
esp-idf-template - Template application for https://github.com/espressif/esp-idf
go101 - An up-to-date (unofficial) knowledge base for Go programming self learning
esp-idf-template - A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
enumer - A Go tool to auto generate methods for your enums
bluetooth-proxies - This repo hosts known, tested devices that can serve as Bluetooth proxies for Home Assistant.
go - The Go programming language
esp-web-flash-server - Starts a local server serving a web page to flash a given ELF file
hylo - The Hylo programming language
esp-wifi - A WiFi, Bluetooth and ESP-NOW driver for use with Espressif chips and bare-metal Rust
crubit
esp-idf-hal - embedded-hal implementation for Rust on ESP32 and ESP-IDF
mo - 🦄 Monads and popular FP abstractions, powered by Go 1.18+ Generics (Option, Result, Either...)