Hacker Newsnew | past | comments | ask | show | jobs | submit | kh_hk's commentslogin

You can also inline python inside shell scripts, does that make them equal sets? :)

    life() {
      python3 << EOF
    print(42)
    EOF
    }

Well, at least I will be able to run my bash scripts in 5 years

I don't know Ruby, but chances are that your Python/JavaScript scripts are going to run in 5 years as well, if you stick to standard library.

Just don't use any NPM libraries (if possible) and you'll be fine. I personally wouldn't use typescript for this sort of thing.

Why not? You can have bun or even node these days run it directly.

I've been using node for a decade now and I've had to update NPM libraries a number of times as Node itself upgraded. I have a feeling it will get a lot more stable with ESM and the maturity of the language but if you're writing something you need to run 5-10yrs from now I wouldn't touch a library unless it's simple and has few of it's own dependencies.

Deno has used ESM from the beginning and it’s required on jsr.io. I agree about avoiding dependencies, but maybe it’s okay if they’re locked to a specific version.

and then your mamba changes

What's that even mean

no one knows what it means, but it's provocative!!

Fair. My bash scripts only broke 3 times over the years:

- when ls started quoting filenames with spaces (add -N)

- when perl stopped being installed by default in CentOS and AlmaLinux (had to add dnf install -y perl)

- when egrep alias disappeared (use grep -E)


>- when ls started quoting filenames with spaces (add -N)

Your fault: http://mywiki.wooledge.org/ParsingLs


Kinda tells you everything you need to know about the design of the system when using it the default way is utterly unsafe.

I consider luajit a much better choice than bash if both maintainability and longterm stability are valued. It compiles from source in about 5 seconds on a seven year old laptop and only uses c99, which I expect to last basically indefinitely.

Bash is not a great cross-platform choice. Too many subtle differences.

The best way is a scripting language with locked-down dependency spec inside the script. Weirdly .NET is leading the way here.


Stick to posix shell and it will run anywhere and on anything no matter how old.

Python with uv seems decent in here too.

python does EOL releases after 5 years. I guess versions are readily available for downloading and running with uv, but at that point you are on your own.

bash is glue and for me, glue code must survive the passage of time. The moment you use a high-level language for glue code it stops being glue code.


Hard disagree... I find that Deno shebangs and using fixed version dependencies to be REALLY reliable... I mean Deno 3 may come along and some internals may break, but that should have really limited side effects.

Aside: I am somewhat disappointed that the @std guys don't (re)implement some of the bits that are part of Deno or node compatibility in a consistent way, as it would/could/should be more stable over time.

I like Deno/TS slightly more because my package/library and version can be called directly in the script I'm executing, not a separate .csproj file.


>Too many subtle differences.

Such as?



How is any of that a subtle difference between platforms?

The tools you will call from your bash script differ in subtle ways between Linux, macOS, MinGW.

One good example is `uuidgen`


>uuidgen

That's neither a standard CLI utility nor a bash builtin.


Technically maybe, I don't know. But in practice, your bash will use tools like this and break if they are different / missing on a future build host.

If using a programming language with locked-down package dependencies, then all you need is the compiler/interpreter and your script will work.


For some quality of "run", because I'm hella sure that it has quite a few serious bugs no matter what, starting from escapes or just a folder being empty/having files unlike when it was written, causing it to break in a completely unintelligible way.

I guess we have wildly different expectatives of what a language is responsible for and what not.

Cries in DeaDBeeF


Brought to you by the creators (abstractly) of vibe coding, ralph and yolo mode. Either a conspiracy to deconstruct our view of reality, or just a tendency to invent funny words for novelty

It’s brainrot, that’s what it is.

I believe agentic coding could eventually be a paradigm shift, if and only if the agents become self-conscious of design decisions and their implications on the system and its surrounding systems as a whole.

If that doesn’t happen, the entire workflow devolves into specifying system states and behavior in natural language, which is something humans are exceedingly bad at.

Coincidently, that is why we have invented programming languages: to be able to express program state and behavior unambiguously.

I’m not bullish on a future where I have to write specifications on all explicit and implicit corner and edge cases just to have an agent make software design choices which don’t feel batshit insane to humans.

We already have software corporations which produce that kind of code simply because the people doing the specifying don’t know the system or the domain it operates in, and the people doing the implementing of those specifications don’t necessarily know any of that either.


We have programming languages because people don’t want to only write assembly.

Cool project. Here's some OT: where do people learn to make these videos? Fast paced but calm narration with chill music and sped up action mixed with regular speed. It's a matter of consuming a lot of this content until the form clicks, or you need to go to influ-school?

No influencer school, no video experience whatsoever actually

