ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: list/dictionary as case statement ?
by Stef Mientki other posts by this author
Jan 3 2007 11:55AM messages near this date
Re: list/dictionary as case statement ? | Re: list/dictionary as case statement ?
Tom Plunket wrote:
>  Bjoern Schliessmann wrote:
>  
> > Intels aren't RISC, are they?
>  
>  Not the ones in PCs.  The OP didn't specify the CPU that's being used,
>  however.
>  
Well it was meant for a small micro-controller, the PIC-14-series,
e.g. PIC16F877.

I already build a simulator for this device in  Delphi,
but it seemed a nice idea, and a good exercise for me,
to see how this could be done in Python.

And thanks to you all,
I've the core (not the pheripherals) working now,
and my experience with Python are very positive.

The main advantages of the simulator in Python are:
   - very elegant and lean code
   - the treshold of Python is much lower
     (in my opinion, simulators only live when more people are involved)
The main disadvantages (I think, not yet tested)
   - the speed is much lower
   - the GUI is much more complex

For those who are interested,

The rough code of the Python code can be seen here
(I might have committed a mortal sin, by changing "self" into "S" ??)
   http://oase.uci.kun.nl/~mientki/download/cpu2.txt
btw, as I'm a total newbie, any comment is welcome !!

The Delphi simulator can be seen here
   http://oase.uci.kun.nl/~mientki/data_www/pic/jalss/jalss.html

thanks again,
for all your fast and very adequate responses !!

cheers,
Stef Mientki
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Stef Mientki
Bruno Desthuilliers
Bjoern Schliessmann
Tom Plunket
Stef Mientki
Bjoern Schliessmann
Mrab
Tom Plunket
Hendrik van Rooyen
Gary Herron
Stef Mientki
Grant Edwards

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved