353 karma · joined Dec 8, 2021 (4y ago) · 174 submissions
comment 2mo ago · link · parent
I recommend reading https://degoes.net/articles/no-effect-tracking . In summary, most languages could do with the Go/Java virtual thread async model dropping async/await entirely.
comment 4mo ago · link · parent
Yes, in the same way that we have E2E encryption which allows bad actors to distribute content beyond human horrors.
comment 11mo ago · link · parent
comment 1y ago · link · parent
But Zig does not eliminate them, but rather it might catch them at runtime. The difference here is that Rust promises that it will detect them at compile time, long before I ship my code.
> The property of memory safety is itself not binary in both languages
In this case it is: either you catch the issue at compile time, or you don't. This is the same as type safety: just because Python can detect type errors at runtime it does not mean that it's as "type safe" as, for ex. Haskell. This might be due to imprecise usage of terms but that's just the way it's discussed in the craft.
comment 1y ago · link · parent
[1] https://www.cambridge.org/core/services/aop-cambridge-core/c...
comment 1y ago · link · parent
When is this relevant beyond pleasing the compiler/runtime? I work in C# and JS and I could not care less. Give me proper green threads and don't bother with async.
comment 1y ago · link · parent
Don't know when was the last time you've used Haskell, but the ecosystem is mainly focused on Cabal as the build tool and Hackage as the official package repository. If you've used Rust:
- rustup -> ghcup - cargo -> cabal - crates.io -> hackage - rustc -> ghc
comment 1y ago · link · parent
} catch (exception: Exception) {
// log exception
throw exception
}
Probably the most harmful snippet ever written. Every blog post about errors has something similar written, regardless of the programming language. Please, don't write, suggest or even pretend that this should exist.comment 1y ago · link · parent
> HTTP servers and clients, email systems, DNS resolvers—they all interoperate based on simple protocols
Yeah, massive disagree with this. There is absolutely nothing "simple" about these protocols. Try to compose 3/4 UNIX programs together and you necessarily need to run it to see if it even makes sense. Don't get me started on HTTP.
It boils my blood to read "simple" in the context of software engineering
comment 1y ago · link · parent
comment 1y ago · link · parent