Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. GPT-6 Sol and Luna(openai.com)
    425comments
  2. Claude Opus 5.5(anthropic.com)
    645comments
  3. OpenAI GPT–6 Astra breaks Enigma message that has resisted solution since 2005(cryptocellar.org)
    338comments
  4. 'We hacked the FBI:' Hackers say they have data on all FBI employees(404media.co)
    37comments
  5. SAML: A Fractal of Bad Design(trailofbits.com)
    21comments
  6. Obscura: The first VPN that can't log your activity(obscura.com)
    33comments
  7. Claude Opus 5.5 Intelligence, Performance and Price Analysis (Max)(artificialanalysis.ai)
    49comments
  8. WordPress: Unauthenticated path traversal leading to conditional RCE(github.com/wordpress)
    54comments
  9. Unreal Agent(unreallabs.ai)
    38comments
  10. What California is learning from solar panels built over irrigation canals(kqed.org)
    4comments
  11. Native apps written in TypeScript and CSS(github.com/geastack)
    6comments
  12. Explaining to business people why building software is still hard(manager.dev)
    31comments
  13. Did OpenAI solve the wrong Navier-Stokes problem?(scientificamerican.com)
    5comments
  14. An update on how we confirm your age group on Discord(discord.com)
    5comments
  15. OpenAI is well positioned to fast-follow Jev(arcturus-labs.com)
    166comments
  16. Show HN: Training a model to identify AI web content from structure alone(arxiv.org)
    4comments
  17. MUNI Heritage Weekend in San Francisco(lawrence.lu)
    30comments
  18. Show HN: JevBench, a reproducible benchmark for typed decision models(benchmarkheaven.com)
    1comments
  19. Markdown in /src(htmx.org)
    12comments
  20. How did AMD Ryzen get 50% faster in two years?(lemire.me)
    19comments
  21. Overreliance on AI contributed to missile strike on Iran school – Pentagon(bloomberg.com)
    114comments
  22. 16-bit Intel 8088 chip (c. 1985)(allpoetry.com)
    12comments
  23. The JavaScript Midlife Crisis(maroun-baydoun.com)
    3comments
  24. A Faster Shortest Path Algorithm(vals.ai)
    4comments
  25. Launch HN: Coverage Cat (YC S22) – Umbrella insurance via your personal agent(coveragecat.com)
    19comments
  26. George Lucas Returns to Earth, Bearing Gifts(commonedge.org)
    14comments
  27. There's a high chance of devices being sold with GrapheneOS preinstalled in 2027(grapheneos.social)
    84comments
  28. Apple has added persistent 'ads' to iOS, and it's driving users crazy(techradar.com)
    385comments
  29. People hooked on vapes try a new way to quit: cigarettes(bloomberg.com)
    38comments
  30. Writing Rust code that's fast by asking agents to make the code faster(minimaxir.com)
    46comments

Markdown in /src

39 pointsby 21h agohtmx.org
12 comments
14h agoHN ↗

I generally put markdown in /docs. I don't uppercase filenames. Instead I make a documentation generator consume the files so I get a decent navigation in HTML/PDF builds.

We did put non-code into /src for a very long time: It was heredocs, multiline docs, etc. Actually my preference is to put texts close to code and only fallback to /docs/something.md at a conceptual level. Which is probably what the author proposes, given that he sees markdown as primary interface to code.

2m agoHN ↗

I love what `cargo doc` generates, but when I'm in a source file, any plaintext solution seems so limiting.

I actually miss what I had when I was playing around in TempleOS. All text in the OS is rich (you can toggle between the markup and the standard WYSIWYG view), so comments could have formatting, colours, images (bitmap or vector, great for diagrams), hell, even (aggressively spinning) 3D models.

The thing I used most was the collapsible sections, think <details> and <summary> in HTML. Although I appreciate plain text and would hate WYSIWYG rich text in my serious source code (not to mention binary data appended to the end of the source file for images and models), I can't help but pine for those features. Being able to just draw a real diagram and being able to edit it later in seconds as opposed to making some horrid ASCII art was awesome.

13h agoHN ↗

Let’s keep the Codex session JSONL there too, why the hell not. And the debug build logs, since they’re easily greppable text useful for diagnosing recurring problems. And logs/reports from every test run - a ton of useful info there, lets you track regressions over time; would be a shame to throw it away. We could also store screenshots of every app run to have a LLM-compatible historical record of how each component changed visually. And the token provider billing documents, since we’re gonna have a lot of those once we’ll start maintaining all that.

13h agoHN ↗

This sounds a lot like a low tech version of Delta from Zed. All your agent transcripts live in the same place as code.

6m agoHN ↗

You missed the entire point of the post..the author is arguing docs in md are the src...

10h agoHN ↗

Developer documentation in /src, yes. Anything else, no way.

IME developers have low tolerance for interrupting flow to track down the docu that is aimed at them, so keep it near and obvious.

10h agoHN ↗

I still like the idea of source code as documentation and unit tests as documentation. While revising code written by an LLM to make it easier for humans to understand is now a controversial practice, I believe it's worthwhile in a lot of case.

9h agoHN ↗

src/md doesn’t seem all that different from docs. Maybe it changes how people search the filesystem, though?

If you split code up into multiple packages, moving the docs closer to the code might make sense. The docs for package foo could be in packages/foo/docs.

8h agoHN ↗

I have found a lot of value in the approach the post describes. I store my markdown as GitHub issues, regardless of how I come up with a detailed feature description (usually a chat session).

Before implementation, context is always cleared to ensure that the model is working only from known context (skills, AGENT.md, etc).

A major benefit of this is that agents can look up prior prompt instructions as needed or when mentioned in the current prompt it's working on.

I recently described my workflow here https://jaisenmathai.com/articles/sojourn-for-ios-was-45-one...

6h agoHN ↗

So

1. he's describing a manual version of Spec-Kit / OpenSpec / BMAD?

2. Thinks Markdown is... somehow different from normal text or other markup languages?

3. Doesn't seem to understand that LLMs are not deterministic?

2m agoHN ↗

1. he is saying md/enlgish is the new source code.. 2. yes - it is different that is geared towards english and very well supported by LLMs that is why it is being used in memory and instructions 3. llms are deterministic enough to translate adequately described specs into working system, the idea here is reason in md for core flow etc, and then verify with test cases

this not perfect but he is describing a real trend, so listen with open mind.