You asked

Panasonic lumix s 40mm f 2 vs ttartisan af 40mm f 2?

Both lenses are 40mm f/2 primes for full-frame cameras, with autofocus and no stabilisation. On a full-frame body they give the same view and the same depth of field, so the choice comes down to mounts and the lens's maker. The focal length converter explains why f/2 blurs the background more on a full-frame body than on an APS-C one.

The Panasonic Lumix S 40mm f/2 is made for the L-Mount only. It suits anyone already shooting a Panasonic Lumix S body such as the Panasonic Lumix S5 II, or a Leica or Sigma L-mount body. The guide's pages list no pricing for either lens, so check the catalogue pages for current figures before deciding.

The TTArtisan AF 40mm f/2 covers Sony E, Nikon Z and L-Mount bodies. That is a far wider choice: the Sony a7 IV and Nikon Z6 III are both on its list. If you don't own a camera yet, that flexibility is the main reason to pick the TTArtisan.

The guide does not compare the two lenses' image quality, so it can't say one is sharper. For portraits, the portrait guide notes that 40mm sits between a standard and a wide view, and that a 50mm or 85mm is the usual next step for tighter framing.

For dim light and moving subjects, the lens's speed matters more than stabilisation, and both lenses share the same f/2 maximum aperture.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.