8 ms·
"Modern C++ has shifted focus from an emphasis on type (objects) which accommodate algorithm to an emphasis on algorithms parametrized over types." That may be
by Animats 10y ago
"Modern C++ has shifted focus from an emphasis on type (objects) which accommodate algorithm to an emphasis on algorithms parametrized over types."
That may be a bug, not a feature. The Boost crowd won the battle, making extremely complex templates an essential part of the language. But they may have lost the war, as C++ loses market share.
LISP backed into typing, and it shows. Both typed variables and objects are painful in LISP. By the time LISP got both, the era of LISP was over. LISP is really dead now; there hasn't been a release of GNU Common LISP ("clisp") in 7 years.
- sedachv 10y agoPlease quit trolling. Allegro CL 10.0 released on 2015-10-05 ABCL 1.4.0 released on 2016-10-08 CCL 1.11 released on 2015-11-06 ECL 16.1.3 released on 2016-12-19 Lispworks 7.0 released on 2015-05-05 MKCL 1.1.10 released on 2017-01-18 SBCL 1.3.15 released 2017-02-28
- e40 10y agoAnd the Allegro CL 10.1 release is imminent.
- papaver 10y agoexcept clojure is one of the most powerful languages around atm? which is a lisp??
- hughw 10y agoI recently came back to write a small experiment in C++. I programmed it professionally for a decade, ending in 2002, and was pretty good at it. After the last 16 years working in Java, Scala, Clojure, and Javascript, I have two observations on C++ 11: a) Grateful for the extensive access to algorithms, lambdas, type inference; b) Astounded at the complexity of template meta programming. I imagine I'll get better at it with practice. But I'm operating at about 15% of the time efficiency of, say, Scala.
- AstralStorm 10y agoWhy do you really need to do template metaprogramming? Generally that is not required even in performance sensitive code. Perhaps a few conditionals a'la enable_if or direct use of SFINAE... but most everything else, not really.
- hughw 10y agoI needed to create a custom iterator for Thrust, a STL/Boost-like library for CUDA.
- hughw 10y agoAdditionally: I needed to make a program to join two tables by a common subset of their columns. It's desirable in CUDA, to enhance caching locality, to work with structs of arrays rather than arrays of structs. So a pattern in Thrust is to work with tuples. You zip up your columns and then you can use them in transformations. That's nice enough. The trouble arises when you need to write code to join (and transform) table A having NA columns, by table B having NB columns, sharing some number of shared columns NC. To manipulate the tuples you end up specializing cases and you build some awful large switch statements. That is, if you're a naive rookie, like me. Then you back off, and try to learn a little meta programming. You actually can dynamically treat tuples, sort of like lists, a little bit. But finally I decided that too is a kind of madness, and I'm on my third try, this time using a custom iterator over good old-fashioned dynamic vectors of arrays, so I can sidestep tuples altogether, and still use the structure of arrays idiom.
- hughw 10y agoOh -- and enable_if, and SFINAE -- these are terms I've learned only in the last three weeks, but yes, I would count having to learn even those concepts, to successfully use the language, as an obstacle and not for the faint of heart, right?
- int_19h 10y agoGenerally speaking, you don't have to know them unless you're writing generic libraries in the vein of STL and Boost. If you're just using those, then SFINAE etc is the magic under the hood that makes it all "just work".
- coldtea 10y ago>LISP is really dead now; there hasn't been a release of GNU Common LISP ("clisp") in 7 years. Lisp might be dead, but this sentence is a non sequitur.
- lgas 10y agoCars really are dead now; there hasn't been a release of the Model T since 1927.
- lispm 10y agoGNU Common Lisp and CLISP are two different things. GNU Common Lisp : https://www.gnu.org/software/gcl/ https://www.gnu.org/software/gcl/ GNU CLISP : http://clisp.org http://clisp.org CLISP hasn't had a release in a few years, but the repository has a lot of activity these days: https://sourceforge.net/p/clisp/clisp/ci/e4aba2ecdcf71968053cc457bb21db2bf2a04960/log/?path= https://sourceforge.net/p/clisp/clisp/ci/e4aba2ecdcf71968053... > there hasn't been a release of GNU Common LISP ("clisp") in 7 years. CLISP had a beta release a few days ago. Just installed it on my Mac: this is GNU CLISP 2.49.50 from 2017-03-19. $ clisp i i i i i i i ooooo o ooooooo ooooo ooooo I I I I I I I 8 8 8 8 8 o 8 8 I \ `+' / I 8 8 8 8 8 8 \ `-+-' / 8 8 8 ooooo 8oooo `-__|__-' 8 8 8 8 8 | 8 o 8 8 o 8 8 ------+------ ooooo 8oooooo ooo8ooo ooooo 8 Welcome to GNU CLISP 2.49.50 (2017-03-19) <http://clisp.org/> Copyright (c) Bruno Haible, Michael Stoll 1992, 1993 Copyright (c) Bruno Haible, Marcus Daniels 1994-1997 Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998 Copyright (c) Bruno Haible, Sam Steingold 1999-2000 Copyright (c) Sam Steingold, Bruno Haible 2001-2010 Type :h and hit Enter for context help. [1]> (lisp-implementation-version) "2.49.50 (2017-03-19) (built 3699208367) (memory 3699208818)" Doesn't look dead to me... GNU Common Lisp is currently a bit less active: http://git.savannah.gnu.org/cgit/gcl.git/log/ http://git.savannah.gnu.org/cgit/gcl.git/log/ Other 'free/open source' implementations are currently more interesting, especially ECL, Clozure CL and SBCL. I have on my 32bit ARM under Linux the following implementations: GCL, ECL, LispWorks, SBCL, CCL, ABCL. LispWorks, CCL and SBCL are native compilers. I'd say that's enough choice. > LISP is really dead now Not more than usual.
- agumonkey 10y agoI wish I was as dead as lisp. The thing is still malleable and performing into the top 10 languages despite being completely out of mainstream and big guns radar. Meanwhile most mainstream languages (c11, js, python, ...) have bended towards closures as a central paradigm. Not to mention advanced python talks that are mostly CLOS MOP, and humm perl6 which allows to hack as much as CL. Lisp as a product is dead, but the genetic line is still flowing; mostly because of its origin as proto AI recursive logic vehicle.
- kazinator 10y agoThere has to be a law. Any time someone criticizes some FOSS project for not making a new release in seven years, that's an indicator that it just happened two or three days ago.