- What is also the difference between animals and humans ? - 3 Updates
- "Info" as a name - 1 Update
- Use of the break; and continue; statments - 1 Update
- With " warnings as errors ", you don't want it to stop the debuging. - 12 Updates
- May the presence of "try" affect the final result even when an exception does not happen? - 6 Updates
- How to do this (small task - std::transform?)? - 1 Update
- Backporting string_view to older compilers - 1 Update
rami18 <coco@coco.com>: May 24 04:55PM -0400 Hello.. What is also the difference between animals and humans ? The back-bones of civilization is morality Morality gets us more organized than animals, and being more organized is being more smart than animals and it is being more secure than animals and it's being more powerful than animals.. This is why i am talking morality relating it to politics.. Please read again my policial philosophy to understand well from where is infered compassion and love and respect and how to tune compassion and love and respect to be more and better organized.. About civilization and politics now.. I was just thinking right now and i have come to an interesting subject... If you ask me a question like this: Amine, are you in politics for centrists or are you for leftists or are you for rightists or are you for far-rightists ? This question is very important.. Now to answer this question i will do it by logical simplification, here is how: Why have we to be more civilized ? This question is very very important, and what is the back-bones of civilization ? it's morality, morality does comprise a priori pure moral and empirical moral.. Now morality is related to the political philosophy.. Morality is also political philosophy and political philosophy is also morality. Now you have to know how to tune morality in accordance with a priori pure moral and empirical moral.. Immigration is also morality, and you have to know how to tune morality to be able to tune immigration.. And compassion is also morality, but you have to be able to tune correctly compassion to be able to be more organized and more secure to avoid extremism and violence, because lack of compassion causes violence and extremism. But how to tune love and compassion and respect ? Here is my political philosophy that explained it: Here is my political model that i have just extended and refined more, please read it to understand my views of my model: What must be the game of politics of today ? You have seen me writing my political philosophy as an intellectual.. I am an arab from Morocco that lives in Quebec Canada. I am a decent and honest person, and morality is the reference of my actions.. So enough talk about me.. Now about the question above: What must be the game of politics of today ? Contrary to politics of domination of the past, today politics must be organized in such a way that it takes into account the powers and counter-powers, because from the powers and counter-powers, empirical moral is inferred, and because morality is a priori pure moral and empiriral moral, so this must be clear in your mind, this is why you have seen me taking into account empirical moral, this is necessary today to avoid for example a suicidal politics such as those of neo-nazis and neo-nazism.. neo-nazism is like nihilism , because its politic is a politic of domination , and this politic of domination of neo-nazism bring us directly to confrontations with weapons of mass destruction, so neo-nazism is not in accordance with empirical moral that wants to play smartly, and by taking consumerism into account , consumerism that causes compassion and respect, so that causes security and stability. So then hope you have understood what i am talking about. About our beloved arabs... I am learning you how to be smart.. Why am i saying our beloved arabs ? This is how you have to behave to attract confidence so that to higher consumer confidence index in you, it's like playing chess, you have to be capable of making smart moves on the chess, but is it negativity ? no it isn't negativity, because consumerism causes compassion and respect to be able to higher consumer confidence index internationally, and consumerism causes investment on third-world countries , this is the game today, you have to think big like that to be able to share the economic market of arabs and to sell more on the economic market of arabs, that's the same for africans, so this new conception and perception that looks like Fordism is the reality of capitalism an Liberalism of today, and why arabs will let you share there market and sell on there local market? because the old model of extremist nationalism is no more, because read the following proof: "The economic models developed by the development economists of the 1960s, based on the idea of industrializing industries, seem to be losing more and more of their unconditional supporters. The economic development of a country or a region is no longer Dependent on the development of the secondary sector or heavy industry. " by M'Fadel El Halaissi, of which our readers are familiar, is Deputy Chief Executive Officer of BMCE Bank. Please read more here(you have to translate it from french to english, because it is in french), it's from the Economist Magazine in Morocco my country: http://www.leconomiste.com/article/915791-la-conqu-te-conomique-de-l-afrique-passe-par-le-secteur-des-servicespar-m-fadel-el-ha And how to provoke and bring quality to the system ? That's really a good question ! Now you have seen me talking in my previous posts about the mechanisms that provoke and bring more quality to the system, those mechanism are the natural consequence of efficient thinking and thinking bigger, and efficient thinking must be based on a new conception and perception of the world, this perception and conception must provoke and bring more quality , and you have really seen me saying that competitiveness must be seen as a good sport, not as violence, , so you have to be sportive and think sportive to enhance competitiveness, this kind of change in our perception and conception bring more security, like when i have said that consumerism is constrained by the fact that it must know how to tune compassion and love and respect towards consumers to higher consumer confidence index, that's all beautiful, because it is a balance of powers that provoke and bring more quality, like when i have said also that you have to know how to not neglect compassion and love and respect to not cause extremism and violence in the system, that's also a counter-power that provoke and bring more quality, this is all about the balance of powers and counter-powers that provoke and bring more quality to the system, this is why you have finally seen me saying the following to you: About dictatorship and communism The problem with those is the problem of the past, because there is a necessity to provoke and bring quality with the introduction of new mechanisms, like the mechanisms of the counter-power of consumerism and consumer confidence index, and like the mechanism of the power of democracy, and like the mechanism of the counter-power of the financial and bank institutions that have there rating methodology that take into account the Political Risk factor and the economic conditions, and this creates more quality and a world stability, this balance of powers ensure us of more stability and more quality and more security, this is the weakness of dictatorship and communism, they lack some of or all of those mechanisms that bring more quality. Capitalism is changing from commodity capital to intellectual capital. Intellectual capital is where you will have more money and it is where you will become more rich and prosperous. See the following video: https://www.youtube.com/watch?v=7qYmZPP4AO8 About capitalism.. If you say , to become rich you must work hard. In capitalism that's not true, because Intellectual giftedness can make you rich faster without working hard and/or without suffering. That's a principle in capitalism, and this condition is authorized by capitalism because this is how you become rich as a nation and this is how you can take taxes from the rich. About jews.. The history of jews is related to capitalism, Hitler has attacked jews because he has attacked capitalism. But i don't think that Hitler was right.. Because of Intellectual giftedness of jews, so jews can become rich faster without working hard and without suffering.. but we have not to hate this, because it is a principle of capitalism that is important, because it is how we become rich as a nation, and because read again: About capitalism.. If you say , to become rich you must work hard. In capitalism that's not true, because Intellectual giftedness can make you rich faster without working hard and/or without suffering. That's a principle in capitalism, and this condition is authorized by capitalism because this is how you become rich as a nation and this is how you can take taxes from the rich, and also because Intellectual elites has to sacrifice for money to maximize better the benefit of science and development. I will add the following factor to my model: Economic integration with others and also economic investment render the world more stable and more peaceful and more secure, and because consumerism has to guide governance and consumerism is also the consequence of compassion and respect, because to not hurt consumer confidence index you have to know how to be compassion and respect. This is the solution of the problem between Israel and arab countries, they must have more economic integration and more economic investment between them to be more peace and stability. Please read again the rest of my model: With a Top-down approach i have come to an important subject: I have said that: Other than that you have to know how to tune compassion and respect to not hurt consumer confidence index internationally and locally. This is an important factor to be able to tune well the political philosophy that must guide governance, you have also to think governance by knowing how to tune economic investing into the third world countries, this is mandatory, to be more precise i will say that you have to know that like Fordism, consumerism has also to guide our political philosophy, and consumerism is a consequence of respect and compassion, so this is very serious, and the essence of America is constructed on this fact, so adding this principle to my model will get you on the right path, here is the rest of my model that i have enhanced: About extremist nationalism and communism.. Extremist nationalism like the far-right or neo-nazi political parties is an archaic thinking that causes violence and extremism and instability, communism is the same, so we have to be wiser and understand that this kind of extremism has also to be avoided by knowing the following: "The economic models developed by the development economists of the 1960s, based on the idea of industrializing industries, seem to be losing more and more of their unconditional supporters. The economic development of a country or a region is no longer Dependent on the development of the secondary sector or heavy industry. " by M'Fadel El Halaissi, of which our readers are familiar, is Deputy Chief Executive Officer of BMCE Bank. Please read more here(you have to translate it from french to english, because it is in french), it's from the Economist Magazine in Morocco my country: http://www.leconomiste.com/article/915791-la-conqu-te-conomique-de-l-afrique-passe-par-le-secteur-des-servicespar-m-fadel-el-ha And i have said that efficient thinking is not thinking small.. Efficient thinking is thinking bigger.. You have to think bigger to be able to survive better.. But thinking bigger is not suicidal thinking that causes suffering to the people, suicidal thinking is a nihilist thinking that is not efficient thinking that thinks bigger and that solves problems, so be capable and be responsable and be wise, being wiser is also taking into account the right variables and factors that enhance your living conditions and the living conditions of your children and the people.. But we can not have confidence in people, we have to enforce morality with laws, but morality is not something easy , because morality is not just a priori pure moral, morality is inferred also from empirical moral that is also from power and counter-power, but we are more lucky today because empirical moral is not so bad, because i have said that: Past was the past, but today it is different, we are getting world stability from the power and the counter-power, so we not just have governance and/or democracy that is the power of people, but also we have the counter-power of the financial and banks institutions that have there rating methodology that take into account the Political Risk factor and the economic conditions, and we have the counter-power of the consumers confidence index, and this creates a world stability because we have to optimize our economic systems and by being responsable by being also responsable governance, other than that compassion and respect can be virility and they are like mandatory for the system, because compassion and respect gets us more organized because neglecting compassion and respect cause violence and extremism that make our society unstable and less optimized , so tuning compassion and respect right with social services and medical services and with educational services and with help to the people to avoid violence and extremism is also more stability and more power , so this compassion and respect is virility, other than that you have to know how to tune compassion and respect to not hurt consumer confidence index internationally and locally. And about immigration: Virility and usefulness We have to do more philosophy.. There is some of you who define virility as being courageous or violent.. But this is not the right way to define virility.. You have to define it to know it: Virility is maturity and also it is intelligence and it is money and it is knowledge and it is efficiency etc. Virility is not just being violent or being courageous.. Now can we make this criterion of virility the criterion at how we have to be selected as an immigrant ? I don't think it is the right way.. Because to be accepted as an immigrant we have to be categorized by the criterion of usefulness, this is optimization of today, so to fulfil the goal of economic growth and economic efficiency and to be able to give jobs to the right persons, we have to think by the criterion of usefulness, this is how works USA and this is how works Canada too, even if we select some immigrants taking also into consideration human rights. Knowledge changes your perception.. But quality of knowledge is also very important to set it right.. To overcome many constraints you have to know how to tune some variables, like you have to know how to define usefulness, and this is the weakness of neo-nazis like ideologies, today optimization is defined by the criterion of usefulness, and usefulness is not that arabs have to be as beautiful as white europeans, this is the old way of thinking, so usefulness to conform to the standards of today that take into account efficiency of economy has been defined differently than the neo-nazis kind of thinking, so we have to adapt , because USA and Canada have to optimize there economies taking into account many constraints, because also usefulness is constrained also by contraints and this is why USA and Canada are getting more clever at defining usefulness and usefulness of immigrants to better optimize there economies, so i am calling to all of you to adapt to the reality of today, because the past was the past, and today is today, so please adapt yourself ! And more about the criterion of usefulness.. |
rami18 <coco@coco.com>: May 24 04:56PM -0400 Hello, This was my last post about politics in this group. Thank you, Amine Moulay Ramdane. |
legalize+jeeves@mail.xmission.com (Richard): May 24 08:56PM [Please do not mail me a copy of your followup] rami18 <coco@coco.com> spake the secret code >What is also the difference between animals and humans ? Humans know how to respect usenet newsgroup charters. *plonk* -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Terminals Wiki <http://terminals-wiki.org> The Computer Graphics Museum <http://computergraphicsmuseum.org> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com> |
Tim Rentsch <txr@alumni.caltech.edu>: May 24 01:49PM -0700 > return {n_leading_ones, bits}; > }; > }; Rather than using a factory function, I think it's better to use a delegating constructor. The following compiles (disclaimer: untested) in C++11 and C++14 (and for my own amusement I wrote the code so everything could be 'constexpr'): typedef unsigned char Byte; struct EncodedByte { int const n_leading_ones; Byte const low_bits; constexpr EncodedByte( char c ) : EncodedByte( high_ones( 0, c, 0x80 ), c ) {} private: constexpr EncodedByte( int upper_ones, unsigned bits ) : n_leading_ones( upper_ones ) , low_bits( bits ^ -1u << 8-upper_ones ) {} static constexpr int high_ones( int n, unsigned bits, unsigned mask ){ return bits & mask ? high_ones( n+1, bits, mask>>1 ) : n; } }; |
Tim Rentsch <txr@alumni.caltech.edu>: May 24 01:37PM -0700 > general approach of not actually addressing the concrete contents of > the OP's posting is wrong, even if it sounds nice; and also that the > apparent idea that all style issues are unimportant, is wrong. I'm sorry you found it so objectionable. All I can say is I was trying to respond to the questions asked, with greater emphasis on what I believe are more important points (and less emphasis on less important points, obviously). I realize other people may have different opinions about that; I was giving my own opinions. I should add that it looks like we have a couple of crossed wires. Let me see if I can help uncross them. (That continues below...) > early topics and what constituted advanced, later stuff. > I read what you wrote as promoting an early focus on functional > decomposition. That's nice, but it's just one aspect. There are two important terms here that I think we are using differently. First, I didn't say functional decomposition, I said function composition. Second, I think you are using the word "style" in a much broader sense than I am. When I say style (without any other qualification), I mean minor differences that are, more or less immediately, obviously equivalent. Canonical example: "infinite" loop, with the well-known choices for(;;){ ... } while(1){ ... } The difference here is one of style. In contrast, sorting done by a selection sort and sorting done by an insertion sort is not a style choice but a design choice. Another example: dealing with different cases in a loop - should we write while( (c = getchar()) != EOF ){ ... if( c == '\n' ) continue; ... } or should we write while( (c = getchar()) != EOF ){ ... if( c != '\n' ){ ... } } It seems fairly obvious that these two different ways of writing this loop are equivalent, and therefore the difference is one of style (and let me be very clear here, /as I use the term/ - I understand other people may use it differently). The question of whether a particular choice is a style choice or a design choice is not always clear cut. Are the alternatives "obviously" equivalent or not? There definitely is some gray in there in some cases. Despite that I think the distinction is a useful one, and between the two design choices are more important than style choices. Not that style choices are unimportant, just not as important as design choices. Please bear in mind that (at least for the most part) I am giving an answer in the context of writing a single function definition. I use the term "function composition" to describe the activity, or result, of composing a single function body. Sometimes that will necessarily involve pushing off some responsibility to a putative new subfunction, but anything about the subfunction - besides perhaps its name and what arguments it is presumed to accept - is outside of the context in which I am attempting to respond about use of 'break' or 'continue'. Furthermore, when it comes time to write the new subfunction(s), it may very well be that we change our minds and redo some or all of the calling functions; again though that is outside the scope of my answers about 'break' and 'continue'. > would be complicated and full of redundancy. Some would complain if an > exception was allowed to just propagate instead of taking a detour > through a try-catch-finally in every stack frame. Error handling is (IMO, in case that needs saying) a larger and more difficult topic than what I have been addressing. I ignored error handing in my comments about 'break', etc, not because I think it's less important but because it's a much larger topic than just writing a single function definition well. I look at it this way: if someone can't compose a single, well-crafted function body when they don't have to worry about error handling, they certainly won't be able to compose well-crafted function bodies when they /do/ have to worry about error handling. If it seems like I am sure about my educational approach, I expect that's because I made a deliberate choice to focus on one scale of concerns, and ignore scales much larger or much smaller than that. It isn't the weight of the different areas, but the size of the domain that I feel I can address - given the various time and resource constraints - that determines which aspects are included and which (such as error handling) are not brought up. |
Jeff-Relf.Me @.: May 24 06:00AM -0700 |
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: May 24 04:18PM +0200 > Variables get commented out, at times, when debugging. > With " warnings as errors ", you don't want it to stop the debuging. > UnUsed variables are informative, and might be needed again, later. For Visual C++, as of 15th June 2010: https://alfps.wordpress.com/the-no_sillywarnings_please-h-file/ ------------------------------------------------------------------------------- // Copyright (c) Alf P. Steinbach, 2010. // #include <progrock/cppx/compiler_specific/msvc/no_sillywarnings_please.h> #ifndef PROGROCK_CPPX_COMPILERSPECIFIC_MSVC_NOSILLYWARNINGSPLEASE_H #define PROGROCK_CPPX_COMPILERSPECIFIC_MSVC_NOSILLYWARNINGSPLEASE_H #ifndef _MSC_VER # error This file is specific to the MSVC (Microsoft Visual C++) compiler.
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment