"Shen: A Sufficiently Advanced Lisp" by Aditya Siram
Channel:Strange Loop Conference · Length:40:19 · Published:2014-09-22 · Views:26138
Summary
Aditya Siram introduces Shen, a small hosted Lisp with macros, a built-in Prolog and an optional type system. The talk demos a full web app moving between functional, logic and imperative styles, including turning JSON into a type with macros.
Why HN recommends it
It is the standard recommended introduction to Shen, pointed to whenever Shen or its type system comes up.
@deech's talks, though older now, are fantastic and relevant[1,2]. — HN, 2023
Programming language design · Functional programming
Subtitles (excerpt)
uh my name is Dee uh I live here in St Louis I work at in toxim meters uh since today is National Talk Like a Pirate Day I will be pointing the slides with [Music] these in case the first one breaks I have the second one down there because that's important uh so today I'm talking about Shen uh it's one of the newer entries into the list family and one of the more interesting ones so let's get let's just get some text out of the way real quick this is how you define a function in chin uh you start off with Define which is fairly which is fairly routine and the name of the function but all of the arguments are pattern matched right so that first pattern match only happens if the second argument is nil if the second argument is not nil it just falls through to the second thing uh so if I go welcome strange Loop nil it's it's just going to say welcome to strange Loop if I say welcome strange loop St Louis it's going to say welcome to strange Loop and St Louis so this is not very Lish this is Mish but it's still a list trust me uh it's just got this pattern matching which is actually really nice it's also got optional type checking uh which you uh turn on by using the form tc+ it's turned off by
On Hacker News
I love Shen, but I have not taken it on. I subscribed to the professional version for half a year, and I like the amount of implementations of Shen in other PLs. The pattern matching, optional type checking, and the built-in Prolog is incredible. It's a case where the creator has been shunned by the wider community, partially due to his diplomacy, but he is brilliant, and the uptake has been nich… — eggy, 2023-09
Stanza looks very interesting. I'll have to check it out. Thanks! Shen allows you to turn the type checker on or off: (tc +) (tc -) You can leave your type signatures in the code when you turn them off, and when tc is on you only need a type in the top level of your function. It has a fully functional Prolog engine built in, and it supports optional lazy evaluation too. Great talk by Aditya Siram… — eggy, 2016-05
I was considering Shen[1] for this type of use, since it is implemented in many languages. It is a Lisp with built-in Prolog. Feature list from the site's main page: pattern matching, lambda calculus consistency, macros for defining domain specific languages, optional lazy evaluation, static type checking based on sequent calculus, one of the most powerful systems for typing in functional program… — eggy, 2023-04
I am learning Shen [1], and this talk [2] shows how you can write Shen on JavaScript, Ruby, front an backend. Shen is a lisp with pattern matching, optional lazy evaluation, optional static type checking, macros of course, and many other cool treats! It can run on top of CL (SBCL), Clojure, JavaScript, Python, and more. [1] [LINK] [2] [VIDEO] — eggy, 2015-09
Looking for a feel for Shen? A Strange Loop talk by @deech (40minutes): Shen: A Sufficiently Advanced Lisp. [VIDEO] An essay: [LINK] It's insightful and readable and it links to several articles new Shen users would be interested in[0]. It was written before Shen, so it talks about Shen's predecessor, Qi. This article and the Bipolar Lisp Programmer by Mark Tarver (creator of Shen) made me feel n… — delish, 2015-06
Related videos
- Making a heart with Maths · Inigo Quilez · 10:13
- Jonathan Diegelman - Modeling Spacecraft Separation Dynamics in Julia · The Julia Programming Language · 16:04
- Does APL Need a Type System? by Aaron W Hsu at #FnConf18 · ConfEngine · 54:30
- Ruby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich · Confreaks · 53:21
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Solving Problems the Clojure Way - Rafal Dittwald · Clojure/north · 1:02:26
- Lecture 1A: Overview and Introduction to Lisp · MIT OpenCourseWare · 1:12:55
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55