News for hackers. Stuff that matters.
Re:Rust Language Cheat Sheet by masklinn on Monday August 05, 2019 @02:38AM (#20611782)
Smalltalk. Or Forth.

This cheatsheet is syntactic, both have very little syntax. You can famously exercise all of Smalltalk's syntax on half a postcard: https://miro.medium.com/max/1000/1*Aa0AEoUgjZov8yrgdplsIg.pn...

(the example doesn't feature primitives calls, not because they don't fit — a primitive call would be <primitive: xxx> — but because their use case is extremely specific to implementing a system).

Re:Rust Language Cheat Sheet by excessive on Monday August 05, 2019 @03:41AM (#20612091)
Scheme has to fall somewhere between Smalltalk and Forth for quantity of syntax too. To me, these are the prettiest languages.
Re:Rust Language Cheat Sheet by masklinn on Monday August 05, 2019 @05:13AM (#20612543)
I didn't mention lisps because I'm never sure how to classify "built-in" special forms: should they be considered normal names and thus omitted from a syntactic overview or should they be considered keywords and included?

On the one hand they usually have non-normal evaluation and custom mini-languages, on the other so do most macros otherwise you'd just use a function.

But yeah, these are the sort of languages I think of as "simple": small languages which reach "smallness" by giving access to a limited set of extremely powerful constructs.

Re:Rust Language Cheat Sheet by arnsholt on Monday August 05, 2019 @09:43AM (#20614101)
> small languages which reach "smallness" by giving access to a limited set of extremely powerful constructs

That's one of the things I really loved when working in Smalltalk: the language gives you all of the building blocks necessary to build more or less then entire standard library, which makes it extremely simple to implement custom control structures for your application. That, and the fact that you're programming directly in your running application of course.

Re:Rust Language Cheat Sheet by excessive on Monday August 05, 2019 @06:53AM (#20612996)
Yes, and I'm not sure the R*RS standards even specify which special forms are fundamental vs implemented by macros. However, Smalltalk has some keywords too. In any case, it could be a concise cheat sheet.
Re:Rust Language Cheat Sheet by masklinn on Monday August 05, 2019 @07:16AM (#20613102)
> However, Smalltalk has some keywords too.

Indeed but they're all on the postcard above (true, false, nil, super and self).

Smalltalk's closest thing to built-in special forms would be primitives but they have a generic "shape" and they're pretty much always used as implementation details for the "normal" messages which system users interact with.