User loginNavigation |
PythonPython "Monkey Typing"
I guess the record wouldn't be complete without mentioning this proposal,
This PEP proposes an extension to "duck typing" called "monkey typing", that preserves most of the benefits of duck typing, while adding new features to enhance inter-library and inter-framework compatibility. The name comes from the saying, "Monkey see, monkey do", because monkey typing works by stating how one object type may mimic specific behaviors of another object type. By Ehud Lamm at 2005-01-19 13:02 | Python | Type Theory | login or register to post comments | other blogs | 8784 reads
XPath, XML, Python
A discussion with some interesting views and perspective.
Here you'll find code snipptes showing the API of the various libraries (all of them used to solve the same programming task), and comments about the behaviour of each of the libraries. I am not sure if this item should be categorized as being pro-libraries, pro-a big standard libary, or pro-builtin language support for XML. You decide. Ian Bicking: The challenge of metaprogrammingSo I think it's really important that we approach metaprogramming with caution. I think Guido has been right to resist macros. Not because they are necessarily wrong, but because we haven't yet figured out how to do them right. And maybe we never will, maybe source code simply isn't the right level for abstractions. I think it's good that Python doesn't do tail-call elimination; it seems like a nice feature, but in subtle ways it makes the language harder. And I think continuations could lead to bad things. There are wrong paths on the road to higher-level programming. (Though in some ways I also feel the opposite: tell us not to shoot ourselves in the foot, and expect us to listen, don't assume we'll abuse every feature that exists; there's always a tension in these design choices.) This deserves more attention than I can give it right now, but I am sure others here will want to comment. By Ehud Lamm at 2005-01-07 20:21 | Meta-Programming | Python | Software Engineering | 105 comments | other blogs | 31209 reads
Guido: Adding Optional Static Typing to Python -- Part II
Part II (see Part I discussion on LtU).
Among the notions discussed: Interfaces and Design By Contract, Parameterized Types and Types vs. Classes. By Ehud Lamm at 2005-01-05 11:04 | Python | Type Theory | login or register to post comments | other blogs | 5089 reads
Python is... slow?
An interesting blog post and comment thread.
Adding Optional Static Typing to PythonLink: Guido van Rossum broaches the subject of type tagging for Python.
Static vs. dynamic is a never-ending thread in most PL discussions these days. But designing a type system is a *hard* task, one which I'm not sure doesn't require from a ground on up approach. But it would be nice if you could choose to work your way into, though most of the Smalltalk crowd will inform us that Strongtalk never did quite catch on. By Chris Rathman at 2004-12-23 18:44 | Python | Type Theory | 10 comments | other blogs | 10104 reads
PyPy wins a funding contract with the EUPyPy aims at producing a simple runtime-system for the Python language,
Logix: Multi-Language Programming
Also advertized as Lisp-in-Python, Logix seems like an interesting project.
Logix provides syntax extension mechanisms (i.e., macros) that support language extension and encourage the use of embedded DSLs. Languages can be encapsulated as objects, users can switch between them dynamically, etc. Some call this sort of thing "language oriented programming"... Cool Python "spreadsheet"Use eval() to drive spreadsheet style logic. The sleeper feature of Py2.4 is the ability to use any object with a mapping interface as the locals argument to eval(). Cute Python language hack. Languages that allow you to hook into their variable lookup logic open the door to many cool hacks. SciPy 2004 Papers...are online. The PyTables (PDF) work is intriguing. It offers high-speed, high-volume access to HDF. Somewhere along the way came a comparison of HDF to PDB from the (old?) PACT project at LLNL. By Mark Evans at 2004-12-01 05:42 | Python | login or register to post comments | other blogs | 6067 reads
|
Browse archives
Active forum topics |
Recent comments
26 weeks 5 days ago
26 weeks 5 days ago
26 weeks 5 days ago
48 weeks 6 days ago
1 year 1 week ago
1 year 2 weeks ago
1 year 2 weeks ago
1 year 5 weeks ago
1 year 10 weeks ago
1 year 10 weeks ago