Jump to content

Some Vex or Python


GAS

Recommended Posts

The trend is to leverage VEX because VEX is multi-threaded and Python is only single-threaded, thus slower.

 

But it depends upon the task. Some tasks are not multi-threaded sensitive so using Python is quite acceptable. Also there are tons of Python examples available. Using Python also offers a way for programmers who may not be 3D involved to provide code or data processing to a 3D solution. Like leveraging an outside library.

 

So the short answer is to learn them both. :)

Edited by Atom
Link to comment
Share on other sites

Hello  Every One; 

I have question about scripting in houdini ?

I have some python experiences and programming skills

My question What should I learn Python or Vex?

 

Both.

 

The trend is to leverage VEX because VEX is multi-threaded and Python is only single-threaded, thus slower.

 

Not that I would like to split hears in the subject, but this sounds like little oversimplification which might misleads one occasionally. The speed difference between these two isn't necessarily related to multithreading issues, but a whole language models. There are cases (rare in fact) where Python runs comparable to VEX. It is more about interpreted/compiled languages and general purpose garbage collected objects versus linear memory access of C-like arrays. If the only difference between VEX and Python was multithreading of the former one, VEX wouldn't be that fast, as it's quite often single-threaded too.  

  • Like 1
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
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...