1) I have Ported My Roman to Number, Python one liner to C, Speed becomes unbeatable. :-)
Python
R,r={'I':1,'V':5,'X':10,'L':50,'C':100,'D':500,'M':1000},lambda x:reduce(lambda T,x:T+R[x]-T%R[x]*2,x,0)
C
int R[]={100,500,0,0,0,0,1,0,0,50,1000,0,0,0,0,0,0,0,0,5,0,10};int r(char*s){int x=0;while(*s)x+=R[*s-'C']-x%R[*s-'C']*2,s++;return x;}
2) I Found New Python IDE, called Spyder
http://code.google.com/p/spyderlib/
# I am currently using Pyscripter and sometimes notepad++, previously I use Wing (its not free), Eric IDE, ...
3) I found Python to C++ Code Generator called shedskin, it supports limited syntax only though.
http://code.google.com/p/shedskin/
# I am sometimes using psyco, its quite good actually, psyco use JIT when It can, just skip if cannot, for shedskin, it cannot proceed at all for unsupported syntaxes. Well, It make sense though.
4) I have learn something new on new languages and new ideas, new writing styles.
http://myanmaritpros.com/forum/topics/challenge-on-programming-or
# Challenging is good, I believe :-)
Cheers,
Mark
5 comments:
နားမလည္ေသာ္ၿငားလာလာဖတ္၏
Hi Bro Mark, thanks a lot for sharing and advice, may continue best sharing for all.
Regards,
ST
ဆိုင္လားေတာ့မသိ့ လိုအပ္၍လာေရာက္အပူကပ္ပါသည္ ျဖစ္ႏိုင္လွ်င္ေတာ့အကူညိေပးပါလို႕ အပူကပ္ပါသည္........Memory Stick မွ ေဒတာမ်ားကို Shift Del ႏွင့္ဖ်က္မိ့လိုက္ပါသည္ အဲဒါကိုျပန္လုိခ်င္၍ လာေရာက္အပူကပ္ခ်င္းျဖစ္ပါသည္
Memory Stick အေျကာင္း နားမလည္ဘူးခင္ဗ်။
@mg myo aung
recover software ေတြနဲ့ စမ္းျကည့္ေပါ့။ software ေတြ လိုခ်င္ရင္ mysteryzillion.org မွာ အကူအညီေတာင္းျကည့္ပါ။ :) ေျကာှျငာဝင္လိုက္တာ။
@Ko Mark
Bro စိတ္ဝင္စားမယ္ထင္လို့
http://labs.mozilla.com/raindrop
သိျပီးသားဆိုရင္ေတာ့ sorry ပါ။
Post a Comment