173 karma · joined March 17, 2021
Edit: I missed some of the context, comment above is re you-tldr, not kagi which I haven’t tried.
Disclaimer: I watched the video but didn’t read the paper.
Nonsense, writing is easy! Just dictate some rough instructions to a GPT agent and copy/paste its response.
I’m being facetious, of course - writing is thinking, so I don’t think it’s necessarily going anywhere, though AIs can obviously augment or replace a lot of the busywork. Where ChatGPT is used to generate content absent thoughtful prompting, the stuff it spits out will largely be regarded as spam.
use regex::Regex;
fn strip_suffix_digits(s: &str) -> &str {
let re = Regex::new(r"_\d+$").unwrap();
re.replace(s, "").as_ref()
}
As someone who does not program in Rust I find that quite readable, though I haven’t run it and can’t comment on how it compares outside of LOC. It does depend on the regex crate though.I don’t write Rust but I think it’s best to trust your instinct here. “Now you have two problems” is a humorous quip and not practical coding advice. Using a regular expression to strip trailing digits from a string will surely result in code that is shorter and more readable than the alternatives, and it will probably be more correct too.
The article: “I arrive in Taiwan brooding morbidly on the fate of democracy.”
I don’t think site-level consistency is as important or prevalent as you’d think.
Well it is called artificial intelligence. But in all seriousness, they no doubt have brilliant people working there. I don’t however consider them to be a tech company, at least in the traditional sense. Scientific? Absolutely, but their nonprofit roots are really showing through.
Wouldn’t it be impressive if I did?
I love seeing IronyAI called out like this.
I mean, I did use 3 out of 8 points to rag on ethicists.
Best practice is to forget everything you ever learned in a 101 class. And don’t bring logic to a word fight.