Hacker News new | ask | show | jobs
by smt88 35 days ago
A) Who cares? What performance are you even talking about? Number of tokens?

B) HTML can contain data, layout, and design within a single file. Markdown isn’t comparable. There will be many situations where Markdown can’t do what HTML, so this is overall a silly comparison.

1 comments

A) Enterprises for one, e.g Rendering of an HTML page vs MD in an AI IDE or even tokens (compounding costs for a communication doc may be billions in a year) B) True, its a subset, nobody is arguing against it. HTML has overheads in terms of stylings. MD in essence is just a straight arrow.

If there is a communication between two points with ultimate low latency way with readability and threshold just enough to have the idea, MD passes that mark. As tokens needs to conserved

What do you mean by the cost of rendering an HTML page in an IDE? You know those markdown previews are almost always rendered by converting them to an HTML snippet first, right? Also HTML does not need to be styled, the tags have their own semantic meanings just like the various semantic structures of markdown. The styling “overhead”, which gets added so the document is easier to visually interpret for a human, is exactly the same. The only time when styling doesn’t come into the equation is when you directly view markdown source.

Also, latency???

If cost of showing HTML and MD are same in the CPU level for UI, but generation of them costs uneven at AI level (as it should be mathematically), shouldn't the equation be what is the lowest cost to represent something considering the token usage
> Rendering of an HTML page vs MD in an AI IDE or even tokens

MD is usually converted to HTML and then rendered by a webview, which means MD is more expensive.

> compounding costs for a communication doc may be billions in a year

Lol absolutely not. It would be surprising if the "compounding costs for a communication doc" reached $1 a year. I don't think you understand how efficient computers are and how optimized HTML rendering has become.

> As tokens needs to conserved

Not really. No large org is really optimizing for fewer tokens yet.

Nobody cares about “tokens”