Skip to main content

Posts

Showing posts from October 25, 2015
Freedompop.com  has  8GB Samsung Galaxy Tab 3 7" WiFi 4G Android 4.2 Tablet  (Refurbished/Certified Pre-owned) on sale for  $59.99 .  Shipping is Free . Thanks Odilatinam Specs 1.7GHz Dual-Core Processor 1.5GB RAM 8GB Internal Memory 7" 1024x600 TouchScreen Up to 8hrs. of Battery life WiFi + 4G 1.3MP Front/ 3MP Back Webcam Android 4.2.2 Jelly Bean
Microsoft.com has Hotel Transylvania (HD Rental) on sale for $0.10. Thanks andyk Note, upon renting this movie, you have 14 days to complete watching this 24 hours rental. If you choose to 'Watch Now', you will start instantly streaming the video on your computer and you may later stream it on another compatible device which includes Xbox, Windows 10, Windows 8, and Windows Phone 8.
mobilepros1 via eBay has 16GB LG Nexus 5 4G LTE 5" Quad Core Android Unlocked Smartphone for $174.99. Shipping is Free. Thanks Deal.az9  Specs 2.3GHz Quad-core Qualcomm Snapdragon 800 2GB RAM 16GB Internal Memory 4.95" 1920x1080 IPS Display w/ 8MP Rear and 1.3MP Front Cameras 2300mAh Battery Android 4.4 KitKat

标  题: 两个我永远都不想碰的语言

发信人: coconut (向唐僧大师学习中), 信区: Programming 标  题: 两个我永远都不想碰的语言 发信站: BBS 未名空间站 (Tue Oct 27 04:52:29 2015, 美东) 最近无聊,稍微研究了下两个语言,彻底被雷了。 第一是 R 。可以说是世界上最 fucked up 的语言之一(COBOL 是另外一个)。 你看一下这篇文章就明白了: https://xianblog.wordpress.com/2010/09/13/simply-start-over-and-build- something-better/ 如果你非要写 R 代码。建议你把所有的 variable 都弄个 prefix 。免得你 不小心碰到这种麻烦事。 第二就是 Go 。整个一傻逼语言。 1) 如果该语言有 pointer,但是其速度比 Java 还慢点,谁 TMD 有病才用它。 再不用说,Go 里面需要知道很多很多 low level 的东西,但是搞了半天比 Java 还慢?!! 2) Stupid copies 。好吧,你有 pointer 不用,非得 pass by value (i.e. struct copy),真是脑袋抽筋了。copy 大部分情况下比 reference 慢。 reference 是可以放在 register 里的,而 struct 一旦比 register 大, 就会占内存。然后 Go idiots 说 cache 很 precious,那你还搞那么多 copy 干嘛?这么多 copy,debug 成了问题。C/C++ debugging 常用的 watch r/w 办法彻底被废了。到目前为止,Go 的 debug 也是主要靠 printf 。 好吧,Go 大概是为了避免产生太多的 object on heap,但是你看看下一步: 3) 为了保证 pass by reference ,有些代码还特意就是 type dumb struct {   wtf * pointer } 真是什么样的傻逼语言才产生这种怪胎。如果该 struct 是 pass by reference, 该 struct 又得放在 heap 上。真是有够无聊。 4) 傻逼的

Isn't it Ironic? The Bare Metal Cloud