473,406 Members | 2,713 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,406 software developers and data experts.

python for EE CAD program

Hi All,

I have read some posts on this subject but I haven't been able to make
a decision whether to use Python or not.

I'm considering converting a Java CAD program to Python/C with
wxWdigets for the GUI.

I don't have good answers for:

1) Can I use py2exe or pyinstaller to produce an executable for
Linux, Windows, and Mac? If not, is there a way it can be done?

2) Is there any way to protect the source code, like obfuscation?

3) Memory footprint of application seems large for python demo. Is
this typical for large python applications?

I guess the best thing to do is convert a little portion of the Java
program and see how it works out with respect to the concerns above.

Suggestions and comments appreciated.

Jun 4 '07 #1
8 1372
chewie54 wrote:
Hi All,

I have read some posts on this subject but I haven't been able to make
a decision whether to use Python or not.

I'm considering converting a Java CAD program to Python/C with
wxWdigets for the GUI.

I don't have good answers for:

1) Can I use py2exe or pyinstaller to produce an executable for
Linux, Windows, and Mac? If not, is there a way it can be done?

2) Is there any way to protect the source code, like obfuscation?

3) Memory footprint of application seems large for python demo. Is
this typical for large python applications?

I guess the best thing to do is convert a little portion of the Java
program and see how it works out with respect to the concerns above.

Suggestions and comments appreciated.
Look at python-cad, that might give you an idea how such a thing is to be
accomplished using python.

Diez
Jun 4 '07 #2
On Jun 4, 9:56 am, "Diez B. Roggisch" <d...@nospam.web.dewrote:
chewie54 wrote:
Hi All,
I have read some posts on this subject but I haven't been able to make
a decision whether to use Python or not.
I'm considering converting a Java CAD program to Python/C with
wxWdigets for the GUI.
I don't have good answers for:
1) Can I use py2exe or pyinstaller to produce an executable for
Linux, Windows, and Mac? If not, is there a way it can be done?
2) Is there any way to protect the source code, like obfuscation?
3) Memory footprint of application seems large for python demo. Is
this typical for large python applications?
I guess the best thing to do is convert a little portion of the Java
program and see how it works out with respect to the concerns above.
Suggestions and comments appreciated.

Look at python-cad, that might give you an idea how such a thing is to be
accomplished using python.

Diez

Hello Diez,

I did look at PythonCad but the distribution and install methods for
Windows is not user freindly. Since the public domain software, I
don't think they protect the source code either.
Jun 4 '07 #3
Hello Diez,
>
I did look at PythonCad but the distribution and install methods for
Windows is not user freindly. Since the public domain software, I
don't think they protect the source code either.
The subject of code obfuscation in python has been beaten to death quite a
few times on this list, do a search to find anything you want to know.

In a nutshell: forget about it. it's not worth it, difficult to accomplish
due to the dynamic nature of python and to be brutally honest: more or less
nothing you can come up with in your own code is really worth looking at
anyway. That's not saying that you can't code, just that more or less
everything one programs is trivial and only of value in the actual context
it was written in. So nobody is really interested in ripping stuff out.

diez
Jun 4 '07 #4
On 2007-06-04, chewie54 <df*********@gmail.comwrote:
1) Can I use py2exe or pyinstaller to produce an executable
for Linux, Windows, and Mac? If not, is there a way it can be
done?

2) Is there any way to protect the source code, like obfuscation?

3) Memory footprint of application seems large for python demo. Is
this typical for large python applications?
I'm glad somebody asked these questions. I was getting
worried. It's almost lunchime on Monday and they hadn't come
up yet this week. :)

--
Grant Edwards grante Yow! RHAPSODY in Glue!
at
visi.com
Jun 4 '07 #5
On Jun 4, 10:58 am, "Diez B. Roggisch" <d...@nospam.web.dewrote:
Hello Diez,
I did look at PythonCad but the distribution and install methods for
Windows is not user freindly. Since the public domain software, I
don't think they protect the source code either.

The subject of code obfuscation in python has been beaten to death quite a
few times on this list, do a search to find anything you want to know.

In a nutshell: forget about it. it's not worth it, difficult to accomplish
due to the dynamic nature of python and to be brutally honest: more or less
nothing you can come up with in your own code is really worth looking at
anyway. That's not saying that you can't code, just that more or less
everything one programs is trivial and only of value in the actual context
it was written in. So nobody is really interested in ripping stuff out.

diez

Your opinions are noted, thank you, but I don't agree with you.
There are
portions of the code that are under review for patents and as such
need to
be protected.

I'm investigating whether Python is the right language to use
for a commercial CAD application. While I think Python is a great
scripting
language, there seems to limitations with regards to packaging and
distributing
programs.



Jun 4 '07 #6
On 6/4/07, chewie54 <df*********@gmail.comwrote:
On Jun 4, 10:58 am, "Diez B. Roggisch" <d...@nospam.web.dewrote:
Hello Diez,
I did look at PythonCad but the distribution and install methods for
Windows is not user freindly. Since the public domain software, I
don't think they protect the source code either.
The subject of code obfuscation in python has been beaten to death quite a
few times on this list, do a search to find anything you want to know.

