Tuesday, November 16, 2010

About C / C++ / C#: A Busy Week

If you can't see this email, click here

About.com

C / C++ / C#

Fundamentals

Tips & Tools

Going Pro



From David Bolton, your Guide to C / C++ / C#
Last week had me doing several releases at work, a one day training course on LINQ and I was also away at the weekend. so marking of Contest 41 has been a bit delayed but will start very soon. Noted in Passing:
  • Tenacious C a soon to be commercial C IDE with "pointers and memory in a visual format that makes the hard parts of C ridiculously easy.".
Have a great week!

Comprehensive C Archive Network
CCAN is a sophisticated snippets library, ie one where the code has some documentation in a _info file and a test suite. It currently has approximately 50 modules. GPL'd, it's easy to use any module. Just download it into a ccan folder then include the header in your code. There are all sorts of useful stuff like dynamic array management, random number generator, string and file helpers, string helpers and even a transactional database. (Key/value pairs in a file but transactioned so crash proof) and lots more. You'll need the WinRar or similar utility to extract the BZ2 archive file.

LAFP/LAPP Instead of LAMP?
Apologies for the most mysterious title ever! I'm referring to the belief that Oracle is trying to milk MySQL for all its worth and LAMP (Linux, Apache, MySQL and PHP) may have the MySQL replaced by PostgreSQL (LAPP) or Firebird (LAFP). Oh to have a time machine to look forward five years! There's a 3rd alternative of course which is already here of course, SQlite already has PHP integration, but great software though it is, I don't think SQLite is quite right for a multi-user environment. For at least the last ten years, MySQl has been the poster boy of the open source world though it actually started in 1995. The rot set in when Sun bought it in 2008 for $1 billion though no one really noticed until Oracle announced that it will maintain MySQL dual licensing until 2015. After that...? Don't forget that to use MySQL under a commercial license you will now pay at least $2,000 a year per server. So MySQL lives on, but it also has 4 other identities forked from MySQL: Percona Server (Includes XtraDB), Drizzle (C++ rewrite, BSD/GPL 2 License), MariaDB (Also includes xTraDB) and OurDelta. Oracle should seek to reassure the open source community that it can continue to use MySQL because if it doesn't there will be fragmentation until one of the six alternatives (Firebird,PostgreSQL, or the 4 MySQL forks) becomes dominant.

Explanation of How a Demo works
I'm not a demo scener but I love looking at some of the creations and am just gobsmacked at what can be achieved in very small exes. This demo on Vimeo is excellent in itself but when you realise it's a 4Kb exe, well the usual reaction from programmers is WTF! The creator of Ergon (video ) another 4KB demo explains how he created it. He created a lava like texture in C# originally (twechnically he used a shader to create it and rendered it using DirectDraw). Then he added two other scenes, music from a 3rd party plus a lot of hard work and voila. You can see the final compression statistics at the bottom of the page. 6977 bytes of data (shader texture, music) and 2275 bytes of code compressed by a special 4KB compression exe called the crinkler into 4070 bytes. (No sources though) . Crinkler is rather specialized but if you want a generic EXE compressor, try the excellent UPX which is listed in the Top Tools and Utilities, link below.

Other Blogs You might find Interesting
This is a list of Blogs that you might find interesting.

 


C / C++ / C# Ads
Featured Articles
Never Programmed Before? Start Here
Welcome to the C Area with Articles about C Programming
Welcome to the C Sharp Area with Articles about C Sharp Development
Learn about Commercial Software Development
All about Games Programming
Code Library for C, Objective-C, C++ and C#

 

More from About.com

Thanksgiving Recipes
Herb-roasted turkey with cornbread stuffing, cranberry relish and roasted squash, sweet and tart fruit pies, and many more. More>



Choose the Perfect Gift
Whether you're looking for teens, teachers, grandparents or even pets, we have suggestions to make shopping easier. More>




This newsletter is written by:
David Bolton
C / C++ / C# Guide
Email Me | My Blog | My Forum
 
Sign up for more free newsletters on your favorite topics
You are receiving this newsletter because you subscribed to the About C / C++ / C# newsletter. If you wish to change your email address or unsubscribe, please click here.

About respects your privacy: Our Privacy Policy

Contact Information:
249 West 17th Street
New York, NY, 10011

© 2010 About.com
 


Must Reads
Programming Challenges
About C, C++ and C#
C++ for Beginners
C++ Programming
Intro to OOP

Advertisement

No comments: