js-proposal-algebraic-effects
gopl.io
js-proposal-algebraic-effects | gopl.io | |
---|---|---|
3 | 57 | |
174 | 7,386 | |
- | - | |
0.0 | 0.0 | |
about 3 years ago | 3 months ago | |
JavaScript | Go | |
- | - |
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.
js-proposal-algebraic-effects
-
Proposal: Signals as a Built-In Primitive of JavaScript
I have to admit: you're perfectly right here. React of course always relied on mutable state in it's implementation – just so we don't have to. I derailed a lot here to keep this funny thread going ;) I'm still not with you on your definition of "functional", since you treated it synonymously with "purely functional". Functional means just made by applying and composing functions, and react UI is created exactly like that. There is an awesome algebraic effects proposal[1], which will hopefully will be added to JavaScript one day, then react will make use of it to become purely functional.
1: https://github.com/macabeus/js-proposal-algebraic-effects
-
Letlang, a programming language targetting Rust - Road to v0.1
Super interesting, there is a proposal to add this to JavaScript and several languages that use this, unison, koka & eff. I had no idea this was even a thing!
-
Go Replaces Interface{} with 'Any'
Ok I was wrongly assuming that panic was expecting an error type, in fact it's an interface{}.
> Your use of exceptions for flow control (i.e. goto) is considered harmful
Exceptions are a way to delegate error handling to the caller by giving them informations about the unexpected behavior. It implies that the expected behavior is the "happy path" (everything went well) and any deviations (errors) is unexpected.
This is far from a goto because you can have `try/finally` blocks without catch (or defer in golang).
Also, exceptions are just a kind of algebraic effects that do not resume. There was a proposal to JS for this: https://github.com/macabeus/js-proposal-algebraic-effects
This is also easier to test. assertRaises(ErrorType, func() { code... })
Almost every Go library I've seen just return an error (which is just a string), you'd need to parse it to assert that the correct error is returned in special conditions.
gopl.io
-
Good Books for a GO Beginner in 2023/24
Go never changed as much as Java does in each major release, so old books are still relevant. https://www.gopl.io/ is fine if you read about generics and some new standard library modules somewhere else later.
-
Step by Step process to learn Golang
The Go Programming Language book.
-
Is go worth studying as first language?
The GOPL book is good one to start with, if you prefer reading books. https://www.gopl.io/
-
Does anyone have any good resources to practice channel, context, and goroutine?
Not that they are leet code style, but some exercises from "The Go Programming Language" are really worth having a look at, also most solutions are available at https://github.com/adonovan/gopl.io
- Best way to learn GoLang for Java Developers?
- How similar is GO to C?
-
is go still simple?
What part(s) are you struggling with and how are you learning? The Go Programming Language is slightly outdated but is an excellent intro. You can read the first chapter free. Also the resources on https://go.dev/learn/ are great. If I were you, I would come up with an idea you're excited about and build it.
-
Learning about concurrency
For a deeper dive, I’d recommend The Go Programming Language - a fantastic resource covering a broader landscape of the language than just concurrency.
-
If you want to learn Golang - please go through "Go Programming Language" by Brian Kernighan and Alan Donovan
"Low-level programming" is chapter 13, both in the version I have and on https://www.gopl.io/ -- the rest is all somewhat crucial stuff, except for maybe reflection.
-
Career Change to Go
Is this the "The Go Programming Language" you mentioned?
What are some alternatives?
mux - A powerful HTTP router and URL matcher for building Go web servers with 🦍
golangci-lint - Fast linters Runner for Go
exhaustive - Check exhaustiveness of switch statements of enum-like constants in Go source code.
golang-cheat-sheet - An overview of Go syntax and features.
errors - Simple error handling primitives
maturin - Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages
rustic_result - Result monad for Elixir inspired by Rust Result type
go101 - An up-to-date (unofficial) knowledge base for Go programming self learning
learn-go-with-tests - Learn Go with test-driven development
GoBooks - List of Golang books
gobyexample - Go by Example
PyO3 - Rust bindings for the Python interpreter