Re: Favorite non-python language trick?
- From: "Paddy" <paddy3118@xxxxxxxxxxxx>
- Date: 29 Jun 2005 20:51:27 -0700
Joseph Garvin wrote:
'm curious -- what is everyone's favorite trick from a non-python
language? And -- why isn't it in Python?
I use constraints programming at work, Check out "System Verilog" or
OZ/Mozart.
It would be great if this style of programming could be added to
Python.
It is a declarative programming style
(http://en.wikipedia.org/wiki/Declarative_programming), in which you
can state what discrete values constrained values can take , say in a
list. Give a set of functions that must be true for the variables then
sit back and generate one or many sets of variable values that fit the
constraints.
The OZ homepage has an example for solving the eight queens problem:
http://www.mozart-oz.org/documentation/fdt/node25.html#section.scripts.queens
My use would be for testing. In the electronic design automation
fields, there are several proprietary languages with this feature, here
is an example written in Cadence's Specman 'e' language:
http://www.asic-world.com/specman/specman_one_day2.html
Cheers, Paddy.
.
- Follow-Ups:
- Re: Favorite non-python language trick?
- From: Terry Han***
- Re: Favorite non-python language trick?
- From: Terry Reedy
- Re: Favorite non-python language trick?
- References:
- Favorite non-python language trick?
- From: Joseph Garvin
- Favorite non-python language trick?
- Prev by Date: Re: Help please: How to assign an object name at runtime
- Next by Date: __new__, __init__ and pickle
- Previous by thread: Re: Favorite non-python language trick?
- Next by thread: Re: Favorite non-python language trick?
- Index(es):