Viewing profile — DougGwyn
DougGwyn
HN member- Joined
- Mon, Apr 13, 2020, 4:42 AM UTC
- HN karma
- 91
- Public activity
- 54 items
- HN profile
- View on Hacker News ↗
About DougGwyn
No profile information was provided.
Recent public activity
-
comment
Comment #22894642
I thought it was strictly one character per 32-bit code. Anyway, whatever it is called it is what wchar_t should be.
-
comment
Comment #22894589
The argument "0" is not automatically converted to the right type unless there is a prototype in scope. It isn't as important in this case because it is highly likely that the appr…
-
comment
Comment #22894543
There are several multibyte character manipulations that are easier if there is a uniform-sized encoding (wchar_t).
-
comment
Comment #22872276
Why would the utilities not handle unicode searching? Unicode characters match properly, the null terminator works the same, and non-ANSI codes are just one or more random 8-bit va…
-
comment
Comment #22872197
In fact I proposed strdup on a few occasions, but it wasn't adopted. It seems that they didn't like for standard library functions to use malloc. POSIX.1 specifies strdup.
-
comment
Comment #22872109
If you changed UTF-16 to UTF-32 or UCS-4 I'd support it. I think there are already implementations that use the replacement character for all "impossible" codes.
-
comment
Comment #22872019
Why is there a second argument which is not used?
-
comment
Comment #22871959
There is a Web page I saw a few days ago that does that, probably findable by grepping Wikipedia. Unfortunately I forget its URL.
-
comment
Comment #22871820
I don't think most users of C want things changing underfoot. Keeping track of all the version combinations is infeasible, especially when you consider that an app and its library …
-
comment
Comment #22871744
Code can be non-portable for various reasons, not all of them bad. I just grepped a recent release of DWB and found about 100 uses of isdigit, most of which were not input from ran…
-
comment
Comment #22871641
Many antique computers are simulated by SIMH. If you have the corresponding software, you can operate on your desktop a simulated computer's software development system. For exampl…
-
comment
Comment #22871541
(1) There are several implementations; most are based on Knuth's "boundary tag" algorithms. As to "heap", a stack has one accessible end, a heap is essentially random-accessible. N…
-
comment
Comment #22871347
Note that the ABIs cover endianness as well as value range and/or object widths. In general, one needs to have explicit marshaling and unmarshaling functions to map from network oc…
-
comment
Comment #22871253
If you're using parentheses, as has been recommended for decades, there is no problem. Otherwise, it is likely that such a change would adversely impact previously working code. Th…
-
comment
Comment #22871183
Let's assume the types have been corrected. malloc((size_t)0) behavior is defined by the implementation; there are two choices: (a) always returns a null pointer; or (b) acts like …
-
comment
Comment #22870931
I thought we had fixed the BSD socket aliasing a long time ago?
-
comment
Comment #22870873
"Implementation-defined" is a nuisance, because then you need to add code for all the variations, which also requires a set of standard macros, etc. It is easier and less trouble-p…
-
comment
Comment #22870823
You can easily create your own stdc.h include file. Something similar was done on Plan 9. Note that by including the content of all the headers, you're increasing the chance for co…
-
comment
Comment #22870741
Yes, I have found it helpful. One nice feature is that it uses a character-terminal interface, not a platform-specific GUI.
-
comment
Comment #22870702
There are a lot of arithmetic conditions for which C could generate special code. There are div_t-related functions for the other direction. I for one would like a good way to obta…
-
comment
Comment #22870533
isdigit is likely to remain, because much existing code does use it (perhaps in different contexts from the one you cited). If you need a different function specification to do som…
-
comment
Comment #22870500
Original standard feature specifications were not meant to obtain a 1-to-1 map from C onto hardware, but we used practical experience to judge what overhead was acceptable for the …
-
comment
Comment #22870291
I think that's right. These days, much of the discussion occurs through study subgroups (like the floating-point guys) and the committee e-mailing list.
-
comment
Comment #22870176
In general, the committee accepts what we used to call "defect reports" (now something like "requests for improvement"), assigns them "WG14 series" sequence numbers, and upon reque…
-
comment
Comment #22870034
The rule is: If you want your program to conform to the C Standard, then (among other things) your program must not cause any case of undefined behavior. Thus, if you can arrange s…