Principal Software Engineer, C++ - QAC
Systems, C++ and performancePosted 4 weeks agofrom Puppet's own hiring page
- Work type
- HybridPune
- Experience
- 13+ years
- Pay
- Not listed
- Posted
- 4 weeks ago
Skills it mentions
Add your skills to see which ones you have.
About the job
Position Summary:
Perforce is looking for a Principal Software Engineer to join our Static Analysis team in India. We are seeking an experienced engineer who enjoys solving complex problems, building reliable software, and taking ownership of technical direction and execution.
Our mission is to help ensure our customers' source code is bug-free and vulnerability-free before it ships. Leading companies across automotive, aerospace, telecom, medical devices, and other safety/mission-critical industries rely on us to prevent showstopper defects and security issues from reaching production. Chances are that you use technology today that was scanned by Static Analysis.
Static Analysis is a highly accurate and trusted SAST (Static Application Security Testing) and static code analysis solution supporting languages such as C, C++, C#, Java, JavaScript, Python, Kotlin, and more. It is designed to scale to large codebases and fit into modern Agile/DevOps workflows via integrations such as IDE plugins, web portals, APIs, and command-line automation.
Requirements:
- Bachelor’s degree in computer science (or equivalent).
- 13+ years professional development experience with C and C++.
- 7+ years in an Agile/Scrum development environment.
- Development experience in both Windows and Linux environments.
- Experience with static analysis, compilers, or program analysis concepts.
- Strong fundamentals in data structures and algorithms; ability to design efficient solutions.
- Proven experience leading adoption of AI and agentic development workflows in engineering teams.
- Experience and/or interest to work with other programming languages (e.g., Java, C#) is a strong asset.
- Strong knowledge and experience with compilers or static code analysis (e.g., parsers, ASTs, control-flow and data-flow analysis) is a strong asset.
- Familiarity with coding standards such as MISRA C/C++, AUTOSAR C++14, CERT C/C++ and CWE is a strong asset.
- Experience working on complex software features and systems with a high degree of technical ownership, including influencing technical direction across teams.
Responsibilities:
- Experience in applying AI and agentic development approaches to improve developer productivity and product capabilities.
- Ability to design and integrate AI-powered agents responsibly into existing tooling, including evaluation, observability, and safe handling of customer/code data.
- Drive adoption of AI and agentic development practices across teams, including guardrails for safe use.
- Collaborate with other engineers to develop and enhance a wide range of static code analysis tools.
- Independently lead and own complex features and technical initiatives from design through delivery.
- Lead technical direction and architecture for major initiatives across teams, and help shape the Static Analysis roadmap.
- Participate in high level system design and implementation of significant new features.
- Drive technical decisions and engineering best practices across teams.
- Proficiency with efficient algorithm design, data structures and design patterns.
- Plan and develop tests on software changes and new features.
- Maintain existing software through bug fixes and enhancements.
- Create clean, well-tested code and deliver the highest quality software.
- Provide task estimates and accurately report progress as part of an Agile process.
- Peer-review the work of other software designers.
- Mentor engineers, including senior and principal engineers, and provide technical guidance to help solve complex technical problems.
- Demonstrate strong problem-solving and debugging skills, with the ability to independently resolve complex technical issues.
- Clearly and regularly communicate with management and technical support colleagues on project status, potential issues and progress.
- Demonstrate understanding of projects from both client and business perspectives.
AI Fluency
- Owns autonomous or semi‑autonomous AI systems end‑to‑end, establishes governance and monitoring, manages ethical and compliance risk, and advises leadership on AI strategy.
All employees are expected to demonstrate AI fluency appropriate to their role and level, including responsible use of AI tools, sound judgment, and adherence to company AI governance and security policy standards.
Come work with us! Our team members are valued for their contributions, introduced to new opportunities, and rewarded well. Perforce combines the experience and rewards of a start-up with the security of an established and privately held profitable company. If you are passionate about the technology that impacts our day-to-day lives and want to work with talented and dedicated people across the globe, apply today! www.perforce.com Please click here for: EOE & Belonging Statements | Perforce SoftwareInterested?Principal Software Engineer, C++ - QAC at Puppet
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on C++, C, Agile and 8 more
Interview questions for this job
For the skills the ad mentions: C++, C, Agile, Security, C#, Java, JavaScript, Python, Kotlin, Linux and System design.
What are the differences between a pointer variable and a reference variable?C++
A pointer can be re-assigned:
int x = 5; int y = 6; int *p; p = &x; p = &y; *p = 10; assert(x == 5); assert(y == 10);A reference cannot be re-bound, and must be bound at initialization:
int x = 5; int y = 6; int &q; // error int &r = x;A pointer variable has its own identity: a distinct, visible memory address that can be taken with the unary
&operator and a certain amount of space that can be measured with thesizeofoperator. Using those operators on a reference returns a value corresponding to whatever the reference is bound to; the reference’s own address and size are invisible. Since the reference assumes the identity of the original variable in this way, it is convenient to think of a reference as another name for the same variable.int x = 0; int &r = x; int *p = &x; int *p2 = &r; assert(p == p2); // &x == &r assert(&p != &p2);It is possible to create a pointer to a pointer, but not a pointer to a reference.
int **pp; // OK, pointer to pointer int &*pr; // ill-formed, pointer to referenceIt is possible to create an array of pointers, but not an array of references.
int *ap[]; // OK, array of pointers int &ar[]; // ill-formed, array of referencesYou can have arbitrarily nested pointers to pointers offering extra levels of indirection. References only offer one level of indirection because references to references collapse.
int x = 0; int y = 0; int *p = &x; int *q = &y; int **pp = &p; **pp = 2; pp = &q; // *pp is now q **pp = 4; assert(y == 4); assert(x == 2);A pointer can be assigned
nullptr, whereas a reference must be bound to an existing object. If you try hard enough, you can bind a reference tonullptr, but this is undefined and will not behave consistently./* the code below is undefined; your compiler may optimise it * differently, emit warnings, or outright refuse to compile it */ int &r = *static_cast<int *>(nullptr); // prints "null" under GCC 10 std::cout << (&r != nullptr ? "not null" : "null") << std::endl; bool f(int &r) { return &r != nullptr; } // prints "not null" under GCC 10 std::cout << (f(*static_cast<int *>(nullptr)) ? "not null" : "null") << std::endl;You can, however, have a reference to a pointer whose value is
nullptr.Pointers are ContiguousIterators (of an array). You can use
++to go to the next item that a pointer is pointing to, and+ 4to go to the 5th element.A pointer needs to be dereferenced with
*to access the object it points to, whereas a reference can be used directly. A pointer to a class/struct uses->to access its members whereas a reference uses a..Const references and rvalue references can be bound to temporaries (see temporary materialization). Pointers cannot (not without some indirection):
const int &x = int(12); // legal C++ int *y = &int(12); // illegal to take the address of a temporary.This makes
const &more convenient to use in argument lists and so forth.
From Stack Overflow: asked by prakash, answered by Brian R. Bondy (CC BY-SA 4.0)
Obfuscated C Code Contest 2006. Please explain sykes2.cC
Let's de-obfuscate it.
Indenting:
main(_) { _^448 && main(-~_); putchar(--_%64 ? 32 | -~7[__TIME__-_/8%8][">'txiZ^(~z?"-48] >> ";;;====~$::199"[_*2&8|_/64]/(_&2?1:8)%8&1 : 10); }Introducing variables to untangle this mess:
main(int i) { if(i^448) main(-~i); if(--i % 64) { char a = -~7[__TIME__-i/8%8][">'txiZ^(~z?"-48]; char b = a >> ";;;====~$::199"[i*2&8|i/64]/(i&2?1:8)%8; putchar(32 | (b & 1)); } else { putchar(10); // newline } }Note that
-~i == i+1because of twos-complement. Therefore, we havemain(int i) { if(i != 448) main(i+1); i--; if(i % 64 == 0) { putchar('\n'); } else { char a = -~7[__TIME__-i/8%8][">'txiZ^(~z?"-48]; char b = a >> ";;;====~$::199"[i*2&8|i/64]/(i&2?1:8)%8; putchar(32 | (b & 1)); } }Now, note that
a[b]is the same asb[a], and apply the-~ == 1+change again:main(int i) { if(i != 448) main(i+1); i--; if(i % 64 == 0) { putchar('\n'); } else { char a = (">'txiZ^(~z?"-48)[(__TIME__-i/8%8)[7]] + 1; char b = a >> ";;;====~$::199"[(i*2&8)|i/64]/(i&2?1:8)%8; putchar(32 | (b & 1)); } }Converting the recursion to a loop and sneaking in a bit more simplification:
// please don't pass any command-line arguments main() { int i; for(i=447; i>=0; i--) { if(i % 64 == 0) { putchar('\n'); } else { char t = __TIME__[7 - i/8%8]; char a = ">'txiZ^(~z?"[t - 48] + 1; int shift = ";;;====~$::199"[(i*2&8) | (i/64)]; if((i & 2) == 0) shift /= 8; shift = shift % 8; char b = a >> shift; putchar(32 | (b & 1)); } } }This outputs one character per iteration. Every 64th character, it outputs a newline. Otherwise, it uses a pair of data tables to figure out what to output, and puts either character 32 (a space) or character 33 (a
!). The first table (">'txiZ^(~z?") is a set of 10 bitmaps describing the appearance of each character, and the second table (";;;====~$::199") selects the appropriate bit to display from the bitmap.The second table
Let's start by examining the second table,
int shift = ";;;====~$::199"[(i*2&8) | (i/64)];.i/64is the line number (6 to 0) andi*2&8is 8 iffiis 4, 5, 6 or 7 mod 8.if((i & 2) == 0) shift /= 8; shift = shift % 8selects either the high octal digit (fori%8= 0,1,4,5) or the low octal digit (fori%8= 2,3,6,7) of the table value. The shift table ends up looking like this:row col val 6 6-7 0 6 4-5 0 6 2-3 5 6 0-1 7 5 6-7 1 5 4-5 7 5 2-3 5 5 0-1 7 4 6-7 1 4 4-5 7 4 2-3 5 4 0-1 7 3 6-7 1 3 4-5 6 3 2-3 5 3 0-1 7 2 6-7 2 2 4-5 7 2 2-3 3 2 0-1 7 1 6-7 2 1 4-5 7 1 2-3 3 1 0-1 7 0 6-7 4 0 4-5 4 0 2-3 3 0 0-1 7or in tabular form
00005577 11775577 11775577 11665577 22773377 22773377 44443377Note that the author used the null terminator for the first two table entries (sneaky!).
This is designed after a seven-segment display, with
7s as blanks. So, the entries in the first table must define the segments that get lit up.The first table
Read the rest at the sourceFrom Stack Overflow: asked by corny, answered by nneonneo (CC BY-SA 3.0)
Dealing with failed sprints and deadlinesAgile
I see several fundamental management issues in your example:
if a Scrum-Addicts manager signs a "hard-deadline" contract, but adds only a safety margin of 33% in a situation where "a new system is involved", that is pretty reckless.
the availability of delivering at least x% of the features after one month could have been used to negotiate a contract where the customers pays the money at least partially when he gets only 80% of the features at the deadline. An all-or-nothing contract is something neither the software vendor nor the customer will benefit from - this means not just 0 money for the vendor, but also 0 features for the customer. And an all-or-nothing development methodology like "Waterfall" will only let you write such contracts, an agile approach offers additional possibilities.
looking at the results of the first one or two sprints should have made obvious to the manager that the team cannot meet the deadline. So he should have taken earlier actions, and re-prioritize the remaining tasks and features, or try to re-negotiate with the customer earlier. For example, the manager could have tried to downsize the scope of some of the remaining features, so the team could have delivered all features mentioned in the contract, but each of them in a reduced scope.
If a task turns out to take longer than you thought, no development methodology will save you from that. But an agile approach like Scrum gives management more opportunities to control what happens in that situation. If they don't make use of those opportunities, it is clearly their fault, not the team's, not the fault of "Scrum", and not the customer's fault because "he does not accept agility".
From Software Engineering Stack Exchange: asked by Andre Borges, answered by Doc Brown (CC BY-SA 3.0)
What is the difference between policies, processes and guidelines?SecurityAdvanced
As security policy defines the security objectives and the security framework of an organisation. A process is a detailed step by step how to document that specifies the exact action which will be necessary to implement important security mechanism. Guidelines are recommendations which can be customized and used in the creation of procedures.
From Test your Sysadmin Skills (MIT)
When should I use a struct rather than a class in C#?C#
The source referenced by the OP has some credibility ...but what about Microsoft - what is the stance on struct usage? I sought some extra learning from Microsoft, and here is what I found:
Consider defining a structure instead of a class if instances of the type are small and commonly short-lived or are commonly embedded in other objects.
Do not define a structure unless the type has all of the following characteristics:
- It logically represents a single value, similar to primitive types (integer, double, and so on).
- It has an instance size smaller than 16 bytes.
- It is immutable.
- It will not have to be boxed frequently.
Microsoft consistently violates those rules
Okay, #2 and #3 anyway. Our beloved dictionary has 2 internal structs:
[StructLayout(LayoutKind.Sequential)] // default for structs private struct Entry //<Tkey, TValue> { // View code at *Reference Source } [Serializable, StructLayout(LayoutKind.Sequential)] public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDisposable, IDictionaryEnumerator, IEnumerator { // View code at *Reference Source }The 'JonnyCantCode.com' source got 3 out of 4 - quite forgivable since #4 probably wouldn't be an issue. If you find yourself boxing a struct, rethink your architecture.
Let's look at why Microsoft would use these structs:
- Each struct,
EntryandEnumerator, represent single values. - Speed
Entryis never passed as a parameter outside of the Dictionary class. Further investigation shows that in order to satisfy implementation of IEnumerable, Dictionary uses theEnumeratorstruct which it copies every time an enumerator is requested ...makes sense.- Internal to the Dictionary class.
Enumeratoris public because Dictionary is enumerable and must have equal accessibility to the IEnumerator interface implementation - e.g. IEnumerator getter.
Update - In addition, realize that when a struct implements an interface - as Enumerator does - and is cast to that implemented type, the struct becomes a reference type and is moved to the heap. Internal to the Dictionary class, Enumerator is still a value type. However, as soon as a method calls
GetEnumerator(), a reference-typeIEnumeratoris returned.What we don't see here is any attempt or proof of requirement to keep structs immutable or maintaining an instance size of only 16 bytes or less:
- Nothing in the structs above is declared
readonly- not immutable - Size of these struct could be well over 16 bytes
Entryhas an undetermined lifetime (fromAdd(), toRemove(),Clear(), or garbage collection);
And ... 4. Both structs store TKey and TValue, which we all know are quite capable of being reference types (added bonus info)
Hashed keys notwithstanding, dictionaries are fast in part because instancing a struct is quicker than a reference type. Here, I have a
Dictionary<int, int>that stores 300,000 random integers with sequentially incremented keys.Capacity: 312874
MemSize: 2660827 bytes
Completed Resize: 5ms
Total time to fill: 889msCapacity: number of elements available before the internal array must be resized.
MemSize: determined by serializing the dictionary into a MemoryStream and getting a byte length (accurate enough for our purposes).
Completed Resize: the time it takes to resize the internal array from 150862 elements to 312874 elements. When you figure that each element is sequentially copied via
Array.CopyTo(), that ain't too shabby.Read the rest at the sourceFrom Stack Overflow: asked by Alex Baranosky, answered by IAbstract (CC BY-SA 3.0)
Have you ever failed at a task?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Senior Software Engineer – C or C++ | SSL/TLS experience ( 5-7Yrs)SonicWall, Pune, hybrid5 days ago
- Staff SW Development Engineer(C/C++/Python, ARM Cortex-M/A or RISC-V)Lattice Semiconductor India, Pune, on-site10 days ago
- Senior Software Development Engineer - C++Hitachi, Pune, on-site2 weeks ago
- Senior HPC engineerWeekday, Delhi NCR, on-siteYesterday
More like this: Jobs in Pune (3,219) and C++ and systems jobs in India (174)



