HNHacker News
TopNewBestAskShowJobs

david2ndaccount

1,196 karma · joined February 28, 2020

blog: https://www.davidpriver.com
submissionscomments
david2ndaccount··on Why hundreds of decades-old yet vital drugs are nearly impossible to find
Yosemite has running water, I don’t understand how you could think that it does not.
david2ndaccount··on Ask HN: Is SICP/HtDP still worth reading in 2023? Any alternatives?
Functional programming doesn’t help with multicore. The real problem with multicore programming is data dependency, of which mutability is merely a special case. functional programming doesn’t help prevent you from depending on a certain computation and forming the bottleneck of your program.
david2ndaccount··on Firefox has surpassed Chrome on Speedometer
Chrome’s wasm debugging is much better than firefox’s.
david2ndaccount··on The force that shapes everything around us: Parking
This sounds like the worst of both worlds. We should ban on-street parking regardless.
david2ndaccount··on The force that shapes everything around us: Parking
Many cities in the US are only usable by car. You can’t just leap from a car-based city to a non-car-based city, you have to provide transitionary options (also even car-optional cities still have parking garages).
david2ndaccount··on The force that shapes everything around us: Parking
Part of the problem is you can’t just convert an area to a pedestrian area as people still need to be able to get there. You need to construct low cost parking garages around the area so people can still get there.
david2ndaccount··on California's Death Valley crosses 53° Celsius as blistering heat wave continues
The coverage is strange as the reason Death Valley is so hot is due to its particular geography. With Telescope Peak at 11,000 feet on one side of the valley and a steep drop to Badwater below sea level the hot air is unable to escape/disperse and is instead repeatedly heated like an oven. Panamint Springs in the neighboring Panamint Valley is not nearly as hot.
david2ndaccount··on Show HN: A hash array-mapped trie implementation in C
I generally like this pattern, but why pass the allocator instead of the cookie?
david2ndaccount··on Polymorphism and other important aspects of inheritance
Note that plan9 and Microsoft compilers (and now clang with the right flag) allow the C structure embedding as well, see <https://9p.io/sys/doc/comp.html>, search for “Extensions”.
david2ndaccount··on Bret Victor update
There are sunglasses (normally worn by older people) that are meant to be worn over your normal glasses.
david2ndaccount··on Ask HN: Could you share your personal blog here?
Not a lot of content, but https://www.davidpriver.com
david2ndaccount··on Against Alcohol (2022)
It’s possible to enjoy life without needing chemicals to do so.
david2ndaccount··on Zellij New WASM Plugin System
I see that now, but then you can’t use the buffer navigation hotkeys. I’ll just stick with tmux.
david2ndaccount··on Zellij New WASM Plugin System
I just tried it out and it apparently highjacks normal command-line editing shortcuts like ctrl-n, ctrl-p, ctrl-h, etc.
david2ndaccount··on TSMC Expected to Charge $25,000 per 2nm Wafer
Javascript.
david2ndaccount··on Every Mastodon user has an RSS feed
Yep. This is how I follow people on youtube. So much more convenient.
david2ndaccount··on How VSCode made bracket pair colorization faster (2021)

    > look, I'm sorry, but the rule is simple:
    > if you made something 2x faster, you might have done something smart
    > if you made something 100x faster, you definitely just stopped doing something stupid
<https://twitter.com/rygorous/status/1271296834439282690?lang...>
david2ndaccount··on Have you been to the library lately?
Vagrancy used to be a crime.
david2ndaccount··on Show HN: Jonline, AGPLv3 Social Network Built with Rust, Flutter, React, gRPC
Neither link works:

    Secure Connection Failed
    
    An error occurred during a connection to jonline.io. PR_END_OF_FILE_ERROR
    
    Error code: PR_END_OF_FILE_ERROR
    
    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.
david2ndaccount··on Ask HN: What would you do if you had the summer off as a technologist?
Pacific Crest Trail.
david2ndaccount··on The Last Egg
See one of their previous posts: <https://brr.fyi/posts/last-flight-out>
david2ndaccount··on The C Standard Library Function Isspace() Depends on Locale
Yep.

Because of the terribleness of locales, you should always just roll your own to handle ascii, or use an explicitly unicode-aware function. Anything in libc that relies on locale is unusable because of this.

Besides, isspace is such a trivial function that you don’t want to actually call an extern function (possibly even dynamically linked and thus having to hit the PLT) for it, you want something that is easily inlined.

david2ndaccount··on Modern C (2019)
You can’t pass an array by value and you can’t pass a pointer with a corresponding length of non-fixed size (you can actually with VLAs, but frankly the syntax sucks and not all compilers support it). This missing language feature has led to horrible things like nil-terminated strings , a million bespoke ways to encode the length of the array, or just functions that pray you have enough space like `strcpy` and `gets`.
david2ndaccount··on Modern C (2019)
I enjoy programming in C a lot, though I wish they would fix C's biggest mistake[1].

[1] <https://digitalmars.com/articles/C-biggest-mistake.html>

david2ndaccount··on Google open-sources Rust crate audits
Python and Javascript programmers so massively outnumber all other programmers that they are the majority of people converting to any language.
david2ndaccount··on Show HN: Trogon – An automatic TUI for command line apps
For various reasons, I use the stdlib argparse library. Will this work with that?
david2ndaccount··on Last update of Safari has problems displaying JPEGs
Safari itself didn’t support webp until a year or two ago.
david2ndaccount··on My comments on BasedCon
Sounds like a lot of controversy over nothing.
david2ndaccount··on GCC 13 Supports New C2x Features, Including Nullptr, Enhanced Enumerations
Clang has had it as an extension for a long time
david2ndaccount··on Exercise increases number of immune cells in cancer patients
Cycling has its own risks as it can reduce bone density if you cycle instead of walking or other forms of exercise.
← PreviousPage 4 of 10Next →