Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Paolo Amoroso
Paolo Amoroso
@amoroso@oldbytes.space  ·  activity timestamp 11 hours ago

While reading this post on what we lost with the abandonment of XML this passage caught my Lisper eye:

XML's structure is immediately familiar. It is essentially s-expressions with angle brackets instead of parentheses. An element is a tagged list; attributes are metadata; nesting is composition.

https://marcosmagueta.com/blog/the-lost-art-of-xml

#xml #lisp #json

The lost art of XML — mmagueta

  • Copy link
  • Flag this post
  • Block
PuercoPop
PuercoPop
@PuercoPop@mastodon.social replied  ·  activity timestamp 9 hours ago

@amoroso iirc Henry Baker had some presentation at an Internal Lisp Conference about how Lisp dropped the ball on XML. There was also XMLisp includes a custom reader to read XML tags directly into classes

  • Copy link
  • Flag this comment
  • Block
PuercoPop
PuercoPop
@PuercoPop@mastodon.social replied  ·  activity timestamp 9 hours ago

@amoroso Found the slides

https://international-lisp-conference.org/2005/speakers.html#henry_baker
https://international-lisp-conference.org/2005/media/baker-slides.pdf

```
The “XML Question”
• By rights, Lisp should own XML
• Lisp should immediately embrace XML
• Lisp needs to quickly develop standard
XML readers & printers
• Lisp needs to utilize XML as alternate
syntax
```

View (PDF)

International Lisp Conference > Speakers

  • Copy link
  • Flag this comment
  • Block
Paolo Amoroso
Paolo Amoroso
@amoroso@oldbytes.space replied  ·  activity timestamp 8 hours ago

@PuercoPop It's interesting as it covers quite a lot, thanks.

  • Copy link
  • Flag this comment
  • Block
PuercoPop
PuercoPop
@PuercoPop@mastodon.social replied  ·  activity timestamp 6 hours ago

@amoroso XMLisp is really cool as well, I remember finding the code somewhere, but I could only find a paper right now. Today it might be useful for parsing XML wayland descriptions directly 🤔

https://dl.acm.org/doi/10.1145/1622123.1622149

  • Copy link
  • Flag this comment
  • Block
Andreas 🌈
Andreas 🌈
@zopyx@mastodon.world replied  ·  activity timestamp 10 hours ago

@amoroso XML with all its components and standards around has always been a parallel universe. XML has been widely misused for purposes that shouild have never seen any XML at all. In addition to that, techniques like XSLT or XPath have been widely considered as academic and non-approachable. XML knowledge has always been dominion knowledge. I've been to several XML conference (XML Prague, #XML London,Markup UK) and the high academic speaks for itself. XML & Co. appeared stimes like brainfuck.

  • Copy link
  • Flag this comment
  • Block
Paolo Amoroso
Paolo Amoroso
@amoroso@oldbytes.space replied  ·  activity timestamp 10 hours ago

@zopyx Yes, the post acknowledges this at least in part.

  • Copy link
  • Flag this comment
  • Block
Simon Brooke
Simon Brooke
@simon_brooke@mastodon.scot replied  ·  activity timestamp 10 hours ago

@amoroso This is what I've always said. XML is simply a prolix way of writing S-Expressions; toolkits like @weavejester's Hiccup, which translate between #Clojure and #XML representations of S-Exprs, make this very clear.

In my experience, this makes XML (and XSL) very comfortable to work with for Lispers.

  • Copy link
  • Flag this comment
  • Block
Paolo Amoroso
Paolo Amoroso
@amoroso@oldbytes.space replied  ·  activity timestamp 10 hours ago

@simon_brooke With proper indentation and enough screen real estate XML doesn't look too bad.

@weavejester

  • Copy link
  • Flag this comment
  • Block
Ethan Blanton
Ethan Blanton
@elb@mastodon.sdf.org replied  ·  activity timestamp 11 hours ago

@amoroso I honestly mostly agree with this article, having now read it in full. I don't love the textual representation XML format, but, in particular, when I wrote things that used XML data exchange, I _always_ wrote a schema, and that schema frequently caught bugs (both in my understanding of the data being exchanged, and in the software doing the exchange). There were tools to write very short, readable schema for simple data (like RELAX NG).

  • Copy link
  • Flag this comment
  • Block
Ethan Blanton
Ethan Blanton
@elb@social.sdf.org replied  ·  activity timestamp 11 hours ago

@amoroso I actually like sxml for encoding HTML documents reasonably well. The attribute syntax is a little annoying and I often get it wrong (there's nothing wrong with it and it's a reasonable encoding, but for whatever reason I often miss parens or such), but it's much less verbose and it plays nice with lispy editing habits.

  • Copy link
  • Flag this comment
  • Block
Paolo Amoroso
Paolo Amoroso
@amoroso@oldbytes.space replied  ·  activity timestamp 11 hours ago

@elb I never used XML much but of course sexp-based notations come natural to me.

  • Copy link
  • Flag this comment
  • Block
Daniel
Daniel
@dan@axillae.telent.net replied  ·  activity timestamp 11 hours ago

@amoroso XML was not without its detractors back in the day - I am minded of Erik Naggum's famous post https://www.schnada.de/grapt/eriknaggum-xmlrant.html

Erik Naggum's XML rant

  • Copy link
  • Flag this comment
  • Block
Paolo Amoroso
Paolo Amoroso
@amoroso@oldbytes.space replied  ·  activity timestamp 11 hours ago

@dan Yes, I remember he wasn't a fan of XML.

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.2 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct