mailing list of musl libc
 help / color / mirror / code / Atom feed
* There is no tests for musl,
@ 2015-05-08  7:38 罗勇刚(Yonggang Luo) 
  2015-05-08  8:01 ` Szabolcs Nagy
  0 siblings, 1 reply; 17+ messages in thread
From: 罗勇刚(Yonggang Luo)  @ 2015-05-08  7:38 UTC (permalink / raw)
  To: musl

That's really not so good for the stable.

-- 
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo


^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: There is no tests for musl,
@ 2015-05-08 20:01 writeonce
  0 siblings, 0 replies; 17+ messages in thread
From: writeonce @ 2015-05-08 20:01 UTC (permalink / raw)
  To: musl

On 05/08/2015 11:41 AM, 罗勇刚(Yonggang Luo)  wrote:>>>> solution, I
think there is no one would use
>>>> wchar_t for cross text processing, cause, on some system, wchar_t is
>>>> just 8bit  width!
>>>
>>> anybody would use wchar_t who cares about standard conformant
>>> implementations.
>>>
>>> non-standard broken platforms may get an unmaintained #ifdef
>>> as usual..
>>
>> I think we (and midipix) have a different perspective from Yonggang
>> Luo on portable development. Our view is that you write to a POSIX (or
>> nearly-POSIX) target with fully working Unicode support and fix the
>> small number of targets (i.e. just Windows) that don't already provide
> Small is relative, if counting the distribution count, well, Unix wins.
>> these things. Yonggang Luo's perspective seems to be more of a
>> traditional Windows approach with #ifdef and lots of OS-specific code,
>> but just making the Windows branch of the #ifdefs less hideous than it
>> was before. :)
> If getting wchar_t to be 32 bit on win32, then truly will be a lot of
> #ifdef, I am not so sure
> if you have experience on Win32 API development, I hope we discussing
> the problems in a
>   more objective way.
> 

One primary objective of code portability and posix-compatibility layer
for win32 is to _remove_ the need for OS-specific code-paths. A wchar_t
that is anything short (no pun intended) of a 32-bit integer will render
it impossible to build out of the box many pieces of commonly-used
software, including, but not limited to musl libc, the curses library,
and anything that expects wchar_t to cover the entire unicode range.

As for your suggested framework: there are currently at least three
compilers that can produce optimized code for the target platform (gcc,
clang, and cparser), and which work very well with most open-source
software out there. As an aside, if you are interested in an 8-byte long
on 64-bit windows then an open-source compiler is probably your only
option. To compile musl with msvc, on the other hand, you'd have to make
so many changes to the source code that you might as well write your own
libc from scratch. To see why, please attempt to compile some ten or
fifteen core libc headers (stdio.h, unistd.h, etc.) with msvc. If that
goes well (spoiler: it won't), then the next step would be to compile a
subset of the source files (src/pthread or src/stdio, for instance) and
remove any remaining obstacles.

m.


>>
>> Rich
> 
> 
> 




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-05-08 20:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-08  7:38 There is no tests for musl, 罗勇刚(Yonggang Luo) 
2015-05-08  8:01 ` Szabolcs Nagy
2015-05-08  8:03   ` 罗勇刚(Yonggang Luo) 
2015-05-08  8:36     ` Szabolcs Nagy
2015-05-08  8:52       ` 罗勇刚(Yonggang Luo) 
2015-05-08 12:49         ` Rich Felker
2015-05-08 13:10           ` 罗勇刚(Yonggang Luo) 
2015-05-08 13:35             ` Rich Felker
2015-05-08 14:02               ` 罗勇刚(Yonggang Luo) 
2015-05-08 14:10                 ` Rich Felker
2015-05-08 14:17                   ` 罗勇刚(Yonggang Luo) 
2015-05-08 15:20                     ` Szabolcs Nagy
2015-05-08 15:23                       ` 罗勇刚(Yonggang Luo) 
2015-05-08 15:36                       ` Rich Felker
2015-05-08 15:41                         ` 罗勇刚(Yonggang Luo) 
2015-05-08 15:58                           ` 罗勇刚(Yonggang Luo) 
2015-05-08 20:01 writeonce

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).