由买买提看人间百态

topics

全部话题 - 话题: smarte
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
o******r
发帖数: 259
1
在thrust填坑前我先灌点水,
smart ptr指的是仿ptr用法,加入额外的处理的类型,
比如简单的garbage collector, reference counting等
auto_ptr 可以说是smart ptr的一种,由new得到
好了,要拍砖随便
d*****r
发帖数: 2
2
Auto_Ptr是STL中对Smart Porinter的一种实现. Smart Pointer的关键是如何处理对象的拷贝(包括拷贝构造和赋值). Reference Counting只是其中的一种方法. 其他方法还包括:
copy prevention (将拷贝构造函数和赋值算子定义为private)
create new copy
owership transfer
reference linking
copy on write
...
各种拷贝技术适用予不同作用的场合. 有兴趣可参考boost中定义的scoped_ptr, scoped_arry, shared_ptr, shared_array, weak_ptr and intrusive_ptr.
g*********s
发帖数: 1782
3
来自主题: Programming版 - Smart Parser/Compiler Development
Hi, can any guru give some suggestion on how to develop a smart parser/
compiler
given a set of syntax definition?
By "smart" I mean the parser can skip some errors and continue, like gcc
does in some situation. I hope to learn some general principles on this
issue.
Thanks!
o*******0
发帖数: 699
4
来自主题: Programming版 - smart pointer 一问
smart pointer 实践是不是真的很有用呢?
比方说 auto_ptr, 你要把它定义在stack上,这样它才会自动消除。
可是知道把object定义在stack上,可能就不要auto_ptr了。
又比如说smart pointer with ref count. 要thread safe, 算错了还会死人。(那是
真查不出来的bug)
N******K
发帖数: 10202
5
来自主题: Programming版 - 关于不同类型的smart pointer
比较古老的的一些程序 用的是 Intrusive smart pointer 就是 那个 reference
counter 保存在object里面
std里面的改为单独存一个 reference counter,然后每个smart pointer都要指向这个
reference counter和object
各位都用的是哪一种?
哪种好?
f****4
发帖数: 1359
6
来自主题: Programming版 - C++的smart pointer注定是个二流的东西
“所有的资源都在同一对花括号内获取和释放” != RAII
“所有的资源都在同一对花括号内获取和释放”在异常发生的时候还是不安全的
个人感觉smart pointer好处就是加强了对拷贝支持
对于一个容器动不动就管理10万+的raw pointers,换了smart pointer是不是会有性能
影响,影响多大?
回国一个月,这里居然没再口水java vs c++,真难得啊。。。
E*******1
发帖数: 3464
7
来自主题: Programming版 - C++的smart pointer注定是个二流的东西
你smart pointer可能没用好吧,怎么说smart pointer是个二流的东西。这玩意主要是
针对执行出错,throw了,结果跳过后面的delete内存释放步骤造成leak的解决方案
k**********g
发帖数: 989
8
来自主题: Programming版 - 关于多个smart pointer系统并存的问题

