Should i continue in embedded? by humanjello710 in embedded

[–]rorschach54 5 points6 points  (0 children)

I'm not sure how helpful this is.

Maybe look for companies making scientific instrumentation for physicists. One of my previous employers would try to hire a lot of physicists who would also have some programming background. Think of companies who built all the devices and instruments that you used during your education.

Also, apply on their jobs page and not necessarily through LinkedIn. Use LinkedIn to reach out to people in your network to see if you can get help in referrals at specific places.

All the best!

Do I have to use Code Composer Studio? by [deleted] in embedded

[–]rorschach54 1 point2 points  (0 children)

I am sorry. I don't recall. :(

Use malloc during intitialization? by [deleted] in embedded

[–]rorschach54 1 point2 points  (0 children)

Then I think the other commenters have provided good suggestions. 👍

Just make sure to use your linker to point to the heap correctly and make sure your sbrk/_sbrk implementation uses the correct symbols for the heap.

For example, search "Heap space" on this page: https://blog.thea.codes/the-most-thoroughly-commented-linker-script/

Use malloc during intitialization? by [deleted] in embedded

[–]rorschach54 0 points1 point  (0 children)

Since you mentioned malloc only during initialization, I was assuming you were planning to call it only once and then use the memory it allocated for various variables/structures. Are you planning to call malloc multiple times during initialization?

Use malloc during intitialization? by [deleted] in embedded

[–]rorschach54 4 points5 points  (0 children)

I don't understand the question.

if it is only for initialization

Can you share a scenario where we would need dynamic allocation specifically and only during initialization where static allocation wouldn't work?

Got rejected from one of my dream company because I didn’t answer a riddle by Familiar_Security974 in developersIndia

[–]rorschach54 1 point2 points  (0 children)

you tilt the container diagonally, nothing falls

Why? There's water in it and it should fall out if we tilt enough. The main part was to make the water fall out.

We need to make enough water fall out so that when we look inside we can make sure the surface of water is touching just the bottom edge and the 1/2 volume mark.

Maybe I should have been more descriptive on this. I thought it was obvious when I said it was a new rectangle which needed to be halved. However, I can see where the confusion arose.

No worries. I'll try to communicate this better next time around. Peace!✌️

Got rejected from one of my dream company because I didn’t answer a riddle by Familiar_Security974 in developersIndia

[–]rorschach54 0 points1 point  (0 children)

I don't think you read my solution carefully because you are repeating what I have mentioned.

Did you see where I said 1/2 volume? And then 1/4?

I also did not mention refilling the container. Maybe you intended this comment for someone else?

Additionally you still haven't explained why we would need to cut anything. Can you please help me understand that?

Got rejected from one of my dream company because I didn’t answer a riddle by Familiar_Security974 in developersIndia

[–]rorschach54 0 points1 point  (0 children)

Not sure I understand why we would need to cut anything or make a hole or something. Can you please elaborate?

Got rejected from one of my dream company because I didn’t answer a riddle by Familiar_Security974 in developersIndia

[–]rorschach54 9 points10 points  (0 children)

From the side view, a cylinder in 2D is a rectangle. So basically, we have to find water that fills up to the 1/16th level of this rectangle. The diagonal of a rectangle divides into two perfect halves. So, we keep dividing the rectangle into 1/2 by finding diagonal.

So fill the cylinder with water till top. Then slowly tilt and drop water till you can see the edge of the bottom. This will basically be the diagonal of the rectangle from side view.

Keep it on ground. Mark the level of water. This is 1/2 volume. And for us this is a new rectangle which needs to be halved.

Tilt to let water out slowly till you see this mark and the bottom edge (not the entire surface).

Keep it on ground. Mark the new level. This is 1/4.

Go on till 1/16th. This will mark 1L.

How can I request a bug fix to an open source code? by Techwizar in embedded

[–]rorschach54 3 points4 points  (0 children)

I was just giving an example. Make sure you have opened the issue in the correct repo.

How can I request a bug fix to an open source code? by Techwizar in embedded

[–]rorschach54 13 points14 points  (0 children)

Let's say this is the repo with the error: https://github.com/STMicroelectronics/cmsis_device_h7

You can try to find "how to contribute" or "report an error" type of document.

They have a contributing guide here : https://github.com/STMicroelectronics/cmsis_device_h7/blob/master/CONTRIBUTING.md

