HNHacker News
TopNewBestAskShowJobs

morning-coffee

412 karma · joined May 9, 2023

submissionscomments
morning-coffee··on Safety vs. Performance. A case study of C, C++ and Rust sort implementations
> I worked in embedded space for years. Rust does not suit that environment.

It seems to be getting better though. For example... https://tweedegolf.nl/en/blog/65/async-rust-vs-rtos-showdown

morning-coffee··on Safety vs. Performance. A case study of C, C++ and Rust sort implementations
easiest to blow your foot off with, yes.
morning-coffee··on Burning money on paid ads for a dev tool – what we've learned
> Developers avoid ads like the plague.

Yep. As a developer, running a pihole, I don't see any ads and I wouldn't click even if I did.

I thought the tl;dr; of the article was going to be along the lines of "if you're selling a "developer tool", don't bother buying ads because "developers" (i.e. your customers) are likely going to lengths to not see these ads in the first place.

morning-coffee··on Show HN: A “CRM” for personal relationships
That's why I suggested it... I myself am diagnosed ASD and have realized the amount of time spent finding, curating, tinkering with these "life-hacking" apps... and the diminishing returns they all produce. By all means, use a Contacts, Calendar, and ToDo app to get a reminder... Then take any spare time remaining and actually get out and connect with the people you care about, instead of endlessly optimizing, in solitude, in front of a device, the systems and processes around the meta for personal relationships.

The premise that one of the myriad of other tools that already exist to get a reminder to connect with someone you care about are somehow so insufficient, and that if only I had this new CRM app for personal relationships that I'd finally be able to cultivate those relationships like I've always wanted, is just so preposterous sounding to me that I felt I had to comment.

morning-coffee··on Show HN: A “CRM” for personal relationships
If "relationships matter" and you need an app to remind you of that, I'd posit you have a larger problem than any app can solve. Consider putting down the device and connecting with your peeps in the real world every once in a while.
morning-coffee··on No-more-secrets: recreate the decryption effect seen in the 1992 movie Sneakers
> Yes, and it boggles my mind why C/C++ hasn't come up with a better built-in build system already.

Wait... you didn't get the memo? They did, and renamed the language in the process... it's called Rust. ;)

morning-coffee··on File for divorce from LLVM
(Rust user here, but admirer from afar of Zig and the principles it seems rooted in.)

My peanut gallery observation is that a very bright person named Andrew set out on a journey of hard work to come up with a new language. Along the way he (and others) solved many tough ancillary problems related to the toolchain of this new language and how it should provide a useful path for interoperability and migration from code written in other languages.

The toolchain innovations were noticed, embraced, and leveraged by users of other languages as it made their lives easier in contexts where they weren't even using the Zig language.

Now, for Andrew to make even more innovative progress on his endeavor, he needs to undo some of the toolchain innovation and remove complexity that was initially used to bootstrap his endeavor. Removing complexity (from language) is one of the admired traits of this bright person, and here they are applying that good trait again to move the whole project forward.

But 'lo! Other users of the toolchain innovation will be affected... some would say they even appear "entitled" to these innovations... as if their collective need somehow outweighs Andrew's right to direct his energies to his project in the way he decides.

This whole thing smells like a story I read once... I think it was called "The Fountainhead".

morning-coffee··on The rule says, “No vehicles in the park”
I got 12%, and after also not knowing what it means, and seeing no units whatsoever on the y-axis of the chart, have to leave feeling the author completely and utterly missed their opportunity to convince me of whatever argument they were making. You lose me completely at inability to convey meaningful data from the experiment.
morning-coffee··on Imaginary problems are the root of bad software
Try to find other real problems to work on that are different from your current boring parts? The new problems might eventually become boring as well, but often the change and fresh perspective is enough to pique your interest in a motivational and productive way.
morning-coffee··on Imaginary problems are the root of bad software
^ this ^

Until we figure out a nice metric for "removing complexity" and then rewarding for it, it's not likely to change, IMO.

morning-coffee··on Effective Rust (2021)

  > "the very existence of this discussion validates the need for this book."
Or it could also mean that some folks involved in this discussion haven't yet read the chapter[1] in "The Book" that explains when to panic and when not to[2]?

[1] https://doc.rust-lang.org/stable/book/ch09-00-error-handling... [2] https://doc.rust-lang.org/stable/book/ch09-03-to-panic-or-no...

morning-coffee··on Effective Rust (2021)
How does anyone on the stack above handle this error? i.e. what can be done programmatically to deal with it?

I claim this is far worse than panic in this case... you've now introduced a code path variant that folks above think is "legitimate" or caused by some input or something in the environment that could be changed to make it go away... but that's not the case here... the only thing that can be fixed is the code in question to not be in this region if the array length is 2 or less. It's a plain old "bug" and the only cure (other than more cowbell) is to modify source and recompile.

morning-coffee··on Effective Rust (2021)
https://docs.rs/no-panic/latest/no_panic/ might be what you're looking for
morning-coffee··on Effective Rust (2021)
I appreciate the author's efforts and amount of time that went into this. But, IMHO, there are some things that are just plain bad advice:

