473,231 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

AOP and pep 246

I am interested in AOP in python. From here one naturally (or
google-ly) reaches peak.
But peak seems to be discontinued.
Whereas pep-246 on adaptors seems to be rejected in favor of something else.

What??

Can someone please throw some light on whats the current state of the art?
Nov 1 '07 #1
8 1574
On Nov 1, 4:18 pm, "Rustom Mody" <rustompm...@gmail.comwrote:
I am interested in AOP in python. From here one naturally (or
google-ly) reaches peak.
But peak seems to be discontinued.
Whereas pep-246 on adaptors seems to be rejected in favor of something else.

What??

Can someone please throw some light on whats the current state of the art?
See http://www.python.org/dev/peps/pep-3119
Michele Simionato

Nov 1 '07 #2
On Nov 2, 5:00 am, "Rustom Mody" <rustompm...@gmail.comwrote:
Seehttp://www.python.org/dev/peps/pep-3119

Thanks Michele. But there are a couple of questions on this:

a. Does one have to use python 3000 for this?
I expect ABC's to be backported to Python 2.6, but it is probably
possible to backport them down up to Python 2.2.
b. Are there more example-oriented writings on this (such as the
papers you and mertz wrote on this stuff within the older paradigm
Not that I know of (except posts in python-dev).
c. Where does peak stand today?
My understanding is that P.J. Eby has no time to follow PEAK
fully; his idea is to extract the most useful ideas from PEAK
(you may know that eggs and WSGI originated from PEAK) and to
make them available to the community as separated packages. IOW,
PEAK as a monolithic framework had no success, but pearls of PEAK
are having an enormous impact. This is yet another example of
"simple is better than complex" and the ultimate reason why AOP
a la Java was a dead idea from the beginning. Too invasive.
If you want to have success, you must start from simple
things.

Michele Simionato

Nov 2 '07 #3
On Nov 1, 4:46 pm, Kay Schluehr <kay.schlu...@gmx.netwrote:
On 1 Nov., 16:18, "Rustom Mody" <rustompm...@gmail.comwrote:
I am interested in AOP in python. From here one naturally (or
google-ly) reaches peak.
But peak seems to be discontinued.
Whereas pep-246 on adaptors seems to be rejected in favor of something else.
What??
Can someone please throw some light on whats the current state of the art?

AOP was a research that gone nowhere - at least not in its orginal
AspectJ form:
If you Verify integrated circuits then you might know of the Specman e
language (http://en.wikipedia.org/wiki/Specman), That pre-dates
AspectJ and is very much
alive. Its AOP feature-set is different to that of AspectJ.
Our Verification engineers find the AOP paradigm to be very
productive. It
allows them to write a testbench in e and use AOP to extend it to
create
different testcases.

Just found a version of the LRM online (search for 'extend'):
http://www.ieee1647.org/downloads/prelim_e_lrm.pdf

- Paddy.

Nov 2 '07 #4
Carl Banks wrote:
>
AOP is a programming paradigm in the same way indie is a genre of
film.
I like your explanation! Heck, if it were more directly Python-related,
I'd nominate this line for QOTW.
Nov 2 '07 #5
I find these viewpoints interesting in their divergence. At the risk
of being simplistic:

Kay: AOP == AspectJ or thereabouts. A failure in itself and
uninteresting to pythonistas

Michele: AOP not very interesting though does good work himself in
decorators, metaclasses and other such AOPish stuff
Carl: Aspect == something (anything?) cognitively coherent. AOP
(rather AAP) means: When a language feature supports an aspect use it,
when not wriggle round it. Python requires less wriggling than java.
A powerful conceptual viewpoint but unhelpful to the developer...

My own feeling: Python is more AOP ready than java. So lighter-weight
techniques like Michele's decorator should go further. But
methodology not yet formulated.
Nov 3 '07 #6
On Nov 3, 12:17 am, "Rustom Mody" <rustompm...@gmail.comwrote:
My own feeling: Python is more AOP ready than java. So lighter-weight
techniques like Michele's decorator should go further. But
methodology not yet formulated.
To clarify: my view is that lightweight techniques are enough and
that a general methodology (in the sense of AspectJ) should NOT be
formulated. Not everything should be formalized, give powerful
enough tools to the programmer and let her do her work.
The fundamental flaw underlying AspectJ is the ambition
to put together a monster intended for all uses and purposes.
I could cite some relevant aphorisms, such as "Don't give a man
a fish: teach him to fish" or "Programming languages should be
designed not by piling feature on top of feature, but by removing
the weaknesses and restrictions that make additional features
appear necessary" (Clinger).

Michele Simionato

Nov 3 '07 #7
AOP was a research that gone nowhere - at least not in its orginal
AspectJ form ...
I think it might be worth pointing out, though, that there is still
significant interest in AOP in the Java community, in the form or
interest in the Spring Framework. See, for instance:
http://www.onjava.com/pub/a/onjava/2...springaop.html

This article was written in 2004. It has taken some time for
awareness of Spring to penetrate the Java community, but it appears to
be happening in a serious way.

-- Thank-god-I-don't-have-to-learn-all-this-Java-superstructure-stuff-
ly yours,
Steve Ferg

Nov 13 '07 #8
On 13 Nov., 15:17, Steve <st...@ferg.orgwrote:
AOP was a research that gone nowhere - at least not in its orginal
AspectJ form ...

I think it might be worth pointing out, though, that there is still
significant interest in AOP in the Java community, in the form or
interest in the Spring Framework. See, for instance:http://www.onjava.com/pub/a/onjava/2...springaop.html

This article was written in 2004. It has taken some time for
awareness of Spring to penetrate the Java community, but it appears to
be happening in a serious way.
Yes, I knew about Spring AOP but didn't keep much attention. Is AOP
used a lot in the Spring context or is it just a fancy, experimental
feature which was just cool to implement at some time?
-- Thank-god-I-don't-have-to-learn-all-this-Java-superstructure-stuff-
ly yours,
As I understand Spring it was part of a liberation wave from J2EE in
the Java community: return to POJOs and dependency injection as the
main composition technique. Spring is probably not that bad.
Steve Ferg
Nov 13 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.