n*w 发帖数: 3393 | 1 第一帖这个图c#比java快这个多的原因之一就有generics。
这个链接有详细比较。http://www.jprl.com/Blog/archive/development/2007/Aug-31.html
其中summery的第一句就否定了你的”trivial“断言。
“
Summary
The generics capabilities in Java and .NET differ significantly. Syntax wise
, Java and C# generics initially look quite similar, and share similar
concepts such as constraints. The semantics of generics is where they differ
most, with .NET permitting full runtime introspection of generic types and
generic type parameters in ways that are obvious in ... 阅读全帖 |
|
A*****i 发帖数: 3587 | 2 不是来反驳你的
但是基本上现在nodejs很少人用builtin的语句了
比如这种for (var name in myObject)
我们通常用underscore的keys, values, pairs等等来遍历一个object
js最适合做的应该是io和异步处理,把C或者java模式复杂的callback彻底一扫而光
而这些所谓陷阱也好,bug也好基本上现在社区内一搜一大把的替代产品
这才是js最牛逼的地方,如果一门语言一出来便没有可再生的余地那其实它能做的也很
有限了
off |
|
|
f***c 发帖数: 338 | 4 有C/C++, Python背景。
C++背景不深,但对于abstraction, encapuslation还是有所了解的。也有一定的编程
经验。
Python有script和program的经验。对class,和常用的builtin 数据结构有比较扎实的
代码经验。
求推荐。
手头有一本Java Cookbook, 2nd Ed,各位觉得作为入门书籍,如何?
谢谢! |
|
a***n 发帖数: 623 | 5 谢谢,我的意思是这么做难道我需要在backend和frontend各一个MVC?这样页面看起来
会不会很乱,PS angularjs和go builtin的html/template都用{{}}来标注变量……
有啥example可以学习一下吗?拜谢! |
|
d****i 发帖数: 4809 | 6 Android has builtin HttpClient support. It's no different from Apache HTTP
client (It is actually almost the same).
面有
0. |
|
e**********y 发帖数: 128 | 7 There must be a way in python can do this. I cannot tell you exactly how off
the top of my head.
But you can also download a pdf given a url using simple bash builtin tools
like curl (Mac OS X) or wget (on other Unix flavor OS)
curl -O http://www.ncbi.nlm.nih.gov/pmc/articles/PMC187478/pdf/03X.pdf |
|
H****S 发帖数: 1359 | 8 我觉得用什么json完全取决于实际的使用情况,做后端的选择多点不是坏事,关键要知
道什么适合自己什么不适合。比如说spray json,最好完全不要用,稍微做点research
就知道它的benchmark是最差的。同样json4s,最好用的是jackson binding,因为同样
的理由,benchmark比liftweb binding要好。如果是做functional programming的后端
,就要考虑jawn或者argonaut,因为这些用builtin的cats/scalaz的interop support
。jawn还可以做incremental parsing。如果再进一步需要要用scalajs前后端通吃,那
就得考虑使用upickle。还是那句话,选择多点从来不是件坏事情。既然json这么重要
,一种solution通吃显然风险太大。 |
|
p******f 发帖数: 162 | 9 exec builtin -> exec(2)
system -> fork(2), exec(2) and waitpid(2)
qx or `` -> fork, exec, and waitpid
all of these will result in system calls, at least for *nix systems. |
|
z***e 发帖数: 5600 | 10
I have been tried the beta versions from time to time and I am
using the final version now. Overall I like it a lot, it is faster
than NT4 and at least as stable. The builtin chinese system is
fully functional (though not as convenient as richwin for
pinyin/phrases input). It is even a bit hard to get
back to NT for me :) However, you should keep in mind that
there are still a lot of compatibility problems. Right now my
win2k is missing an appropriate driver for my xerox printer,
a modem dr |
|
|
d******c 发帖数: 2407 | 12 说到apply,上次我折腾很久,什么apply,mapply,各种apply family,发现只有最简
单的函数用这种apply看起来容易,稍微复杂一点,尤其是数据结构复杂的时候就很麻
烦,而且后来发现各种apply实质就是for loop,还不如直接写for loop,性能上没有
损失,而且处理数据结构简单明了。
之前我是怕for loop没用上vectorization所以去尝试apply,但是apply并不是真正
vectorization,只是for loop的简写形式而已。有builtin vectorization的函数当然
一定要用,否则的话除非特别简单的函数,感觉没必要用apply。
如: |
|
z*******n 发帖数: 1034 | 13 https://stackoverflow.com/questions/24101718/swift-performance-sorting-
arrays#comment37183103_24102237
tl;dr Swift without aggressive compiler optimizations at this stage is very
slow; with them it is very fast. Keep it in mind.
Here is an in-place quicksort in Swift:
func quicksort_swift(inout a:CInt[], start:Int, end:Int) {
if (end - start < 2){
return
}
var p = a[start + (end - start)/2]
var l = start
var r = end - 1
while (l <= r){
if (a[l] < p){
... 阅读全帖 |
|
h*********n 发帖数: 11319 | 14 什么时候山寨一个builtin的360度摄像头系统,兼倒车/平趴传感器+行车记录仪啊? |
|
|
w*******y 发帖数: 60932 | 16 THE LINK:
http://shop.retrevo.com/m/dailydeal?prodid=rd-s10;RVO-20101129-3
The HANNSbook (SN10E2) ultraportable netbook provides the freedom and power
to compute on the move. With comprehensive connectivity via WLAN and LAN,
staying in touch is made simple with a builtin 1.3MP webcam and microphone
enable instant video conferencing. The HANNSbook series features elegant
glossy black design, boasting a slim and lightweight form factor for
portability and the battery power to keep computing for lo... 阅读全帖 |
|
w*******y 发帖数: 60932 | 17 Target (in store only) has Brightboxe DLP Projector on clearance for $89.99,
it was originally $179.99.
You can search in the inventory checker near your zip or city.
I've originally purchased one at target last year and thinking that a
projector for $180? must be junk. Because I've heard others purchased the
discovery projector for $99.99 at FYE or even lower at other stores.
Needlessly to say, I got it out of curiosity because I've never heard of
this brand before. When I turned it on at home ... 阅读全帖 |
|
w*******y 发帖数: 60932 | 18 Only for $599 at Frys B&M, may be it's an error ?
46" Sony Internet TV, the world's first and only HDTV powered by Google TV
With a Google Chrome browser, search across the entire internet1, TV
listings and apps for more choices than ever before. Easily find what you
are looking for with a one-touch search button. Experience quick-loading
websites and streaming video with the power of Intel Inside
Link:
http://www.frys.com/ads/page2
Link:
http://store.sony.com/webapp/wcs/stores/servlet/ProductDi... 阅读全帖 |
|
j****s 发帖数: 5092 | 19 oh? builtin 还有这个好处,让我找找现在减价开始没。//blush |
|
b*******s 发帖数: 2279 | 20
呵呵,我也是. 我下一个又是手动, 估计又会开始了.
我觉得没有办法关掉, 是builtin的, 其实这样安全. |
|
w*****g 发帖数: 198 | 21 来自主题: _JapanView版 - 沉痛教训! install win2k
English win2k has builtin support for many languages like Chinese
and Japanese
also, don't use Richwin |
|