The minimum requirement is that at least one of the smart pointer
implementation needs to support a user-provided deleter function (instead of
using the default delete operator of that type).
If this is only satisfied by one side, a one-way wrapping is possible.
Ideally, two-way wrapping is more desirable.
I have implemented a similar interoperable wrapper between OpenCV Mat class
and COM smart pointer. I do not have the source code right now, but it
basically uses the deleter function.
Since I... 阅读全帖
N******K
发帖数: 10202
9
把所有raw pointer替换为 shared_ptr or weak_ptr 等等 是sb行为
函数的传入传出指针都用raw pointer就行 只要保证这个函数内部没有内存泄露就可
以 函数内部可以用shared_ptr 或者 unique_ptr
例外就是 类的成员变量 如果是其他类的指针 就得用shared_ptr 或者weak_ptr 当用
函数初始化这些成员变量时,函数输入要是 smart pointer
C++ 自动内存管理 靠的就是 函数返回时 清空stack 或者 {}结束 清空局部变量
模仿GC来用smart pointer是行为艺术
t*****n
发帖数: 4908
10
你到底学啥的?说过多少遍了,smart pointer不是让程序员偷懒,而是让程序更健壮
。比起不负责随便分配内存的某语言来说,smart pointer是相当靠谱。
weak_ptr你再读读boost的网页吧。解释的很清楚。
l***l
发帖数: 41
11
来自主题: Programming版 - 什么时候使用c++ smart pointer?
比如写一个链表,是不是使用smart pointer更好一点?是不是只要需要用new和delete
的地方都应该用smart pointer?
s****e
发帖数: 7018
12
来自主题: Programming版 - smart tv cast 怎么编程? (转载)
【 以下文字转载自 Military 讨论区 】
发信人: svelte (svelte), 信区: Military
标 题: smart tv cast 怎么编程?
发信站: BBS 未名空间站 (Wed Feb 10 20:16:33 2016, 美东)
我想把各个视频网站上面的video投影到 smart tv 上面
有哪位知道如何下手么? 多谢
n*******t
发帖数: 1296
13
你这种情况该怎么做简直是再清楚不过了。下面三个选一个,自己出钱读也可以。这三
个专业是个人都能读,标准的F2专业。你如果需要赚钱补贴家用,可以干这个
Technician的工作,边工作边读书。如果不缺钱,就在家考TOEFL, GRE读书。
1. 读个统计的Master
2. 读个CS的Master
3. 读个精算的Master
你不知道学生物的在美国是最混得最惨的吗?你不要羡慕什“么美国同学”的文章。这
些人毕业出来80%是找不到工作混日子的千老(就是你所说的博后),每年赚4,5万,然
后像狗一样被老板压榨。剩下的最后还是转行上述F2专业。就算最后能当上Faculty,
也是每天操心Funding,然后就是灌水写paper。这些paper90%是垃圾。等你上面三个专
业两年读出来,找到工作,你就是那些“文章多的美国同学”的羡慕对象。对了,做生
物实验室的Technician哪里要什么"motivation"和"smart"?那个工作高中生就可以胜
任。你老板还要你看Paper?忽悠你呢。在美国"technician"没有什么"career path",
你老板的Funding一完蛋,你... 阅读全帖
n*******t
发帖数: 1296
14
你这种情况该怎么做简直是再清楚不过了。下面三个选一个,自己出钱读也可以。这三
个专业是个人都能读,标准的F2专业。你如果需要赚钱补贴家用,可以干这个
Technician的工作,边工作边读书。如果不缺钱,就在家考TOEFL, GRE读书。
1. 读个统计的Master
2. 读个CS的Master
3. 读个精算的Master
你不知道学生物的在美国是最混得最惨的吗?你不要羡慕什“么美国同学”的文章。这
些人毕业出来80%是找不到工作混日子的千老(就是你所说的博后),每年赚4,5万,然
后像狗一样被老板压榨。剩下的最后还是转行上述F2专业。就算最后能当上Faculty,
也是每天操心Funding,然后就是灌水写paper。这些paper90%是垃圾。等你上面三个专
业两年读出来,找到工作,你就是那些“文章多的美国同学”的羡慕对象。对了,做生
物实验室的Technician哪里要什么"motivation"和"smart"?那个工作高中生就可以胜
任。你老板还要你看Paper?忽悠你呢。在美国"technician"没有什么"career path",
你老板的Funding一完蛋,你... 阅读全帖
m*******d
发帖数: 104
15
After spending much of the first day of the Beijing Smart grid conference
discussing the definition and scope of smart grid for China, the second day
of the conference was focused on how smartgrid was going to be rolled out,
what some of the solutions would be, and who was going to pay for it.
Starting the morning was Lorenzo Colovini from Italy’s Enel Group who
provided one of the most interesting, and relevant pitches, of the entire
conference by walking the audience through Enel’s own recent
p***e
发帖数: 472
16
I'm not an expert in smart grid, just to share something I heard of.
To me, smart grid is a combination of power engineering and communication.
More specifically, it is more to leverage communication techniques to power.
It can happen at different stages, e.g., Distribution such as intelligent
meter (appliances, residential application, etc.), Transmission such as
coordination of substation and plant control. Regarding communication, the
industry is working on communication techniques via g
c*******i
发帖数: 160
17
来自主题: EE版 - smart grid怎么找工作
其实老板就是搞通信的,但是现在通信funding难搞,于是大家都搞smart grid了,
但是大家也知道,这就是个灌水的方向。发的paper和通信都没啥关系了。
虽然通信不好找工作,但不知道都是smart grid的paper毕业还可以找通信的公司吗?
L********e
发帖数: 16
18
【 以下文字转载自 ME 讨论区 】
发信人: LeapofLife (Aim Higher), 信区: ME
标 题: Smart City/Builidng/Home方向审稿机会
发信站: BBS 未名空间站 (Sat Jul 11 17:42:20 2015, 美东)
IEEE Smart City/Building/Home方面的多篇会议文章,
涉及的方向比较杂,基本包括以下几个领域
wireless sensor network/Zigbee
Lighting
machine learning
fire mitigation/prevention
estimation,
electric circuits
RFID
Building/Home energy efficiency
Raspberry Pi
有兴趣的请发邮件到[email protected]
/* */ ,请附简单自我介绍(背景,工作email
以便从系统发信),一片自己的相关文章,以及有兴趣review几篇,我会根据背景和文
章来match。
谢谢大家!
M****o
发帖数: 4860
19
Tau likes smart guys does not mean all smart guys like him.
X****S
发帖数: 54
20
最近收到 ME@Ohio State University的PhD fellowship,在考虑一年以后找导师的问
题。
找了一圈发现一个Smart Material and Structure Lab,比较符合我的背景,老师要招
的RA是做Control of Smart Material and Structure with application to friction
control的。
我将来想进学术界,请教各位学长学姐这个方向的PhD,毕业以后容易找到牛校的
Postdoc吗?进学术界容不容易?
马上要答复学校了,非常期待各位学长学姐的指导~
c******y
发帖数: 114
21
来自主题: Psychology版 - Re: ZZ Assessment Quiz: How Smart Are you?
Cannot agree more.
In fact, this is why we shoud be very cautious when we interpret the test
result to people who don't know it much.
We did a similar reading test to a group of Grade 4 kids. I remembered one of
the kids who was labeled as "smart" by his teacher did not do very well on
this test. He felt really upset and asked me whether this meant he was stupid.
We explained a lot to the whole group to let them know they were smart, the
results only told us they may have a different reading sty
r******s
发帖数: 2155
22
来自主题: Psychology版 - Re: ZZ Assessment Quiz: How Smart Are you?
I have a friend who took a psyc task in college with another student who he
thought was smart. He even suspect that the experimenter match him with that
guy because he thought he was the opposite of smart.

