Earlier quoted context omitted.
Wow 2 * 1000 without rounding errors, 40 years ago this must have been super impressive, since I find that quite a feat of today's python.
2 * 1000 is 2000 ;) I think you meant 2**1000 the syntax for formatting ate your star https://news.ycombinator.com/formatdoc
The original ABC language, Python's predecessor (1991)
11–20 of 51 posts
Re: The original ABC language, Python's predecessor (1991)
#12Earlier quoted context omitted.
Wow 2 * 1000 without rounding errors, 40 years ago this must have been super impressive, since I find that quite a feat of today's python.
2 * 1000 is 2000 ;) I think you meant 2**1000 the syntax for formatting ate your star https://news.ycombinator.com/formatdoc
like
this
for
code
blocksRe: The original ABC language, Python's predecessor (1991)
#13Re: The original ABC language, Python's predecessor (1991)
#14Re: The original ABC language, Python's predecessor (1991)
#15Earlier quoted context omitted.
2 * 1000 is 2000 ;) I think you meant 2**1000 the syntax for formatting ate your star https://news.ycombinator.com/formatdoc
For anyone else who, like me a moment ago, doesn't know the meaning of ** but is curious: it's how many (but not all) programming languages express "to the power of", aka 2**1000 = 2^1000
The reason for using `**` is that `^` is widely used for bitwise exclusive-or. So commonly `2**1000 != 2^1000`!
Re: The original ABC language, Python's predecessor (1991)
#16Extremely cool. Thanks, GvR. For my own language design I've wanted to introduce some of this ABC syntax back into Python. Mainly for unpacking data and doing index/slice assignments; a lot of beginners seem to get tripped up because assignments in Python use the same syntax as mutations, so maybe it's better to write e.g. `a['b'] = c` like `set b = c in a`, or `update a with {'b': c}`, or ... who knows, exactly.
Especially when you are dealing with nested functions. You'd get around the whole need for 'global' and 'nonlocal' declarations. (Though your linter might still ask you for them for clarity.)
As a minimal syntax change, I would propose using perhaps = for introduction of a variable (the common case) and := for an explicit mutation of an existing variable.
But you could also use `let . = ..` and `. = ..` like Rust does.
Re: The original ABC language, Python's predecessor (1991)
#17Where is the GIL in this?
Python only got its own GIL in version 1.5 of CPython.
Re: The original ABC language, Python's predecessor (1991)
#18Re: The original ABC language, Python's predecessor (1991)
#19Nice find. This looks like the best introduction to the language in the repo: https://raw.githubusercontent.com/gvanrossum/abc-unix/refs/h...
Wow 2 * 1000 without rounding errors, 40 years ago this must have been super impressive, since I find that quite a feat of today's python.
Re: The original ABC language, Python's predecessor (1991)
#20Earlier quoted context omitted.
For anyone else who, like me a moment ago, doesn't know the meaning of ** but is curious: it's how many (but not all) programming languages express "to the power of", aka 2**1000 = 2^1000
> 2**1000 = 2^1000 The reason for using `**` is that `^` is widely used for bitwise exclusive-or. So commonly `2**1000 != 2^1000`!