back
user profile
dmit
6,674karma·537submissions·February 21, 2011
recent activity (537 total)
comment
> Thot Leaders That's a completely different industry, I think. > The added cruft, not so much. We have generics! We have type theory! We have lambdas! We have functional programming! We…
comment
I feel like it's a subset of a much larger, more general topic of how latency impacts computer interactions. People have long tried to emulate real-world activities in computer programs, but not …
comment
To see this concept taken to its logical conclusion, check out Casey Muratori write C code with the editor configured to reformat on every keystroke: https://www.youtube.com/watch?v=S3…
comment
One cool application that cropped up in the Rust ecosystem is to use WASM for procedural macros. That way not only can they be distributed as precompiled (arch-agnostic) blobs from crates.io, but you …
comment
Option<T> is conceptually easier because: 1) It applies exactly the same way to any type, not just char. 2) You don't need to read the man page for every single function that returns an int…
comment
In fact, that's exactly what Rust already does today! Option<char> uses the exact same amount of bits to store as plain char, because the compiler has enough information to encode the Optio…
comment
No, encoding additional information in unused bits of an int that you return is stupid over-engineering that needs multiple textbooks to grok. Option<char>, on the other hand, is the simplest po…
comment
If you specify a catch-all url to open in No Container, would that work? !*.google.com , Google
!* , No Container
comment
Would a macro work ok for you, like the inbuilt vec! one? There's a crate for that named maplit: https://docs.rs/maplit let map = hashmap!{
"a" => 1,
…
comment
Pretty much. The mere existence of cdecl(1) says a lot about the simplicity of C's type declaration syntax.
comment
I'm sorry for being blunt, but is it possible that the `very brittle "exact match" method of evaluating whether an answer is correct` means value equality? Is `==` the secret sauce?
comment
I meant vendoring the source code of dependencies when I wrote the parent comment, but it appears you feel strongly about going one step further? Vendoring arch-specific binaries? What is the benefit …
comment
> The same properties of the language which helped Google have helped me To be fair, I don't think anything I wrote contradicts that. If your goals align with Google's, great.
comment
Go was so obviously designed by Googlers, for Google. After the initial release, outside adopters would frequently report issues where Go undermined their productivity. And every time the core team…
comment
Wow. They say that policies are organizational scar tissue. I'd love to see the blow that inflicted this particular wound.
comment
It's always been baffling to me that certain problem domains with extremely slow feedback loops have standardized on using dynamically typed languages. Machine learning and Python. Video game scr…
comment
In a similar vein: Cheating Hangman, once described as "an app that perfectly recreates the infuriating feeling of playing hangman with your older sibling who was definitely cheating and also k…
comment
Kotlin is not the future of anything. They got the Android boost and still, two years later, all they have to offer is a molasses-slow improvement pace and a shitty dev experience in their signature I…
comment
I think it's mostly a usability tradeoff. If you can use the same data type for calendar appointments and high-precision performance logging, then you save your users the necessity of choosing be…
comment
If by BigInt you mean an arbitrary-precision integer type, then AFAIK no major language uses it to represent dates. If you mean a 64-bit integer type (which, to be fair, is 11 bits larger than what Ja…
comment
Over-under on when the first "ML-based approach to parsing JSON" story hits HN: 1.5 years from now.
comment
Interestingly, I recently encountered an issue in the wild where these two recursion limits are both prominently involved. Yew, the Wasm web framework, provides an html! macro that allows you to write…
comment
Flat. Which apparently raised some very important questions: https://twitter.com/BioGridGame/status/1101496659102650369 …
comment
Alternatively, you could have C/C++ as a third, discrete category somewhere in the middle of the C <---> C++ spectrum. For people who like namespaces, or overloading arithmetic operators fo…