I watched TONs of youtube videos growing up and I guess I took inspiration from what I liked in each: fast pace, always shows what you are talking about on screen (no talking head), include tiny projects in the main one, explain the science, use an intro to captivate and an outro to nail the point, use music to drive rythme

I film and record audio with just my phone


Thanks! That kind of makes sense. It's always interesting to me when I see patterns that make videos work well, and I usually have a lot of questions about the production.

Another question that I hope is not disrespectful: does PCBWay and JLCPCB pay for brand placement during the video or was it just a tribute from your side?


Man iphones have come a long way

My wife has worked in marketing for years and setting up photo shoots/video shoots has changed massively. A huge amount of the video and pictures that don't require a specialized lense are just done with feature phones these days.

Yo. You have to make videos. Then, seeing videos that you like, you secretly try to “steal” those ideas you articulated.

Just don’t tell anybody you’re a copy-cat.


"Good artists borrow. Great artists steal." -- me

My recommendation for someone considering a minimalist / dumbphone / detox / whatever is to avoid expensive products that over-promise their utility. There's no middle ground, it's either usable or it is not, so any in between will just become e-waste eventually.

The alternative I went with, and which I recommend, is getting both a smartphone and a nokia shitphone (no internet). Then ask the carrier for a sim duplicate. These exist, and are in fact a new number that redirects to your number. Use and carry whichever you want, knowing that calls will all go to both phones.


I’m drawn to the idea of a dumb phone, but I can’t realistically move to one full time, as I need an Authenticator app for work. Also, losing mobile access to my password manager would be a nightmare. Going with a smart + dumb phone setup feels like a non-starter. That’s adding more complexity to life, not removing it.

I tend to delete apps from my phone if I find myself spending too much time on them. My “social” folder in the app drawer contains Phone, FaceTime, and Messages. Just the built-in stuff. It also helps to have a healthy level of distrust of these companies, so you don’t want to use their services in the first place.

This doesn’t make the phone “dumb”, but it does make it more of a utility device. I go through my apps pretty regularly looking for stuff to delete. I still have more apps than I’d like, but they are mostly boring (banking, healthcare, etc).

The only big issue that remains is the browser. I can’t get rid of it, but it is still a portal to YouTube, HN, and other such things. This has its pros and cons.


Speaking of e-Waste:

> Can Communicator be used as my primary phone?

Without them making a statement of how long they will provide security updates for, this could easily go like past phones of mine.

My work tightens their mobile security policy, and the device can no longer meet it. This is for both Android version and security updates. Happened to me a few times where I had to stop using a perfectly good phone which wasn't that old.

(Now I bought a Pixel I only use on wifi - 7 years of updates, and actually better for my WLB, since I leave work at home by default, or stuff a second phone in my pocket if I want to take it with)


> Without them making a statement of how long they will provide security updates

They said this:

  What version of Android will be supported?

  Communicator will run Android 16. We’re comfortable committing to 2 years of Android updates and 5 years of security updates.


I've never had a pixel phone last more than 3 years before it stopped turning on, all the way back to Nexus devices.

I'd stop buying them but everything else is bad in some other way. It is hilarious that the official Google phones have the fewest ads and forced app installs.


Why don't you have a work phone? How can you let an employer rule over what you do with your personal device?


I do have a work phone - which works only in wifi mode.

If it's super important, my regular cell gets called. My regular phone has 0 work stuff on it. My employer couldn't access personal stuff on it if they wanted to.


Did not know these existed. Just ordered a duo sim from my carrier, thanks!


Can you elaborate on the sim duplicate thing - I've never heard of that before - how would I go about getting one of those?


On my carrier it's called a MultiSIM. It's having two SIM cards with the same number. On most carriers you can set up if you want this extra SIM to have voice or data (or both). It's usually cheap.

It's true that having two devices might seem complicated, but this is the only setup that ended working out for me: when I know I won't need any smart features on my life, I am happy to go out with my dumphone without worrying about missing urgent calls.


smartwatches use those often, so perhaps that's something your carrier will have heard of / offer as a service


I just keep my iPhone locked up.

You can go to Screen Time and disable Safari and App Store.

You can protect it with a passcode, which is what I did.

After a few weeks I just got used to my phone being dumb.

Now these apps are unlocked, but the habit is there, and I use it for utility only.


So I see the merit of a well produced video, don't get me wrong. But wasn't this a bit of a lot of bluff for not so much content?


My impression the video isn't designed for people "inside baseball," and tries to establish context for "What even is this thing that you're working on?" I guess the author could add a skip if viewers don't want 5-minutes~ of Wii U background/context.

Here is a rough timestamped-link for skipping the context:

https://youtu.be/jlbcKuDEBw8?si=X1S3g2npigtWf5bk&t=303


LuaJIT can be extremely fast


While being stuck in a language version forever.


It's what everyone uses, anyways. The other versions have their own pitfalls.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: