home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,047 of 243,242   
   bart to Bonita Montero   
   Re: Unicode...   
   22 Nov 25 19:28:32   
   
   From: bc@freeuk.com   
      
   On 22/11/2025 17:44, Bonita Montero wrote:   
   > A lot of errors look like that you haven't enable at C++23 properly.   
   > Can you install a current g++ ? Maybe the newest from the repository   
   > is sufficient.   
   >   
      
   I said in a followup that I'd typed =std instead of -std, which didn't   
   generate any error from the compiler.   
      
   But I managed to compile it. However the long program with a complicated   
   main() just crashed trying to run it, sometime before it got to the   
   actual UTF8 bit.   
      
   So I applied those headers and options to the first mm512   
   single-function version you posted. There I only had to add std:: to   
   those countr.one's.   
      
   I used this test driver   
      
      int main() {   
          size_t n = 0;   
          n = utf8Width("Hello, 世界!" );   
          printf("%zu\n", n);   
      }   
      
   And it crashes inside that function.   
      
   It's all just too damn complicated, sorry. It might well be fast, but   
   that's no good if it is troublesome to build and run for anyone else.   
      
   Another factor is this: each build, even at -O0, takes 3 whole seconds   
   on my machine. That must be a huge pile of junk it is including.   
      
   Building my C version takes some 1/20th of a second (even gcc takes only   
   0.3 seconds).   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca