News for hackers. Stuff that matters.
Re:The C23 edition of Modern C is now available for free by flohofwoe on Tuesday October 15, 2024 @02:04PM (#41851268)
Funny because for a long time the Microsoft MSVC team explicitly recommended compiling C code with a C++ compiler because they couldn't be arsed to update their C frontend for over two decades (which thankfully has changed now) ;)

https://herbsutter.com/2012/05/03/reader-qa-what-about-vc-an...

Re:The C23 edition of Modern C is now available for free by pjmlp on Tuesday October 15, 2024 @03:52PM (#41852439)
Yeah, 12 years ago, when governments couldn't care less about nation state cyberattacks, and Microsoft was yet to be called by the Congress to testify on their failures.
Re:The C23 edition of Modern C is now available for free by rdtsc on Tuesday October 15, 2024 @02:35PM (#41851659)
That thing always baffled me, this huge company building a professional IDE couldn't figure out how to ship updates to the C compiler.

> it is hard to say no to you, and I’m sorry to say it. But we have to choose a focus, and our focus is to implement (the standard) and innovate (with extensions like everyone but which we also contribute for potential standardization) in C++.

I mean, yeah if it came from a two member team at a startup, sure focus on C++, understandably. But Microsoft, what happened to "Developers! Developers! Developers!"?

Re:The C23 edition of Modern C is now available for free by Jtsummers on Tuesday October 15, 2024 @02:48PM (#41851811)
It's not baffling, it's remarkably consistent. They implemented Java as J++ and made their version incompatible in various ways with the standard so it was harder to port your code away from J++ (and later J#). They implemented things in the CSS spec almost exactly opposite the specification to lock people into IE (the dominant browser, if you have to make your site work with 2+ incompatible systems which will you focus on?). Not supporting C effectively with their tools pushed developers towards their C++ implementation, creating more lock-in opportunities.
Re:The C23 edition of Modern C is now available for free by pjmlp on Tuesday October 15, 2024 @03:54PM (#41852459)
It was on purpose, Microsoft was done with C, the official message was to move on to C++.

The change of heart was the new management, and the whole Microsoft <3 FOSS.

Re:The C23 edition of Modern C is now available for free by rdtsc on Tuesday October 15, 2024 @04:42PM (#41852886)
> It was on purpose, Microsoft was done with C

Indeed, and yet here we are with C23

> The change of heart was the new management, and the whole Microsoft <3 FOSS.

Yeah, agree. To me the turning point was when they created WSL.

Re:The C23 edition of Modern C is now available for free by kragen on Wednesday October 16, 2024 @12:46AM (#41855699)
Microsoft didn't create C23 and they don't <3 FOSS. They're accepting that they have to deal with FOSS, but installing Windows will still make your Linux system unbootable until you fix it with a rescue disk, among numerous other unfriendly things they do.
Re:The C23 edition of Modern C is now available for free by alexvitkov on Wednesday October 16, 2024 @01:36AM (#41855935)
I haven't seen Windows fuck up the EFI partition or delete the other entries in a while now. After installing it the machine will usually boot directly into it, but it should be just a toggle in the firmware to switch back to GRUB.
Re:The C23 edition of Modern C is now available for free by kragen on Wednesday October 16, 2024 @02:07AM (#41856064)
That's an improvement! When did they fix that?
Re:The C23 edition of Modern C is now available for free by chithanh on Wednesday October 16, 2024 @06:02AM (#41857343)
> installing Windows will still make your Linux system unbootable until you fix it with a rescue disk

This is no longer true. On UEFI systems the only thing you have to do normally is fix the boot order. In fact installing Linux first and Windows second tends to be the better dual-boot strategy nowadays.

Fixing the boot order can be done from UEFI setup, and even from Windows command line

  bcdedit /enum firmware
  bcdedit /set {fwbootmgr} displayorder {yourlinuxuuid} /addfirst
(Put single quotes around {} if you use PowerShell instead of CMD.exe)
Re:The C23 edition of Modern C is now available for free by kragen on Wednesday October 16, 2024 @10:18AM (#41859279)
Thank you for the correction and the howto! How long have I been wrong about this?
Re:The C23 edition of Modern C is now available for free by pjmlp on Wednesday October 16, 2024 @03:29AM (#41856495)
Microsoft doesn't take part on WG14, and MSVC only does up to C17 nowadays.
Re:The C23 edition of Modern C is now available for free by AlotOfReading on Tuesday October 15, 2024 @03:03PM (#41851984)
Funnily enough, the intellisense parser does support C syntax because it's using a commercial frontend by edison under the hood. MSVC's frontend doesn't.