Friday, October 14, 2011

Tuesday, October 11, 2011

dart flag_trace_compiler

今天抓了dart的code來跑看看
不過在跑dart_bin時不知道有什麼 vm-flags可以下


$>out/Debug_ia32/dart_bin
dart [] []

目前在 dart/runtime/vm/compiler.cc 把 trace_compiler這option打開就可以看到dartvm有哪些options了

Thursday, October 6, 2011

v8 + llvm

無意中發現了一個v8+llvm的project
Sanjo JS engine
http://www.brrian.net/js/Project_Home.html

他其實是Purdue的某個graduate class裡的project
http://web.me.com/vitekj/565s10/Welcome.html

裡面的resource都project都蠻不錯的
大部分都在作js 的engine
http://code.google.com/p/unladen-swallow/wiki/RelevantPapers
http://web.me.com/vitekj/565s10/Projects.html

不過好像大部分都沒open source就是了..

Tuesday, October 4, 2011

c++的prefix ++ 跟postfix ++

在stackoverflow看到了pre-increment 跟post-increment的問題
http://stackoverflow.com/questions/7397740/post-increment-operator

才發現c++這跟c是不一樣的
prefix increment是return lvalue
postfix inc 是return rvalue

另外還有古老的com.std.c++的討論
http://groups.google.com/group/comp.std.c++/browse_thread/thread/7804d1fdf2f05a1c

回文裡面可是有幾位大師呢