20080821

我不需要buffer

buffer有诸多好处,不必细说,但是它不是个好东西。这有点标题党,应该说,有时候buffer不是个好东西。
或者说,没有不好的技术,只有应用于错误的场合。

证据1:
#include <cstdio>
#include <cstdlib>

main()
{
int a;
printf("hello world!"); printf("hello world!"); printf("hello world!");
fflush(stdout); //如果没有这句,在eshell和msys
shell(mingw)中,上句中的内容会在下句后输出。在windows控制台下无此问题
scanf("%d", &a);
getchar();
}
eshell 和 msys shell没有经过我的同意(也许/如果有设置选项,那么这个默认设置就是糟糕的),就使用了buffer,让我困惑了小于半年吧。


证据2:
在EC-SRP中,我的buffer方案最终被无情的事实否决了。
在光强改变后10余秒甚至更久,信号才作出响应,对于我这种性急的人,可能样口已经倒掉三次以上了。
原因就在于buffer缓冲了数据,同时也使得数据到达延迟了。

还有些证据,不细说。

事实上,当我们替别人做出选择的时候,无论我们的居心多么地好,那都是buffer行为。我们凭什么认为自己经别人亲自的选择更好,或者说,我们凭什么认定我们比别人更有智慧选择?

除非特别声明,我希望看到的是真实的世界。

想起了费曼先生提到的,他和他的女朋友承诺绝不说谎。当他的女朋友陷入绝症的时候,费曼先生迫于压力骗她说没啥大事儿。
看到真实世界需要勇气,想保护别人也是善意,但是我们凭什么认定别人比自己更脆弱?

其实buffer并不是最糟糕的东西。最糟糕的是你fflush,系统也响应了,可是仍然有另一个buffer存在。这也是gen3人为什么那么令人无法忍受的原因。

当然,如果自信能把buffer做得如同不存在一样,也好。不过正如许多父母对孩子所做的,还需要确保能把这种完美的buffer永远做下去,让true
man永远也意识不到......如果有那样的中间层,我宁可死,请参见小说《真实的虚幻》。

29 comments:

Anonymous said...

[u][b]Xrumer[/b][/u]

[b]Xrumer SEO Professionals

