Bibliophile

A trivial blog of a bookworm

Friday, October 28, 2005

.NET isn't really mean for real-time

I am doing some research on Internet to pick up a new language to program the machine. Since I am familiar with Microsoft products, I picked up some .NET languages to do comparison. But I found some messages in Micorsoft newsgroup which raise my concern.

The message from Consumer62000 in the newsgroup is as follows;
Let me tell you a scenario and you will see what I mean.
There is a large application that has communication with a real time
system . The app has to respond to the requests in no more than 1 s.
The app is a C# .NET app and everything is fine and everyone at
Microsoft is happy that they forced their "new" platform down someone's
throat.

Now imagine a scenario where the GC has to collect the memory. Well,
when GC runs all the threads are suspended and there is no response to
the incoming requests and application fails a critical requirement.

Well,any MS people here who can defend their sucky product,
I know they will say "don't use .NET for this or that...use C or C++
etc"

My q to them is why did you create .NET then?

Microsoft personnel reply as follows:
>Microsoft is happy that they forced their "new" platform
> down someone's throat.
Wrong. In the "C" world you still have choice. C++ works just fine. No one
forces you to use .NET.

> My q to them is why did you create .NET then?
Simple... because not all applications require real-time behavior. In fact,
I would argue that most applications do not require real-time behavior. So,
yes, .NET *may* not be the best way to go in these scenarios. You answered
your own "q". Any architect, or developer for that matter, should do their
homework before deciding how an application should be written. Use the
proper tools for the proper tasks. Microsoft gives developers options and
it's your job to decide when and how to use them.

Entire conversation can be found here.

So it is better for me not to choose .NET framework to control the machine. VB.NET and Visual C#.NET are not suitable languages for machine control. However, I feel that choosing Visual C++.NET is still a feasible solution. Visual C++ .NET unmanaged code (MFC application) can bypass some features of .NET framework. That mean it can run outside .NET framework without garbage collector. However, it will defeat Microsoft purpose of .NET to eliminate "Buffer Overrun Problem" which is very common in Visual C++.

Wednesday, October 26, 2005

Myanmar Unicode and its problems

I am currently translating phpMyChat software to Myanmar Language with newly released Myanmar1 opentype font from Myanmar Computer Federation. Myanmar Unicode is still in its initial stage. It need a lot of rooms for improvement.

It did not work on Internet Explorer. Although I exactly followed the instructions written on MCF website, their batch program failed when it running on my Windows XP with Service Pack 2. Beside, it did not comply with existing Unicode fonts such as Myazedi, Mandalay and UniBurma. Moreover, I am wondering why people still implement funny characters in Myanmar Unicode. U+1051 to U+1059 never existed in Myanmar Language. So why they waste time to implement it since nobody will use those characters.

I also have problems in character combination. In Myanmar Language, we need to type ေ before the character. But when I type "tha way htoe" before character, it combined with the previous letter. Besides, I saw unwanted "nga that" often when I press backspace.

I hope I can finish my translation of phpMyChat soon. Currently, I am translating tutorial and help files.

Tuesday, October 18, 2005

My First post in Burmese

If you don't understand Burmese, I am sorry. If you understand Burmese and you cannot see the text below, please download Myanmar Unicode Font and Driver at
http://www.mcf.org.mm/unicode/opentype.html

It only work on Mozilla FireFox.

မ္ရန္‌မာယူနီကုတ္‌စာလံုးကို သံုးပ္ရီးစမ္‌းေရးက္ရည္‌့တာပာ။ အခုလို ယူနီကုတ္‌စာလံုးကို အသံုးပ္ရုပ္ရီး ေရး‌ခ္ဝင္‌့ရတဲ့အတ္ဝက္‌ မ္ရန္‌မာယူနီကုတ္‌ ဖန္‌တီးသူေတ္ဝကို အထူးပဲေက္ယးဇူးတင္‌ပာတယ္‌။ က္ဝ္ယန္‌ေတာ္‌ကိုယ္‌တိုင္‌မလုပ္‌နိုင္‌ခဲ့တဲ့ အလုပ္‌တစ္‌ခုကို တစ္‌ခ္ရားသူေတ္ဝကလုပ္‌လုိ့ ္ရဖစ္‌လာတာကို မ္ရင္‌ရတာ က္ဝ္ယန္‌ေတာ္‌ အရမ္‌း၀မ္‌းသာပာတယ္‌။

ေရ္ဟ့ဆက္‌္ရပီး ္ရမန္‌မာယူနီကုတ္‌ အဆင္‌့မ္ရင္‌့နိုင္‌ေရးအတ္ဝက္‌ က္ဝ္ယန္‌ေတာ္‌တတ္‌နိုင္‌ သမ္ဟ္ယ ကူညီသ္ဝားခ္ယင္‌ပာတယ္‌။