5 ms·
Single implementation > standard clusterfucks. Look at Java, Perl, Python, Ruby, Php, etc., vs. CL, Scheme, C, C++...
by bitwize 9y ago
Single implementation > standard clusterfucks. Look at Java, Perl, Python, Ruby, Php, etc., vs. CL, Scheme, C, C++...
- deleted 9y ago[deleted]
- pjmlp 9y agoAny language that actually matters in the market reaches a point where it has multiple implementations.
- eesmith 9y agoCPython, PyPy, Jython, IronPython, MicroPython, Nuitka, ..
- reikonomusha 9y agoYet most of those don’t actually play well with on another, with various major and minor incompatibilities.
- eesmith 9y agoAre there any languages where the different implementations "play well with each other"? Perhaps C? I remember all the hassles of working with different Fortran compilers (and C++ compilers) simply because of different function name mangling in the .o files. Which major incompatibilities are you thinking of between CPython and PyPy, which are the two I use most often? Are they more severe than the incompatibilities between the different Common Lisp, which the author describes? (I regard C extensions as implementation-specific features outside of the Python language. The different Common Lisp implementations also have implementation-specific features which are not portable.) MicroPython is deliberately not Python compatible (differences at http://docs.micropython.org/en/latest/pyboard/genrst/index.html http://docs.micropython.org/en/latest/pyboard/genrst/index.h... ) but the others have a goal of not having major incompatibilities.
- flavio81 9y ago>Are there any languages where the different implementations "play well with each other"? Yes: Common Lisp, Java, C and C++, to give four examples. Javascript as well. All these languages have formal standards, which helps a lot. >Which major incompatibilities are you thinking of between CPython and PyPy, which are the two I use most often? Are they more severe than the incompatibilities between the different Common Lisp, which the author describes? PyPy attempts to implement the full Python 2.7 language but there are things missing. You argue that Python's CFFI features are "implementation-specific", let's just agree with this; but the Python 2.7 language also defines -as part of the spec- many modules, and PyPy does not implement all of those modules, so it's not implementing the full set of features defined by that spec. Code written in Common Lisp should run (and often runs) correctly with no change in all mature Common Lisp implementations (and there are many of them), unless the code uses implementation-dependent features. Those implementations implement the full set of features defined by the ANSI Common Lisp standard.
- eesmith 9y agoAhh, I see you have a different definition of "play well with each other" than I do. I was thinking of things like having two different C++ compilers generate .o files which can then be linked together. Since the ABI isn't part of the C++ specification, there have been many problems (see https://stackoverflow.com/questions/7492180/c-abi-issues-list https://stackoverflow.com/questions/7492180/c-abi-issues-lis... ) in getting two different C++ compilers to work together. The platform-specific ABIs help, a lot, but don't solve all the problems. Regarding missing modules, which ones? And don't C compilers have similar issues? https://en.wikipedia.org/wiki/C99#Implementations https://en.wikipedia.org/wiki/C99#Implementations helpfully points out Clang "Supports all features except C99 floating-point pragmas", and Microsoft's compiler doesn't implement tgmath.h. I thought also that most Python code runs correctly with no change in CPython and PyPy, where "correctly" includes not using implementation-dependent features like third-party C extensions or garbage collection behavior.
- sgt101 9y agoI don't remember Java going down this path. Also the Julia license is very permissive which undermines the commercial case for, and removes the community imperative for alternate implementations.
- dkersten 9y agoWhat path? Java has many compatible implementations and I've never heard of anyone having problems because of this.
- pjmlp 9y agoJava always had multiple implementations since the early days. That was one of the ways how Sun made money with it, by certifying implementations for the trademark symbol.
- shakna 9y agoJava actually has a lot of implementations. [0] Some examples you might know: HotSpot, the base for Java SE and OpenJDK OpenJ9, now run by Eclipse. DoppioJVM, a JVM for JavaScript. [0] https://en.wikipedia.org/wiki/List_of_Java_virtual_machines#Free_and_open_source_implementations https://en.wikipedia.org/wiki/List_of_Java_virtual_machines#...
- SeanLuke 9y agoJava has many implementations: and it has a standard. Why is it on the left hand side of this equation, rather than being a strong counterexample to your argument? And you really want to use PHP as an example of a good situation?
- jorams 9y agoI really don't understand how you're trying to compare those languages. The first language you name in your "single implementation"-list is Java, which is standardized and has multiple implementations. Maybe it's "quality" or "lack of bloat"? That can't be, because one of the largest clusterfucks in those departments, PHP, is on the left. Maybe you're talking about popularity? The list of "standard clusterfucks" includes C, C++ and (though you don't mention it) JavaScript, which are some of the most popular programming languages in the world. What are you trying to say?
- flavio81 9y agoWhich standard clustefuck? Common Lisp is an ANSI Standard and code usually compiles and run straight away from one implementations from another without any change.
- reikonomusha 9y agoAnd to add to that, most non-standardized features like threads have de facto standard implementations that libraries rely on.