Jump to content
Gopi T

Why Hypermesh completely built using TCL? why not Python

Recommended Posts

Hi, admins & staff !

 

Why Hypermesh completely built using TCL? If they built using python,  people will get lot of help for CAE automation. why they choose TCL?

Can we expect Hypermesh based on Python in future? :rolleyes:

 

have a nice day!

thank you 

Share this post


Link to post
Share on other sites

Because it needs many GUI objects (browsers, menus, dialogs,...) . Can python provide them? I think yes, via tkinter - an instance of Tk! So they use Tk directly, it is easier, isn't it?

Share this post


Link to post
Share on other sites

Why Python over TCL? Because people know Python and not TCL.

 

Googling "programming languages by popularity" gives you the following

 

https://www.ubuntupit.com/top-20-most-popular-programming-languages-to-learn-for-your-open-source-project/

Python: #2

TCL: Didn't make it to top 20

 

https://www.tiobe.com/tiobe-index/

Python: #3

TCL: Didn't make it to top 20

 

http://pypl.github.io/PYPL.html

Python: #1

TCL: Didn't make it to top 23

 

https://www.businessinsider.com/the-10-most-popular-programming-languages-according-to-github-2018-10?r=US&IR=T#2-java-9

Python: #3

TCL: Didn't make it to top 10

 

https://raygun.com/blog/programming-languages/

Python: #3

TCL: Didn't make it to top 43

 

https://www.devsaran.com/blog/10-best-programming-languages-2019-you-should-know

Python: #1

TCL: #18

 

 

Even if TCL has a slight advantage over Python (I am not claiming it has), is it really worth using as language people don't know?

pl_list.PNG

Share this post


Link to post
Share on other sites

:D more people will want to know Tcl because they know hypermesh now!

 

Tcl is small, so write everything by python, and call py.exe from tcl simply.

Share this post


Link to post
Share on other sites
On 6/19/2019 at 6:24 AM, tinh said:

:D more people will want to know Tcl because they know hypermesh now!

 

Tcl is small, so write everything by python, and call py.exe from tcl simply.

could you post an example of this procedure, please? or any relevant material on the subject

Share this post


Link to post
Share on other sites

I use both Python(for Simlab customization) and TCL(for HyperMesh).

In my opinion, Python is helpful for data management with OOP (of course it will be faster) and the syntax is easier than TCL.

 

However, HyperMesh have supported many TCL API to interact with HM. We can use a lot of those API functions easily, no need to create our code again. This helps create script very quickly.

 

Integrate Python in HyperMesh is easy but write a huge API functions need a lot of effort.

I use Simlab Python but found many limitation because there are not so much API functions.

I use Abaqus/Ansys Python but also found many limitation.

 

So, Python or TCL does not matter. The important is supported API functions under CAE software.

HW will support Python because they serve some trend.

For me, I do not need. I need API more than Python.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...