News for hackers. Stuff that matters.
Re:Wasp: WASM Programming Language by l30n4da5 on Friday November 05, 2021 @09:41AM (#29119060)
My thoughts -- why does everyone have to come up with some new, _novel_ way of writing html?

Looks like all the examples of wasp are just declarative objects and/or html, so not sure what wasp can do just from looking at those.

Re:Wasp: WASM Programming Language by danielvaughn on Friday November 05, 2021 @12:48PM (#29121782)
For me it's about the fact that html was designed for documents with minimal interactivity, and while it's possible to represent a highly interactive application in html, it poses several significant headaches for developers.

I don't know the right solution, but it's clear that what we have right now doesn't suit our needs and make web development far costlier than it otherwise could be.

Re:Wasp: WASM Programming Language by harryvederci on Friday November 05, 2021 @12:41PM (#29121682)
Indeed. We all know hiccup[0] style is the one true way to do it.

[0] https://github.com/weavejester/hiccup

Re:Wasp: WASM Programming Language by Apofis on Friday November 05, 2021 @03:42PM (#29123900)
Could've sworn we just did this: https://news.ycombinator.com/item?id=29093482
Re:Wasp: WASM Programming Language by jedisct1 on Friday November 05, 2021 @10:17AM (#29119596)
Especially when it doesn't seem to bring anything over haml and pug.
Re:Wasp: WASM Programming Language by trutannus on Friday November 05, 2021 @10:35AM (#29119853)
The most concise and precise way to write a language is generally in the language itself too.
Re:Wasp: WASM Programming Language by jedisct1 on Friday November 05, 2021 @10:51AM (#29120108)
Doesn't really apply to HTML.

Using indentation instead of XML-like opening and closing tags is way more concise, and encodes exactly the same information.

Re:Wasp: WASM Programming Language by zamadatix on Friday November 05, 2021 @12:01PM (#29121141)
It's shorter, I don't know about concise though I suppose that's a subjective point anyways. While it's generally exactly the same there are some corner cases involving formatting rather than structure tags where it's not always 1:1.