8 ms·
Lispers
- FullyFunctional 9y agoFanatics deliberately abandon objective judgement. Many of the quotes makes me question the authors experience. Everything is relative. Compared to Fortran, Lisp is all that and more. Compared to modern languages (say, Haskell), not so much.
- lispm 9y agoHaskell appeared in 1990. Around 1987 I was as a student sitting in front of a real Lisp Machine, a Symbolics 3600, running in an AI research lab for natural language interaction. The machine with a stack-based CPU ran an object-oriented operating system written in a million lines of Lisp, with full source code and runtime changes. There is nothing which will blow your mind like that.
- progman 9y agoThose amazing Lisp machines were far ahead of their time. Unfortunately the hardware was very expensive, and it lacked power. Today we have the right cheap hardware. Actually, there is a Lisp revival going on in the OSS community. Consider McClim [1] for instance which attempts to port the amazing GUI of the Lisp Machines to PCs. It already works. [1] https://common-lisp.net/project/mcclim/ https://common-lisp.net/project/mcclim/
- erikj 9y agoMcClim existed for decades and it's still struggling to become production-ready, a poor example of the "revival".
- progman 9y ago> it's still struggling to become production-ready McClim is not a business case. It is just a project to revive the most sophisticated GUI for Lisp. The graphical shell [1] for instance which already works gives a remarkable impression. [1] https://common-lisp.net/project/mcclim/static/media/screenshots/listener1.jpg https://common-lisp.net/project/mcclim/static/media/screensh...
- jcelerier 9y agoTruly amazing. https://common-lisp.net/project/mcclim/static/media/screenshots/2eL0LhQ.png https://common-lisp.net/project/mcclim/static/media/screensh...
- lispm 9y agoAt that time the machine didn't lack power. There was nothing similar. Large disks, large virtual memory, a 68k processor for driving the frontend IO, large bitmap screen, 10+ bus slots, tape drive, ethernet, ... all for a single user. It's hard to imagine, but 10MB RAM were amazingly expensive in the early 80s. Similar for harddisks with 100MB... On a timeshared VAX 10-100 people had to share this amount of RAM...
- progman 9y ago> Many of the quotes makes me question the authors experience Do you have enough experience that you dare to judge him? > Compared to modern languages (say, Haskell), not so much. I disagree. I was in a lot of languages, in all different programming styles. Lisp still is the language with a maximum of freedom of programming, probably also regarding productivity. Only Nim comes close. Haskell may look elegant at the surface, regarding productivity however I don't recommend it except for DSL and compiler construction. If you are not a world class expert in Haskell then in most cases Haskell takes a lot more time for development than other languages (say Lisp, Python, C++, even Rust).
- dmytrish 9y ago> in most cases Haskell takes a lot more time for development than other languages - and takes negligible maintenance/refactoring time compared to Lisp/Python/C++. Maintenance timesink might easily outweigh the gain in development time. That's the promise of strong type systems: preventing bugs from happening before you have to debug them in production and it does not come absolutely free.
- lispm 9y agoIn Lisp you can change the programs while they are running, in ways not possible in Haskell. The time Haskell needs to recompile the code to machine code, I have fixed the Lisp bug already.
- olewhalehunter 9y agoWhat are some examples of open source Lisp projects and codebases whose features and elegance could have only been executed as well as they are in the language, or are just great codebases in general to study?
- matthewbauer 9y agoI think Emacs is the best example.
- rekado 9y agoGNU Guix. It uses code staging a lot, which works best in a language in which you can trivially pass around code as data. It also demonstrates that Scheme is flexible enough to easily implement features that the language designers did not, such as monads and laziness. While both can be done in almost any language, I think that Scheme's macros allow for exceptionally seamless implementations.
- Bromskloss 9y ago> code staging I'm trying to look up what this means. Do you have a link?
- kazinator 9y ago"Code staging" is a phrase that is used around people who are allergic to the word "macro", because they associate it with #define, or "Excel macro".
- rekado 9y agoIn Guix not only package definitions are written in Scheme, but also build phases. These build phases are evaluated at a different time in the context of the build daemon. This means that there are two major strata, both of which are written in Scheme. Expressions that are evaluated in the build context look no different than other expressions. That's not the only instance of "staged" execution. Guix introduces G-expressions, a quoted expression in a build context where unquoted package values are replaced with absolute directory names that are not known until execution time. Quoting and unquoting code and dealing with different strata of evaluation come natural in Scheme. Another simpler example of staged execution might be the remote code execution feature of Guile-SSH. You may also like to read about multitier programming in Hop: http://queue.acm.org/detail.cfm?id=2330089 http://queue.acm.org/detail.cfm?id=2330089
- Fej 9y agoLisp is a beautiful language (or, to be more precise, set of languages). It is absolutely essential to a computer science education. It also gets unwieldy when programs get complex.
- webkike 9y agoLisp is the best language for any task that does not require types.
- progman 9y agoYou can add static type checking in Lisp anytime if you want. Consider the discussion at [1]. [1] http://compgroups.net/comp.lang.lisp/static-type-checking-in-lisp/695744 http://compgroups.net/comp.lang.lisp/static-type-checking-in....
- threatofrain 9y agoThere's Typed Racket: https://docs.racket-lang.org/ts-guide/quick.html https://docs.racket-lang.org/ts-guide/quick.html
- deleted 9y ago[deleted]
- sds2 9y agoNo, it shouldn't be. Lisp is not practical(try to prove it otherwise, there's no evidence) and it's only a thing now because some ppl likes its esoteric syntax. It's way too overhyped.
- progman 9y agoYou find many practical examples at planet.lisp.org.
- Risord 9y agoReal apps has been built with lisp so therefore it's at least some what practical. On the other hand I just cannot see anything fundamental which makes lisp lot less practical from many commonly used business languages. Well ecosystem size may not same but on day one most languages haven't Hugo ecosystem. There are lot of schools and if you are "be a cool web app developer"-school where you learning direct skills reauired most common web dev jobs today... Yeah lisp is not essential. But if you are "computer SCIENCE"-school and you targeting variety of fundamental cocepts of field I say that lisp is quite essential.
- hellofunk 9y agoIt sounds like hypberbole, but the quotes are true. I was professionally writing Objective-C, C++ and eventually Swift for many years before using Clojure full-time for a year. My Objective-C, Swift and C++ don't look the same any more. It does change how you think about programming, in any language. And makes you better across the board.
- willtim 9y agoBut was it Clojure or perhaps functional programming in general that "changed how you think about programming"?
- setzer22 9y agoI can't answer for GP, but to me personally, I had prior experience in both Haskell and Erlang before jumping into Clojure. And I can say that I share the feeling: Lisp changed the way I approach programming. Probably metaprogramming (the all-mighty macros & co.) and REPL-driven development are the two most important things I learned from Clojure (and Lisp in general). And I won't say that the paradigm shift to functional programming didn't broaden my view either, my point is that there is more to Lisp than being functional-ish.
- willtim 9y agoHaskell also supports metaprogramming and a REPL, these are not unique to Lisp. But granted, Lisp's syntax makes metaprogramming very convenient.
- frou_dh 9y agoOn reddit they call that kind of thing a circlejerk.
- wodenokoto 9y agoAny good introductions to datascience/NLP/ML or AI using LISP?
- kgwgk 9y agoParadigms of Artificial Intelligence Programming: Case Studies in Common Lisp http://norvig.com/paip.html http://norvig.com/paip.html
- bhnmmhmd 9y agoThis book is very very very old. It basically belongs to an era when AI was mostly concerned with symbolic computation. AI nowadays has taken a whole different path with neural networks.
- lispm 9y agoThere is very little actual AI in neural networks. Most of the applications I have seen are in signal processing, pattern recognition, ... For example there is very little reasoning capability in neural network applications going on. Show a child two dogs and it will recognize most dogs from now on and you can ask it why it thinks something is a dog. Try that with neural networks after showing it a zillion dogs... Doing anything more AIish will need an old-fashioned symbolic system and that stuff is still hard. Take for example IBM's Watson. It's a big system with all kinds of different modules. The language frontend is written in old-fashioned Prolog.
- ghosthamlet 9y agoI agree with you partially. But we still don't know how exactly does human brain work and learn. Maybe Computer AI as silicon based life will go on a path different from human.
- kgwgk 9y agoI'm curious: does "Artificial Intelligence: A Modern Approach" by Russell and Norvig also belong to a long-gone era?
- edem 9y agoI did Peter Siebel's tutorial which is suggested at the bottom some years ago and it gave me that "profound enlightenment experience". Great stuff.
- suprfnk 9y agoFor those looking for a quick overview of the language, I like this website: https://learnxinyminutes.com/docs/common-lisp/ https://learnxinyminutes.com/docs/common-lisp/
- dmytrish 9y agoThe home page looks like a tombstone of Common Lisp with a bunch of epitaphs on it. On the other hand, the spirit of Lisp has successfully taken over the world. The modern Lisp is called JavaScript. I am perfectly aware of all the differences between Lisp and JavaScript and of the other languages that have influenced JavaScript (Self, Perl, Lua), but think of this: what made Lisp so great in the past? - automatic memory management (compared to Fortran/C); - very dynamic language and environment, hooks on everything, live systems; `eval`, available meta-interpreter; - exceptions and condition system instead of segfaults; - multi-paradigm, flexible programming language: functional, OO and imperative programming when needed; - research roots and great minds behind the language; What JavaScript has fixed compared to Lisps? JavaScript has fixed S-expressions; "I can program in S-expressions" does not mean "I should". Macros are harmful to programming in the large. JavaScript applied existing lessons about data structures and object systems to the language: "I can roll out my own object system" does not mean "I should" and creates a Babel tower of incompatible object systems instead of a common language. JavaScript got rid of linked lists (that are awkward and impractical for everyday use) and introduced hash-tables into the language. The modern JS ecosystem seems to be exactly what a Common Lisp ecosystem would have been if it had existed in the first place: the same diversity, the same problems, the same churn rate (because the language is powerful and writing new stuff is easy). JavaScript has also successfully escaped perception of "a language for brains". Research background is actually harmful for a modern programming language. Examples are abound: Haskell is widely derided by the industry, slightly researchy Scala is "borderline unmanageable" for many and teams move back to Java; C++ with its experiments is tolerated for its interoperability with C, but gets a lot of (deserved) hate for its (often unnecessary) complication (hopefully, Rust has a good cover for the industry as "enhanced C++"); simplistic Go takes the world over by storm; the web is mostly written in PHP, whose inventors are as far from PL research as one can get.
- lispm 9y agoIt's just that Javasript will need to catch up with core language tools for another decade. Just compare your typical Javascript compiler and the language it provides with something like SBCL. Generally I agree that Javascript is similar, in many ways. But worse. Worse can be better, but we know that already. ;-)
- gkya 9y ago> “Lisp doesn't look any deader than usual to me.” > — David Thornley, reply to a question older than most programming languages Oh I like this one (emphasis mine) :)
- agumonkey 9y agoTell me it's a PHP backend