frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

My Lights Run on Bash

https://kramkow.ski/article/2025/06/27/my_lights_run_on_bash.html
38•todsacerdoti•8h ago

Comments

Rediscover•4h ago
It's time for me to re-read the man page for bash. I was not aware of BASH_REMATCH, wow. It's in the first snippet on the linked page, and would save the hassle of using multiple var expansions of the %% and ## et al sort.
tecleandor•3h ago
Oh yeah! I was unaware too! Nowadays I quickly jump to python instead of using Bash even for the simplest of scripts , but this could help creating tiny and easy to understand scripts for some integrations...
enriquto•3h ago
> I quickly jump to python instead of using Bash even for the simplest of scripts

You don't seem to respect the old, venerable, well-tested adage: "once your shell script becomes too complex, switch to a real programming language like python".

Or, the zen version (formally equivalent, but with quite a different tone): "once your program becomes sufficiently simple, turn it into a beautiful shell script".

skydhash•1h ago
The true power of shell script is to coordinate programs. Once you find yourself altering data with the shell constructs, that's the sign to use $LISP instead.
alganet•2h ago
Yes, but also:

https://wiki.ubuntu.com/DashAsBinSh#Why_was_this_change_made...

> [bash] is rather large and slow to start up and operate by comparison with dash

For more complex regular expressions, you can use `sed`.

--

It's all a matter of context. Sometimes simple ## and %% param substitutions are the best tool for the job.

I think bash is a fantastic interactive shell and a lousy script runner.

sunshine-o•3h ago
MQTT is a fantastic protocol.

I basically do the same as the author but use nutshell and its powerful pattern matching [0] as the router

-[0] https://www.nushell.sh/cookbook/pattern_matching.html#patter...

sunshine-o•3h ago
For those using termux, termux widgets are exposed to Android device control so you don't need the MqttDroid app
Arch-TK•3h ago
Interesting... I didn't know about this, although I was pretty satisfied with the simplicity of MqttDroid (after I fixed a bug: https://github.com/LightJockey/MqttDroid/pull/3). Will investigate to compare.

Show HN: I'm an airline pilot – I built interactive graphs/globes of my flights

https://jameshard.ing/pilot
762•jamesharding•6h ago•130 comments

Qwen VLo: From "Understanding" the World to "Depicting" It

https://qwenlm.github.io/blog/qwen-vlo/
117•lnyan•5h ago•37 comments

Transmitting data via ultrasound without any special equipment

https://halcy.de/blog/2025/06/27/transmitting-data-via-ultrasound-without-any-special-equipment/
45•todsacerdoti•2h ago•7 comments

Weird Expressions in Rust

https://www.wakunguma.com/blog/rust-weird-expr
99•lukastyrychtr•4h ago•71 comments

10 Years of Pomological Watercolors

https://parkerhiggins.net/2025/04/10-years-of-pomological-watercolors/
115•fanf2•5h ago•16 comments

Whitesmiths C compiler: One of the earliest commercial C compilers available

https://github.com/hansake/Whitesmiths-C-compiler
72•todsacerdoti•4d ago•18 comments

Parameterized types in C using the new tag compatibility rule

https://nullprogram.com/blog/2025/06/26/
112•ingve•14h ago•50 comments

Bitmovin (YC S15) Is Hiring a Junior Solutions Engineer in Denver

https://bitmovin.com/careers/7943569002/
1•slederer•2h ago

Project Vend: Can Claude run a small shop? (And why does that matter?)

https://www.anthropic.com/research/project-vend-1
69•gk1•3h ago•18 comments

PJ5 TTL CPU

https://pj5cpu.wordpress.com/
61•doener•12h ago•1 comments

Show HN: Zenta – Mindfulness for Terminal Users

https://github.com/e6a5/zenta
150•ihiep•11h ago•32 comments

Sailing the fjords like the Vikings yields unexpected insights

https://arstechnica.com/science/2025/06/this-archaeologist-built-a-replica-boat-to-sail-like-the-vikings/
123•pseudolus•4d ago•43 comments

Alternative Layout System

https://alternativelayoutsystem.com/scripts/#same-sizer
340•smartmic•1d ago•54 comments

Show HN: Sink – Sync any directory with any device on your local network

https://github.com/sirbread/sink
86•sirbread•13h ago•72 comments

Slightly better named character reference tokenization than Chrome, Safari, FF

https://www.ryanliptak.com/blog/better-named-character-reference-tokenization/
6•todsacerdoti•19h ago•0 comments

XSLT – Native, zero-config build system for the Web

https://github.com/pacocoursey/xslt
360•_kush•14h ago•292 comments

The time is right for a DOM templating API

https://justinfagnani.com/2025/06/26/the-time-is-right-for-a-dom-templating-api/
189•mdhb•1d ago•194 comments

My Lights Run on Bash

https://kramkow.ski/article/2025/06/27/my_lights_run_on_bash.html
38•todsacerdoti•8h ago•8 comments

Show HN: Do You Know RGB?

https://maxwellito.github.io/do-you-know-rgb/
6•maxwellito•3d ago•1 comments

Show HN: I built Hispi, an app to design custom jewellery

https://hispi.app
3•camjw•3d ago•0 comments

Why is the Rust compiler so slow?

https://sharnoff.io/blog/why-rust-compiler-slow
265•Bogdanp•1d ago•339 comments

Copilot Chat in VS Code is now open source

https://github.com/microsoft/vscode-copilot-chat
92•ulugbekna•8h ago•25 comments

Starcloud can’t put a data centre in space at $8.2M in one Starship

https://angadh.com/space-data-centers-1
166•angadh•23h ago•286 comments

I Switched from Flutter and Rust to Rust and Egui

https://jdiaz97.github.io/greenblog/posts/flutter_to_egui/
219•jdiaz97•3d ago•117 comments

A Lisp adventure on the calm waters of the dead C (2021)

https://mihaiolteanu.me/language-abstractions
64•caned•3d ago•24 comments

One Architect's Quest to Save Mumbai's Heritage from Disappearing

https://www.bloomberg.com/news/features/2025-06-18/architect-abha-narain-lambah-on-conserving-gateway-of-india-mumbai-heritage
7•MarlonPro•3d ago•0 comments

Blazing Matrix Products

https://panadestein.github.io/blog/posts/mp.html
48•Bogdanp•13h ago•7 comments

AI is ruining houseplant communities online

https://www.theverge.com/ai-artificial-intelligence/691355/ai-is-ruining-houseplant-communities-online
5•rntn•1h ago•0 comments

Calculating the Fibonacci numbers on GPU

https://veitner.bearblog.dev/calculating-the-fibonacci-numbers-on-gpu/
33•rbanffy•4d ago•20 comments

VA Tech scientists are building a better fog harp

https://arstechnica.com/science/2025/06/these-va-tech-scientists-are-building-a-better-fog-harp/
45•PaulHoule•3d ago•25 comments