Viewing profile — Twey
Twey
HN member- Joined
- Sun, Jan 30, 2011, 11:45 AM UTC
- HN karma
- 524
- Public activity
- 238 items
- HN profile
- View on Hacker News ↗
About Twey
No profile information was provided.
Recent public activity
-
comment
Comment #49162421
Right, so the definition of higher-kinded types is that the _parameter_ to the trait (here, `Self`) is higher-kinded (here, `* → *`) not that the trait is parameterized. So `impl F…
-
comment
Comment #49152024
Right, I got the notion — but syntactically I expect `Self` to refer to the thing named at the top of the block, which is a `Functor[A]`. I think what both I and the sibling commen…
-
comment
Comment #49145189
Love to see a real-world example of GRIN! trait Functor[A]: fun map[B](self, f: A -> B) -> Self[B]; This looks a little wacky to me. I see that you can write HKTs in their η-long f…
-
comment
Comment #49145049
I'd go even further: even the ‘cognitive elite’ (the university educated? researchers?) understand only a thin spike of frontier human knowledge, even if they might understand it v…
-
comment
Comment #49145009
> Those "demons" didn't eat our lunch? Tell that to the Europeans who were so afraid of naming the bear that its original name is still lost to us :) The Luddites also had a lot to…
-
comment
Comment #49143105
> The result is that we will live in a demon-haunted world, full of marvelous devices whose operation we will not understand, based on engineering principles we will not understand…
-
comment
Comment #48889718
In constructive mathematics I think you'd be right: to call a problem decidable would require you to produce the algorithm that decides it, so you couldn't call the Collatz conject…
-
comment
Comment #48889662
We have official government ID (the national insurance number, roughly equivalent to a USian SSN), but names aren't expected to reliably link it in one hop, and we're politically a…
-
comment
Comment #48889631
But we are importing this model now in Boris Johnson and Farage. As far as I can see Farage is doing exactly (a British spin on) the GWB strategy: despite having a pretty classical…
-
comment
Comment #48889486
> The drawback with more phonetic systems like Gregg is that one has to learn entirely new ways of spelling words. The point of the phonetic systems is that you don't have to ‘spel…
-
comment
Comment #48871969
And yet there is a correct algorithm — it's either the const yes algorithm or the const no algorithm. We don't _know_ which algorithm it is, but that's not relevant to the definiti…
-
comment
Comment #48871948
Quantum computation is not super-Turing: anything you could solve with a quantum Turing machine you could also solve with a classical Turing machine, albeit sometimes a lot slower.…
-
comment
Comment #48795331
Ironically Rust (hence the name) was originally billed as the language that did nothing novel at all, but just productized a bunch of concepts that were already well understood in …
-
comment
Comment #48773714
I think that arguably an (active) object à la Kay is itself a process — it doesn't have shared memory with the rest of the program (regardless of how that's achieved).
-
comment
Comment #48755662
> Most rewrites answer to the engineer - what they want to learn, what offends their taste, what looks good in an interview - and not to the company paying the salary. One big cave…
-
comment
Comment #48731721
I think it definitely sits at a reasonable point in the tradeoff space here, but it's not the only reasonable point. And it's the nature of tradeoffs that some cases will slip thro…
-
comment
Comment #48731701
I did not know that was something people had done! Thanks for the pointer! If I were to quibble, though: in-process implies exactly the absence of the isolation guarantees that OOP…
-
comment
Comment #48730865
Taken to an extreme. It's not feasible with current microservice architecture to, for example, represent every Boolean in the program as a service.
-
comment
Comment #48726980
I think that's more of a workaround than a fix. Relying on unstructured concurrency does mean you no longer have to understand the scheduling of your program's fibres (… until you …
-
comment
Comment #48719071
All recurrent people problems are system problems.
-
comment
Comment #48719044
That's an excellent question I don't have an answer for in general :) IMHO the goal is usually for the compiler not to make these decisions but to provide the tools for the APIs pe…
-
comment
Comment #48718505
`Poll` is marked `#[must_use]` so if you were assigning to something other than `_` you'd get a warning that you're ignoring the `Pending` path. The Clippy lint is only for `_` whi…
-
comment
Comment #48718492
Hence ‘sadly’. IMNSHO both of these (or at least _untyped) should be enabled by default. Untyped `let _` is too big a footgun during refactorings.
-
comment
Comment #48718468
I said ‘flagged’, not ‘fixed’ :) You can always write the wrong code if you want it enough. But hopefully a warning would have prompted someone to think harder about this flow.
-
comment
Comment #48717952
This would have been flagged by Clippy lints `let_underscore_untyped` or `let_underscore_must_use`, which sadly are not enabled by default.