
Ido Gendel (@igendel)
...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...
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...
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:...
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...
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...
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...
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