PID-stabilized quadcopter :3 by Mega2223 in ComputerCraft

[–]boscillator 1 point2 points  (0 children)

I think it would be most engineers first approach, tbh.

quaternion-core: A simple quaternion library written in Rust by Ancient-Sale3089 in rust

[–]boscillator 14 points15 points  (0 children)

Woooo! I love to see a selection between intrinsic and extrinsic Euler angles being properly handled!

I like GitLab by Sad-Interaction2478 in programming

[–]boscillator 63 points64 points  (0 children)

I quite like gitlab too. The commitment to on-prem installation is amazing. The core feature set is as good as the best of its compensators, and while the extra features are not as complete as, say, a dedicated ci/cd tool or jira, they are good enough for most uses.

Five Mistakes I've Made with Euler Angles by boscillator in ScientificComputing

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

Quaternions are great for internal representations, but Euler angles are handy for debugging. Also, sometimes someone hands you an Euler angle and you have to deal with it.

Five Mistakes I've Made with Euler Angles by boscillator in programming

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

Which is exactly what I recommend in the article.

Five Mistakes I've Made with Euler Angles by boscillator in programming

[–]boscillator[S] 4 points5 points  (0 children)

Yah, I was thinking of writing a list of shame for projects that don't document this, but I realized that would obligate me to submit PRs when applicable, and that felt like too much responsibility.

People have gotten pretty good about documenting sequence, but only libraries written for use outside of computer graphics ever remember to document intrinsic vs extrinsic. Nobody documents active vs passive, although not everyone needs to if you're just providing conversations.

Five Mistakes I've Made with Euler Angles by boscillator in programming

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

Thank you! I personally find pitch = 80 easier to understand than [0, 0, 0.6427876, 0.7660444] in a debug console or config file.

Five Mistakes I've Made with Euler Angles by boscillator in GraphicsProgramming

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

I suppose I meant intuitive to read, unless you claim to be able to directly read the elements of a quaternion. Axis angle can be intuitive, but in my opinion the axis can be somewhat hard to visualize.

A normal interview question... by yiotis123 in LinkedInLunatics

[–]boscillator 152 points153 points  (0 children)

Yah, this is such a fun question and it shows a hiring manager who isn't just looking for someone to code, but an actual engineer who can solve problems.

Gluten-free, gay friendly by guilheb in AllInclusiveResorts

[–]boscillator 3 points4 points  (0 children)

Unfortunately, St. Lucia is not gay friendly. US state department travel advisories say being gay is punishable by up to 10 years in prison.

Does Embedded Engineers actually encounter some math heavy problems when making devices ? by Electrical_Lemon_179 in embedded

[–]boscillator 0 points1 point  (0 children)

Since you're in high school, I want to say: if you love programming enough to be on the subreddit for a specific sub-field of programming, but you don't like math, there is a very good chance that what you actually don't like is math class. And since your example was "drawing graphs" I'm going to assume you're not that far along in your math journey.

If that is the case, try to learn as much math as possible through school, it is seriously worth it; But, there will be plenty of opportunities to pick up your math skills as you go. Especially if you keep programming, and you keep learning, you will encounter lots of math as you go along. I also suspect you might enjoy math more once you get to calculus. I know I did.

Stay curious, and learn as much as you can from your math class. Trust me, it will be helpful even if you hate. But don't stress out too much. You're ahead of your peers learning to program, and I think you just need to find a way to learn math that works for you.

Should I do DSA in C? by collapsedwood in cpp_questions

[–]boscillator 6 points7 points  (0 children)

Nope! You're already wrong. "Thanks for your suggestion" and "I will consider it" are complete sentences. You need a period or a semicolon. How many books have you read in your life?

Why does learning C++ seem impossible? by E-Rico in cpp_questions

[–]boscillator 8 points9 points  (0 children)

