Tuesday, December 7, 2010

About C / C++ / C#: Challenge 41 Just About Marked

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#
There are 18 entries plus one that needs Mingw32 so I'll have that finished later today. Congrats to both Gustavo Giráldez and Christian Beaumont for such fast times that only vary by 5 Milli-seconds. Christian's was written in C# so it shows just how fast managed code can run. I should have had my new PC by now but the delivery company decided it should have a tour of East England postal depots first before it gets to me. Thanks guys! Have a great week!

Fast Light Toolkit
This is one of the lesser known C++ GUI toolkits compared to the likes of WxWidgets or Qt. The main part of FLTK is the library which lets you create a graphical user interface that will build and look similar on multiple platforms. It's over 50,000 lines of code and getting started takes a bit of reading. There are over 900 articles in the web documentation library which is not very well organized; there's an awful lot to browse or search in there . Everyone has their favorites and if I were doing regular C++ development, I'd be tempted to try this as it's light weight and the GUI looks clean. Having to learn a new GUI framework is not trivial. It's clear that the project's developers have professional software development experience and the documentation is comprehensive. Most important is that the project is still under active development with release 7893 of FLTK 1.3 just a few days ago.

Evolution Is Slow...
Sadly I haven't developed any super powers recently, I'm sure it's only matter of time before I acquire the ability to fly etc, but I'll need maybe a million years or so and I haven't really got the time for that. Doing experiments in evolution is a difficult thing to do as the process is slow in the real world! One way is to simulate evolution in software and that's where Avida comes from. As Wikipedia describes it, it's a form of CoreWar (but written in C) where programs evolve and try to compete for CPU resources. Avida is an experiment and simulates a parallel computer so it all happens in parallel and it records all aspects of a population. Since 1993, Avida has had many new features added, including localized resources, a scheduled events system, multiple CPU types and a sophisticated analysis mode to post-process data from an Avida experiment.

Contest 42 is Now Ready
Screen shot of racetrack display appThe racetrack file has been uploaded and it's a very small file! Out of interest, to test that it looked ok and help me visualize it, I wrote a short C# application that took the input data and displayed it as a track. Then I thought I'll write it up as a Quick Tip, explaining how to plot lines on a Winform using sin/cos trigonometry to calculate points from angles and lengths. You can download the source code and compile/run it yourself. If you come up with a decent track or two, please email me at cplus.guide@about.com and I'll use it to mark contest 42.

Development Projects from Initial Design to Completed Code
Each project is a complete application with notes on the requirements, the design, the architecture, code and final project review. With full source code in C, C++ or C#.

 


C / C++ / C# Ads
Featured Articles
Reviews of Software - Tools, Compilers, Editors etc
Book Reviews
Top Tools, Utilities and Resources
Glossary of Programming Terms
Welcome to the C++ Area with Articles about C++ Development
Other Blogs You might find Interesting

 

More from About.com

Great Gadget Gifts
iPad or iPod? Kindle or Nook? Point-and-shoot or DIL camera? If you're confused by this year's must-have gadgets, check out our top picks. More>



The Gift of Entertainment
The lowdown on the latest holiday releases, plus recommendations on the best in music, movies and more. 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

Wednesday, December 1, 2010

Noah Mays

Featured video

WikiLeaks founder wanted on rape charges

ABC Action News
3e8ik5tg

Lazaro Funk

Interpol Issues Arrest Warrant for WikiLeaks Founder Julian Assange

Fox News - ‎32 minutes ago‎
The Australian is suspected of rape, sexual molestation and unlawful coercion in an investigation that stems from his encounters with two women during a visit to Sweden in August.

Video: Cable-embarrassed: How will US make WikiLeaks shut up? RT

15149534238213238209238204238197238187238186

The Associated Press - Wall Street Journal - Reuters - CBS News - Wikipedia: Julian Assange

fv5tg7ujm

Tuesday, November 30, 2010

Kenton Nash

Images

Reuters
 
msnbc.com

 

Toddler dies at Virginia mall, grandmother charged

Reuters - ‎3 hours ago‎
WASHINGTON (Reuters) - A 2-year-old girl died on Tuesday after being thrown off a balcony at a shopping mall in the Virginia suburbs of Washington, and her grandmother faces charges over her death, police said.

238173238172238169238167238164

 
tgyh7u8i9o

About C / C++ / C#: Programming Contest 42 Published - Fast Cars!

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#
Contest 41 has had a lot of entries and re-entries. We're now up to 16 players and I've extended the deadline to next Sunday. (December 5th). One of the later entries has set a very fast time that's going to be very hard to beat. Meanwhile contest 42 has now been published (details below) and there's one entry in already! See you next week!

Programming Contest 42 Published - Fast Cars!
This time you are given a race track, defined by a series of vectors. Each vector is a pair of numbers, an angle and a distance. When the track changes direction there is a curve with a top speed limit. Your code must accelerate or decelerate your car so it gets round one lap without the car exceeding the curves' speed limits and crashing out. I've kept the maths simple; all curves are constant radius and only change directions in multiples of 30 degrees. I've also provided the 4 equations of motion so your program can easily calculate the new speed and distance traveled of applying acceleration or deceleration to the car for a period of time. You don't have to worry about friction, air resistance, weather, fuel etc. I'll have the track defined before the contest starts as it's not ready yet.

