Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

MADE IN LISP

Name: Anonymous 2011-01-10 23:34

>cancel download

Name: Anonymous 2011-06-30 0:29

>>39
Y U NO LIKE VIM

Name: Anonymous 2011-06-30 0:30

Name: Anonymous 2011-06-30 0:44

>>41

I've actually been forcing myself to learn it. It's not bad, but it's not very hackable. Case in point, I was using Tuareg mode in Emacs to edit OCaml. There was a default setting that sucked and didn't work. I type a few commands in to change the mode, reload, and I keep on working, with my OCaml window on the bottom and my code on top. Emacs, after a while, feels like a second skin, and I just never feel that way about vim.

I do use vim when SSHing somewhere, however, because it's awesome 'out-of-the-box' compared to Emacs. Maybe I'll eventually switch over to vim, although SLIME sort of keeps me in Emacs.

Name: dubzbot-ng 2011-06-30 0:44

:GJS1M 67dcbdbce4a0b67c4b48e86a6ae29205a95e4b83024a9d947213d1231800e8d9
:66 749020605ab193c323926844a2f6acb1
:1294720492 1309409086

>>35
<-- that's cool and all, but check 'em

Name: Anonymous 2011-06-30 0:59

>>39
The only thing of note in your post was your berating of Emacs Lisp for lacking lexical scoping while decrying Scheme for being ``ALGOL with parentheses'', considering that lexical scoping is about the only notable thing that Scheme shares with ALGOL, Mr. 'I read Lisp books under the influence of Paul Graham' guy.

Name: Anonymous 2011-06-30 1:26

>>45

The only thing of note in your post

Oh no, you found the rest of post unworthy of attention! Whatever will I do?

was your berating of Emacs Lisp for lacking lexical scoping while decrying Scheme for being ``ALGOL with parentheses'', considering that lexical scoping is about the only notable thing that Scheme shares with ALGOL,

Yeah, most of my message was trolling (I obviously like lexical scoping) because I'm a bitter Lisp weenie. I'll be fair and admit that Scheme isn't that terrible (Chicken Scheme is pretty cool, the Stalin compiler is neat) as long as you're doing nothing of real-world value. Scheme still feels awful though, so I'm going to blame ALGOL.

Mr. 'I read Lisp books under the influence of Paul Graham' guy.

I strongly dislike Paul Graham, so no, try again.

Name: Anonymous 2011-06-30 3:42

Name: Anonymous 2011-08-18 1:05

Common Lisp is overly weak and complicated and was conceived in a time when computation was not yet mainstream or accessible.

Practical languages like Python are a much better attempt at trying to solve the problems Lispers first set out to solve.

Name: Anonymous 2011-08-18 2:14

Python
Python is not as good as it is made out to be, in other words it suffers from a degree of hype. I'll try to argue this point. Potential detractors of the language usually lack the experience to criticize it authoratively. This is more true for Python as it is not (yet) common that people are coerced (by work, school) into learning and working with the language. So the detractors are few and drowned out by the vocal supporters.

The proponents of Python cite 'indentation' as the worst problem, this is a strawman argument 'this is the worst problem and its not really a problem'. This argument has been voted up presumably by people who like the language, because it is certainly not a good reason not to use Python.

I am far from an expert at Python, but I have done a couple of semi-serious projects in the language and will try to recall specifically what I didn't like.

