by emptyparadise · 4y ago · 0 comments
It's not like this is crazy difficult or requires proprietary apps either. Writing a modern browser may be an impossible feat but I'm certain that it would take just a day or two to get a very simple barebones HTML renderer which supports <img> and a couple of formatting options.
At this point I wish we had a tty which supports variable width and size text and inline images and video. Then I could be happy.
Hello? 4K video in my pocket, structured data streaming out of every system around me, all I'm supposed to want to capture is plain text? What a paucity of information, of detail, what an absense of dreaming, what a position taken purely from fear - never have nice things because you might lose them one day!
Plain text just works, everywhere, all the time.
No it doesn't. Try a plain text description of an electronic circuit vs a circuit diagram.
Try a a plain text instruction sheet vs an illustrated one.
Try plain text sheet music vs actual sheet music.
Try a mathematical plot vs plain text tables.
Try concept drawings of product vs text descriptions.
Try construction drawing vs plain text descriptions.
I could go on and on.
Narrow views on the world result in flawed thinking and absolutes that are just plain wrong.
This one caught my eye tho:
> Try plain text sheet music vs actual sheet music.
Conceptually, "sheet music" *is* a plain text of music.
I accept that technically it would need to be implemented very differently as we haven't got ASCII or UNICODE for sheet music (AFAIK). You could probably do it with an XML language, or at a stretch YAML, and it'd be close human-readable and still vaguely plain text.
Maybe it's just me, but I do this at work all the time. I create build sheets out of just plain text before I fire up the circuit simulator, so I've got a good mind map of it and something to refer back to. Granted I'm not dealing with advanced circuits, it's usually industrial machinery and motor control, or at most a simple digital timer circuit, but I do just fine with plain text for something highly technical.
I'm not an EE, but there's SPICE for regular electronic circuits and SysVerilog et al for logic circuits. Math can be typeset in LaTeX, though its plain text readability depends on the formula. Category theory diagrams can be written in a simple language. Sheet music is some sort of XML, though I imagine there could be a more human writable/readable plain text format for this too. There was also a recent post about Markdown diagrams. And of course, code is still entirely text.
Much of what you mentioned can be described in a concise, portable text-based language. Though these documents are readable as text, they can be further rendered for best readability. Luckily, many can also be live previewed.
It’s called a Hardware Description Language. According to my textbooks, they’re the industry standard. My personal experience certainly prefers them to unusable “diagram” drawing GUIs.
> Try a mathematical plot vs plain text tables.
You can do plots in unicode. And more importantly, the code that produces the plot is plain text.
Pretty much anything regular can be done better with a plain text source that subsequently compiles to more visual mediums.
Sure, you could implement an inline-image-viewing ability into your editor for Markdown, too, and I'm sure someone's done that for Emacs (maybe it's a default feature I haven't enabled), but that's the vanilla functionality for Org-mode. Not a secondary-layer afterthought.
> "Plain text just works, everywhere, all the time."
My point is not "text doesn't work", but it would be good if other things worked that well and there's no good reason why they can't. You don't eat plain oatmeal for every meal because it works, and shun restaurants because one day they might close. You don't plug your ears because you can read lyrics and sheet music and one day you might go deaf. This is like the "first class functions" of programming. Wanting first class functions is not saying that plain loops don't work, it's saying that more powerful things are desirable even if they aren't cross-language compatible.
https://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=...
Prose takes time, contemplation and thought. Leslie Lamport says similar.
Helps with understanding however not so much with selling.
If you are using a markdown viewer it should render nicely, if you are using a text editor there is just a path where the image should be, so also no problem.
Some editors like Typora can be configured to automatically save images next to the markdown file, which is really helpful.
https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
This tells me you've never actually tried this. For example the img tag allows you to, amongst other things, render an svg.
If you want a more full spec you can see here what it takes to render an img element:
I don't think the GP meant "write an image renderer" when they said "get a very simple barebones HTML renderer". Most languages have libraries for encoding/decoding images in various formats, so aside from how it would fit into document layout, this is a non-issue.