Iterators Python Count elements in an iterator Counting elements in a list, tuple or dictionary in Python is trivial, count the elements in a iterator is not. Because of the nature of a generator it’s not possibile to know how
Asm C/c++ Gdb Loop unwindig Disassembly C code for fun - Part 3: for loop …And it’s already the third post about disassembly C code for fun. Today we disassembly a simple for..loop cycle
Asm C/c++ Clang Gdb Hello world Instruction pointer X86-64 Disassembly C code for fun: part 2 So, in the previous post Disassembly C code for fun: part 1 I didn’t used as example the well known “Hello World!” code, but for a good reason: I need to explain some
Assembly code C/c++ Clang Gdb Source code X86 X86-64 Disassembly C code for fun: part 1 I’m currently reading The C Programming Language by Ritchie and Kernighan to learn the C language from ground zero.
Byte code Performances Python Type annotations Python 3 annotations and performances Python 3 introduced the concept of parameter and return type annotation with PEP 3107. Other interpreted languages supports type annotations for example ActionScript3 and this improved the quality of the generated byte-code and