Readit News logoReadit News
slaymaker1907 commented on Using Python for Scripting   hypirion.com/musings/use-... · Posted by u/birdculture
archargelod · 3 days ago
If a script is simple - I use posix sh + awk, sed, etc.

But if a script I write needs to use arrays, sets, hashtable or processes many files - I use Nim[0]. It's a compiled systems-programming language that feels like a scripting language:

- Nim is easy to write and reads almost like a pseudocode.

- Nim is very portable language, runs almost anywhere C can run (both compiler and programs).

- `nim r script.nim` to compile and run (cached on subsequent runs) or use a shebang `#!/bin/env -S nim r`

- Nim programs are fast to compile (use debug mode and tcc compiler for almost instant compile times)

- Nim scripts run very fast <10ms (something that was very annoying to me with bash and Python)

- good chances you don't need external dependencies, because stdlib is batteries included and full of goodies.

- if you need external deps - just statically link them and distribute a cross-compiled binary (use zigcc[1] for easy Nim cross-compilation).

[0] - https://nim-lang.org

[1] - https://github.com/enthus1ast/zigcc

slaymaker1907 · 3 days ago
I might need to try it out. However, I haven't really found a use case yet where the speed of Python has been a major factor in my day job. It's usually fast enough and is a lot easier to optimize than many languages.

I actually sped up a script the other day that had been written in bash by 200x by moving it over to Python and rewriting the regexes so they could run on whole files all at once instead of line by line. Performance problems are most often from poorly written code in my experience, not a slow language.

slaymaker1907 commented on We should all be using dependency cooldowns   blog.yossarian.net/2025/1... · Posted by u/todsacerdoti
layer8 · 25 days ago
People in this thread are worried that they are significantly vulnerable if they don't update right away. However, this is mostly not an issue in practice. A lot of software doesn't have continuous deployment, but instead has customer-side deployment of new releases, which follow a slower rhythm of several weeks or months, barring emergencies. They are fine. Most vulnerabilities that aren't supply-chain attacks are only exploitable under special circumstances anyway. The thing to do is to monitor your dependencies and their published vulnerabilities, and for critical vulnerabilities to assess whether your product is affect by it. Only then do you need to update that specific dependency right away.
slaymaker1907 · 23 days ago
And it needs to be said that you generally cannot tell if a vulnerability is critical for a given application except by evaluating the vulnerability in the context of said application. One that I've seen is some critical DoS vulnerability due to a poorly crafted regex. That sort of vulnerability is only relevant if you are passing untrusted input to that regex.
slaymaker1907 commented on Prozac 'no better than placebo' for treating children with depression, experts   theguardian.com/society/2... · Posted by u/pseudolus
EB66 · 25 days ago
I also had a close family member who committed suicide shortly after going on Prozac -- this also happened nearly 30 years ago. His young son later went on Prozac himself (several months after his fathers suicide) and immediately started demonstrating bizarre disinhibited anti-social behavior (e.g., damaging property, stealing from friends, etc). He was immediately yanked off Prozac when he started articulating his own thoughts of suicide. The bizarre anti-social behavior improved after discontinuing Prozac.

For some people, Prozac is a very dangerous drug. It is fully deserving of its FDA black label warning (which it didn't have 30 years ago).

slaymaker1907 · 25 days ago
That sounds like mania which is even more likely considering that early depression is often actually bipolar.
slaymaker1907 commented on IDEmacs: A Visual Studio Code clone for Emacs   codeberg.org/IDEmacs/IDEm... · Posted by u/nogajun
skydhash · a month ago
VSCode rely on familiar pattern and UX to let you get started easily. But out of the box, it's pretty much notepad level. Vim and Emacs start from the premises that you need powerful tools. And they give them to you alongside the possibility to integrate external tools easily with the editor workflow. With VSCode any integration needs to be a full project. With emacs and vims, it's a few lines of config.
slaymaker1907 · a month ago
You absolutely don't need extensions for JS development. It is absolutely NOT notepad level. In my experience with beginners, installing an extension is also incredibly easy compared to getting them to edit some vim/emacs config.
slaymaker1907 commented on OpenAI may not use lyrics without license, German court rules   reuters.com/world/german-... · Posted by u/aiz0Houp
freejazz · a month ago
It's a good decision because it must be an incredible minority of people who only listen to music when the lyrics can be displayed. I'd imagine most people aren't even looking at the music playing app while listening to music. Regardless, they are copyrighted and they get license fees from parties that do license them and they make money that way. Likely much more money than they would make from the streams they are losing from you.
slaymaker1907 · a month ago
I think it depends on the music. Most people will have a greatly improved experience when listening to opera if they have access to (translated) lyrics. Even if you know the language of an opera, it can be extremely difficult for a lot of people to understand the lyrics due to all the ornamentation.
slaymaker1907 commented on OpenAI may not use lyrics without license, German court rules   reuters.com/world/german-... · Posted by u/aiz0Houp
EnPissant · a month ago
This is a tough one for the HN crowd. It's like that man not sure which button to push meme.

1) RIAA is evil for enforcing copyrights on lyrics?

