Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Nvidia wants to put a watchdog chip next to every AI agent (madrobot.blog)
    —discuss
  2. Citrix confirms two NetScaler RCE zero-days exploited in attacks (bleepingcomputer.com)
    —discuss
  3. AI agent firm Instinct raises $1B in latest funding round (reuters.com)
    —discuss
  4. SpaceX's Starship makes orbital debut deploying Starlinks before early ending (reuters.com)
    —discuss
  5. Show HN: Learning a Language Through Literature (languagethroughliterature.com)
    1comments
  6. Prince of Persia (archive.org)
    —discuss
  7. What should we open source in the age of AI? (getmegaportal.com)
    —discuss
  8. Nobody Has a Good Answer for Agentic Identity Yet (fusionauth.io)
    —discuss
  9. Logo Design Trends in 2027 Favor Marks Someone Can Prove They Made (weandthecolor.com)
    —discuss
  10. Halting inputs by 2050 is insufficient to avoid marine microplastic accumulation (nature.com)
    —discuss
  11. A Vision-Language Model as a Teacher for Bird Vocalization Detection (biorxiv.org)
    —discuss
  12. The ACToRS in AI Framework (hedgehoglibrarian.com)
    —discuss
  13. Boulder County's wildfire risk eased after summer rain (boulderreportinglab.org)
    —discuss
  14. Setting Up a New iPhone 18 Pro with Apple Watch Series 12 (tidbits.com)
    —discuss
  15. Show HN: FastRecall, OpenRouter for Memory (fastrecall.ai)
    —discuss
  16. Wavelets in 3D Graphics (comonad.com)
    —discuss
  17. Can Muse make us forget the metaverse? (platformer.news)
    —discuss
  18. Show HN: Using 2D DFT, dithering, etc. to maximize eInk manga image quality (github.com/ciromattia)
    —discuss
  19. Durable Tasks in the Real World: What Problems Does It Solve? (tamirdresher.com)
    —discuss
  20. Pixi, a cross-platform, cross-language package manager (prefix.dev)
    —discuss
  21. Use of AI backfires on an expert witness at trial: "They have biases" (cbsnews.com)
    —discuss
  22. OpenCode launches higher tier for Go Plan (twitter.com/opencode)
    —discuss
  23. Comparing exception behavior of magic statics, std:call_once, and std:async (devblogs.microsoft.com/oldnewthing)
    —discuss
  24. First DVD player announced Sept 26, 1996 (dfarq.homeip.net)
    —discuss
  25. Hijacking the PS5's RTMP Stream (yashgarg.dev)
    —discuss
  26. Rick Manelius on Forward Deployed Executives [video] (youtube.com)
    —discuss
  27. Kids turned low-traffic NPR Spotify comments into a secret group chat (thisamericanlife.org)
    —discuss
  28. I asked across LLMs what is the best email provider: Resend is cited most (openllmrank.io)
    1comments
  29. What legal documents do startups need in the US? (stripe.com)
    —discuss
  30. Gevva0 – a Jev like decision engine on Gemma 26B via direct logit scoring (github.com/solvingsteve)
    —discuss

What makes Lisp difficult to read?

2 pointsby 35m agopaultm.nl
2 comments
17m agoHN ↗

I have not yet encountered a fully satisfying explanation as to why Lisp is perceived as being less readable.

Difficulty is, by definition, relative to one's skill. You cannot so quickly discount the fact that 99% of programming is taught in Java/C style language syntax. If you've had lifelong exposure to Lisp, you might feel exactly the opposite. The author does a poor job of justifying why these pop-cognitive-psych theories should have more weight than prior exposure.

Personally, as someone with decades of exposure to both styles, I look at the factorial example and see everything I love about Lisp syntax - consistent, no magic keywords and syntax to memorize, it represents a tree just like my mental model of code, there's no way to fall through and forget an else, expressions instead of statements, no early returns ... literally everything about the Lisp example is more readable to me. YMMV.

12m agoHN ↗

I tend to struggle with other people's indentation rules for code and other programming languages, like nobody liked my article that said you should carry indentation into embedded strings that represent other programming laguages like SQL

   result = sql.execute("""
      SELECT someColumn
      FROM thatTable
      WHERE anotherValue>55
        AND state='pending'
      ORDER BY createdDate
   """)

Ultimately the idea is that indentation should be influenced by semantics, the intention of the code, and not just the syntax. Of course that is against the "one way to indent" philosophy of Go, Biome, and such... But I might accept less than optimal indentation to put an end to tab wars once and for all.

I find indentation of Lisp always seems to fail at communicating in the semantics, much worse than other languages. Things like

   (if condition truePath falsePath)

are scrambled when your eye skips over something. If the Lisp community got over its respect for tradition perhaps they'd develop some kind of syntax highlighting or tooltips or something that would clarify this sort of structure.

About 90% of real language have subject-verb-object or subject-object-verb orders

https://en.wikipedia.org/wiki/Subject%E2%80%93object%E2%80%9...

verb-subject-object and verb-object-subject are more Lisp-like and represent 10% of languages including Standard Arabic, Finnish and Fillipino.

I like extreme parsimony, like I'd love to write stuff like

   format = lambda: `%1-%2`

but I think as complexity goes up depending on the meaningful order of elements breaks down in many ways and you need to give things meaningful names.