of
stupid.
l*******s
发帖数: 7316
23
两个月以后发布,发布以后MAD计划就可以用fluidcall了。
About the dialer:
- The native Smart Dialer is not a VoIP dialer. That’s the big
difference!
- It is a dialer that will use Sprint direct routed calls, therefore
giving you more superior call quality than any VoIP dialer or our legacy
plans that have had a longer routing pass than necessary.
- The dialer will be available within two month
About Mad Plans
- RingPlus Radio is not included.
- Calls are routed over the Sprint Nationwide Network.
- I... 阅读全帖
r*******s
发帖数: 213
24
来自主题: CellularPlan版 - iPhone 6 不能装smart dialer 怎么办?
Ringplus 要装smart dialer , iPhone 6 不能装smart dialer 怎么办?

发帖数: 1
25
来自主题: CellularPlan版 - H2O的pay as you go计划能用smart phone吗?
请教一下H2O的pay as you go计划能用smart phone吗?
原先想买一个page plus的pay as you go计划,但是发现这个计划只能改非smart
phone.不知H2O是否也是这样。谢谢了!
w*******y
发帖数: 60932
26
Sun Smart Baby Float Sunshade Water Buggy Blue and Green $8 free shipping
with Prime (FSSS) from Amazon
On Sale $7.98
States for Boys, but doesn't look to masculine to me ( Link for Girls to
compare the difference, Link:
http://www.amazon.com/Sunsmart-SA-3244GB6P-Sunshade-Buggy-Girls/dp/B002I4D4AY/ref=pd_sbs_t_2
)
Link for Blue and Green
Link:
http://www.amazon.com/Sun-Smart-Baby-Float-Sunshade/dp/B002B3XNPI/ref=pd_ecc_rvi_cart_1
w*******y
发帖数: 60932
27
KitchenAid Artisan Stand Mixer Blue (Model # KSM500) $153.99 (after Rebate)
free shipping from Smart Bargains
$329.99 on sale for $229.99 - 20% from Link - $30 Mail in Rebate = $153.99
after MIR with free shipping
Start Here: Link for 20% and free shipping Link:
http://view.ed4.net/v/MSJ4SR/BMZH3E/4CM1ILT/MN1V7F
KitchenAid Artisan Stand Blue Narrow Bowl Mixer
The tilt-head feature and generous 5-quart capacity make the KitchenAid
Artisan Stand Mixer the ultimate in user-friendly design.
Features
w*******y
发帖数: 60932
28
Link:
http://www.amazon.com/Diamond-DP1800-Mobile-Source-Blackberry/dp/B003922S42/ref=sr_1_1?ie=UTF8&s=wireless&qid=1282256640&sr=8-1
Get a Free (After MIR) Diamond DP1800 Mobile Power Source for iPhone, iPod,
Blackberry and HTC Smart Phone on Amazon until 8/31
Charge your iPod, iPhone, BlackBerry, HTC or any other smart phone
w*******y
发帖数: 60932
29
Amazon.com has the SCG5 Smart Strip for $12.61. This is about half of the
normal price.
I have found these strips to be great for application such as turning off
the subwoofer and other components when the receiver is turned off. They
supposedly aren't good for applications that draw very little current, but I
haven't had any issues with them not working properly.
Link:
http://www.amazon.com/Smart-Strip-SCG5-Autoswitching-Technology/dp/B000L9FQUO/ref=sr_1_2?ie=UTF8&s=hi&qid=1283546167&sr=1-2
w*******y
发帖数: 60932
w*******y
发帖数: 60932
31
Sun Smart Baby Float - Sunshade Water Buggy for Girls Purple /Yellow $4.80
free shipping with Prime (FSSS) from Amazon
Amazon does not have a picture for this item in the listing, so I included a
link for Pic.
Link:
http://www.amazon.com/Sun-Smart-Baby-Float-Sunshade/dp/B002B3XNSA/ref=sr_1_18?s=toys-and-games&ie=UTF8&qid=1293921264&sr=1-18
Link for picture
Link:
http://www.amazon.com/gp/product/B002I4D4AY/ref=ord_cart_shr?ie=UTF8&m=A2ZZGD0WFH5CWA
w*******y
发帖数: 60932
32
Amazon has the Breville XXBOV800XL Smart OvenTM (Refurbished) available
right now for $139.99. These usually go for $225.00 on up new and Amazon
currently has it for $241.99. Get em' while their available. It might make
a nice Valentine's day gift.
Product Features
1800-watt convection toaster oven with 4/5-cubic-foot nonstick interior
Element IQ technology for smarter control over the heat; 9 pre-set functions
5 quartz heating elements; user-friendly control panel; LCD screen; 3 rack
positio... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)