Re:Python, unlike C, has the mod operator always return a po...
by LAC-Tech on Wednesday December 29, 2021 @08:47PM
(#29732566)
There are C99 (and beyond)_ compliant compilers for windows, aren't there?
Why insist on MSVC when it's not one of them?
(Genuine question. I remember python was c89 for similar reasons).
Re:Python, unlike C, has the mod operator always return a po...
by NavinF on Thursday December 30, 2021 @03:04AM
(#29734712)
It’s only recently (as in the last decade) that a drop-in replacement for MSVC’s cl.exe came along that’s ABI compatible and accepts the same CLI arguments: https://clang.llvm.org/docs/MSVCCompatibility.html
Incidentally, that’s around the same time MSVC started getting updates and became bearable.
Re:Python, unlike C, has the mod operator always return a po...
by LAC-Tech on Thursday December 30, 2021 @10:27PM
(#29744549)
I still don't get it.
Why is a drop in replacement for MSVC needed?
There were c99 compilers for windows before clang IIRC correctly. So why weren't they used, MSVC be damned?
Full disclaimer, I've only ever used C in linux systems.
Re:Python, unlike C, has the mod operator always return a po...
by NavinF on Friday December 31, 2021 @07:21AM
(#29747384)
Oh there were lots of other compilers. Hardly anyone used them because they didn't work with any existing tooling and IIRC most of them didn't even let you to link the system's UI libraries due to ABI issues and unsupported __stuff in headers. Sure you could work without tooling like a caveman and you could print text to stdout using only the libc you brought with you, but most programs need to do a bit more than that.
Re:Python, unlike C, has the mod operator always return a po...
by Too on Thursday December 30, 2021 @12:39AM
(#29734000)
MSVC for many years ignored C completely, with the argument that C++ was the successor. Now it seems they turned on their heel with C11 and C17 support added last year, https://devblogs.microsoft.com/cppblog/c11-and-c17-standard-...
Postgres only updated to C99 with PG12
https://www.postgresql.org/docs/11/source-conventions.html https://www.postgresql.org/docs/12/source-conventions.html
Some blame to be had by MSVC, which is called out in PEP7: https://www.python.org/dev/peps/pep-0007/#c-dialect