HN user

mdciotti

16 karma

[ my public key: https://keybase.io/mdciotti; my proof: https://keybase.io/mdciotti/sigs/ZiG2AIqIA7-HRKyTvck2BdRFKPOKxgaQTN5dPu909mw ]

Posts1
Comments7
View on HN
Overlapping markup 4 years ago

I've frequently wondered why a hierarchical approach is the norm for text formatting. It seems that many problems could be solved trivially using a text buffer and a list of formatting sequences defined by a starting index and a length. The only place I've seen this in practice is in Telegram's TL Schema [1]. Is this method found anywhere else?

Edit to note: there is one obvious advantage to in-band markup such as HTML -- streaming formatted content. Though I wonder if this could be done with a non-hierarchical method, for example using in-band start tags which also encode the length.

Edit 2: looks like Condé Nast maintains a similar technology called atjson [2].

[1] https://core.telegram.org/api/entities

[2] https://github.com/CondeNast/atjson

Awesome! Computational photography is fascinating. A while back, I wrote some OpenGL shaders to do the same thing, and got stuck when I wanted variable bokeh based on scene depth. This is easy when you have the depth map (say, in a renderer). I recall reading about how Apple achieved this using stereo disparity mapping, which is great if you have the hardware. I hadn't considered a neural net approach like yours for auto-generating a depth map, although I now that I look into it, Facebook recently published research on just that!

https://ai.facebook.com/blog/-powered-by-ai-turning-any-2d-p...

I've been using Typora for several months now. It's the best native markdown editor I've found. Extremely smooth to write in preview mode using markdown notation. Inline math support is nice, but I wish it had block/equation math support. Code highlighting, table support, and YAML front-matters are also great. I love being able to switch between source and preview with command+/.