e.g. https://www.lurklurk.org/effective-rust/panic.html

  "Another sensible use of panic!, even in library code, is in situations where it's very rare to encounter errors, and you don't want users to have to litter their code with .unwrap() calls."
The litmus test for panic! vs. Result<T,E> is not rarity of occurrence, it's whether the condition represents a programming bug or a recoverable error. A good treatise on this topic here: https://joeduffyblog.com/2016/02/07/the-error-model/#bugs-ar...
morning-coffee··on There's still no silver bullet
> There's still no silver bullet

Except for Rust... it's awesome. ;)

...and Generative AI... put that in all the things, now.

(More seriously, it's good to be reminded of Brooks' work.)

morning-coffee··on “Rewrite It in Rust” Considered Harmful? [pdf]
Exactly. No one is saying "rewrite it in Rust because it already works". They typically say it because the thing in question is a bug farm, or it's really difficult to maintain.

I looked for the author's (whoever they are) proposed solution and it's this:

"This is because many of the FFI bugs surveyed are fundamentally cross-language issues. Instead, we propose that both C and Rust must conform to a shared, formally-based domain-specific language, which provides a safe-by-construction abstraction over the FFI boundary."

Such a thing is a "new thing", and isn't going to retroactively apply to the legacy C code written before this new thing... so how does that help?

(Full disclosure: I'm a professional programmer who has written in C, C++, C# for many years, and now I choose to write new things in Rust.)

morning-coffee··on I Block Ads
Would love to see links to information on how to block some of the particular avenues mentioned. Some I haven't heard of yet.

I use a pi-hole and uBlock Origin, but am always up to learn more...

morning-coffee··on Same Stop: Life after 26 years as a programmer for Apple
Just can't help but share: (I Have People Skills!)[https://www.youtube.com/watch?v=fcIMIyQnOso]
morning-coffee··on Same Stop: Life after 26 years as a programmer for Apple
Programmer at Microsoft (still) for 27 years here. The pressure to "grow your career" (usually by moving into management) was and is ever-present. I've never been managed out, but have had numerous conversations with managers over the years along the lines of "look, I just love to write code and work with other people who love to write code too." I consider success to be defined by me in the feelings I derive from the work I do, the simplicity of the code I write, and the knowledge that its valuable in solving problems that my employer wants to see solved. Yet, the culture seems to still be fixated on measuring success by steady progression of increasing levels or changing titles. Whatever... it's for each of us, corporate ladder climbers included, to define what success means for ourselves and how to go about achieving it, I suppose.
morning-coffee··on IRS tests free e-filing system that could compete with tax prep giants
One way for it not to cost tax payers billions of dollars to drastically simplify the tax code while they are at it. A big part of the cost is directly attributable to the complexity of the rules to be followed to figure out how much to pay based on your circumstances. Throw all that nonsense out and all that should be left is a relatively simple "You made X, so you owe X * rate"
morning-coffee··on Taxonomy of Procrastination
> Here is ChatGPT-4's summary of the techniques in the book

Ugh. Now I need to decide if ChatGPT hallucinated something in this summary, or if its otherwise factual.

morning-coffee··on VSCode config to disable annoyances – telemetry, notifications, welcome pages
That's what the title sorta implies, but that's not what this is. It's just someone's configuration set to turn off telemetry for vscode and some of its known plugins, AFAICT.
morning-coffee··on I've mostly stopped reading technical mailing lists
Yeah, as an old-timer (started coding int he 80's), I find it more difficult to find the information I'm looking for in general, but especially on Discord, where the questions and replies come with much higher volume, and the signal/noise ratio seems lower. Trying to search past discussions to avoid asking something that's already been answered simply takes too long. Maybe I just feel the need to read each in the hopes I don't miss something?

I generally liked mailing lists back in the day when people took the time to craft very specific questions and responded with succinct answers. The results seemed more easily searchable to find relevant threads, which I would feel good about reading in detail, or skipping entirely.

I dunno... maybe there are just way more people asking questions or participating nowadays (regardless of whether it's in a forum, Discord, or Github), so the volume of information is naturally way up, or maybe it's our cultural shift to "more of everything in less time" (so people aren't averse to searching first and posting after not finding vs. asking something previously answered), but the end result for me is a feeling of trying to find the interesting conversations in a party held in a packed stadium vs. a party held in someone's living room.

morning-coffee··on After 20 Years as a Prosecutor in Illinois, I Quit
> It is time to solve these problems like Europe does, and one step is incarceration going down to three times the rate of China, as opposed to over four times.

But correlation does not imply causation, right? I don't understand how it follows from noting our incarceration rate being higher than another place with less crime, and then reaching the seeming conclusion that the answer, therefore, is to stop putting people in jail.

morning-coffee··on One line of code that did cost $8k
Some of us are software engineers (not just hackers and makers) and feel compelled to point out that if you're writing code which points firehoses of internet traffic at end users of your app, you should be aware of techniques to ensure that code is functioning correctly.

I would have loved to read mention of "testing" or "regression tests" in the author's summary of learnings. "Be careful" and "monitor bandwidth" don't really resonate with me as a sign the author gets it yet.

← PreviousPage 5 of 5