In a nutshell: forget about it. it's not worth it, difficult to accomplish
due to the dynamic nature of python and to be brutally honest: more or less
nothing you can come up with in your own code is really worth looking at
anyway. That's not saying that you can't code, just that more or less
everything one programs is trivial and only of value in the actual context
it was written in. So nobody is really interested in ripping stuff out.

diez


Your opinions are noted, thank you, but I don't agree with you.
There are
portions of the code that are under review for patents and as such
need to
be protected.
For the record: This is not true. If you've already applied for the
patent, you have as much legal protection as you will ever get. Also,
since patents apply to methods and not to literal source, if you're
trying to protect something patentable you have even less protection
against analysis and disassembly than you would if you were trying to
protect the copyright on the code. If you need to make a token effort
to satisfy whatever legal hurdles are involved, shipping .pyc files
(which py2exe and all the other packagers I'm aware of do) is just as
effective as shipping executables compiled with C or C++.
I'm investigating whether Python is the right language to use
for a commercial CAD application. While I think Python is a great
scripting
language, there seems to limitations with regards to packaging and
distributing
programs.
None that don't also exist in every other language in existence. These
are fundamental issues of information theory, not language
constraints.
Jun 4 '07 #7
On 2007-06-04, Chris Mellon <ar*****@gmail.comwrote:
>Your opinions are noted, thank you, but I don't agree with
you. There are portions of the code that are under review for
patents and as such need to be protected.

For the record: This is not true. If you've already applied
for the patent, you have as much legal protection as you will
ever get. Also, since patents apply to methods and not to
literal source, if you're trying to protect something
patentable you have even less protection against analysis and
disassembly than you would if you were trying to protect the
copyright on the code. If you need to make a token effort to
satisfy whatever legal hurdles are involved, shipping .pyc
files (which py2exe and all the other packagers I'm aware of
do) is just as effective as shipping executables compiled with
C or C++.
>I'm investigating whether Python is the right language to use
for a commercial CAD application. While I think Python is a
great scripting language, there seems to limitations with
regards to packaging and distributing programs.

None that don't also exist in every other language in
existence. These are fundamental issues of information theory,
not language constraints.
Especially since the alternative appears to be Java. Just like
Java, Python compiles to byte code that runs on a VM.

If for some reason he's happy shipping Java VM byte-code and
not Python VM byte-code, then he can use Jython to generate
byte-code for the Java VM instead of for the Python VM.
Personally I think it's rather deluded to think that one is any
more secure than the other.

--
Grant Edwards grante Yow! What UNIVERSE is this,
at please??
visi.com
Jun 4 '07 #8
On Jun 4, 12:47 pm, Grant Edwards <gra...@visi.comwrote:
On 2007-06-04, Chris Mellon <arka...@gmail.comwrote:
Your opinions are noted, thank you, but I don't agree with
you. There are portions of the code that are under review for
patents and as such need to be protected.
For the record: This is not true. If you've already applied
for the patent, you have as much legal protection as you will
ever get. Also, since patents apply to methods and not to
literal source, if you're trying to protect something
patentable you have even less protection against analysis and
disassembly than you would if you were trying to protect the
copyright on the code. If you need to make a token effort to
satisfy whatever legal hurdles are involved, shipping .pyc
files (which py2exe and all the other packagers I'm aware of
do) is just as effective as shipping executables compiled with
C or C++.
I'm investigating whether Python is the right language to use
for a commercial CAD application. While I think Python is a
great scripting language, there seems to limitations with
regards to packaging and distributing programs.
None that don't also exist in every other language in
existence. These are fundamental issues of information theory,
not language constraints.

Especially since the alternative appears to be Java. Just like
Java, Python compiles to byte code that runs on a VM.

If for some reason he's happy shipping Java VM byte-code and
not Python VM byte-code, then he can use Jython to generate
byte-code for the Java VM instead of for the Python VM.
Personally I think it's rather deluded to think that one is any
more secure than the other.

--
Grant Edwards grante Yow! What UNIVERSE is this,
at please??
visi.com

Honestly, thank you for your opinions and suggestions. I know this
has been
discussed before on this forum, but after reading the discussions,
I'm still
unsure about question 1. This is a big step and I want to make sure,
if
possible, I don't run into any show stoppers after many man hours of
work.

I will put the sensitive stuff and the datbase in a C extension and I
think that solves question 2 for me.

Jun 4 '07 #9

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

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
68
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
4
by: Julian | last post by:
Hi, first of all, I have to say I am new to Python. I have been working with a finite element analysis program written in c++. now, I am trying to 'rebuild' this code (possibly a full re-write)...
12
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed...
34
by: Anthony Irwin | last post by:
Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas...
1
by: Jim Langston | last post by:
Windows. Situation: Using a Python program called OpenRPG. I have a program that displays form data (a character sheet) in C++. I am able in the C++ program to build a string and copy it into the...
8
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to...
1
by: =?ISO-8859-1?Q?Andr=E9?= | last post by:
Hi everyone, I'd be interested in hearing suggestions as to the "best" way to drive a Python program step by step from another application. Details: --------- I have implemented a "Robot"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.