New Things in C# 4.0

A few days ago Anders Hejlsberg delivered a presentation about the Future of C# at the Professional Developers Conveference 2008. He focused on the new things that will be available in C# 4.0: dynamic typed objects optional and named parameters improved COM interoperability co- and contra-variance The recording of the presentation is available on Channel9…

Visual Studio 2010 & .NET 4.0 CTP released

Microsoft has recently released the first Community Technology preview for Visual Studio 2010 and .NET Framework 4.0. Here is a list of new things in VC++, from the VC++ team’s blog: MSBuild Support for Visual C++ IntelliSense and Browsing Experience Improved Responsiveness and Scale Improved Accuracy and Robustness C++0x Features Lambda Expressions Rvalue References static_assert…

Get a free copy of Windows Server 2008 SE with selected Windows Server classroom training

Microsoft’s Certified Partners for Learning Solutions are providing this offer untill the end of the year: enroll and attend any one of top Windows Sever 2008 training classes and receive a free copy of Microsoft Windows Server 2008 Standard Edition NFR (Not For Resale). Details about this offer can be found at http://trainingoffers.com/WS2008NFR.aspx. To see…

Hraneste un copil

RONUA.RO a implinit 4 ani. Pentru aceasta iti multumim, in primul rand tie pentru sprijinul acordat, sprijin fara de care noi, nu am fi implinit 4 ani in aceasta luna. Cu aceasta ocazie festiva, in timpul roadshow-ului TechEd Review 2008, dorim sa facem diferenta intr-o campanie inovativa de promovare a demersului la nivel global de…

Even numbers as sum of 2 primes

A very old unsolved problem in numbers theory, known as Goldbach’s conjecture, says that any even number greater than 5 can be written as the sum of 2 prime numbers. It hasn’t been solver yet, not I will try to solve it. But I decided to write some F# code to display all the possibilities…

CategoriesF#

Writing UTF-8 files in C++

Let’s say you need to write an XML file with this content:

How do we write that in C++? At a first glance, you could be tempted to write it like this:

When you open the file in IE for instance, surprize! It’s not rendered correctly: So you could be tempted to say…