Contest 41 Results Updated
This is a few years old but pretty good, Thierry Berger-Perrin showed how to ray trace a sphere in under 100 lines of C++ code. What's even cleverer is that someone has written a C++ to JavaScript converter called Emscriptem and you can run the ray tracing demo online. Emscriptem takes the output of LLVM bitcode (which can be generated from C/C++, using llvm-gcc or clang, or any other language that can be converted into LLVM) and compiles that into JavaScript. Then you can run it on the web as that demo showed. JavaScript is interpreted so will never be quite as fast as compiled C++ code, but there is an arms race to have the fastest JavaScript interpreter between Firefox, Chrome and IE 9 so expect great things.

XML - Wildly Successful Data Transfer Format
XML emerged back in the mid late 90s and was an overnight success, though it was actually derived from the earlier SGML. It made possible transference of meaningful data that computers could process yet at the same time, it was human readable. This also allowed web services using Soap (Simple Object Access Protocol) to send and receive XML messages. One problem with XML is that it's pretty bloaty compared with pure data. Several methods including compression and binary XML have been tried to reduce the size which also makes it slower to parse. A very fast XML parser is AsmXml. Here's an example of XML borrowed from Wikipedia. <?xml version="1.0" encoding="UTF-8" ?>
<painting>
  <img src="madonna.jpg" alt='Foligno Madonna, by Raphael'/>
  <caption>This is Raphael's "Foligno" Madonna, painted in
    <date>1511</date>-<date>1512</date>.
  </caption>
</painting>
XML could be transformed into other XML type languages (including xhtml) through XSLT. HTML 3/4 which was the state of the art at the end of the 90s became xhtml which lasted most of the last ten years. It combined the strict XML typing (all lower case, tags had to have closing tags) with HTML, but with recent developments of html5 instead of xhtml2 and the lighter weight JSON gaining traction instead of XML, the question has to be asked, how long will XML be around?

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

Great Gadget Gifts
iPad or iPod? Kindle or Nook? Point-and-shoot or DIL camera? If you're confused by this year's must-have gadgets, check out our top picks. More>



The Gift of Entertainment
The lowdown on the latest holiday releases, plus recommendations on the best in music, movies and more. 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

Monday, November 29, 2010

Katharine Mccarty

"Katharine Mccarty"

Latest updrfbates: Wikileaks' diplovm1jsignmatic cables relh4fhsease

CNN (blog) - ‎50 minutes ago‎
WikiLeaks, a whistle-blowi5b52ng website known for leakhqyy3hing state secrets, h4nas relexvased its latest batch of controversial docuelo2gkments. It has posted the first of ...

Madeline Clay

"Madeline Clay"

Latest updr873ates: Wikileaks' diplofjmatic cables relq8ease

CNN (blog) - ‎50 minutes ago‎
WikiLeaks, a whistle-blowijwbng website known for leak79sgfming state secrets, hnhmmu8adas relemrtygh0tased its latest batch of controversial docuobjments. It has posted the first of ...

Sunday, November 28, 2010

Get 15% Discount On ALL Watches!!! Replica Tag Heuer Classic Carrera Watches | Replica Rolex Datejusts President White Gold Watches

4d3e4rfv5t Ebel Watches Timewalker GMT Automatic Replica A Lange & Sohne Lange 1 Moonphase Watches NBA Star Yao Ming Limited Edition * TechnomarineReplica Omega Seamaster Diver Series Watches Replica Vacheron Constantin Tourbillon Watches Pasha De Cartier Power Reserve Corum Watches Ladies Omega Replica Watches Rolex Sports models Ergon Replica Bell & Ross BR01 96 Watches Sports Series Chronograph Replica Bvlgari GMT Chronograph Watches Rolex Sports Models Mont Blanc SpeedMaster Date Ferrari Granturismo Rattrapante Replica Breitling Navitimer ChronoMatic Watches Porsche Design Replica Porsche Design Titan Chronograph Watches Longines Watches Replica Cartier Paris Watches Replica IWC Complication Perpetual Calendar Watches Spitfire Mark XV Oyster Daydate Platinum Men Assioma Automatic Replica Breitling Brushed Steel Series Watches Omega Seamaster 300 M Racing Chronometer Must 21 Series Must 21 Quartz Breitling Navitimer Range Watches Rolex Datejusts Oyster Datejust SS Case Ladies Replica Chopard Happy Diamonds Sport Square Watches Replica Breitling Super Ocean Watches Replica Bell & Ross BR01 94 Chronograph Watches IWC Watches Replica Chanel J12 Black Tourbillion Watches Yachtmaster II 18K & SS Case Replica Chopard Mille Miglia GMT Rubber Strap Watches Replica Breitling 1884 Hercules Series Watches Breitling Diver Range Watches * Patek PhilippeReplica Longines Master Collection Master Automatic Chronograph Watches Tag Heuer Watches Rolex Sports Explorer Watches Omega De Ville Co Axial Chronograph Link Automatic Chronograph Replica Chopard Happy Diamonds Spirit Edition Watches