Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Jev vs. classical ML. Strong on sentiment: Mixed across tasks(quicqdev.github.io ↗)
    discuss
  2. Is Jev the general-purpose classifier we've been waiting for?(twitter.com/kris_cvetko ↗)
    1comments
  3. Dragonfly 2.0: more performance for Redis and Memcached replacement(phoronix.com ↗)
    discuss
  4. AI and the Destruction of the Creative Commons(chesterwisniewski.com ↗)
    discuss
  5. Show HN: WTF > Auto-check what your coding agent changed(github.com/linusinnovator ↗)
    discuss
  6. Joe Shipman proves marked ruler and compass solves the general quintic
    discuss
  7. PDF Forgeries Are Surprisingly Rare (2022)(gwern.net ↗)
    discuss
  8. Hyperbolic Navigation(wikipedia.org ↗)
    discuss
  9. Away Goals Rule(wikipedia.org ↗)
    discuss
  10. Enterprise Cyber Risk Management(andersenlab.com ↗)
    discuss
  11. Be Careful with Your Select * Queries(notesonsystems.com ↗)
    1comments
  12. TeaonherChecker(teaonher.org ↗)
    discuss
  13. Leaping Sun Dogs (2016) [video](youtube.com ↗)
    discuss
  14. Jev is the fastest-adopted model in AI Gateway history(vercel.com ↗)
    1comments
  15. A font that reads what you wrote(rohanadwankar.github.io ↗)
    1comments
  16. A deep dive into Jev, TypeSafe's System One model(flaviocopes.com ↗)
    discuss
  17. CoyoPedal – Full-Size Neural Amp Modeler Captures on an ESP32-S3(github.com/dashersw ↗)
    discuss
  18. I'm so bad at billiards that I ended up in the hyperbolic plane [video](youtube.com ↗)
    discuss
  19. MIT Just Proved LLMs Will Stop Getting Smarter, and Money Won't Fix It [video](youtube.com ↗)
    discuss
  20. Show HN: Delightful Cells – reliable AI batch processing for spreadsheets(delightfulcells.com ↗)
    1comments
  21. Clawptcha: Reverse Captcha(clawptcha.com ↗)
    discuss
  22. Neutron Radiation, Emission and Scattering (Neutron Chemistry)(ossila.com ↗)
    discuss
  23. Drop-in Django app to serve a decent LLM-ready documentation site(chesselink.com ↗)
    1comments
  24. I built an extension that hides your personal information from AI(github.com/arikchakma ↗)
    discuss
  25. Show HN: I-server: Hide server using ICMP reflection/Destination Unreachable(github.com/hajoon22 ↗)
    discuss
  26. Benchmarking Wild vs. Mold(davidlattimore.github.io ↗)
    discuss
  27. Microsoft agentically ports Copilot runtime to Rust for $120K(theregister.com ↗)
    discuss
  28. Why China is pushing back on US warnings over rapid AI development(theguardian.com ↗)
    1comments
  29. Boston to Calcutta Ice Trade Began with One Shipment(curiowire.com ↗)
    discuss
  30. Show HN: Book recommendations with live library availability(nanosheep.net ↗)
    4comments

Telling a Computer to Do Things

33 pointsby 5h agowill-keleher.com
9 comments
3h agoHN ↗

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

2h 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.

2h 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.

2h 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.

1h agoHN ↗

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

I'd even drop the "if" from their footnote version, 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.

1h 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.

1h agoHN ↗

That philosophical point about what it even means to "tell a computer to do things" is a good one. Sure, clicking around in a GUI is also telling the computer what to do. But there's a huge difference between using someone else's abstraction and building your own from scratch. The article is about that second part - the ability to throw stuff together however you want. With a GUI, you're stuck with whatever the designer thought of. With a shell, you can build just about anything

16m agoHN ↗

Your next homework assignment is to write your own scripting language that emits asm. Then you'll be one step closer to understanding what it really means to tell your computer to do things!