Not to start a flamewar, every time I see a python talk (pycon or else), with fancy tricks like metaclasses.. all I can think is that, well, CLOS would have been perfectly fit for this too. I know people are tired of the "lisp/smalltalk did it better" but what features of python are not possible (or hard) in CL[OS] ? ps: how many CL shops are out there ? I'd work near free just to try a CL team once.
CLOS (as you presumably know) models method application as calls to generic functions, instead of the now-more-mainstream Smalltalk-like message-dispatch approach which Python uses. The latter allows for things like overriding __getattr__ to intercept ‘all’ method calls and property accesses, for which I don't think there's any equivalent in CLOS. The way methods are ‘attached’ to classes gives you a natural form of…
Python vs Common Lisp, workflow and ecosystem (2019)
41–50 of 83 posts
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#42However, I think this article is a bit skewed and not highlighting things Python has.
For instance, the standard library means that Python is more usable out of the box.
Also when you've got things like iPython or Jupyter it means you can get off the ground easily.
So, in the end, they're two different languages, and I do not think either is better of the two. Right tool for the job and all that.
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#43Earlier quoted context omitted.
Python performance is something that I see about 15-20x as much in discussions about python than I do wrestling with real life problems.
Agreed. The only time in practice (working on datasets consisting of millions of rows) that Python has been too slow was when I was taking courses in college and their online code thing timed out on some specific graph problems. I rewrote the algo in C# without any fuss
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#44I'm not a particularly experienced or good Lisp programmer, I can customize Emacs, but that's pretty much it. However, I think this article is a bit skewed and not highlighting things Python has. For instance, the standard library means that Python is more usable out of the box. Also when you've got things like iPython or Jupyter it means you can get off the ground easily. So, in the end, they're two different langua…
[0]: https://lisp-journey.gitlab.io/pythonvslisp/#state-of-the-li...
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#45Not to start a flamewar, every time I see a python talk (pycon or else), with fancy tricks like metaclasses.. all I can think is that, well, CLOS would have been perfectly fit for this too. I know people are tired of the "lisp/smalltalk did it better" but what features of python are not possible (or hard) in CL[OS] ? ps: how many CL shops are out there ? I'd work near free just to try a CL team once.
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#46Earlier quoted context omitted.
Yeah, they're very much doing it. Pandas is huge, libraries like Spacy, NetworkX, etc exist. It's a massive and good ecosystem. Python is the goto for scientific computing in most of the sciences for newer students I'd hazard a guess over the older R and Julia. This will be blindingly obvious if you work in that area. Yes, you can do it in another language, but you're missing out on a lot of stuff that is just done a…
> and is fast because the speedy parts aren't in Python. Having worked months with a slew of senior data scientists, this was a bit painful. Python is so slow and those data scientists were very good at coming up with solutions for the issues of the company, but the implementations (using Spacy, Pandas and other libs) had enough Python in them to make them not practical for the company use case. Nice prototypes which…
This development process allowed creation of a good solution that you were then able to quickly port to a performant production platform.
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#47Earlier quoted context omitted.
You're missing the point. What makes python 'fast' is that it comes with 'out of the box' support for everything I might need. Reading and writing obscure file formats. Every sparse matrix, image processing and graph algorithm I might need has already been implemented. Do I need to all of sudden solve an optimization problem or a differential equation? Already nicely integrated with the library using. If I need some…
There's quite a few C/C++ libraries for those things, right? Integrating them with proper FFI (of the kind that Chez has, for example - or LuaJIT, for that matter) seems hardly difficult...although differential equations or optimization problems may be better served without any language interfaces whatsoever since they involve functional parameterization. That generally sucks with mixed-language solutions, to the ext…
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#48Not to start a flamewar, every time I see a python talk (pycon or else), with fancy tricks like metaclasses.. all I can think is that, well, CLOS would have been perfectly fit for this too. I know people are tired of the "lisp/smalltalk did it better" but what features of python are not possible (or hard) in CL[OS] ? ps: how many CL shops are out there ? I'd work near free just to try a CL team once.
Beginner approachability seems to be the key feature. Possibly also integration with external libraries.
I like python but I'm a bit fed up with the mobthink (how surprising).
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#49python != lisp. It's really that simple.
Re: Python vs Common Lisp, workflow and ecosystem (2019)
#50I like Lisp, and I'm not a fan of e.g. Python's whitespace sensitivity. That said, for niches such as ML and data science, I find you just can't beat the Python ecosystem.
> for niches such as ML and data science, I find you just can't beat the Python ecosystem There definitely are many areas where Python is best, but for ML and data science, Julia is (i) very competitive in library coverage, (ii) more performant and flexible, and (iii) has a very good Python bridge if it's needed. I can imagine there are niches within ML and data science where what you need are Python-only libraries,…
I think people often underestimate just how much faster Julia is than numpy, I've consistently seen performance improvements on the order of 10x-30x when porting code.