News for hackers. Stuff that matters.
Re:I Accidentally a Scheme by simiones on Wednesday November 15, 2023 @04:29AM (#38274850)
> I learned about S-types, which were to Lisp what JSON is to JavaScript.

Do you mean s-expressions here (sexps), or is there also a thing called s-types that I've been missing?

Re:I Accidentally a Scheme by frognumber on Wednesday November 15, 2023 @06:01AM (#38275418)
Neither.

* I meant s-types.

* There is no such thing. The problem, as Clinton: "It depends on what the meaning of the word 'is' is."

S-types WERE a thing, but never a major one.

I ran across them as a high school student on a random research project at a university as a summer internship of some kind. They were used by a handful of research groups for some data interchange format. Literally the only person who would find the interesting is myself, and not for what they were, but because they were my first exposure to Lisp / Scheme concepts, which I had not heard of before, and which triggered a series of (high school grade) epiphanies for me (which would probably be obvious to 50+% of the people here).

As far as I know, S-types no longer exist. A quick web search brought up zero references. There is absolutely no reason to know about them in 2023. However, if you want to know about them:

- They were quite literally S-expressions. All S-types were S-expressions

- However, they were well-specified, so useful as an import/export format

- In particular, they had research-grade libraries to do the above from at least two languages (I would guess Java and LISP, but I no longer recall; perhaps it was C++ and Scheme).

- There was some attempt to simplify, but I no longer recall what it was. I recall that I was told it had something to do with lists versus function calls, but looking back on it, the explanation I recall being told makes zero sense. That's more likely a function of my memory than the explanation.

I believe on that internship, my direct use of them was probably limited to looking at some data in that format. This was really at the outskirts of the project I was doing. They did inspire a lot of work during the school year, when I schemed for the first time, not really knowing what I was doing but figuring out a lot of stuff in the process.

Looking back at it, though, having a standardized Python / JavaScript / etc. import/export library for some standardized version of S-expressions might be helpful. Or it might not be. Who knows.

Re:I Accidentally a Scheme by fanf2 on Wednesday November 15, 2023 @06:57AM (#38275772)
Sounds a bit like the S-expression syntax that was developed for SPKI/SDSI in the 1990s. I am surprised to find that the old spec has been revived after over 25 years https://datatracker.ietf.org/doc/draft-rivest-sexp/
Re:I Accidentally a Scheme by teddyh on Wednesday November 15, 2023 @08:19AM (#38276329)
> I am surprised to find that the old spec has been revived after over 25 years

The thread at <https://www.spinics.net/lists/ietf/thrd4.html#115999> seems to be relevant. Especially <https://www.spinics.net/lists/ietf/msg116441.html>.

Re:I Accidentally a Scheme by simiones on Wednesday November 15, 2023 @10:52AM (#38278022)
Glad I asked, this turned out to be much more fascinating than I thought. Thank you for the notes!