2) OpenAI is evil for training on lyrics?

slaymaker1907 · a month ago
Why not both? As the GP mentioned, lyrics are also invaluable for people besides training for AI.
slaymaker1907 commented on OpenAI may not use lyrics without license, German court rules   reuters.com/world/german-... · Posted by u/aiz0Houp
lokar · a month ago
The composition and lyrics are owned separately from the recorded performance.
slaymaker1907 · a month ago
I'm pretty sure you could even have lyrics with a separate copyright from the composition itself. For example, you can clearly have lyrics without the music and you can have the composition alone in the case that it is performed as an instrumental cover or something.
slaymaker1907 commented on Claude Code on the web   anthropic.com/news/claude... · Posted by u/adocomplete
mmaunder · 2 months ago
We were heavy users of Claude Code ($70K+ spend per year) and have almost completely switched to codex CLI. I'm doing massive lifts with it on software that would never before have been feasible for me personally, or any team I've ever run. I'll use Claude Code maybe once every two weeks as a second set of eyes to inspect code and document a bug, with mixed success. But my experience has been that initially Claude Code was amazing and a "just take my frikkin money" product. Then Codex overtook CC and is much better at longer runs on hard problems. I've seen Claude Code literally just give up on a hard problem and tell me to buy something off the shelf. Whereas Codex's ability to profoundly increase the capabilities of a software org is a secret that's slowly getting out.

I don't have any relationship with any AI company, and honestly I was rooting for Anthropic, but Codex CLI is just way way better.

Also Codex CLI is cheaper than Claude Code.

I think Anthropic are going to have to somehow leapfrog OpenAI to regain the position they were in around June of this year. But right now they're being handed their hat.

slaymaker1907 · 2 months ago
I haven’t used Codex a lot, but GPT-5 is just a bit smarter in agent mode than Claude 4.5. The most challenging thing I’ve used it for is for code review and GPT-5 somewhat regularly found intricate bugs that Claude missed. However, Claude seemed to be better at following directions exactly vs GPT-5 which requires a lot more precision.
slaymaker1907 commented on What happens when coding agents stop feeling like dialup?   martinalderson.com/posts/... · Posted by u/martinald
SideburnsOfDoom · 3 months ago
You mean "It can’t be that stupid, you must be prompting it wrong"
slaymaker1907 · 3 months ago
My favorite is when someone is demoing something that AI can do and they have to feed it some gigantic prompt. At that point, I often ask whether the AI has really made things faster/better or if we've just replaced the old way with an opaque black box.
slaymaker1907 commented on YouTube addresses lower view counts which seem to be caused by ad blockers   9to5google.com/2025/09/16... · Posted by u/iamflimflam1
euLh7SM5HDFY · 3 months ago
It was mostly panic. As in: it didn't apparently affect revenue in any way, but content creators always check view stats/graphs for their own videos to see how well each of them is doing. So sudden drop made YT the main suspect. It didn't help some changes to video visibility for "children" profiles was pushed at same time.
slaymaker1907 · 3 months ago
The interesting question is how/if this impacts the recommendation engine. If it does impact recommendations, then that will directly penalize channels with more adblock users.

u/slaymaker1907

KarmaCake day2511November 22, 2016View Original