We got to build mini versions of the first 4 languages (imperative, lisp, ML, Smalltalk) in the PL course at tufts which is now published as a textbook [1]. There used to be a prolog part that sadly got cut.<p>[1]: <a href="https://www.cambridge.org/ir/universitypress/subjects/computer-science/programming-languages-and-applied-logic/programming-languages-build-prove-and-compare#contents" rel="nofollow">https://www.cambridge.org/ir/universitypress/subjects/comput...</a>
I recently revisited a language comparison project, a specific benchmark tallying the cycle decompositions in parallel of the 3,715,891,200 signed permutations on 10 letters. I kept a dozen languages as finalists, different philosophies but all choices I could imagine making for my research programming. Rather than "ur" I was looking for best modern realizations of various paradigms. And while I measured performance I also considered ease of AI help, and my willingness to review and think in the code. I worked hard to optimize each language, a form of tourism made possible by AI.<p>The results surprised me:<p><pre><code> F# 100 19.17s ±0.04s
C++ 96 19.92s ±0.13s
Rust 95 20.20s ±0.38s
Kotlin 89 21.51s ±0.04s
Scala 88 21.68s ±0.04s
Kotlin-native 81 23.69s ±0.11s
Scala-native 77 24.72s ±0.03s
Nim 69 27.92s ±0.04s
Julia 63 30.54s ±0.08s
Swift 52 36.86s ±0.03s
Ocaml 47 41.10s ±0.10s
Haskell 40 47.94s ±0.06s
Chez 39 49.46s ±0.04s
Lean 10 198.63s ±1.02s
</code></pre>
<a href="https://github.com/Syzygies/Compare" rel="nofollow">https://github.com/Syzygies/Compare</a>
I might add another class of languages: those intended to express proofs, via the Curry-Howard correspondence. Lean is a primary example here. This could be considered a subclass of functional languages but it might be different enough to warrant a separate class. In particular, the purpose of these programs is to be checked; execution is only secondary.
Theorem proving and complex types are like extensions on an otherwise ordinary language:<p>- Agda, Idris, etc. are functional languages extended with complex types<p>- Isabelle, Lean, etc. are functional languages extended with complex types and unreadable interactive proofs<p>- Dafny etc. are imperative languages extended with theorems and hints<p>- ACL2 is a LISP with theorems and hints<p>Related, typeclasses are effectively logic programming on an otherwise functional/imperative language (like traits in Rust, mentioned in <a href="https://rustc-dev-guide.rust-lang.org/traits/chalk.html" rel="nofollow">https://rustc-dev-guide.rust-lang.org/traits/chalk.html</a>).
> Agda, Idris, etc. are functional languages extended with complex types<p>I think they are not. No amount of type level extensions can turn a regular functional language like Haskell into something suitable for theorem proving. Adding dependent types to Haskell, for example, doesn't suffice. To build a theorem prover you need to take away some capability (namely, the ability to do general recursion - the base language must be total and can't be Turing complete), not add new capabilities. In Haskell everything can be "undefined" which means that you can prove everything (even things that are supposed to be false).<p>There's some ways you can recover Turing completeness in theorem provers. You can use effects like in F* (non-termination can be an effect). You can separate terms that can be used in proofs (those must be total) from terms that can only be used in computations (those can be Turing complete), like in Lean. But still, you need the base terms to be total, your logic is done in the fragment that isn't Turing complete, everything else depends on it.
I mean you are kinda right but kinda wrong. To get a proof checker you take a typed lambda calculus and extend it with Pi, Sigma, and Indexed Inductive types while maintaining soundness.<p>Yes haskell's `bottom` breaks soundness, but that doesn't mean you need to take away some capability from the language. You just need to extend the language with a totality checker for the new proof fragment.
This is just wrong, you're being too didactic. Idris specifically lets you implement nontotal functions in the same way that Rust lets you write memory-unsafe code. The idea is you isolate it to the part of the program with effects (including the main loop), which the compiler can't verify anyway, and leave the total formally verified stuff to the business logic. Anything that's marked as total is proven safe, so you only need to worry about a few ugly bits; just like unsafe Rust.<p>Idris absolutely is a general-purpose functional language in the ML family. It is Haskell, but boosted with dependent types.
Random passerby chiming in: so this means you can write "regular" software with this stuff?<p>While reading TFA I thought the theorem stuff deserved its own category, but I guess it's a specialization <i>within</i> an ur-family (several), rather than its own family?<p>It definitely sounds like it deserves its own category of programming language, though. The same way Lojban has ancestry in many natural languages but is very much doing its own thing.
Yes Idris was meant to write regular code. F* is also meant to write regular code<p>But I think that the theorem prover that excels most at regular code is actually Lean. The reason I think that is because Lean has a growing community, or at least is growing much faster than other similar languages, and for regular code you really need a healthy ecosystem of libraries and stuff.<p>Anyway here an article about Lean as a general purpose language <a href="https://kirancodes.me/posts/log-ocaml-to-lean.html" rel="nofollow">https://kirancodes.me/posts/log-ocaml-to-lean.html</a>
I mentioned this later<p>> You can separate terms that can be used in proofs (those must be total) from terms that can only be used in computations (those can be Turing complete), like in Lean<p>What I meant is that the part of Idris that lets people prove theorems is the non-total part<p>But, I think you are right. Haskell could go there by adding a keyword to mark total functions, rather than marking nontotal functions like Idris does. It's otherwise very similar languages
These are not true programming languages because by definition they are not Turing complete. If they were Turing complete it would be possible to write a false proof that just compiled down to a non-terminating program.
These fall directly out of ML.
Lean is definitely a dependently typed ML-family language like Agda and Idris, so "ML" has it covered. And the long-term goal of Lean certainly is not "execution is only secondary"; Microsoft is clearly interested in writing real software with it: <a href="https://lean-lang.org/functional_programming_in_lean/Programming-with-Dependent-Types/Worked-Example___-Typed-Queries/#typed-queries" rel="nofollow">https://lean-lang.org/functional_programming_in_lean/Program...</a><p>OTOH if you really want to emphasize "intended to express proofs" then surely Prolog has that covered, so Lean can be seen as half ML, half Prolog. From this view, the Curry-Howard correspondence is just an implementation detail about choosing a particular computational approach to logic.
One correction I'd make to the article's taxonomy: Ruby is an object oriented language not an Algol. Its inspiration is Smalltalk, and much of the standard library naming comes from that route (eg collect rather than map).<p>Ruby is object oriented from the ground up. Everything (and I do mean everything) is an object, and method call is conceived as passing messages to objects.<p>While Ruby is most often compared to Python (an Algol), they come from very different evolutionary routes, and have converged towards the same point in the ecosystem. I think of Ruby as a cuddly Alpaca compared to Python's spitting camel.
Since Python introduced new style classes, it also became a pure OOP language, even though it might not look like it at "Hello World" level, all primitive types have become objects as well.<p>I love to point this out to OOP haters,<p><pre><code> >>> type(42)
<class 'int'>
>>> dir(42)
['__abs__', '__add__', '__and__', '__bool__', '__ceil__', '__class__', '__delattr__', '__dir__', '__divmod__', '__doc__', '__eq__', '__float__', '__floor__', '__floordiv__', '__format__', '__ge__', '__getattribute__', '__getnewargs__', '__getstate__', '__gt__', '__hash__', '__index__', '__init__', '__init_subclass__', '__int__', '__invert__', '__le__', '__lshift__', '__lt__', '__mod__', '__mul__', '__ne__', '__neg__', '__new__', '__or__', '__pos__', '__pow__', '__radd__', '__rand__', '__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__', '__rlshift__', '__rmod__', '__rmul__', '__ror__', '__round__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__', '__rtruediv__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__', '__trunc__', '__xor__', 'as_integer_ratio', 'bit_count', 'bit_length', 'conjugate', 'denominator', 'from_bytes', 'imag', 'is_integer', 'numerator', 'real', 'to_bytes']</code></pre>
> I love to point this out to OOP haters<p>That seems like a pretty lame gotcha--saying "Aha! The language you write in uses your hated paradigm under the hood" seems to invite the immediate response of "So? I don't use it."
This is very cool, and I did not know this. Thank you!<p>I wonder if my formal university python training predated this change (~2010), or if the professors were themselves unaware of this.
They were unaware of it, or unwilling to talk about it, article from 2002, about changes introduced in 2001<p><a href="https://gnosis.cx/publish/programming/metaclass_1.html" rel="nofollow">https://gnosis.cx/publish/programming/metaclass_1.html</a><p><a href="https://www.python.org/download/releases/2.2/descrintro/" rel="nofollow">https://www.python.org/download/releases/2.2/descrintro/</a>
I think the choice to identify a specific ur-language as "Object oriented" throws people off since OO is just a <i>style</i> of programming in the same way that procedural is. I don't think it's useful to say that Python and C++ are both the same kind of language because they both have multiple inheritance, rather that's just an observable commonality, like noticing that both Delhi and Vegas are too hot. Yeah, but I don't think that's because they're the same kind of place...
Aren't camels a Perl thing?
there's a few more semantic families: verilog, petri nets and variants, Kahn process networks and dataflow machines, process calculi, reactive, term rewriting, constraint solvers/theorem provers (not the same with Prolog), probabilistic programming,<p>plus up and coming (actual production-ready) languages that don't fit perfectly in the 7 categories: unison, darklang, temporal dataflow, DBSP<p>It may feel like a little bit of cheating mentioning the above ones, as most are parallel to the regular von Neumann machine setup, but was meaning for a while to do an article with 'all ways we know how to compute (beyond von Neumann)'.
> was meaning for a while to do an article with 'all ways we know how to compute (beyond von Neumann)'.<p>Would be very glad to read this.<p>In the meantime, I reproduce a part of an article by Steve Yegge:<p>---<p><i>What Computers Really Are</i><p>Another realization I had while reading the book is that just about every course I took in my CS degree was either invented by Johnny von Neumann, or it's building on his work in mostly unintelligent ways.<p>Where to start? Before von Neumann, the only electronic computing devices were calculators. He invented the modern computer, effectively simulating a Universal Turing Machine because he felt a sequential device would be cheaper and faster to manufacture than a parallel one. I'd say at least 80% of what we learned in our undergrad machine-architecture course was straight out of his first report on designing a programmable computer. It really hasn't changed much.<p>He created a sequential-instruction device with a fast calculation unit but limited memory and slow data transfer (known as the infamous "von Neumann bottleneck", as if he's somehow responsible for everyone else being too stupid in the past 60 years to come up with something better. In fact, Johnny was well on his way to coming up with a working parallel computer based on neuron-like cellular automata; he probably would have had one in production by 1965 if he hadn't tragically died of cancer in 1957, at age 54.)<p>Von Neumann knew well the limitations of his sequential computer, but needed to solve real problems with it, so he invented everything you'd need to do so: encoding machine instructions as numbers, fixed-point arithmetic, conditional branching, iteration and program flow control, subroutines, debugging and error checking (both hardware and software), algorithms for converting binary to decimal and back, and mathematical and logical systems for modelling problems so they could be solved (or approximated) on his computing machine.<p>-Steve Yegge, Math Every Day<p><a href="https://archive.ph/6tOQF" rel="nofollow">https://archive.ph/6tOQF</a>
>term rewriting<p>In uni we had to make a spreadsheet software.<p>I volunteered to do the formula parser, thinking it sounded like a fun challenge.<p>I was stumped for a week, until I realized I could rewrite the formulas into a form I knew how to parse. So it would rewrite 1+1 into ADD(1,1) and so on.<p>I also refused to learn regex, so the parsing code was "interesting" ;)<p>I recall a comment from a colleague. "Okay, Andy says it works. Don't touch it." XD<p>Guy from another group used regex and his solution was 20x shorter than mine.
> plus up and coming (actual production-ready)<p>Plus up and coming (not quite production-ready IMO, but used in production anyways): ChatGPT and the like.<p>Of course, it’s debatable whether they are programming languages, but why wouldn’t they be. They aren’t deterministic, but I don’t think that is a must for a programming language, and they are used to let humans tell computers what to do.
also Sussman's propagators are nice to check out [0]<p>[0] The Art of the Propagator (mit url down for the moment)
Great list of languages that don't fit the conventional families. I've been curious about some of them, like Petri nets and term rewriting, and will enjoy exploring the others.<p>Found a working link to the paper about propagators.<p>The Art of the Propagator, Alexey Radul and Gerald Jay Sussman. <a href="https://groups.csail.mit.edu/mac/users/gjs/6.945/readings/art.pdf" rel="nofollow">https://groups.csail.mit.edu/mac/users/gjs/6.945/readings/ar...</a> (PDF)
Logic programming in S9 scheme:<p><a href="https://www.t3x.org/amk/index.html" rel="nofollow">https://www.t3x.org/amk/index.html</a><p>You can just get the code without buying the book, learn with Simply Scheme or any other
book and apply the functions from the code, the solvers are really easy to understand.
My favorite subject when studying CompSci (TU Delft) was called "Concepts of programming languages". We learned C, Scala (for functional) and Javascript (prototypes).<p>It made learning Elixir years later much easier.<p>We also had a course that basically summed up to programming agents to play Unreal Tournament in a language called GOAL which was based on Prolog.<p>For years I've wanted to use Prolog but could not figure out how. I ended up making a spellcheck to allow LLM's to iterate over and fix the dismal Papiamentu they generate.
I took a similar class in college, and I'm also glad I did, even though the professor was kinda rubbish.<p>Even having the thinnest surface level understanding of the other ur-languages is so useful (and even more-so with assembly). I can't do anything useful with them, but it helps keep you from the "when all you have is a hammer, every problem looks like a nail" trap if you're at least aware of the existence of screwdrivers.
I was there, too. o/<p>The Unreal Tournament was the coolest thing I've ever seen. I think they shut it down the year after mine. (Now they have boring old regular AI like everyone else!)<p>I haven't found a good use for Prolog, though I haven't put much effort into it. I admit I was much more impressed by GOAL though, and I didn't realize until recently that you can replicate the whole thing in a more "ordinary" language (and that this gives many benefits). D'oh!
This GOAL?<p><a href="https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp" rel="nofollow">https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp</a>
I wrote something similar here: <a href="https://fmjlang.co.uk/blog/GroundBreakingLanguages.html" rel="nofollow">https://fmjlang.co.uk/blog/GroundBreakingLanguages.html</a><p>We agree on Algol, Lisp, Forth, APL, and Prolog. For ground-breaking functional language, I have SASL (St Andrews Static Language), which (just) predates ML, and for object oriented language, I have Smalltalk (which predates Self).<p>I also include Fortran, COBOL, SNOBOL (string processing), and Prograph (visual dataflow), which were similarly ground-breaking in different ways.
I like your list better, mostly because of the inclusion of SNOBOL, which I never used, but was one of the first programming languages I read about as a young child after a book about it caught my attention at a public library book sale because of the funny name.<p>The only languages I was familiar with before this were BASIC, Logo, and a bit of 6502 assembly, though I had only used the latter by hand-assembly and calling it from BASIC following an example in the Atari BASIC manual[1].<p>Also, it's hard for me to imagine how anyone could make a list of ground-breaking programming languages that doesn't include Fortran and COBOL (or FLOW-MATIC as the source of many of its innovations).<p>[1] <a href="https://archive.org/details/atari-basic-reference-manual/page/n74/mode/1up" rel="nofollow">https://archive.org/details/atari-basic-reference-manual/pag...</a>
I don’t understand why self is placed in the list instead of smalltalk. Smalltalk came first, and Alan Key was the one who invented the “OOP” name.<p>Also ML is seen as a child of Lisp.
They should be placed alongside each other, because Self OOP model is quite different from Smalltalk, including how the graphical programming experience feels like.<p>For those that never seen it, there are some old videos (taken from VHS) on the language site, <a href="https://selflanguage.org/" rel="nofollow">https://selflanguage.org/</a>
Reminds me a bit of Bruce Tate’s approach in 7 languages in 7 weeks, which is where I first encountered Erlang.<p>I think from a historical perspective, describing COBOL and Fortran as part of the ALGOL family is a stretch, but I suppose it’s a good reminder that all history is reductive.
Does anybody know whether Fortran is older or younger than Algol? From Wikipedia, it looks like they were both developed around 1957. Was there any overlap in the design?
Rather COBOL is a living fossil? And today's Fortran is the FORTRAN family with horizontal gene transfer from the Algol lineage of programming languages.
Both languages have their standards updated still, latest year in both cases was 2023.<p>Fortran is one of the reasons OpenCL lost to CUDA, and now even AMD and Intel have finally Fortran support on their own stacks, not Khronos based.<p><a href="https://developer.nvidia.com/cuda-fortran" rel="nofollow">https://developer.nvidia.com/cuda-fortran</a><p>Whereas Cobol, even has cloud and microservices.<p><a href="https://www.rocketsoftware.com/en-us/products/cobol/visual-cobol" rel="nofollow">https://www.rocketsoftware.com/en-us/products/cobol/visual-c...</a><p><a href="https://aws.amazon.com/mainframe/" rel="nofollow">https://aws.amazon.com/mainframe/</a><p>Incredible how being monetary relevant keeps some languages going.<p>Also note how the beloved UNIX and C are from 1971 - 73, only about 10 younger than COBOL.
> Fortran is one of the reasons OpenCL lost to CUDA, and now even AMD and Intel have finally Fortran support on their own stacks, not Khronos based.<p>FWIW, I loved using CUDA-Fortran. I think the ease of use of array variables maps very well with the way CUDA kernels work. It feels much more natural than in C++.
Can COBOL be called a living fossil?<p>I mean, programming languages do not live; and they do not "die", per se, either. Just the usage may go down towards 0.<p>COBOL would then be close to extinction. I think it only has a few niche places in the USA and perhaps a very few more areas, but I don't think it will survive for many more decades to come, whereas I think C or python will be around in, say, three decades still.<p>> family with horizontal gene transfer<p>Well, you refer here to biology; viruses are the most famous for horizontal gene transfer, transposons and plasmids too. But I don't think these terms apply to software that well. Code does not magically "transfer" and work, often you have to adjust to a particular architecture - that was one key reason why C became so dynamic. In biology you basically just have DNA, if we ignore RNA viruses (but they all need a cell for their own propagation) 4 states per slot in dsDNA (A, T, C, G; here I exclude RNA, but RNA is in many ways just like DNA, see reverse transcriptase, also found in viruses). So you don't have to translate much at all; some organisms use different codons (mitochondrial DNA has a few different codon tables) but by and large what works in organism A, works in organism B too, if you just look to, say, wish to create a protein. That's why "genetic engineering" is so simple, in principle: it just works if you put genes into different organisms (again, some details may be different but e. g. UUU would could for phenylalanine in most organisms; UUU is the mRNA variant of course, in dsDNA it would be TTT). Also, there is little to no "planning" when horizontal gene transfer happens, whereas porting requires thinking by a human. I don't feel that analogy works well at all.
I wonder if Occam is worth a mention? It doesn't feel like anything else here, and is playing with its hardware synthesis descendants on a FPGA is another "mind expanding" paradigm.
Previous discussion: <a href="https://news.ycombinator.com/item?id=35813496">https://news.ycombinator.com/item?id=35813496</a>
May 4, 2023, to be clear. 323 comments.<p>Also 30 Sept 2021, 29 comments, <<a href="https://news.ycombinator.com/item?id=28704495">https://news.ycombinator.com/item?id=28704495</a>>.
This article is full of gross mistakes. For example it claims that Caml is "Cambridge ML" which is ridiculously false. Fact check every sentence. Really sad.
For those curious: Cambridge ML is a thing, but abbreviated CML[0]; and whilst Caml <i>is</i> part of the ML family, it appears to be unrelated to CML.<p>[0] <a href="https://www.cl.cam.ac.uk/teaching/1011/FoundsCS/usingml.html" rel="nofollow">https://www.cl.cam.ac.uk/teaching/1011/FoundsCS/usingml.html</a>
Caml was originally an acronym for Categorical Abstract Machine Language [1].<p>[1] <a href="https://en.wikipedia.org/wiki/Caml" rel="nofollow">https://en.wikipedia.org/wiki/Caml</a>
Supposedly it was named "caml" because the author was a smoker who enjoyed camel cigarettes, hence the joke that [later implementations](<a href="https://en.wikipedia.org/wiki/Caml#History" rel="nofollow">https://en.wikipedia.org/wiki/Caml#History</a>) were named "Caml Light" and "Caml Special Light"
C++ has Algol roots, but I think the C++ template metaprogramming style is an ur-language of its own. You could draw some parallels with ML maybe, but they came at it from a different direction.
Most old-timers here are familiar with a Prolog-variant: make. Anyone who's struggled over a complex Makefile wishes they had a more sane declarative language!
I would refer to the world _cognate_[0]. 'Fundamental programming cognates' sounds cool as a uni course.<p>[0] <a href="https://en.wiktionary.org/wiki/cognate" rel="nofollow">https://en.wiktionary.org/wiki/cognate</a>
I always enjoy these summaries. I took my bachelor of computer science in the early 1990s. It covered a language in most of these categories.<p>We didn't learn APL (Who is teaching the use of those custom keyboards to 100s of young students for one semester?)<p>The processing power of systems at the time made it clear which language classes were practically useful and usable for the time and which were not.<p>Prolog ran like a dog for even simple sets of logic.<p>We had the best internet access and pretty powerful desktop systems for the time.<p>I'm still curious why we didn't learn smalltalk. Could have been the difficulty of submitting and marking a system in a particular state rather than a file of code :)
Reminds me of the six programming language memory models:<p><a href="https://canonical.org/~kragen/memory-models/" rel="nofollow">https://canonical.org/~kragen/memory-models/</a>
It did my heart good to see Forth listed.
I’ve very slowly been trying to do the “99 problems” list in each of these languages groups. It’s been a fun experience seeing the differences. Though I think I would need a larger, less algorithmic, project to really see each group’s strengths. Especially for the OOP group.<p>One thing the article didn’t touch on was SmallTalk’s live visual environment. It’s not a normal source code / text language.
Plankalkül
- Algol 68 docs:
<a href="https://algol68-lang.org/resources" rel="nofollow">https://algol68-lang.org/resources</a>
'a68g' it's a free as in freedom compiler.<p>- Forth: you can use PFE,Gforth for ANS Forth requeriments.
Or EForth if you reached high skills levels
where the missing stuff can be just <i>reimplemented</i>.<p>EForth under Muxleq: <a href="https://github.com/howerj/muxleq" rel="nofollow">https://github.com/howerj/muxleq</a>
I can provide a working config where a 90% of it
would be valid across SF.<p>Starting Forth, ANS version: <a href="https://www.forth.com/starting-forth/" rel="nofollow">https://www.forth.com/starting-forth/</a><p>Thinking Forth, do this after finishing SF: <a href="https://thinking-forth.sourceforge.net/" rel="nofollow">https://thinking-forth.sourceforge.net/</a><p>Also, Forth Scientific Library. You can make it working with both
GForth and PFE, just read the docs.<p>Full pack: <a href="https://www.taygeta.com/fsl/library/Library.tgz" rel="nofollow">https://www.taygeta.com/fsl/library/Library.tgz</a><p>Helping Forth code for GForth/PFE. If you put it under
scilib/fs-util.fs, load it with:<p><pre><code> s" scilib/fsu-util.fs" included
</code></pre>
<a href="https://www.taygeta.com/fsl/library/fsl-util.fs" rel="nofollow">https://www.taygeta.com/fsl/library/fsl-util.fs</a><p>- Lisp. s9fes, it will compile under any <i>nix/Mac/BSD out there, even with MinC.<p>S9fes: <a href="http://www.t3x.org/s9fes/" rel="nofollow">http://www.t3x.org/s9fes/</a><p>Pick the bleeding edge version, it will compile just fine.<p>For Windows users:
MinC, install both EXE under Windows. First, minc</i>exe, then buildtools*exe:
<a href="https://minc.commandlinerevolution.nl/english/home.html" rel="nofollow">https://minc.commandlinerevolution.nl/english/home.html</a><p>Then get 7zip to decompress the s9fes TGZ file, cd to that directory, and run 'make'.<p>Run ./s9 to get the prompt, or ./s9 file.scm where file.scm it's the source code.<p>In order to learn Scheme, there's are two newbie recommended books before "SICP".<p>Pick any, CACS, SS, it doesn't matter, both will guide you before
SICP, the 'big' book on Scheme:<p>Simply Scheme
<a href="https://people.eecs.berkeley.edu/~bh/pdf/" rel="nofollow">https://people.eecs.berkeley.edu/~bh/pdf/</a><p>Simply.scm file, select from ';;; simply.scm version 3.13 (8/11/98)'
to '(strings-are-numbers #t)' and save it as simply.scm<p><a href="https://people.eecs.berkeley.edu/~bh/ssch27/appendix-simply.html" rel="nofollow">https://people.eecs.berkeley.edu/~bh/ssch27/appendix-simply....</a><p>Concrete Abstractions<p>Book:<p><a href="https://www.d.umn.edu/~tcolburn/cs1581/ConcreteAbstractions.pdf" rel="nofollow">https://www.d.umn.edu/~tcolburn/cs1581/ConcreteAbstractions....</a><p>The SCM files needed to be (load "foo.scm") ed in the code in order
to do the exercises:<p><a href="https://github.com/freezoo/scheme-concabs" rel="nofollow">https://github.com/freezoo/scheme-concabs</a><p>If you are en Emacs user, just read the Elisp intro, it will work for a different Lisp family but
with similar design.<p>Spot the differences:<p>Scheme (like s9):<p><pre><code> (define (square x)
(* x x))
</code></pre>
We try:<p><pre><code> >(square 20)
400
</code></pre>
Elisp/Common Lisp (as the web site shows):<p><pre><code> (defun square (x)
(* x x))
</code></pre>
Same there:<p><pre><code> >(square 20)
400
</code></pre>
- Ok, ML like languages:<p><a href="https://www.t3x.org/mlite/index.html" rel="nofollow">https://www.t3x.org/mlite/index.html</a><p>If you follow the instructions on compiling s9, mlite it's similar
with MinC for Windows. If you are a Unix/Linux/Mac user, you already
know how to do that.<p>You got the whole docs in the TGZ file, and the web.
For Lisp one could also start with Common Lisp: A Gentle Introduction to Symbolic Computation (<<a href="https://www.cs.cmu.edu/~dst/LispBook/book.pdf" rel="nofollow">https://www.cs.cmu.edu/~dst/LispBook/book.pdf</a>>) and follow it with SBCL.
Yep, and after that I'd jump into PAIP, Paradigms of AI Programming.<p>Code:
<a href="https://github.com/norvig/paip-lisp" rel="nofollow">https://github.com/norvig/paip-lisp</a><p>The EPUB looks broken in my machine, try the PDF:
<a href="https://commons.wikimedia.org/wiki/File:Peter_Norvig._Paradigms_of_AI_Programming.pdf" rel="nofollow">https://commons.wikimedia.org/wiki/File:Peter_Norvig._Paradi...</a><p>Altough Scheme and CL are different paths. CL's loop it's really, really complex and Scheme it's pretty much straightforward to understand. Any advanced CL user will <i>have</i> to implement Scheme's syntax (and an interpreter) as an exercise for PAIP. CL in CL... well, CL is too huge, T3X tried with Kilo Lisp 23 <a href="http://t3x.org/klisp/22/index.html" rel="nofollow">http://t3x.org/klisp/22/index.html</a> and I doubt if anyone can even complete anything but the few starting chapters from Intro to Common Lisp with it.
Or for Lisp you might as well start with Emacs Lisp - you are going to use it for a decent environment unless you have the Common Lisp IDEs which you have to pay for or Racket.
Eh, no. You have Elisp+cl-lib but SBCL too, and you can use Sly wth SBCL.<p>Of Lem with SBCL+Quicklisp:<p><a href="https://lem-project.github.io/usage/common_lisp/" rel="nofollow">https://lem-project.github.io/usage/common_lisp/</a><p>Huge tip: if you use MCCLIM, install Ultralisp <i>first</i> and (ql-quickload 'mcclim)
<i>later</i>: it will give you a <i>big</i> speed boost. Big, not as the ones from Phoronix.
Actually big. From 'I can almost see redrawing on a really old ass netbook' to
'snappy as TCL/Tk' under SBCL.<p><a href="https://ultralisp.org/" rel="nofollow">https://ultralisp.org/</a><p>As you can see, you don't need to pay thousands of dollars.<p>For Scheme, S9 just targets R4RS but as a start it's more than enough, and for SICP
you can install Emacs+Geiser+chicken Scheme and from any Linux/BSD: distro
command prompt, you run:<p><pre><code> sudo chicken-install srfi-203
sudo chicken-install srfi-216
</code></pre>
And, as a ~/.csirc file:<p><pre><code> (import scheme)
(import (srfi 203))
(import (srfi 216))
</code></pre>
To run SCM stuff for SICP:<p><pre><code> csi yourfile.scm
</code></pre>
or<p><pre><code> chicken-csi yourfile.scm
</code></pre>
Done. Get the SICP PDF and start doing SICP. You can use Emacs+Geiser with<p><pre><code> M-x install RET geiser-chicken
if you are lazy. You can install the SICP book with
M-xpackage-install RET sicp
</code></pre>
and read it from<p><pre><code> M-x info RET
</code></pre>
and do it everything from withing Emacs by running<p><pre><code> M-x geiser
</code></pre>
(pick chicken as the interpreter).
Save your Emacs settings. Done.
Which category is TRAC? <a href="https://en.wikipedia.org/wiki/TRAC_(programming_language)" rel="nofollow">https://en.wikipedia.org/wiki/TRAC_(programming_language)</a>
Isn‘t FORTRAN also a ur-language? It was invented in 1957.
FORTRAN (1957), ALGOL (1958), and COBOL (1959) are similar.<p>Technically, FORTRAN is the oldest. One could argue that ALGOL is the most influential for language design.
I would add another to the list, which is languages where every expression yields zero or more values, particularly `jq`. there are some antecedents in Icon and xquery, but these generally require explicitly opting into either production or consumption of value streams, where jq does this stream processing automatically from the ground up. (icon requires use of a suspend and needs an every clause to walk the generated values, xquery requires explicit 'for' statements over streams as many builtin operators fail on value streams)<p>in jq, the comma separates expressions, which independently yield values. a span of such expressions is called a 'filter', since they are always run by passing values from the prior filter into them (with the initial values sourcing from json objects on stdin, or an implicit null if you pass -n to the program).<p><pre><code> $ jq -nc ' def x: "a", "b", "c" ; def y: 1, 2, 3 ; x, y '
"a"
"b"
"c"
1
2
3
$ jq -c '. + 10, . + 20' <<< '1 2 3'
11
21
12
22
13
23
</code></pre>
brackets collect values yielded inside of them.<p><pre><code> $ jq -nc ' def x: "a", "b", "c" ; def y: 1, 2, 3 ; [x,y] '
["a","b","c",1,2,3]
</code></pre>
if you have a complex object that includes multiple expressions yielding multiple values, construction will permute over them.<p><pre><code> $ jq -nc ' def x: "a", "b", "c" ; def y: 1, 2, 3 ; {"foo": x, "bar": y} '
{"foo":"a","bar":1}
{"foo":"a","bar":2}
{"foo":"a","bar":3}
{"foo":"b","bar":1}
{"foo":"b","bar":2}
{"foo":"b","bar":3}
{"foo":"c","bar":1}
{"foo":"c","bar":2}
{"foo":"c","bar":3}
</code></pre>
the pipe operator `|` runs the next filter with each value yielded by the prior, that value represented by the current value operator `.`.<p><pre><code> $ jq -nc ' 1,2,3 | 10 + . '
11
12
13
$ jq -nc ' 1,2,3 | (10 + .) * . '
11
24
39
</code></pre>
binding variables in the language is similarly done for each value their source yields<p><pre><code> $ jq -nc ' (1,2,3) as $A | $A + $A '
2
4
6
</code></pre>
functions in the language are neat because you can choose to accept arguments as either early bound values, or as thunks, with the former prefixed with a $.<p>for example, this runs `. + 100` parameters context, with `.` as the 10,20,30 passed to it:<p><pre><code> $ jq -nc ' def f($t): 1,2,3|$t ; 10,20,30|f(. + 100) '
110
110
110
120
120
120
130
130
130
</code></pre>
where this runs `. + 100` in the context of its use inside the function, instead receiving 1,2,3:<p><pre><code> $ jq -nc ' def f(t): 1,2,3|t ; 10,20,30|f(. + 100) '
101
102
103
101
102
103
101
102
103
</code></pre>
so you could define map taking a current-value array and applying an expression to each entry like so:<p><pre><code> $ jq -nc ' def m(todo): [.[]|todo] ; [1,2,3]|m(. * 10) '
[10,20,30]
</code></pre>
it's a fun little language for some quick data munging, but the semantics themselves are a decent reason to learn it.
Lots of us are having fun identifying our choice for missing family :)<p>One I might suggest is scripting languages, defined loosely by programming tools which dispatch high-level commands to act on data pipelines: sed, AWK, the sh family, Perl, PowerShell, Python and R as honorary members. In practice I might say SQL belongs here instead of under Prolog, but in theory of course SQL is like Prolog. Bourne shell might be the best representative, even if it's not the oldest.<p>AWK et al share characteristics from ALGOL and APL, but I feel they are very much their own thing. PowerShell is quite unique among modern languages.
Another direction to explore logic languages is Datalog.
Folks might find the following useful for studying PLs;<p>1) <i>Advanced Programming Language Design</i> by Raphael Finkel - A classic (late 90s) book comparing a whole smorgasbord of languages.<p>2) <i>Design Concepts in Programming Languages</i> by Franklyn Turbak et al. - A comprehensive (and big) book on PL design.<p>3) <i>Concepts, Techniques and Models of Computer Programming</i> by Peter Van Roy et al. - Shows how to organically add different programming paradigms to a simple core language.
<i>laugh in vibe coding</i>
[dead]
(2022) and unfortunately advice to spend significant amounts of time in learning multiple languages is becoming rapidly redundant in the LLM age.
Hmm, here's a thought... If you want to stand out, it doesn't matter that some things now are easier for everybody, what matters is that that you are able to get better results than others. Learning multiple languages gives you more the ability to use them. It improves your thinking, makes you a better coder, and more able to understand different techniques. LLMs are tools, to use them better than the next person you need to understand what to ask, and what a good answer looks like.
Exactly. If nothing else, writing a solver in Python or Java might take dozens or hundreds of lines more code than Prolog, so simply knowing what tools are best for what jobs helps you be a better developer, whether you're using a compiler or an agent.
Sure, but that's about thinking and describing in more high-level <i>English</i>, not individual programming languages. That era is over.<p>Advice to juniors (say) to spend time learning multiple programming languages over good command of a single one, deep expertise in LLM use and basic software engineering principles is going to severely undermine their value in an already tough field for entrants. For seniors there will generally already be a reasonable grounding in multiple paradigms; delving much further into legacy manual coding styles is going to see them leapfrogged by experts in modern (ie AI-assisted) approaches.
These are tools for thinking with, so not obsolete.
Agree (redundant, not obsolete), but there are better tools for the job in terms of the production value gained in terms time and mental energy spent in mastering them. You can certainly think less as tech becomes more powerful in a domain; I wouldn't advise that either.
GP is just trying to convince you that thinking is "rapidly redundant in the LLM age".
Not at all. That’s like saying learning how different kinds of engines work is redundant in the age of taxis. You don’t <i>have</i> to know any of this stuff in order to get from A to B. But if you want to understand the processes involved in getting there, or you maybe want to be the one that builds a better self-driving vehicle, this is where you should start.
You're right. We should just run everything in java-script because that's what LLMs are good at right?