blog.world3.net

Sabotaging open source

Following on from my previous post about new forms of internet trolling, it seems that sabotaging open source projects is also a popular new pastime for asshats.

Take avr-libc. It used to have two functions sbi() and cbi(). These two functions are incredibly useful, pretty much the bread and butter of what microcontrollers do. So, the asshats managed to get them removed, on the grounds that they were redundant since you can write some less readable code and rely on the compiler to optimise it back to a sbi/cbi assembler instruction.

Relying on the compiler to correctly and reliably optimise your code is a very bad idea. All sorts of things can influence how the compiler decides to optimise stuff. For example, in the latest version of avr-libc the _delay_ms() and _delay_us() functions can be optimised into oblivion, resulting in no delays, and despite them being marked as not optimisable. I spent hours trying to figure out why it wasn’t working, until eventually examined the assembler code in the debugger and noticed what had happened.

So, now we have less readable, error prone code and an avr-libc that is not backwards compatible with all that legacy code you write a year or two ago. The asshats have managed to sabotage it, with the justification that sbi() and cbi() are “too close to the metal” and it’s philosophically better to just pray that the compiler does what you want it to.

Trolling really is evolving.

This entry was written by mojo, posted on 15/04/2008 at 14:00, filed under avr, idiots. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.
« Never Mind The Bastards
EU to expand definition of criminal terrorism »

Post a Comment

Your email is never shared. Required fields are marked *

*
*

たとえ溺れても梦はゆめでしかない
  •  

    April 2008
    M T W T F S S
    « Mar   May »
     123456
    78910111213
    14151617181920
    21222324252627
    282930  
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Categories

    • audio (1)
    • avr (20)
    • BBC (1)
    • electronics (29)
    • genius (4)
    • hardware (22)
    • idiots (39)
    • Internet (21)
    • law (20)
    • microcontrollers (12)
    • networking (17)
    • politics (29)
    • privacy (19)
    • Retro Adapter (5)
    • security (17)
    • software (32)
    • Uncategorized (18)
    • windows (25)
  • Archives

    • February 2012
    • January 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • July 2011
    • June 2011
    • May 2011
    • March 2011
    • January 2011
    • December 2010
    • November 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • November 2005
  • Links:

    Main site: world3.net

    Electronics: denki.world3.net

WordPress | Sandbox