- Everything you write will be open source. No FASLs, DLLs or EXEs. Developer may want to have control over levels of access to prevent exposure of internal implementation, as it may contain proprietary code or because strict interface/implementaion decomposition is required. Python third-party library licensing is overly complex. Licenses like MIT allow you to create derived works as long as you maintain attrubution; GNU GPL, or other 'viral' licenses don't allow derived works without inheriting the same license. To inherit the benefits of an open source culture you also inherit the complexities of the licensing hell.
- Installation mentality, Python has inherited the idea that libraries should be installed, so it infact is designed to work inside unix package management, which basically contains a fair amount of baggage (library version issues) and reduced portability. Of course it must be possible to package libraries with your application, but its not conventional and can be hard to deploy as a desktop app due to cross platform issues, language version, etc. Open Source projects generally don't care about Windows, most open source developers use Linux because "Windows sucks".
- Probably the biggest practical problem with Python is that there's no well-defined API that doesn't change. This make life easier for Guido and tough on everybody else. That's the real cause of Python's "version hell".
- Global Interpreter Lock (GIL) is a significant barrier to concurrency. Due to signaling with a CPU-bound thread, it can cause a slowdown even on single processor. Reason for employing GIL in Python is to easy the integration of C/C++ libraries. Additionally, CPython interpreter code is not thread-safe, so the only way other threads can do useful work is if they are in some C/C++ routine, which must be thread-safe.
- Python (like most other scripting languages) does not require variables to be declared, as (let (x 123) ...) in Lisp or int x = 123 in C/C++. This means that Python can't even detect a trivial typo - it will produce a program, which will continue working for hours until it reaches the typo - THEN go boom and you lost all unsaved data. Local and global scopes are unintuitive. Having variables leak after a for-loop can definitely be confusing. Worse, binding of loop indices can be very confusing; e.g. "for a in list: result.append(lambda: fcn(a))" probably won't do what you think it would. Why nonlocal/global/auto-local scope nonsense?
- Python indulges messy horizontal code (> 80 chars per line), where in Lisp one would use "let" to break computaion into manageable pieces. Get used to things like self.convertId([(name, uidutil.getId(obj)) for name, obj in container.items() if IContainer.isInstance(obj)])
- Crippled support for functional programming. Python's lambda is limited to a single expression and doesn't allow conditionals. Python makes a distinction between expressions and statements, and does not automatically return the last expressions, thus crippling lambdas even more. Assignments are not expressions. Most useful high-order functions were deprecated in Python 3.0 and have to be imported from functools. No continuations or even tail call optimization: "I don't like reading code that was written by someone trying to use tail recursion." --Guido
- Python has a faulty package system. Type time.sleep=4 instead of time.sleep(4) and you just destroyed the system-wide sleep function with a trivial typo. Now consider accidentally assigning some method to time.sleep, and you won't even get a runtime error - just very hard to trace behavior. And sleep is only one example, it's just as easy to override ANYTHING.
- Python's syntax, based on SETL language and mathematical Set Theory, is non-uniform, hard to understand and parse, compared to simpler languages, like Lisp, Smalltalk, Nial and Factor. Instead of usual "fold" and "map" functions, Python uses "set comprehension" syntax, which has an overhelmingly large collection of underlying linguistic and notational conventions, each with it's own variable binding semantics. Using CLI and automatically generating Python code is hard due to the so called "off-side" indentation rule (aka Forced Indentation of Code), also taken from a math-intensive Haskell language. This, in effect, makes Python look like an overengineered toy for math geeks. Good luck discerning [f(z) for y in x for z in gen(y) if pred(z)] from [f(z) if pred(z) for z in gen(y) for y in x]
- Quite quirky: triple-quoted strings seem like a syntax-decision from a David Lynch movie, and double-underscores, like __init__, seem appropriate in C, but not in a language that provides list comprehensions. There has to be a better way to mark certain features as internal or special than just calling it __feature__. self everywhere can make you feel like OO was bolted on, even though it wasn't.
- Python is unintuitive and has too many confusing non-orthogonal features: references can't be used as hash keys; expressions in default arguments are calculated when the function is defined, not when it’s called. Why have both dictionaries and objects? Why have both types and duck-typing? Why is there ":" in the syntax if it almost always has a newline after it? The Python language reference devotes a whole sub-chapter to "Emulating container types", "Emulating callable Objects", "Emulating numeric types", "Emulating sequences" etc. -- only because arrays, sequences etc. are "special" in Python.
- Python's GC uses naive reference counting, which is slow and doesn't handle circular references, meaning you have to expect subtle memory leaks and can't easily use arbitrary graphs as your data. In effect Python complicates even simple tasks, like keeping directory tree with symlinks.
- Problems with arithmetic: no Numerical Tower (nor even rational/complex numbers), meaning 1/2 would produce 0, instead of 0.5, leading to subtle and dangerous errors.
- Poor UTF support and unicode string handling is somewhat awkward.
- No outstanding feature, that makes the language, like the brevity of APL or macros of Lisp.

Name: read it 5 times 2011-08-18 2:43

>>49
triple-quoted strings seem like a syntax-decision from a David Lynch movie
lol'd in my mouth a little

Please analyse more languages like this!

Name: Anonymous 2011-08-18 2:45

>>50
The second part is a kopipe spammed by the ``in Lisp'' guy (or derivatives). Ignore him.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List