As Xrumer experts, we have been using [url=http://www.xrumer-seo.com]Xrumer[/url] for the benefit of a long time things being what they are and know how to harness the titanic power of Xrumer and go off it into a Spondulix machine.

We also provide the cheapest prices on the market. Diverse competitors devise expect 2x or temperate 3x and a destiny of the opportunity 5x what we charge you. But we believe in providing gigantic help at a debilitated affordable rate. The unbroken direct attention to of purchasing Xrumer blasts is because it is a cheaper surrogate to buying Xrumer. So we plan to keep that contemplating in mind and yield you with the cheapest grade possible.

Not solitary do we be suffering with the best prices but our turnaround occasion for your Xrumer posting is super fast. We drive secure your posting done to come you certain it.

We also outfit you with a sated log of loaded posts on contrasting forums. So that you can see for yourself the power of Xrumer and how we be struck by harnessed it to help your site.[/b]


[b]Search Engine Optimization

Using Xrumer you can wish to apprehend thousands upon thousands of backlinks for your site. Scads of the forums that your Install you force be posted on bear high PageRank. Having your link on these sites can really help establish up some crown quality help links and genuinely as well your Alexa Rating and Google PageRank rating owing to the roof.

This is making your site more and more popular. And with this better in reputation as superbly as PageRank you can think to lead your site in effect filthy expensive in those Search Mechanism Results.
Transport

The amount of transportation that can be obtained nearby harnessing the power of Xrumer is enormous. You are publishing your site to tens of thousands of forums. With our higher packages you may regular be publishing your site to HUNDREDS of THOUSANDS of forums. Visualize 1 mail on a in demand forum will usually enter 1000 or so views, with announce ' 100 of those people visiting your site. At once assume tens of thousands of posts on in demand forums all getting 1000 views each. Your traffic longing go at the end of one's tether with the roof.

These are all targeted visitors that are interested or bizarre about your site. Deem how assorted sales or leads you can fulfil with this great figure up of targeted visitors. You are literally stumbling upon a goldmine ready to be picked and profited from.

Keep in mind, Above is Money.
[/b]

GET YOUR CHEAPLY BURST TODAY:


http://www.xrumer-seo.com

Anonymous said...

[B]NZBsRus.com[/B]
Lose Idle Downloads Using NZB Downloads You Can Quickly Search Movies, PC Games, MP3 Singles, Software and Download Them @ Rapid Rates

[URL=http://www.nzbsrus.com][B]Usenet[/B][/URL]

Anonymous said...

Infatuation casinos? reading this advanced [url=http://www.realcazinoz.com]casino[/url] conduit steer clear of and wing it defamation online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also composition settled our look [url=http://freecasinogames2010.webs.com]casino[/url] orientate at http://freecasinogames2010.webs.com and spread the gap pucka wearisome spondulicks !
another voguish [url=http://www.ttittancasino.com]casino spiele[/url] vicinage is www.ttittancasino.com , in area of of german gamblers, stem in manumitted online casino bonus.

Anonymous said...

You could easily be making money online in the underground world of [URL=http://www.www.blackhatmoneymaker.com]blackhat traffic[/URL], It's not a big surprise if you have no clue about blackhat marketing. Blackhat marketing uses little-known or not-so-known avenues to produce an income online.

Anonymous said...

[url=http://www.23planet.com]online casino[/url], also known as accepted casinos or Internet casinos, are online versions of line ("buddy and mortar") casinos. Online casinos authorization gamblers to survive up and wager on casino games with the living expenses the Internet.
Online casinos typically go away up as a replacement quest of sales marathon odds and payback percentages that are comparable to land-based casinos. Some online casinos call the tune higher payback percentages payment recess automobile games, and some change known payout disposition audits on their websites. Assuming that the online casino is using an correctly programmed unspecific presence generator, catalogue games like blackjack important an established prohibit edge. The payout size voyage of ascertaining of these games are established on non-standard owing to the rules of the game.
Uncountable online casinos sublease or get hold of their software from companies like Microgaming, Realtime Gaming, Playtech, Worldwide Deviation Technology and CryptoLogic Inc.

Anonymous said...

top [url=http://www.c-online-casino.co.uk/]casino[/url] hinder the latest [url=http://www.realcazinoz.com/]online casino[/url] unshackled no store reward at the leading [url=http://www.baywatchcasino.com/]redeem casino
[/url].

Anonymous said...

Heya i am for the first time here. I came across this board
and I to find It truly useful & it helped me out a lot. I am hoping to present one thing again and aid others like you helped me.



Visit my website: netent casinos free spins

Anonymous said...

Very good site you have here but I was wanting to know if you
knew of any message boards that cover the same topics discussed here?
I'd really love to be a part of online community where I can get comments from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Appreciate it!

Feel free to visit my blog http://netentcasinolist.blogspot.com

Anonymous said...

Good day! This is kind of off topic but I need some
help from an established blog. Is it hard to set up your own blog?
I'm not very techincal but I can figure things out pretty fast. I'm
thinking about creating my own but I'm not sure where to begin. Do you have any points or suggestions? Many thanks

Here is my web site: online casino bonus ohne einzahlung 2013

Anonymous said...

Wow, fantastic weblog format! How lengthy have you been blogging for?
you made running a blog look easy. The entire
look of your site is great, let alone the content!

My web blog - no deposit casio free spins

Anonymous said...

certainly like your website however you need to check the spelling on quite a few of your posts.
A number of them are rife with spelling problems and I to find it very troublesome to tell the
truth however I will certainly come back again.

Review my blog post; netent casino free Slots

Anonymous said...

Its such as you read my thoughts! You seem to understand so much approximately this, such
as you wrote the ebook in it or something. I feel that
you can do with a few p.c. to pressure the message house a little bit, however other than that, that is magnificent blog.
A great read. I will definitely be back.

My page - free spins no deposit no download

Anonymous said...

Undeniably believe that which you stated. Your favorite justification seemed
to be on the net the easiest thing to be
aware of. I say to you, I certainly get annoyed while people consider worries that they plainly don't know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks

Here is my web-site: intactvehiclesolutions.co.uk

Anonymous said...

I like it when people come together and share opinions.
Great website, keep it up!

Here is my web blog Netent Live casino malta

Anonymous said...

Great work! That is the kind of info that are meant to be shared across the
internet. Disgrace on Google for now not positioning this post higher!
Come on over and discuss with my website .

Thanks =)

My webpage: dailystrength.org

Anonymous said...

Very nice post. I simply stumbled upon your weblog and wanted to mention that I've truly enjoyed surfing around your blog posts. After all I will be subscribing to your feed and I hope you write again soon!

My website - Casinos Netent

Anonymous said...

It's wonderful that you are getting thoughts from this paragraph as well as from our discussion made here.

Visit my homepage: netent casino no deposit bonus

Anonymous said...

This is my first time pay a quick visit at here and i am in fact impressed to read all at single
place.

My blog post :: Www.Broker-Toolkit.Co.uk

Anonymous said...

Hi there, after reading this amazing paragraph i am
also delighted to share my knowledge here with mates.



Here is my web page ... lagbook.com

Anonymous said...

Undeniably consider that which you stated. Your favourite reason seemed to be
on the internet the easiest factor to understand of.
I say to you, I definitely get irked whilst folks consider issues that they plainly don't know about. You controlled to hit the nail upon the highest and outlined out the whole thing with no need side-effects , other folks can take a signal. Will probably be again to get more. Thank you

Also visit my blog post: thewhir.com

Anonymous said...

I like the helpful information you supply to your
articles. I'll bookmark your blog and check once more right here regularly. I am relatively certain I'll be
informed many new stuff proper here! Good luck for the next!


my blog - Www.mcbeanartist.com

Anonymous said...

I've been browsing online more than 3 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my view, if all site owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

Also visit my blog post casinos using netent software

Anonymous said...

For hottest information you have to pay a visit world-wide-web and on web I found this web site as a best
web site for newest updates.

Here is my web-site ... new netent casinos

Anonymous said...

I have learn several just right stuff here.

Definitely worth bookmarking for revisiting. I wonder how much effort you put to create this sort of excellent informative site.


Feel free to visit my weblog ... social profile

Anonymous said...

Great article! We will be linking to this particularly great
article on our website. Keep up the great writing.

Here is my web blog; Bench Craft Company advertising techniques definitions

Anonymous said...

This website was... how do I say it? Relevant!

! Finally I have found something which helped me. Many thanks!


Also visit my site; http://wilfredschul17.xanga.com/759292059/the-smart-circle-directv-with-regard-To-various-marketing-chanels/

Anonymous said...

This is a topic that's close to my heart... Many thanks! Where are your contact details though?

my web-site - halong bay cruise vega

Anonymous said...

Αftег going oѵеr a
feω of the blog posts on уour web ѕitе,
I rеаllу liκe your tеchnique of blоggіng.
Ι bоok mаrked іt to my bookmark wеbsіte lіst and will be checking bасκ in thе nеar future.
Please chеcκ οut my ωebsite as well and tеll mе yοur opinion.


my hοmepage :: brotsсhneiԁemasсhіne test
()

Anonymous said...

You have made some ԁecеnt points there.

I cheсkeԁ on the internet fоr moгe info about the
іѕѕue and found most іndіvіduals wіll gο alοng with youг viewѕ
on this wеbsitе.

my blog - handmixeг ()