Ido Gendel (@igendel)

Self-taught hobbyist turned embedded systems designer, mainly programming 8-bit MCUs and designing PCBs.

...later, I asked it to write Python code [unrelated to embedded] to solve a less trivial problem ("a function to sort a list of integers according to their absolute...
Well, as much as I'm in awe of the thing in general (a machine that takes natural-language descriptive sentences and turns them into code), I couldn't help but laugh...

Re: Another Noddy Question

Reply posted 2 years ago (06/08/2021)
The exact size-in-memory of a struct may depend on the data types, the architecture, the compiler (including keywords/directives like "packed" in C) and even...

Re: Another Noddy Question

Reply posted 2 years ago (06/08/2021)
Putting a unique, never-valid-data value at the end of a list - usually called a "sentinel" - is a classic trick (see C-style strings). But as always, there are...Pros:...

Re: Questions re Coding Efficiency

Reply posted 2 years ago (03/30/2021)
Within a single if statement, most compilers will default to a "lazy evaluation" of the conditions - e.g. if the operator is an OR and the first (leftmost) condition...

Re: What are the odds? (Random Numbers)

Reply posted 2 years ago (02/01/2021)
Indeed, the correct value is hopelessly not 50% - it's actually 2/3 of the produced numbers being below that midpoint. This is caused by careless use of the modulo...

Re: What are the odds? (Random Numbers)

Reply posted 2 years ago (02/01/2021)
There's an Arduino riddle I posted once in my blog: if you produce lots and lots of (pseudo-)random numbers in the range 0 to 1,431,655,765, what percentage of...

Re: Software expands to fill the memory available

Reply posted 3 years ago (11/14/2019)
A little while ago, I used a certain software product to develop a minimal Android App: A blank screen, except for a button in the middle that allowed the user to...

Use this form to contact igendel

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address