• 0 Posts
  • 791 Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle
  • Fun fact: Joseph Stalin first became known to Lenin when he organized the successful robbery of a bank stagecoach in Russia. The stagecoaches were heavily protected by armed men riding on the outside of the coach as well as riding horses alongside, but Stalin observed that they tended to relax their guard upon reaching a densely-populated city, on the assumption that revolutionaries would not be willing to injure or kill innocent bystanders.

    This assumption was very wrong in Stalin’s case. He had his people lob satchel bombs at the coach and riders after they reached the city, killing most of the guards as well as nearly 100 innocent bystanders in the vicinity. They made off with a huge amount of money, and Lenin congratulated Stalin although he had only planned the operation and not participated in it. The importance of delegation!


  • I ran into a similar situation many years ago, when I was trying to write a software synthesizer using Visual Basic (version 4 at the time). The big problem is that if you’re doing sample-by-sample processing of audio data in a loop (like doing pixel-by-pixel processing of images) and your chosen language’s compiler can’t compile to a native EXE or inline calls, then you end up suffering the performance hit of function calls that have to be made for each sample (or pixel). In many applications you’re not making a lot of function calls and the overall performance hit is negligible, but when you’re doing something where you’re making hundreds of thousands or even millions of calls per second, you’re screwed by the overhead of the function calls themselves - without there being any other sort of inefficiency going on.

    In my case, I eventually offloaded the heavy sample processing to a compiled DLL I wrote in C, and I was able to keep using Visual Basic for what it did really well, which was quickly building a reliable Windows GUI.