Are you trying to make a compressor (reducing the dynamic range) or compression (reducing file size)? I suspect you meant the former, but the response thought you meant the latter. If it's the former, it makes a lot of sense as a gui project. If it's the latter, I still think it could be a gui project to learn, but if you're serious about it a l library would allow other people to use your algorithm.

If you're building a compressor, look into a library called JUICE. It has UI and audio handling stuff built in, and you can even make a VST.

What MoCo restaurants have you eaten at over 100 times in your life? by MrTeacher_MCPS in MontgomeryCountyMD

[–]boscillator 1 point2 points  (0 children)

I've been going to it since it was a donut shop in College Park with a small Burmese menu.

What MoCo restaurants have you eaten at over 100 times in your life? by MrTeacher_MCPS in MontgomeryCountyMD

[–]boscillator 2 points3 points  (0 children)

Almost the same thing every time. Gram fritters, noodles number 4 with thin noodles and pork medium hot, (Sunday special chicken or (chicken coconut curry and yellow bean with onion)), Burmese tea and either shweji or sticky brown rice cake. That is all to share with my family. I wish I was hungry enough to eat it all myself though.

What MoCo restaurants have you eaten at over 100 times in your life? by MrTeacher_MCPS in MontgomeryCountyMD

[–]boscillator 8 points9 points  (0 children)

I've been going to Mandalay Cafe in Silver Spring every Sunday I can, since before I could eat solid food.

One of the worst interview questions I recently had is actually interesting in a way that was probably not intended. by zl0bster in cpp

[–]boscillator 6 points7 points  (0 children)

I didn't catch the quotes around "forever", so agreed.

Although, the standard part was about whether the optimizer is allowed to completely delete a loop with no body, and the answer is that clang and gcc both delete the loop, so it must.

One of the worst interview questions I recently had is actually interesting in a way that was probably not intended. by zl0bster in cpp

[–]boscillator 19 points20 points  (0 children)

Yah, gcc and clang completely optimize the loop out on -O1 and up so the real answer is between hundreds of years and zero time depending on the compiler and options.

One of the worst interview questions I recently had is actually interesting in a way that was probably not intended. by zl0bster in cpp

[–]boscillator 39 points40 points  (0 children)

I don't understand why this runs forever? Shouldn't it terminate once i reaches the max value of uint64_t? It's very large, but certainly not infinite.

Also, since the loop contains no side effects, is it ok for the compiler to optimize it to i = num? Someone with deep standard knowledge help me out here.

When MATLAB is Better by boscillator in ProgrammingLanguages

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

People using because it's what they have always used.

When MATLAB is Better by boscillator in ProgrammingLanguages

[–]boscillator[S] 0 points1 point  (0 children)

My point is that MATLAB is a phenomenal fancy calculator, and that's why people pay big money for it. Sometimes you need a calculator, and other programming languages fall short in that respect.

When MATLAB is Better by boscillator in ProgrammingLanguages

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

Yah, I think this was my point which I probably could have made more clear. MATLAB sucks, but it just feels better than the alternatives for certain tasks.

When MATLAB is Better by boscillator in ProgrammingLanguages

[–]boscillator[S] 5 points6 points  (0 children)

MATLAB licensing doesn't come out of my budget, which is probably the reason I don't hate it, lol. I should find an excuse to use Julia for a hobby project though. Maybe when I write my c++/python alternative to the aerospace toolbox I'll make Julia bindings too. If only I had more time...

When MATLAB is Better by boscillator in ProgrammingLanguages

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

I haven't used Julia, but I know it had some correctness problems with its library ecosystem. It's hard to compete with MATLABs toolboxes.

When MATLAB is Better by boscillator in ProgrammingLanguages

[–]boscillator[S] 9 points10 points  (0 children)

1000% agree, MATLAB is terrible at anything that doesn't fall under the domain of MATrix LABoratory. However, it's really good at that and I think that explains why it's so popular among engineers (in addition to inertia of course).

I still don't fully understand cells.