HNHacker News
TopNewBestAskShowJobs

cremno

2,645 karma · joined March 24, 2012

submissionscomments
cremno··on Stdio(3) change: FILE is now opaque
"Windows" did this 11 years ago:

>FILE Encapsulation: In previous versions, the FILE type was completely defined in <stdio.h>, so it was possible for user code to reach into a FILE and muck with its internals. We have refactored the stdio library to improve encapsulation of the library implementation details. As part of this, FILE as defined in <stdio.h> is now an opaque type and its members are inaccessible from outside of the CRT itself.

https://devblogs.microsoft.com/cppblog/c-runtime-crt-feature...

cremno··on Modern C for Fedora (and the World)
Besides fixing bad C code: how many of those packages are still properly maintained? The Ruby ones don't seem to be. Fedora and other distros likely have to build their packages with patches.
cremno··on Rewriting the Ruby parser
>> CRuby actually ships with 90 encodings (as of 3.3)

>This is asinine.

Overall there are even more: 103. But then again 1.9.2 only has 85 and 95 overall. Also one of those new 'overall' ones is the EBCDIC code page for US/Canada.

cremno··on New C features in GCC 13
dmr would've approved of going a step further - only nullptr, no 0 and (void*)0:

>Although it would have been a bit of a pain to adapt,

>an '89 or '99 standard in which the only source representation

>of the null pointer was NULL or nil or some other built-in token

>would have had my approval.

https://groups.google.com/g/comp.std.c/c/fh4xKnWOQuo/m/IAaOe...

cremno··on New C features in GCC 13
It's weird because even the first C standard was influenced by C++: function prototypes and const.
cremno··on YouTubers Will Enter Politics
People just have to look at the politicians and parties he's supporting. For example in the last French presidential election he opposed the pro-capitalist liberal (redundant as liberals are by definition pro-capitalism). I wonder what's his opinion on the Brazil one. A moderate social democrat vs. fascist belonging to a party called the "Social Liberal Party"?

He's not even a good source of information as his 3 hours long videos consist of Wikipedia articles he glanced through and repeating extreme right-wing conspiracies (Cultural Marxism, the terrorist attack at the Unite the Right rally).

(Also the only decent anti-idpol people are Marxists.)

cremno··on Amazon, Berkshire, JPMorgan to Create Healthcare Company
>liberal-communism

What's next? Anarcho-Capitalism?

cremno··on I think I found a Mac kernel bug?
https://jvns.ca/blog/2014/12/28/programming-doesnt-belong-to...
cremno··on Microsoft: Haswell and older CPUs are slowed down significantly by Spectre fixes
It's also kinda ironic because improved performance was the reason behind that decision.
cremno··on How the U.K. Prosecuted a Student on Terrorism Charges for Downloading a Book
Your snark doesn't make my comment less true.
cremno··on How the U.K. Prosecuted a Student on Terrorism Charges for Downloading a Book
Cultural Marxism isn't real. It's a Neo-Nazi conspiracy theory popularized by a right-wing terrorist. If fascism actually has arrived, you played a part in it. Your views on economic and social policies do too but propertarians like you don't understand fascism and reduce it to authoritarianism.
cremno··on Google shuts YouTube channel implicated in Kremlin political propaganda ops
>discrediting political opponents [...] and inciting racial conflict to sow instability among Americans

Your mass media/ruling class does that too (especially on the political right). And they have much more influence than some largely unknown YT channel allegedly backed by Russia.

cremno··on Leaked document: EU Presidency calls for massive internet filtering
So-called tankies are pretty much irrelevant though.
cremno··on RIP Turkey, 1921 – 2017
I didn't know countries like the USA are majority muslim.
cremno··on U.S. Launches over 50 Missiles at Syrian Military Base
Do you even know what neoliberal means?
cremno··on Mastodon Is Like Twitter Without Nazis, So Why Are We Not Using It?
Where does the article say that? The US president is mentioned because there seem to be people tired of hearing about him and to be honest, US politics are really toxic - even without him.
cremno··on 2038: Only 21 years away
>They could have made it unsigned instead of signed

C actually didn't have unsigned integer types in the beginning. They were added many years later and also not at the same time. For example, the Unix V7 C compiler only had "unsigned int".

cremno··on Type Punning Functions in C
>Fortunately, in the amd64 Windows world, there's only one calling convention.

Not anymore: https://blogs.msdn.microsoft.com/vcblog/2013/07/11/introduci...

cremno··on Memory management in C programs (2014)
>1 +

That's unnecessary. But then again I can't really blame them. It isn't always clear when you have to do that. Also a previous version might have used strlen() instead of sizeof.

cremno··on Pokewalk
HTTPS Everywhere? Disable the Wix static.com ruleset.
cremno··on Reviewing Microsoft's Automatic Insertion of Telemetry into C++ Binaries
>new news

The linked comment was posted 29 days ago. That's not really new but then again some people might not be aware of it or the whole thing.

cremno··on Reviewing Microsoft's Automatic Insertion of Telemetry into C++ Binaries
Or https://news.ycombinator.com/item?id=11652077
cremno··on The surprising cleverness of modern compilers
>Please don't bait other users by inviting them to downvote you or announce that you expect to get downvoted.

https://news.ycombinator.com/newsguidelines.html

cremno··on Ways C compilers break for objects larger than PTRDIFF_MAX bytes
That's not true. Hexadecimals integer constants without suffix may have a signed type but they also may have an unsigned one. For example, 0x81000000 usually has type unsigned int.

http://port70.net/~nsz/c/c11/n1570.html#6.4.4.1p5

cremno··on Code Page 437 Refuses to Die
What is broken? Have you reported it? I've reported a related bug this week (File.truncate called CreateFileA() with a UTF-8 string). I even had a working patch but forgot to attach it. Anyway it was almost immediately fixed including various additional tests for other File class methods (which handled Unicode without any problems).
cremno··on Phrack 69 released
blueintegral is correct:

https://twitter.com/travisgoodspeed/status/69716634385925734...

cremno··on Introducing a new, advanced Visual C++ code optimizer
Since VS2013 some useful and popular C99 language features are supported. And then there's Clang/C2 but it can't be used via command-line yet.

Their standard library (besides being intentionally not fully compliant) is missing some C11 features though. I guess we have to wait at least for C++17:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p006...

cremno··on Warn HN: stacks made executable on GNU by mere presence of assembly code
Only on x86 though.
cremno··on Windows Subsystem for Linux Architectural Overview
Have you stopped lxssmanager?

https://msdn.microsoft.com/en-us/commandline/wsl/faq#how-do-...

cremno··on Google will warn users when sites contain social engineering ads
That article ends with a link to https://wiki.mozilla.org/Security/Features/Application_Reput... which contains:

>These lookups are Windows-only, because we rely on signature information in order to suppress remote lookups and signature APIs are only available on Windows. If the binary is unsigned or its signature does not match a known good publisher and the filename ends in a known executable extension, Firefox sends a remote lookup to the application reputation service.

This is more precise than your post including the quote.

Page 1 of 7Next →