x****u 发帖数: 44466 | 1 搞出来个.NET Native的怪胎,还号称可以提高速度:
During precompilation, required portions of the .NET Framework are
statically linked into your app. This allows the app to run with app-local
libraries of the .NET Framework, and the compiler to perform global analysis
to deliver performance wins. As a result, apps launch consistently faster
even after .NET Framework updates.
The .NET Native runtime is optimized for static precompilation and thus is
able to offer superior performance. At the same time, it retains the core
reflection features that developers find so productive.
.NET Native uses the same back end as the C++ compiler, which is optimized
for static precompilation scenarios.
MS真是没人明白为什么最近10年被打得满地找牙,这东西将成为Windows平台尤其是移
动平台的灾难。 |
x****u 发帖数: 44466 | 2 看Video好像是三哥作品。
analysis
【在 x****u 的大作中提到】 : 搞出来个.NET Native的怪胎,还号称可以提高速度: : During precompilation, required portions of the .NET Framework are : statically linked into your app. This allows the app to run with app-local : libraries of the .NET Framework, and the compiler to perform global analysis : to deliver performance wins. As a result, apps launch consistently faster : even after .NET Framework updates. : The .NET Native runtime is optimized for static precompilation and thus is : able to offer superior performance. At the same time, it retains the core : reflection features that developers find so productive. : .NET Native uses the same back end as the C++ compiler, which is optimized
|
L*****e 发帖数: 8347 | 3 大侠给讲讲为啥会成为移动平台的灾难?
analysis
★ 发自iPhone App: ChineseWeb 8.2.2
【在 x****u 的大作中提到】 : 搞出来个.NET Native的怪胎,还号称可以提高速度: : During precompilation, required portions of the .NET Framework are : statically linked into your app. This allows the app to run with app-local : libraries of the .NET Framework, and the compiler to perform global analysis : to deliver performance wins. As a result, apps launch consistently faster : even after .NET Framework updates. : The .NET Native runtime is optimized for static precompilation and thus is : able to offer superior performance. At the same time, it retains the core : reflection features that developers find so productive. : .NET Native uses the same back end as the C++ compiler, which is optimized
|
x****u 发帖数: 44466 | 4 在桌面和移动平台的生存基本原则是,绝不可以用体积换效率。
一个应用程序的效率主要取决于两个因素,0.1%的瓶颈代码的效率,整个系统虚拟内存
的健康度。
静态链接虽然表面很快,内存占用也不大,但放在系统级别上就是虚拟内存的灾难。
好的平台比如iOS和Android严禁类似的静态链接,微软似乎把自己20年前首创,现在地
球人都在用的组件化编程给忘光了。
【在 L*****e 的大作中提到】 : 大侠给讲讲为啥会成为移动平台的灾难? : : analysis : ★ 发自iPhone App: ChineseWeb 8.2.2
|
n****1 发帖数: 1136 | 5 你弄反了,iOS禁止动态链接库。因为一旦库文件被黑,应用程序死一片
如果C#没有“一次编译到处运行”的要求的话,我觉得这种静态链接无可厚非。 |
c*******9 发帖数: 9032 | 6 微软还是20,30年前的思路。那时候硬件能力有限,常用些trick加速,把系统搞的混
乱。
analysis
【在 x****u 的大作中提到】 : 搞出来个.NET Native的怪胎,还号称可以提高速度: : During precompilation, required portions of the .NET Framework are : statically linked into your app. This allows the app to run with app-local : libraries of the .NET Framework, and the compiler to perform global analysis : to deliver performance wins. As a result, apps launch consistently faster : even after .NET Framework updates. : The .NET Native runtime is optimized for static precompilation and thus is : able to offer superior performance. At the same time, it retains the core : reflection features that developers find so productive. : .NET Native uses the same back end as the C++ compiler, which is optimized
|
x****u 发帖数: 44466 | 7 整个iOS的api都是动态库啊,禁止的是你自己的动态库,还有就是对api的静态链接。
微软这种允许把framework静态链接的做法真是疯了。
【在 n****1 的大作中提到】 : 你弄反了,iOS禁止动态链接库。因为一旦库文件被黑,应用程序死一片 : 如果C#没有“一次编译到处运行”的要求的话,我觉得这种静态链接无可厚非。
|
x****u 发帖数: 44466 | 8 微软成功靠两个东西,Win95成功的在垃圾硬件上跑起来了抢占式多任务纯32位系统,
虽然有巨大的牺牲。这是个非常独特的hack作品。
NT跨时代的提出了组件编程,并且实现了非常好的现代OS架构,成为了几乎一切桌面和
移动系统的模仿对象。
问题是这两个老本TMD整整吃了20年。。。
【在 c*******9 的大作中提到】 : 微软还是20,30年前的思路。那时候硬件能力有限,常用些trick加速,把系统搞的混 : 乱。 : : analysis
|
|
n****1 发帖数: 1136 | 9 " required portions of the .NET Framework"!!! 明显是你没弄明白
这个是很先进的做法,相当于gcc里面的 garbage-collected linking,用多少包括多
少。普通app能用得了整个framework的10%就相当变态了
【在 x****u 的大作中提到】 : 整个iOS的api都是动态库啊,禁止的是你自己的动态库,还有就是对api的静态链接。 : 微软这种允许把framework静态链接的做法真是疯了。
|
L*****e 发帖数: 8347 | 10 不懂,cs里时间换空间,空间换时间才是不变的法则。。。不太明白静态链接和虚拟内
存健康度之间的必然关系是什么。。。我去学习学习。。。
★ 发自iPhone App: ChineseWeb 8.2.2
【在 x****u 的大作中提到】 : 在桌面和移动平台的生存基本原则是,绝不可以用体积换效率。 : 一个应用程序的效率主要取决于两个因素,0.1%的瓶颈代码的效率,整个系统虚拟内存 : 的健康度。 : 静态链接虽然表面很快,内存占用也不大,但放在系统级别上就是虚拟内存的灾难。 : 好的平台比如iOS和Android严禁类似的静态链接,微软似乎把自己20年前首创,现在地 : 球人都在用的组件化编程给忘光了。
|
|
|
n****1 发帖数: 1136 | 11 而且像golang, haskell这些预编译语言,全是把runtime library静态链接到每一个
binary executable里面。这个明显是通用做法,哪来那么多唧唧歪歪 |
x****u 发帖数: 44466 | 12 小孩你真是不知道人间疾苦啊。
在机器上装20个程序,就等于framework放了两套了。别说.NET这种巨型怪物,单说CPP
的Framework,各种文件格式库,网络协议解析用的库,就使得很多场合下移动平台的
CPP比Java还慢。
【在 n****1 的大作中提到】 : " required portions of the .NET Framework"!!! 明显是你没弄明白 : 这个是很先进的做法,相当于gcc里面的 garbage-collected linking,用多少包括多 : 少。普通app能用得了整个framework的10%就相当变态了
|
x****u 发帖数: 44466 | 13 现代OS对于动态链接库有非常完善的内存共享机制。
【在 L*****e 的大作中提到】 : 不懂,cs里时间换空间,空间换时间才是不变的法则。。。不太明白静态链接和虚拟内 : 存健康度之间的必然关系是什么。。。我去学习学习。。。 : : ★ 发自iPhone App: ChineseWeb 8.2.2
|
x****u 发帖数: 44466 | 14 所以他们都是iOS和安卓的首选开发语言么?
【在 n****1 的大作中提到】 : 而且像golang, haskell这些预编译语言,全是把runtime library静态链接到每一个 : binary executable里面。这个明显是通用做法,哪来那么多唧唧歪歪
|
n****1 发帖数: 1136 | 15 明显是你明察秋毫,不见舆薪
要论内存占用,现代程序code size << data size(stack+heap),静态链接再浪费也远
不如GC浪费。C#还怕多浪费这么点内存么?
CPP
【在 x****u 的大作中提到】 : 小孩你真是不知道人间疾苦啊。 : 在机器上装20个程序,就等于framework放了两套了。别说.NET这种巨型怪物,单说CPP : 的Framework,各种文件格式库,网络协议解析用的库,就使得很多场合下移动平台的 : CPP比Java还慢。
|
x****u 发帖数: 44466 | 16 装个Process Explorer自己看看吧,不过先要把所有column的含义都搞清楚。。。
【在 n****1 的大作中提到】 : 明显是你明察秋毫,不见舆薪 : 要论内存占用,现代程序code size << data size(stack+heap),静态链接再浪费也远 : 不如GC浪费。C#还怕多浪费这么点内存么? : : CPP
|
n****1 发帖数: 1136 | 17 Process Explore明显不是按需加载的,而且是动态链接,有啥好比的
golang和haskell把整个runtime加到binary里面,overhead也就是1M左右。 你现在抱
怨根本没有根据,还是等到.Net Native出来后,你自己编个hello world,看看有多大
【在 x****u 的大作中提到】 : 装个Process Explorer自己看看吧,不过先要把所有column的含义都搞清楚。。。
|
n****1 发帖数: 1136 | 18 而且我搜了大半天,也没看到哪个source说.net native是针对移动端的。我看更像
server端方案 |
x****u 发帖数: 44466 | 19 你都是用Hello World研究效率的么?
先搞清楚Process里面各显示栏都是啥意思吧?Windows最失败的地方就是没有什么靠谱
共享组件规范,所以WinRT大笨慢热。现在三哥搞出了全盘静态链接的办法加速,耶~
~~
桌面和移动设备,没有慢程序只有慢架构。
【在 n****1 的大作中提到】 : Process Explore明显不是按需加载的,而且是动态链接,有啥好比的 : golang和haskell把整个runtime加到binary里面,overhead也就是1M左右。 你现在抱 : 怨根本没有根据,还是等到.Net Native出来后,你自己编个hello world,看看有多大
|
x****u 发帖数: 44466 | 20 http://blogs.msdn.com/b/dotnet/archive/2014/04/02/announcing-ne
针对Windows Store的,不就是给卖不掉的Windows RT本本用么?
【在 n****1 的大作中提到】 : 而且我搜了大半天,也没看到哪个source说.net native是针对移动端的。我看更像 : server端方案
|
|
|
x****u 发帖数: 44466 | 21 全部静态链接也不是不可以,有个东西叫LFS就是这么推荐的,问题是LFS是Geek自己找
乐子的,不是用来泡妞的。
【在 x****u 的大作中提到】 : 你都是用Hello World研究效率的么? : 先搞清楚Process里面各显示栏都是啥意思吧?Windows最失败的地方就是没有什么靠谱 : 共享组件规范,所以WinRT大笨慢热。现在三哥搞出了全盘静态链接的办法加速,耶~ : ~~ : 桌面和移动设备,没有慢程序只有慢架构。
|
s*******8 发帖数: 12734 | 22 windows store is for Windows 8 and 8.1
!= Windows RT 本本
【在 x****u 的大作中提到】 : http://blogs.msdn.com/b/dotnet/archive/2014/04/02/announcing-ne : 针对Windows Store的,不就是给卖不掉的Windows RT本本用么?
|
x****u 发帖数: 44466 | 23 谁桌面系统脑残用Metro程序啊,用手在大液晶屏上乱摸不是搞笑吗?
【在 s*******8 的大作中提到】 : windows store is for Windows 8 and 8.1 : != Windows RT 本本
|
s*******8 发帖数: 12734 | 24 小孩子很喜欢啊,
【在 x****u 的大作中提到】 : 谁桌面系统脑残用Metro程序啊,用手在大液晶屏上乱摸不是搞笑吗?
|
x****u 发帖数: 44466 | 25 市场销售记录一塌糊涂,促销的还是以无触摸屏的Win8为主。
【在 s*******8 的大作中提到】 : 小孩子很喜欢啊,
|
s*******8 发帖数: 12734 | 26 价格
【在 x****u 的大作中提到】 : 市场销售记录一塌糊涂,促销的还是以无触摸屏的Win8为主。
|
x****u 发帖数: 44466 | 27 总量上不去MS就是大失败啊。
【在 s*******8 的大作中提到】 : 价格
|
b*******s 发帖数: 5216 | 28 小菊花,你还是回菌斑吧,求你了
【在 x****u 的大作中提到】 : 全部静态链接也不是不可以,有个东西叫LFS就是这么推荐的,问题是LFS是Geek自己找 : 乐子的,不是用来泡妞的。
|
x****u 发帖数: 44466 | 29 你也微软?
己找
【在 b*******s 的大作中提到】 : 小菊花,你还是回菌斑吧,求你了
|
b*******s 发帖数: 5216 | 30 当然不是啦。但是LFS我还是很熟的
【在 x****u 的大作中提到】 : 你也微软? : : 己找
|
|
|
x****u 发帖数: 44466 | 31 你都玩LFS还粉微软?
【在 b*******s 的大作中提到】 : 当然不是啦。但是LFS我还是很熟的
|
b*******s 发帖数: 5216 | 32 但你讲的好多不对啊,要黑也要黑到位啊
【在 x****u 的大作中提到】 : 你都玩LFS还粉微软?
|
d********f 发帖数: 43471 | 33 这个步子不是大小的问题了,简直是一迈蛋就飞出去了
【在 x****u 的大作中提到】 : 现代OS对于动态链接库有非常完善的内存共享机制。
|
x****u 发帖数: 44466 | 34 微软虽然身上跳蚤多,但是三哥这个静态链接framework加速的念头也太奇葩了。
【在 b*******s 的大作中提到】 : 但你讲的好多不对啊,要黑也要黑到位啊
|
x****u 发帖数: 44466 | 35 三哥一发威,MS回到DOS时代了。
【在 d********f 的大作中提到】 : 这个步子不是大小的问题了,简直是一迈蛋就飞出去了
|
O*******d 发帖数: 20343 | 36 这就是阿三当政的结果。
analysis
【在 x****u 的大作中提到】 : 搞出来个.NET Native的怪胎,还号称可以提高速度: : During precompilation, required portions of the .NET Framework are : statically linked into your app. This allows the app to run with app-local : libraries of the .NET Framework, and the compiler to perform global analysis : to deliver performance wins. As a result, apps launch consistently faster : even after .NET Framework updates. : The .NET Native runtime is optimized for static precompilation and thus is : able to offer superior performance. At the same time, it retains the core : reflection features that developers find so productive. : .NET Native uses the same back end as the C++ compiler, which is optimized
|