Daniel Wigton on Nostr: I am qualified to talk about the benefits of Garbage collectors. It isn't up to you. ...
I am qualified to talk about the benefits of Garbage collectors. It isn't up to you. You can disregard my opinion. Saying rust has a garbage collector like JavaScript and python is being willfully disingenuous. It does not. It merely inserts calls to free when values no longer have an owner. It is no different from c in terms of machine code emitted by the compiler.
Pretending that compile time checks for ownership are some how the same as a watchdog process counting references and pausing at run time to free memory as needed is silly.
One has deterministic behavior, the other can very wildly depending on the hardware it is running on or the version of the runtime used.
Yes rust has reference counted pointers, but they are self encapsulated and have the same predictable behavior.
I am not saying GC languages are bad. I really like C# and even have a soft spot for PHP. I am just saying no GC language is "a better c" since they are just different things.
I wouldn't even say that rust is a better c, it has nice abstractions but it does introduce a very small amount of runtime into the binary. It is closer than a GC language but still a different thing.
I definitely appreciate that something like go is faster to get a performant application up and running. Rust is tedious. But it really isn't that tedious. You can get a web service up in a weekend with it as well and have it be fully async while you are at it. Just pull in Tokio and maybe actix or Rocket, both make making routes to whatever you want to do, dead simple.
Published at
2025-06-07 15:49:22Event JSON
{
"id": "cdbe7cc2f872c251f3895d91deb41eac3a1fd81e8d43c75e9cc44505e96a4244",
"pubkey": "75656740209960c74fe373e6943f8a21ab896889d8691276a60f86aadbc8f92a",
"created_at": 1749311362,
"kind": 1,
"tags": [
[
"e",
"3340972b3854fa4cad8447610e4dd6580830b5ff8c5ece250414493ce6457dbd",
"",
"root"
],
[
"e",
"b2fda686449c204c6b027ca0430627cad8609062a645395f9cf6e34e52ee6fdb"
],
[
"e",
"bac162689c3da2c5d234e03d0c29d5cf8fbd752d91694ddcde78e2e25cc2271b",
"",
"reply"
],
[
"p",
"70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9"
],
[
"p",
"fd208ee8c8f283780a9552896e4823cc9dc6bfd442063889577106940fd927c1"
],
[
"p",
"75656740209960c74fe373e6943f8a21ab896889d8691276a60f86aadbc8f92a"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
]
],
"content": "I am qualified to talk about the benefits of Garbage collectors. It isn't up to you. You can disregard my opinion. Saying rust has a garbage collector like JavaScript and python is being willfully disingenuous. It does not. It merely inserts calls to free when values no longer have an owner. It is no different from c in terms of machine code emitted by the compiler.\n\nPretending that compile time checks for ownership are some how the same as a watchdog process counting references and pausing at run time to free memory as needed is silly.\n\nOne has deterministic behavior, the other can very wildly depending on the hardware it is running on or the version of the runtime used.\n\nYes rust has reference counted pointers, but they are self encapsulated and have the same predictable behavior.\n\nI am not saying GC languages are bad. I really like C# and even have a soft spot for PHP. I am just saying no GC language is \"a better c\" since they are just different things.\n\nI wouldn't even say that rust is a better c, it has nice abstractions but it does introduce a very small amount of runtime into the binary. It is closer than a GC language but still a different thing.\n\nI definitely appreciate that something like go is faster to get a performant application up and running. Rust is tedious. But it really isn't that tedious. You can get a web service up in a weekend with it as well and have it be fully async while you are at it. Just pull in Tokio and maybe actix or Rocket, both make making routes to whatever you want to do, dead simple.",
"sig": "237b75fc83a5e815ada0c5ff8c4b22bdfcafbf33a362892703be6170c1735defe2c305ce04e14e22f4cfcbeb75f487016ce9d3b60d689ee0031455fc322a6fda"
}