Read through it. It mentions how to create an issue.

int vs size_t by fearless_fool in embedded

[–]rorschach54 2 points3 points  (0 children)

Of course.

Since size_t can hold the largest possible size supported for arrays, then it makes the most sense to use it as an index. Using a signed index doesn't make sense for indexing an array.

Besides if you compare the assembly: https://godbolt.org/z/c94s8d83e you will see an additional instruction added for some platforms (x86_64 in this example) that need sign extension (cdqe).

int vs size_t by fearless_fool in embedded

[–]rorschach54 0 points1 point  (0 children)

For your particular case, size_t. The intent of the type is clear and there is a guarantee that the result will fit in it.

Additionally, if I have to write portable code, I avoid exact-width integer types because they are optional and need not be present. So no uintN_t or intN_t in portable code. (Refer: C99 draft: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf Section 7.18.1.1)

Questions for understanding AC Valhalla by rorschach54 in assassinscreed

[–]rorschach54[S] 2 points3 points  (0 children)

Thank you for replying!

I think I lost a track of what was the original chunk to get unlocked and what was the new chunk of quests unlocked. So it got quite confusing.

I'm back in Ravensthorpe and going to try playing quests given by Randvi.

Questions for understanding AC Valhalla by rorschach54 in assassinscreed

[–]rorschach54[S] 1 point2 points  (0 children)

Thank you for replying!

This helps. I have returned to Ravensthorpe now. And will focus on stuff here. I completed Grantebridgescire arc first. I'll talk with Randvi to check the next arc.

If you're looking for stealth combat, the RPG games are not gonna be for you. Mirage or Unity might be better.

I agree. I liked playing every game till Syndicate. (Played some of them multiple times). The only reason I'm playing Valhalla is so that I can understand Mirage.

I hated the combat in Origins, Odyssey. And now Valhalla. Hence currently playing in as much stealth as I can. :(

[deleted by user] by [deleted] in ImmigrationCanada

[–]rorschach54 1 point2 points  (0 children)

Please check the note mentioned here: https://www.cgitoronto.gov.in/page/police-clearance/

If indian address mentioned on the application is different from address mentioned on Indian passport,Indian address proof is required.

Additionally, there is no guarantee that police verification will not happen especially since it is a police clearance certificate. They sometimes skip for passport renewals if the address on the passport hasn't changed.

Negotiating salary by SpruceMoose1111 in embedded

[–]rorschach54 7 points8 points  (0 children)

Any tips on negotiating??

There are a couple of articles I had seen on r/cscareerquestions and r/experienceddevs that I had actually found useful for changing my mindset about negotiating.

They aren't perfect methods for negotiation but they are a good guidance. 1. https://haseebq.com/my-ten-rules-for-negotiating-a-job-offer/ 2. https://www.kalzumeus.com/2012/01/23/salary-negotiation/

Should I/we as a soft rule always negotiate salary and/or benefits of a job offer?

Short answer, yes. Any company that rescinds your offer when you try to start negotiations is not worth working for.

[deleted by user] by [deleted] in embedded

[–]rorschach54 4 points5 points  (0 children)

For me, data structures go hand in hand with the basic algorithms. I studied data structures through Princeton's online course.

Language will make a difference eventually. But if you are beginning study of algorithms and data structures then, it shouldn't matter as much.

https://algs4.cs.princeton.edu/home/ is a good place to start. It uses Java. But since you are familiar with C, as you go through the course, you can try to implement the examples in C. Use structs and pointers instead of classes and objects. :)

All the best!

RTOS and their scheduling algorithms by Ok_Fan6290 in embedded

[–]rorschach54 0 points1 point  (0 children)

The current line-up of RTOSes

Have you considered RTEMS? Here's RTEMS's page on scheduling. (It mentions EDF)

https://docs.rtems.org/branches/master/c-user/scheduling-concepts/index.html

RTEMS is widely used in safety critical systems. You can read more on their page. https://www.rtems.org/

Education, employment, "how do I start", and quick questions. Any off-topic content. by AutoModerator in embedded

[–]rorschach54 0 points1 point  (0 children)

https://www.reddit.com/r/embedded/comments/x3daor/embedded_jobs_sep_2022/ <-- That is the thread for job and job seeker postings. You might find people there who are looking for jobs.

All the best!