HN user

henryluo

293 karma

Creator of Mark Notation https://mark.js.org

Posts26
Comments70
View on HN
github.com 4mo ago

Show HN: Lambda 0.2 – a func language better than TypeScrip, jq and jQuery

henryluo
9pts17
marknotation.org 1y ago

Show HN: Mark 1.0, a notation that unifies JSON, HTML, JSX, XML, YAML, and more

henryluo
8pts11
retool.com 1y ago

How Visual Basic became the most dominant prog. env & its sudden fall from grace

henryluo
4pts5
socket.dev 1y ago

3.7M Fake GitHub Stars: A Growing Threat Linked to Scams and Malware

henryluo
1pts1
www.debugbear.com 1y ago

The Guide to Font Performance Optimization

henryluo
4pts0
github.com 2y ago

TGFX – A Skia-alternative, lightweight, high-performance 2D graphics library

henryluo
1pts1
tracydurnell.com 3y ago

The dream of AI is the dream of free labor

henryluo
2pts3
github.com 3y ago

A minimal, yet valid double-entry accounting system in Python

henryluo
2pts0
kentcdodds.com 3y ago

Fixing a Memory Leak in a Production Node.js App

henryluo
3pts0
a16z.com 3y ago

The Cost of Cloud, a Trillion Dollar Paradox

henryluo
50pts15
techsparx.com 4y ago

Testing Bun's compatibility with Node.js and speed with a complex application

henryluo
8pts1
zhenzhongxu.com 4y ago

Phases of Netflix’s real-time data infrastructure

henryluo
164pts47
thehackernews.com 4y ago

Court Rules Websites Embedding Google Fonts Violates GDPR

henryluo
67pts97
news.mit.edu 4y ago

Theoretical breakthrough could boost data storage

henryluo
1pts0
meta.stackexchange.com 7y ago

For Fun and Lost Memories: StackExchange Just Announced Time Machine

henryluo
1pts0
www.hyperorg.com 7y ago

Please Keep JavaScript Dumb

henryluo
21pts11
www.youtube.com 7y ago

Stack Overflow is 10! - Thank you so much!

henryluo
2pts2
medium.com 8y ago

Finally we have Threads in Node 10.5.0: a practical intro

henryluo
5pts1
blog.npmjs.org 8y ago

Latest NPM Team's Survey on JavaScript Usage by Industry

henryluo
2pts0
www.infoq.com 8y ago

Oracle Deprecating Java's JavaScript Engine Nashorn

henryluo
3pts1
www.bleepingcomputer.com 8y ago

Microsoft Releases a “Windows Command Reference” for Over 250 Console Commands

henryluo
4pts0
medium.com 8y ago

Introducing Turbo: 5x faster than Yarn and NPM, and runs natively in-browser

henryluo
2pts1
github.com 8y ago

Open source project trends for 2018 from GitHub

henryluo
2pts0
news.ycombinator.com 8y ago

Show HN: A threaded or a flat discussion, which is easier to followithuse?

henryluo
1pts0
github.com 8y ago

Mark – A simple and unified notation for both object and markup data

henryluo
158pts169
opensource.com 8y ago

How the term 'open source' was coined 20 years ago

henryluo
8pts1

As for the '<' and '>' to open and close an element, there are two potential kinds of syntax design. Option 1 is to use some explicit delimiters. Mark 1.0 has settled on '<' and '>'. Mark 0.11 was using '{' and '}', which I felt confusing with map. So I changed to '<' and '>', to make it consistent with HTML/JSX and XML, which most developers are already used to. Option 2 is to use indentation to delimit the enclosed child content, like in Python and YAML.

Option 2 looks cleaner for configuration kind of usage. However, Mark is designed to be embedded in a scripting language, and used beyond just configuration files. Unless the scripting language uses indentation as delimiter, like Python, option 2 will not work.

Personally, I prefer C/Java/JS family of languages that has insignificant whitespace. So Mark is designed to use explicit delimiters '<' and '>' to enclose an element.

Hope that explains one of the most important syntax designs of Mark.

"When the way of code is abandoned, doctrines of ‘best practices’ and ‘standards’ appear. When intuition is dismissed, cleverness and pretense follow. When harmony is unnoticed, rules and processes multiply. When software fails, zealous testers arise."

I sympathize and resonate with the author.

While for me, the JS language features are still manageable. What has outgrown me are the layers upon layers of abstractions used in modern JS app, like React/Redux/... We no longer have a straightforward, plain JS app. To understand the code, we have to 'see through' the thick layers of frameworkds/middleware.

Modern JS app is becoming as ugly as J2EE last time used to be.

I've come up with a new notation Mark (http://marknotation.org/), to address some of issues faced with JSON and XML.

It keeps the simplicity of JSON, and is able to support mixed content at the same time.

At the moment, it leaves out namespace to the application.

Your sample in Mark would look like:

  {html
    {head
      {concept tag:computer-game guid:"c1a3e0cb-5872-4e5a-8dce-b8afc00772db"}
      {concept attribute:year-published guid:"ba073188-8bd6-47a7-9065-eb55c4a8b908"}
    }
    {body
      {computer-game year-published:1993 "Doom"}
    }
  }

Yes, Solid is something to looking forward to.

Many years ago, we face the vendor lock-in problem from the software giants, due to proprietary data formats. Thanks to Tim, W3C, XML and open source community, that is less of a problem today.

But now we face the problem of vendor lock-in, not due to proprietary formats, but due to cloud-service lock-in. With all the software giants, Microsoft, Google, Facebook, Amazon, ... offering their services primarily as cloud services, this cloud lock-in issue is going to become more severe in years to come.

It's a new war the software industry needs to fight. It cannot be addressed just by one person, one project, one organization. It needs collaboration from the entire community.

Yes, Solid is something to looking forward to.

Many years ago, we face the vendor lock-in problem from the software giants, due to proprietary data formats. Thanks to Berners Lee, W3C, XML and open source community, that is less of a problem today.

But now we face the problem of vendor lock-in, not due to proprietary formats, but due to cloud-service lock-in. With all the software giants, Microsoft, Google, Facebook, Amazon, ... offering their services primarily as cloud services, this cloud lock-in issue is going to become more severe in years to come.

It's a new war the software industry needs to fight. It cannot be addressed just by one person, one project, one organization. It needs collaboration from the entire community.

"In September 2008, Stack Overflow's public beta went live. Today it's the the largest online community for programmers to learn, share their knowledge and build their careers. Today, the site is visited by over 50 million programmers a month; in ten years 9.3 million users have provided 25 million answers to 16 million questions. Watch Stack Overflow employees and users walk down memory lane and say thank you."