7 ms·
I accidentally a scheme
- frognumber 3y agoPeople accidentally a scheme all the time. I first accidentalled a scheme in high school. I learned about S-types, which were to Lisp what JSON is to JavaScript. I made a language around then. Oops. Some would argue Brendan Eich of Netscape accidentalled a scheme in JavaScript, but others would argue that he didn't. Most accidental schemes are pretty bad, and the original JavaScript fits the bill, or it doesn't, depending on what you think to be a scheme. There's a law about that: https://en.wikipedia.org/wiki/Greenspun's_tenth_rule https://en.wikipedia.org/wiki/Greenspun's_tenth_rule It comes up in most DSLs. I bet this is a better accidental scheme, by virtue of the author, but a big part of the point of a scheme is that it's easy to implement, yet powerful. MIT freshman used to build a scheme interpreter and a scheme compiler in their first computer science course (6.001). It's very easy to accidentally a scheme.
- robofanatic 3y agothats scheme accidentallification
- trollian 3y agoI think Eich intentionallyed a scheme.
- yarg 3y agoReminds me of carcinisation; lots of things turn into crabs.
- benj111 3y agoPlease people, wear protection when 'experimenting', especially as teenagers. A scheme is for life, not just for Christmas.
- simiones 3y ago> 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?
- frognumber 3y agoNeither. * 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.
- fanf2 3y agoSounds 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/ https://datatracker.ietf.org/doc/draft-rivest-sexp/
- zelphirkalt 3y agoWhat is a Scheme and what is not a Scheme is actually pretty well defined in terms of language concepts and features. The JavaScript of back then is not that. Some Scheme may have served as something that Eich took hints from, but he did not create a new Scheme.
- bitslayer 3y agoTook hints from, ergo "an ad hoc, informally-specified, bug-ridden, slow implementation"
- frognumber 3y agoFYI: At the time, the creator of Scheme, Jerry Sussman, believed the JavaScript was a Scheme. I don't say this to claim he was right (I didn't agree with him, at the time), but merely to point out that "what is not a Scheme is actually" NOT "pretty well defined in terms of language concepts and features." A proper Scheme is as defined in Revised Report on the Algorithmic Language Scheme, but there are many improper half-baked Schemes too. Reasonable people can and do disagree about which things do and don't qualify.
- aidenn0 3y agoI think there is nothing more vacuous than taxonomy arguments (though they can be fun). Kent Pitman (KMP), for example, is on record as saying that Scheme is not a Lisp[1] 1: https://groups.google.com/g/comp.lang.lisp/c/Bj8Hx6mZEYI/m/6AWmNEwQR5YJ https://groups.google.com/g/comp.lang.lisp/c/Bj8Hx6mZEYI/m/6... (besides the inevitable flamewar started by @lisper's question, there's actually some good discussion between the "adults in the room" well downthread of what I linked).
- dahart 3y agoThe story goes Eich was hired to embed Scheme in a browser, and hung on to lambdas and functional concepts but lost homoiconicity by management fiat; they didn’t like the weird way it looked. He tried to intentionally a Scheme and ended up accidentally a Scheme step-cousin. It’s fair to say some argue it is a Scheme dialect, because some people do, and they’re not wrong, JS does share aspects. It’s also fair to say JS is not a Scheme, also true. I googled and found someone’s blog post with a fun description: “JS is stupid Lisp in Java’s ill-fitting clothing. It’s Alonzo Church going to a Halloween party as Alan Turing. It’s the lambda calculus in Turing-machine drag. It’s a quirky nerd with a cynical marketing department. (The syntax and the name of the language — JavaScript—were determined by Netscape’s desire to ride the coattails of Java’s popularity in the early 1990s.) It’s multiparadigm salad.” https://medium.com/thinking-with-computers/javascript-is-not-scheme-7a84889e9b3c https://medium.com/thinking-with-computers/javascript-is-not...
- taneq 3y ago> There's a law about that That was my first thought too. As the length of your codebase increases, the likelihood of (probably badly) accidentally a scheme'ing tends towards 1.
- michaelteter 3y agoThere doesn't seem to be a lot of fun valid English writing today. Certainly it seems the opposite is the norm, even at the highest levels of government. But I found joy very early in this essay. "Tonight's missive is an apology: not quite in the sense of expiation, though not quite not that, either; rather, apology in the sense of explanation, of exegesis: apologia." When an introduction provides such a concise but entertaining junglegym for the reader, surely the rest will be enlightening. And if not, we have short attention spans, so we click elsewhere :).
- munificent 3y agoAll of Andy Wingo's writing is this delightful to read.
- quickthrower2 3y agoPompous in a good way: you learn something. Rather than pompous but you have no idea what they were saying.
- spit2wind 3y agoGreat for a blog, terrible for documentation.
- chrisweekly 3y agoCould someone please explain the missing verb in the title? It's clearly a deliberate omission in the linked post (which also has a section heading "one does not simply a scheme"), but I don't get it. Something to do w/ garbage collection, or a scheme inside joke?
- ReactiveJelly 3y agoHere's the reference - https://knowyourmeme.com/memes/i-accidentally https://knowyourmeme.com/memes/i-accidentally
- TheMajor 3y ago[flagged]
- chrisweekly 3y agoThanks! This one somehow slipped under my radar.
- all2 3y agoAnd here's the other: https://knowyourmeme.com/memes/one-does-not-simply-walk-into-mordor https://knowyourmeme.com/memes/one-does-not-simply-walk-into...
- quickthrower2 3y agoLike the HODL meme
- throw151123 3y agoOld 4chan meme
- codetiger 3y agoThis accidentally the LLM model AI.
- __MatrixMan__ 3y agoNote to self: learn a lisp. Lisp people appear to be having more fun than the rest of us.
- cfiggers 3y agoThere's literally dozens of us! If you're serious about learning a Lisp but motivated more by, as you say, "having more fun" rather than, say, landing a six-figure job writing it professionally... then may I recommend Janet[0] for your consideration. Janet is an embeddably-small, yet surprisingly batteries-included Lisp implemented in pure C. In terms of syntax and core library it borrows more directly from Clojure than from Scheme, but all the modern Lisps have their bits of influence. I've found both the language and the tiny little community that exists around it delightful. As an example of the latter, somebody smart wrote a real actual book[1] about Janet recently that was on the HN front page for a day or so when he first released it. It's a gentle introduction not just to Janet but to Lisp in general, and assumes only general proficiency with JavaScript to get you up to speed. I recommend it. [0] https://www.janet-lang.org https://www.janet-lang.org [1] https://janet.guide https://janet.guide
- TylerE 3y agoOoh that's actually really interesting. I've always been a bit into lisp... even did a bit of amatuer CL back in the day..but always thought the distribution model of basically a memory dump was just the worst of all possible worlds.
- bigfishrunning 3y agoI agree with this sentiment -- from a reproducability standpoint, CL images aren't great. My workflow has always been to maintain a source file and then use emacs to shove s-expressions into the repl -- that way, rather then save the image, i can just re-evaluate my source file and get a reasonable facsimile
- deleted 3y ago[deleted]
- thewakalix 3y agoFollowup: https://wingolog.org/archives/2023/11/14/whiffle-a-purpose-built-scheme https://wingolog.org/archives/2023/11/14/whiffle-a-purpose-b...
- carabiner 3y agoThe whole scheme?
- sjamaan 3y agoAnd nothing but the scheme!
- lkuty 3y agoIs the title grammatically correct ? A verb is missing, don't you think... My mother tongue is french, thus I may be missing some pun.
- tusqasi 3y agoIt is like a joke. I am not a native englisher too.
- emmanueloga_ 3y agoThe verb seems to be "a". Does he regularly a scheme? Or did he do it in the past? Both!
- vore 3y agoThe verb is "accidentally", actually!
- TeMPOraL 3y agoProper verbing would be "accidented", I believe (and I love English for how you can just verb or noun anything - it's like Lisp of natural languages!), but I guess "accidentally" can be chalked up to artistic license.
- thaumasiotes 3y ago> (and I love English for how you can just verb or noun anything - it's like Lisp of natural languages!) This is an odd observation. All languages have derivation. ( https://en.wikipedia.org/wiki/Morphological_derivation https://en.wikipedia.org/wiki/Morphological_derivation ) English has zero-derivation of verbs [that is, the form of the derived verb is identical to the form of the word from which the verb was derived], and this construction is highly productive; many people have remarked on it. But there's nothing similar for nouns in English, so I don't see why you're listing nouns as parallel to verbs. The meme expression "I accidentally [missing verb] [something]" does not obey the rules of English, as you can easily tell by the responses saying "you accidentally did what?" If you really meant that parenthetical, you might be interested in Chinese, where academics sometimes get into arguments over what part of speech a given example of a word should be considered to belong to. There is very little inflection, which makes the confusion possible.
- skrebbel 3y agoA lesson I learned long ago is that if something isn't fun, I need to turn it into a compiler. I want to frame this sentence and hang it on my wall.
- ThePowerOfFuet 3y agoDon't let your dreams be dreams.
- Cthulhu_ 3y agoYesterday you said tomorrow, so just do it
- packetlost 3y agoDo we consider macros compilers now? :)
- bjoli 3y agoI would say yes. A compiler takes code and produces different code. Maybe in another language. I wouldnt call a simple anaphoric if a compiler, but I wrote this: https://git.sr.ht/~bjoli/goof-loop https://git.sr.ht/~bjoli/goof-loop and it specifies a new loop construct for scheme. It takes code conforming to a grammar and produces standard scheme code while also generating loop code, temporary variables, identifiers and all that jazz. It even transforms the code using CPS. That is what you get for writing complex macros in syntax-rules I guess.
- Izmaki 3y agoAs somebody with English as a second language, I hate it when "accidentally" is used as a verb.
- zfxfr 3y agoI am french I read your comment then read again the title to see what was wrong and I noticed my brain automatically added the word "entered" after accidentally. So yes I understand your feeling
- croisillon 3y agoi thought the missing verb was created and not entered?
- db48x 3y agoIt’s still an adverb here. The meme used here is to deliberately the verb as a form of wordplay.
- zem 3y agohttps://knowyourmeme.com/memes/i-accidentally https://knowyourmeme.com/memes/i-accidentally
- seanhunter 3y agoThe fact that people do it doesn't make it any less horrifying.
- RugnirViking 3y agoI have english as my first language but I moved to a country where most people learn it as a second language and people are horrified to see how I communicate with my sister. Of course, I wouldn't do it with them when i'm actually trying to communicate effectively. I think its one of those "when you understand the rules well you can break them" type thing, here it indicates a carefree and playful tone, for a similar reason to how the lack of capitalisation in the title etc indicates a casual tone. It's trying to avoid being Official and Boastful and Buisnesslike. In particular, the first sentence is similarly playful with its choice of words; suffice to say this is intentionally poetry
- m3kw9 3y agoHurts my head reading the title
- farmdve 3y agoI had to login to HN which I have not done in many months just to say this to the young generation. The title is from a meme. Like before the memes of today, when a meme was an image around a black frame with white text. It usually goes "I accidentally a <thing>".
- brainbag 3y agoUntil I read all the way down here to the bottom of the comment thread, I was thinking about the older people who didn't get this reference since I've been hearing it for decades. But now I see, thanks to your comment, that it is I that is the old one, and it's the youngsters that don't know it.
- m3kw9 3y agoThanks uncle!
- kookamamie 3y agoIs there any chance of making the blog layout narrower, so that it fits my Windows 95 + VGA resolution better?
- lynx23 3y agoEvery sufficiently complicated systems has a Common Lisp at its core...
- ezekiel68 3y agoThe odd lack of verbs (in the title and the text) made me immediately suspect this was an unfortunate AI submission. Is omitting verbs part of the inside joke of Lisp communities?
- pohl 3y agoIt’s a pretty common thing all over the internet to deliberately butcher the language for humorous effect. The LOLcat (“I can has cheeseburger “) translation of the Bible is hilarious.
- b33j0r 3y agoI haz read! Begat treats like make biscuits! Rosanna, Rosanna, to Parton the Lamb!
- _a_a_a_ 3y agoBloody hell, there go a few hours. Thanks for that (somehow both sarcastically and not). https://web.archive.org/web/20190327161227/http://www.lolcatbible.com/index.php?title=Main_Page https://web.archive.org/web/20190327161227/http://www.lolcat...
- junon 3y agoI bought that book after first reading about "ceiling cat" and "basement cat".
- BaculumMeumEst 3y agohttps://knowyourmeme.com/memes/i-accidentally https://knowyourmeme.com/memes/i-accidentally
- deleted 3y ago[deleted]
- _a_a_a_ 3y agoOn February 22nd, 2008, YouTuber Ted Suzan posted a video entitled "I accidentally a piano bench; is this dangerous?" https://knowyourmeme.com/memes/i-accidentally https://knowyourmeme.com/memes/i-accidentally
- wkjagt 3y agoIt’s time for a new book with a cartoon elephant on the front. “The Accidental Schemer”.
- kevindamm 3y agoI accidentally a Scheme, and you can too!
- iainctduncan 3y agoI would pay very good money for that book. :-)
- tjr 3y agoSpeaking of, I was disappointed that Duane did not make the drawings for the latest volume. Perhaps he's retired now.
- samth 3y agoI believe that is indeed why.
- tjr 3y agoHe has a marvelous drawing approach. I've not yet found any other similar drawings that really quite capture the same style. I was honored that he agreed to make some drawings for a project of mine years ago; I still have the originals in a frame. Happy retirement to him!
- JoeAltmaier 3y agoLots of discussion about how GCs cause problems ("far away from time and space from the original") and destabilize and ruin your life generally. I knew I was not in favor of GCs. For any reason. A pox upon the landscape of software.
- m0d0nne11 3y agoThis sentence no verb
- drmeister 3y agoI accidentally a Common Lisp that interoperates with C++ (https://github.com/clasp-developers/clasp.git https://github.com/clasp-developers/clasp.git). We would also like to move beyond BDWGC and the Whiffle GC looks interesting. I will reach out to you, and maybe we can chat about it.
- chubot 3y agoFWIW we also test the Oils GC with a X-to-Y to generator, where X is Python and not Scheme, and Y is C++ and not C :) For example here's a self-contained Python program to make various types of linked lists and traverse them, making sure the GC can follow the resulting pointers in C++, with field inheritance, vtable pointers, etc. https://github.com/oilshell/oil/blob/master/mycpp/examples/classes.py#L210 https://github.com/oilshell/oil/blob/master/mycpp/examples/c...
- kagevf 3y ago> That sounds like a bug farm. Stealing that expression.