Comment Re:"Feel Like a Number" (Score 0, Offtopic) 146
now we're treated like terrorists and crimminals, so much better
now we're treated like terrorists and crimminals, so much better
You bring up an often-argued completely silly scenario.
Neither the government nor the U.S. armed forces would survive the use of such weapons on the populace. The military would fall apart.
news for you, most state constitutions already state that. Mine does.
FWIW, a republic CAN be a democracy. At least in principle, and if you aren't too picky about exact definitions. (I'm not asserting that the US states were ever more of a democracy than was classical Athens, however.)
It will if you're using C or C++.
FWIW, *most* of the text I'm working with is ASCII-7, but some of it isn't. Short quotation in, e.g., Greek. I need to be able to count the chars, etc. Utf-32 is an immense waste of space...and I already expect to be doing a lot of paging because of excessive memory use.
"Early 2000 called
Seriously - you're either a terrible programmer, a troll, or both.
C++ (and do a lesser extent C) lose support because of their extremely poor support for utf8. And the absurd part of it is that they could easily do a good job. Utf8 is just a byte array with various routines to interpret the code. Glibc does a reasonable job for a C library...not ideal, but reasonable.
All the array needs is a way to address a chunk by character # rather than by byte #, a way to copy of a character or a slice of chars, and a way to determine the general character classification of any character. Also a few methods: first(), last(), hasnext(), hasprior(), next() and prior(). And these all "sort of" exist, except getting the general character classification. (Do note that these functions need to operate on utf-8 characters rather than on bytes.) But several different ways of doing this are already known. Vala, e.g., handles it without difficulty, and is able to emit C code (using Glibc libraries).
So it's not a programming difficulty that's holding things up. It's the standards bodies...or, perhaps, some members of them.
But I've looked at C++11, and it is not a satisfactory answer. Vala has a good answer. D (Digital Mars D) has a different good answer. Even Python3 has a pretty good answer. (I don't like that in Python you can't determine memory allocation within the string.) Also Racket, etc. But C++ doesn't.
"It is hard to overstate the debt that we owe to men and women of genius." -- Robert G. Ingersoll