News for hackers. Stuff that matters.
Re:Hyperview – Native mobile apps, as easy as creating a web... by jsiepkes on Wednesday January 08, 2025 @02:03AM (#42631787)
"Serve your app as XML"

As someone who started his professional career in 2005: All the old is new again.

Re:Hyperview – Native mobile apps, as easy as creating a web... by revskill on Wednesday January 08, 2025 @02:12AM (#42631838)
JSON is same as XML.
Re:Hyperview – Native mobile apps, as easy as creating a web... by beagle3 on Wednesday January 08, 2025 @04:01AM (#42632367)
And XML is essentially lobotomized and extra verbose Lisp S-expressions, going back to the 1960’s
Re:Hyperview – Native mobile apps, as easy as creating a web... by xarope on Wednesday January 08, 2025 @04:55AM (#42632609)
don't talk about my thesis, written in LaTeX, like that...

/j

Re:Hyperview – Native mobile apps, as easy as creating a web... by magic_smoke_ee on Wednesday January 08, 2025 @10:37AM (#42635314)
Back in my day, real cowboys wrote their papers in PostScript, making their papers as inaccessible as possible for user of consumer-grade devices. /s

PS won on human readability and editability but lost on portability to Adobe's own internal competitor, PDF, and because it fought and lost to (La)TeX -> PDF & (La)TeX -> DVI -> PS.

PS: I once printed out and bound the PDF 1.3 spec[0] on 24 lbs. bleached dead trees on an HP LaserJet IIIP with over a million page count. Some of the nuclear engineers and scientists an office containing <50 people routinely printed thousand page documents every week.

0. https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandard...

Re:Hyperview – Native mobile apps, as easy as creating a web... by Cthulhu_ on Wednesday January 08, 2025 @05:32AM (#42632806)
No it isn't, XML is an ecosystem with things like dedicated transfer protocols (EXI), schemas (XSD), transformers (XSLT) that JSON still doesn't have standardized/normalised even though JSON has been the norm for nearly 20 years. There's some projects of course (JSON Schema, OpenAPI), but they're separate and not part of the same standardization committee.
Re:Hyperview – Native mobile apps, as easy as creating a web... by iforgot22 on Thursday January 09, 2025 @03:19AM (#42643021)
I don't remember anything about the XML ecosystem, but XML is already a totally different format from JSON without considering that.

  <body myattr="yeah">
    <thing>hi</thing>
    <thing thingattr="cool">hi2</thing>
    <otherkindathing>hi2</otherkindathing>
  </body>
can be thought of as nested objects, each having a typename, text content, and children. It doesn't translate nicely to JSON. Maybe:

  {"type": "body", "attrs": {"myattr": "yeah"},
   "children": [{"type": "thing", "content": "hi"}, ...]}
Re:Hyperview – Native mobile apps, as easy as creating a web... by mathgeek on Wednesday January 08, 2025 @05:55AM (#42632917)
As someone who works with JSON every day and almost never deals with XML directly, it’s important to realize saying they are the same is like saying a pocket knife and a Swiss army knife are the same because they both have an extremely useful tool (and why would anyone ever use the thing with all that extra stuff I never use?). Not a perfect analogy but the one I think of for simplicity.
Re:Hyperview – Native mobile apps, as easy as creating a web... by j45 on Wednesday January 08, 2025 @06:11AM (#42633018)
JSON is great in it's own regards but the features are not comparable.
Re:Hyperview – Native mobile apps, as easy as creating a web... by withinboredom on Wednesday January 08, 2025 @08:11AM (#42633803)
At least with XML, you can have custom datatypes, not just strings and numbers and booleans.

In all seriousness, everything in JSON can be expressed as XML; but not necessarily the other way around.

Re:Hyperview – Native mobile apps, as easy as creating a web... by iforgot22 on Thursday January 09, 2025 @03:24AM (#42643060)
Other way around works too (I gave an example above), it's just not pretty in either direction.

XML makes sense for open-ended, human-written things like documents or apps. It doesn't work so well for APIs and other machine-read/written things where you'd normally use JSON.

Re:Hyperview – Native mobile apps, as easy as creating a web... by j45 on Saturday January 11, 2025 @05:22AM (#42664806)
So incredibly true. And that one time you see what XML can do that little else can.

Like that time there were hundreds of forms to build, refused, held a silent protest until a reasonable way presented itself.

Enter "XML Form Template" or "XML Form Definition.", A form is generated from the XML in html, filled in, and on submit, the XML is filled back in.

Built one form renderer and done. Never got old watching it.

XForms (W3C standard)

https://www.w3.org/TR/2003/REC-xforms-20031014/slice2.html

Re:Hyperview – Native mobile apps, as easy as creating a web... by baxtr on Wednesday January 08, 2025 @06:58AM (#42633285)
Text is the same as JSON.
Re:Hyperview – Native mobile apps, as easy as creating a web... by openrisk on Wednesday January 08, 2025 @04:22AM (#42632444)
It sort of proves the point that certain technology choices are not the result of some monotonic "progress" towards a theoretical optimal but rather a random walk under stochastic influences in what we might call "conventions space".

Serious randomness is induced by the decisions of whatever entities happen to be influential, typically (but not exclusively) by having the most successful economic model. Causally that earnings model need not be at all related with the tech. After all, most 'big tech' is not actually selling the tech itself.

People mostly code for money so they are attracted and incentivized to use the more visible money-making conventions (be part of wining teams) irrespective of particular technical merit.

But there are additional more objective dimensions that complicate things. E.g. SPA conventions did solve a user experience problem at the time. It was not pure lemming behavior. In retrospect we know that it could have been solved otherwise but at that time we didn't.

Re:Hyperview – Native mobile apps, as easy as creating a web... by scotty79 on Wednesday January 08, 2025 @04:46AM (#42632561)
I think webapps should be xml (with all the data to display) transformed into html on the client side with XSLT generated by framework templating system).

There's a really nice binary XML format that browsers haven't implemented yet: https://en.m.wikipedia.org/wiki/Efficient_XML_Interchange

Re:Hyperview – Native mobile apps, as easy as creating a web... by ricardobeat on Wednesday January 08, 2025 @07:44AM (#42633587)
Symphony CMS [1] was based on this idea over a decade ago.

The developer experience was amazing, you could easily inspect the data backing any page. XSLT was hard but probably easier than React these days.

[1] https://getsymphony.com

Re:Hyperview – Native mobile apps, as easy as creating a web... by baggachipz on Wednesday January 08, 2025 @08:34AM (#42634025)
What a blast from the past. We did exactly this in '99-2000 (yes), and it was ridiculed as being over-engineered. At the time, it was the future because "XML will underpin all data transfer everywhere", and therefore we would be set up to run on any device, should any other device begin to exist. Needless to say, the winds changed way sooner than that became a real use case.
Re:Hyperview – Native mobile apps, as easy as creating a web... by scotty79 on Wednesday January 08, 2025 @09:30AM (#42634619)
I originally had this idea about 20 years ago. I still think it's good. At least better than brotli compressed json loaded with JavaScript.
Re:Hyperview – Native mobile apps, as easy as creating a web... by iforgot22 on Thursday January 09, 2025 @03:56PM (#42649735)
How would such a webapp make API calls and act on the responses? Even for a static website, HTML isn't very good at handling arbitrary sizes, which I think was part of the original motivation for React.
Re:Hyperview – Native mobile apps, as easy as creating a web... by j45 on Wednesday January 08, 2025 @06:10AM (#42633011)
I wonder what going back to the 90's will bring up.
Re:Hyperview – Native mobile apps, as easy as creating a web... by iforgot22 on Thursday January 09, 2025 @03:28AM (#42643089)
Was going to say "please no XMPP again," but apparently that was 2000.
Re:Hyperview – Native mobile apps, as easy as creating a web... by Devasta on Wednesday January 08, 2025 @08:52AM (#42634192)
The web is, was, and forever will be stuck reinventing shitty versions of things that they could have had decades earlier if they stuck with XML.

Custom elements, client side templating, form validation against schemas, they had it all and threw it away.

Re:Hyperview – Native mobile apps, as easy as creating a web... by yaldooshi on Thursday January 09, 2025 @05:40AM (#42643901)
Yup. They’re learning why XML needed to be complicated, one simplistic bolt-on HTML/CSS/JS layer at a time in a musical chairs fashion.
Re:Hyperview – Native mobile apps, as easy as creating a web... by donatj on Wednesday January 08, 2025 @09:50AM (#42634816)
Literally. I wrote a fair number of Konfabulator widgets in the early aughts this way. I did a bit of Adobe Air like this as well, everyone insisted it was THE FUTURE, it wasn't.
Re:Hyperview – Native mobile apps, as easy as creating a web... by magic_smoke_ee on Wednesday January 08, 2025 @09:56AM (#42634878)
Someone will inevitably create an app to create apps using Brainfuck encoded in Morse code running on a 16-QAM wireless protocol... just beam your app with your data.