telecom • networking • design

an EventHelix.com blog


Leave a comment

Optimizing C and C++ code

Several techniques for optimizing C and C++ code are covered:

  • Adjust structure sizes to power of two
  • Place case labels in narrow range
  • Place frequent case labels first
  • Break big switch statements into nested switches
  • Minimize local variables
  • Declare local variables in the inner most scope
  • Reduce the number of parameters
  • Use references for parameter passing and return value for types bigger than 4 bytes
  • Don’t define a return value if not used
  • Consider locality of reference for code and data
  • Prefer int over char and short
  • Define lightweight constructors
  • Prefer initialization over assignment
  • Use constructor initialization lists
  • Do not declare “just in case” virtual functions
  • In-line 1 to 3 line functions

Optimizing C and C++ Code

Learn about HTML5

Leave a comment

Covered topics

JScript APIs

  • Web Storage – local database
  • Web SQL local database
  • Web Worker light weight threads
  • Drag and drop event model
  • Geolocation

HTML5 markup

  • header
  • hgroup
  • footer
  • aside
  • nav – navigation section
  • section
  • article
  • New Link Relations (prefetch, pingback)
  • Microdata
  • New form fields
  • Audio and Video
  • Canvas
  • WebGL

CSS selector enhancements

  • New font types
  • Text stroke
  • Gradients
  • Transformations
  • Animations


Leave a comment

GPU Based Parallel Computing with C++ AMP

C++ AMP lets you write C++ code that can directly target the GPU on the machine. Imagine being able to mix application code and signal processing code in a single program. The C++ AMP compiler takes care:

  1. Compiling the GPU code and loading it on the GPU
  2. Passing the data to from the application to the GPU
  3. Triggering the GPU computation
  4. Getting the results from the GPU and passing them back to the application.
The GPU code could perform performance intensive signal processing like FFT, turbo decoding and matrix multiplication.

http://channel9.msdn.com/posts/AFDS-Keynote-Herb-Sutter-Heterogeneous-Computing-and-C-AMP/player?w=512&h=288


Leave a comment

TCP/IP Tutorial and Technical Overview IBM Redbook

Free TCP/IP book from IBM:

Part 1. Core TCP/IP protocols
Chapter 1. Architecture, history, standards, and trends
Chapter 2. Network interfaces
Chapter 3. Internetworking protocols
Chapter 4. Transport layer protocols
Chapter 5. Routing protocols
Chapter 6. IP multicast
Chapter 7. Mobile IP
Chapter 8. Quality of service
Chapter 9. IP version 6
Chapter 10. Wireless IP

Part 2. TCP/IP application protocols
Chapter 11. Application structure and programming interfaces
Chapter 12. Directory and naming protocols
Chapter 13. Remote execution and distributed computing
Chapter 14. File-related protocols
Chapter 15. Mail applications
Chapter 16. The Web
Chapter 17. Network management
Chapter 18. Wireless Application Protocol
Chapter 19. Presence over IP

Part 3. Advanced concepts and new technologies
Chapter 20. Voice over Internet Protocol
Chapter 21. Internet Protocol Television
Chapter 22. TCP/IP security
Chapter 23. Port based network access control
Chapter 24. Availability, scalability, and load balancing
Appendix A. Multiprotocol Label Switching

IBM TCP/IP Redbook