|
To me, concepts seemed more theoretical than practical. One problem is that it created a verbosity that was divorced from what it was describing. (If you required a less than operator in the underlying class, the keyword was LessThanComparable.)
Another problem was that if someone created a template and then constrained it, I'd be stuck with their damn constraints. I like the idea that I can create a type that the template may have never conceived of, but which satisfied all the requirements of the template. Plus, if you're going to restrict a template to have to use a class or template of type X, why not just derive it from that to begin with?
The problems go on.
(I have a template where concepts could have been leveraged. But as I thought about it, I realized that all concepts did was litter up the code with junk that did absolutely nothing to make things actually better. Plus, like I said, why stop someone from instantiating my class with some lunatic type as long as it compiles and actually works for them.)
modified on Wednesday, July 22, 2009 2:04 AM
|
|
|
|
|
Joe Woodbury wrote: But as I thought about it, I realized that all concepts did was litter up the code with junk that did absolutely nothing to make things actually better.
Your absolutely correct here. Concepts was highly criticized for having a negative impact on runtime performance. Compiler vendors would have been delayed implementing C++0x. I think the general consensus was the overhead was not worth the benefits.
Best Wishes,
-David Delaune
|
|
|
|
|
Meh - the important thing is to keep Rvalue references and new Unicode char types.
|
|
|
|
|
Any one witnessed the longest solar eclipse of the century?
According to NASA, it lasted over 6 minutes over Pacific Ocean. That must be amazing.
|
|
|
|
|
No, didn't witness that one but we had one here last night which lasted 7 hours! Unfortunately, I slept through most of it...
|
|
|
|
|
Nope. I did winess the last solar eclipse of the previous century (August 11th 1999). It was awsome, simply unreal.
|
|
|
|
|
I remember an eclipse in the early 90s in Montreal; it was somewhat short, but one thing that amazed me the most was the sudden drop in temperature. I can just imagine how fast the temperature would drop if the sun just shut down.
This signature was proudly tested on animals.
|
|
|
|
|
Maximilien wrote: I can just imagine how fast the temperature would drop if the sun just shut down.
That only happens just before it explodes, so at least you won't be cold for long
The true man wants two things: danger and play. For that reason he wants woman, as the most dangerous plaything.
|
|
|
|
|
i have experienced the last solar eclipse
it was amezziinnggggg.....
really....but due to cloudy sky
this time i missed solar eclipse
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
< licensed under the Code Project license, copyright assigned to CodeProject, 2009, all rights reserved, in appreciation for the many wonderfully "Self Righting" articles, comments, discussions that appear here >
Brother and Sister devotees of Goddess Techne,
I awoke here at 04:30 (GMT +7) not because the roosters had been on the job for fifteen minutes already (and the frogs had the night off to restore their croak) ...
But, because I came to the end of a compelling and disturbing dream.
The dream started with me in a state of that semi-paralysis that frequently happens in dreams where you feel your body ... your musculature, your breath, your sense organs, that is ... is not under your own control ...
I was staring into a mirror on which an endless series of messages appeared in flaming letters each one of which had one of three titles : "Why You Suck Today," or, "Why You Sucked Yesterday," or, "Why You Will Suck Tomorrow." Without actually appearing, but more in the form of a series of sub-sonic waves, was another message constantly droning over-and-over : "Why You Suck Now." That sub-textual message felt like it was manifested by bone-conduction inside my head rather than having any interaction with the otic systems of my meat form.
In the dream this progression of messages to which I was "nailed" had a quality of an infinite regress, that quality which, perhaps, Blaise Pascal, in one of his frequent altered states, described as : "a fearful sphere whose center is everywhere and circumference is nowhere."
But as dreams do (and as story-tellers know how to do) : an instant metaphysical shift of gears transposed me to another reality altogether.
I was in space, vast empty space with distant stars all around me, I was a kind of omnipresent camera that could see all ... but, what did I see ?
One of the stars suddenly appeared to accelerate at an incredible rate, and "materialized" in "front" of me not as a sphere whose radiance was blinding-to-insanity (as say the vision of the Chaluk [the robe of "Ein Sof"] was in Kabbalistic lore to certain Rebbis) ...
But in the form of an exquisite Gömböc !
And I heard a voice whispering (a sweet voice, a naive voice, the voice of wonder of a child brimming with natural curiosity), asking me a question :
"How will the Gömböc right itself in the absence of gravity ?"
And suddenly my mouth was free to speak : and I heard myself saying :
"How can I possibly know that ?"
And then a twinge of self-conscious regret passed through me : I reflected (internally) that I had just answered a question of a child, a child of wonder, with another question ... was that "unkind" ?
I heard the "child's" voice again : "... well ?"
And I kind of stammered : "perhaps there is no absolute absence of gravity here; maybe it is just the case where we are is so far from any dominant center of gravity that here : the sum of all gravities from all these so-distant stars in every direction possible averages out, and there is no "right" direction for the Gömböc to take."
I waited now, in a silence that seemed as long as those so-distant stars were far away.
The strangest thought came into my head : does this "child of wonder" I appear to be communicating with here ever see himself, or herself, in front of a mirror unable to move, compelled to watch an endless stream of messages on the theme "you suck" ?
Instantly I knew that ... while that was a fascinating thought ... it was a question I'd never actually ask this child-presence; intuitively, I felt that asking such a thing might damage the sense-of-wonder that, while I did not understand it, was not only tangible here, but precious.
But then, just when I was hoping to hear more from this child-presence, I was, as dreams do (and story-tellers know how to do), whisked away with a metaphysical scene change again. Yeah, black-out, shadowy forms moving the scenery around, the scene, perhaps, even rotating.
I had time enough somehow in the midst of this instantaneous transformation to another reality to say to myself, with a sigh, "oh sh*t, not back to the 'you suck' mirror."
But, with a sense of relief, I found myself at an emergency meeting of the United Nations at a deep underground bunker half-a-mile beneath some mountain of granite in the state of Utah in the United States.
The meeting convened amid scenes of incredible destruction in many of the world's cities.
The remaining armed forces of the world struggling to cope with the invincible powers of the revenge of the Mother of All Gömböc !
And, surprise, I was at the speaker's rostrum, being introduced by a kindly old man, the Director-General of the UN with the following words :
"And now His Sub-Excellency Billious, Heresiarch of the Gömböc Faith, will advise us on whether there is any possibility to come to terms with the Mother of All Gömböcs before her insatiable wrath has destroyed everything but cockroaches and weeds."
And I spoke (not really knowing whose words came out of my mouth) :
"Praise Gömböc, the only way She can be understood is as the Perfect Embodiment of Self Righting.
All Her actions, mysterious, even horrible, though they appear to us, are all the outcome of only One Thing : Self Righting.
The phenomena now described as related to, or produced, by the coming of the Mother of All Gömböcs : such as : the sudden appearance of an overweight 40-something virgin Englishwoman in the form of an angelic voice on the world's most popular teevee show, the birth of a five-legged dog in a dog-breeding ranch in Long Island, an op-ed piece in the New York Times by a fiendishly skilled computer programmer posing as an oyster farmer who is alleged to have been a "sleeper," the dust cloud, born in the Taklamakan that circled the Earth in 2007, the eclipse of the Sun on July 22nd.
While She may, indeed, have paused on Jupiter, there is no evidence that She uses methane as an energy source.
All these things are all unrelated to Her presence here : She is Here simply because of a resonance created by the reproduction of Her Divine Form and the abuse of those "Incarnations." It was the abuse, not the re-creation of her Perfect Form, that created this Imbalance !
Our scientists, perhaps even with the noblest motivations created an image of her Perfect Form here on Earth, and then, probably led astray by evil persons driven by greed, proceeded to market her to aristocrats, to make her an uncommon whore in the marketplace of ideas, a strumpet paraded in the common bazaar for all to see, and only the privileged to possess. Yes, they made Her a "pop star" in a way analogous to the way Madonna, Britney were made, and with the same sleazy motivations.
This intolerable Imbalance summoned her via her children's screams across space and time.
What we perceive as "revenge," and destruction, evidence of a great "wrath," is not intentionally harmful !
But, what to do ?
All I can offer you is the two basic tenets of the Gömböc faith :
"Admit that you have sucked, you suck now, and you will suck : know that this is an act of Self Righting that is a precondition to any form of humanity."
"When you Right Yourself, everything else will be All Right."
And I awoke (that is : I believe I awoke).
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
modified on Tuesday, July 21, 2009 8:41 PM
|
|
|
|
|
Did you or did you not recently read such a book as "The Alchemical Marriage of Alistair Crompton[^]" any other of similar inspiration?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Hi LLoyd,
No, I haven't heard of that book. Do you recommend it ?
thanks, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
I read it many years ago, but if my memory serves me right, I quite liked it!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
I'm beginning to have my doubts about having you preview that article!
Marc
Will work for food.
Interacx
I'm not overthinking the problem, I just felt like I needed a small, unimportant, uninteresting rant! - Martin Hart Turner
|
|
|
|
|
Marc Clifton wrote: I'm beginning to have my doubts
Praise Gömböc !
"to know and not know that you know ... is good, but to not know and to pretend you do ... is a disease" Lao Tse
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
You are "Mr Keep in Brief: of CP.
|
|
|
|
|
Rama Krishna Vavilala wrote: You are "Mr Keep in Brief
Namaste or Vannacum, Sri Rama,
Surely I am not the only one here wearing briefs ?
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
I think you skipped your medication again...
|
|
|
|
|
BillWoodruff wrote: And I awoke (that is : I believe I awoke).
Go back to sleep, dude.
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
I read it all - that was fascinating I also now know what a Goemboec is.
BTW, the Tamil greeting you use is more accurately (and more widely) transliterated as Vanakkam.
Cheers,
Vikram. (Proud to have finally cracked a CCC!) Recent activities:
TV series: Friends, season 10
Books: Fooled by Randomness, by Nassim Nicholas Taleb. Carpe Diem.
|
|
|
|
|
Vikram A Punathambekar wrote: BTW, the Tamil greeting you use is more accurately (and more widely) transliterated as Vanakkam.
Vanakkum Sri Vikram,
Thanks for updating me on that ! I am trying to remember if this is also used in Malayalam, but the only that thing comes back to my mind from 1976, during my three weeks in Kerala, are memories of faces with the most beautiful smiles in the world, and the taste of the best coconut curry my tongue ever knew, the blue color in the China-made ceramic tiles in the Synagogue in Trivandrum (no, I'm not Jewish) that is four-hundred years old, the great friendliness towards me I felt travelling alone (no, I was not a "spiritual seeker," I was on a post-grad fellowship, nor was I dressed like an itinerant wanna-be yogi ... but I did have a backpack).
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
Namaskar Bill,
Namaskar works best for me (you may have noticed my Maharashtrian surname ) although I've lived all my life in Tamil Nadu and am fluent in Tamil. Tamil and Malayalam do have a lot in common but I haven't explored Kerala really - just the odd trip or two.
Mmm, coconut. I've heard it's difficult to get fresh coconuts in the West so they use dessicated coconuts. I can't imagine any susbstitute for fresh coconuts. But I guess you get fresh coconuts since you're in Thailand. Want a recipe for coconut rice, Indian style?
Cheers,
Vikram. (Proud to have finally cracked a CCC!) Recent activities:
TV series: Friends, season 10
Books: Fooled by Randomness, by Nassim Nicholas Taleb. Carpe Diem.
|
|
|
|
|
Namaskar Vikram-Ji,
I have to admit that while some Indian last names definitely appear North Indian to me, and some definitely South Indian, I find it hard to identify many Indian last names by region, such as Maharashtran.
I appreciate the offer of the recipe for coconut rice, and would appreciate having same : I'll pass it on to some friends who are really gourmet cooks. I am sorry to tell you that I cannot eat rice (a result of deformation of the interior of my throat as a side-effect of radiation during cancer treatment). The only form I can have it in is the delicious very thick rice-porridge called in Thai "jok," and I have that frequently.
Yes, Thailand is full of all kinds of great coconuts, and Thais love it in everything from curries, to sweets, to drinking the milk right out of the nut.
I buy a wonderful Thai made extra-virgin coconut oil made from organically grown coconuts and centrifuge cold-pressed. Not only do I use it for shaving, and as a general skin-treatment to help preserve my magnificent beauty , but also drink it straight : it has a wonderful sweet flavour, the very essence of Thai coconut.
If I remember correctly, it was in Kerala I heard the Sanskrit term "kalvaprakash" applied to coconuts : meaning they were beneficial to humanity in every part and form they took.
I do remember stopping in awe in one of my rambles in Kerala to watch people dredging up coconuts soaked in a small lake (how long ?) and beating them into fiber that would be used to manufacture rope (coir ?). Seeing the golden coconut fiber emerge in the sun from the slimy dark things they pulled from the lake was wondrous.
So, too, may you and I have our "golden qualities," manifested (hopefully without being bludgeoned or drowned first).
phir melenge ...
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
Bill, sorry for the delayed reply, I had to write down the recipe.
BillWoodruff wrote: I find it hard to identify many Indian last names by region, such as Maharashtran
Handy tip: any surname that ends with 'kar' is Maharasthrian (or Goan-Konkani, but that's part of Greater Maharashtra).
Yes, the coconut tree is called the kalpavriksh, and sometimes the banana tree is too.
BillWoodruff wrote: phir melenge ...
Wow, you seem to be conversant in more Indian languages than some Indians I know
Without further ado, here is the recipe:
Grated coconut
Urad dal - 2 tsp
Mustard seeds - 2 tsp
Chana dal - 2 tsp
Coriander leaves and curry leaves (for flavouring)
Salt to taste
Asafoetida (some people hate this, but I suggest you try it)
Cooking oil
Roasted groundnuts (optional)
Cashew nuts (optional)
Rice
Cook rice separately in cooker, and allow to cool. The ratio of rice to water depends on the rice and personal taste, but ensure the cooked rice is dry and the grains stay separate after cooking (I prefer a ratio of 1 rice : 2 water).
Heat a kadai [http://en.wikipedia.org/wiki/Karahi] and roast the grated coconut till it turns a very light brown. Keep aside and let it cool.
Heat cooking oil in the kadai. Throw in mustard seeds, urad dal, chana dal and fry for a minute. Add groundnuts, cashewnuts, curry leaves. Towards the end, add coriander leaves, salt, and asafoetida (do NOT add the asafoetida too early). Switch off the stove, and after the mix is sufficiently cooled, add the coconut and mix thoroughly. Finally, add the rice. Goes very well with pickles, preferably hot mango pickles.
Warning: you probably know this, but dishes with coconuts tend to go bad rather quickly in tropical climates, so don't leave it outside for too long.
Cheers,
Vikram. (Proud to have finally cracked a CCC!) Recent activities:
TV series: Friends, season 10
Books: Fooled by Randomness, by Nassim Nicholas Taleb. Carpe Diem.
|
|
|
|
|
|