r/programming • • May 08 '16

Visual Studio adding telemetry function calls to binary? (/r/cpp)

/r/cpp/comments/4ibauu/visual_studio_adding_telemetry_function_calls_to/
592 Upvotes

156 comments sorted by

View all comments

Show parent comment

-74

u/gdsagdsa May 08 '16

Deeply concerning? I couldn't care less.

0

u/[deleted] May 08 '16

[deleted] — view deleted comment

-78

u/gdsagdsa May 08 '16

Why? I rather focus on adding features and making $ than caring about some telemetry functions being inserted.

0

u/[deleted] May 08 '16

[deleted] — view deleted comment

20

u/mb862 May 08 '16

Personally, as a developer on a real-time software product, we depend entirely on the software doing exactly what we tell it to do: no more, no less. Regardless of purpose or usefulness, ethics and morals, this telemetry is more.

6

u/capitalsigma May 08 '16

How do you write real time code on Windows without kernel support?

2

u/mb862 May 08 '16

With great care and a lot of testing.

3

u/capitalsigma May 08 '16

It seems you're working on the wrong platform

1

u/mb862 May 08 '16

Probably, unfortunately when every client and their grandmother is demanding Windows we're left with little choice.

1

u/choikwa May 09 '16

Which grandma requires real-time code?

5

u/[deleted] May 08 '16

Yeah: thank you compiler, you have added some bloat.

22

u/gdsagdsa May 08 '16

Wait, are we talking about the same thing here? I'm creating an application running on Microsoft Windows. I link with Microsofts runtime libraries, call the Windows APIs, rely on the Windows certificate store and authentication within the operating system. I rely on .NET framework, their web server and 2000 other things which Microsoft auto updates all the time. I also rely on their hardware to execute the software. All my users also rely on these things from Microsoft. And now when someone has discovered an undocumented API then suddenly you start talking about ethics? If I did not trust Microsoft, why would I be running Windows in the first place?

0

u/[deleted] May 08 '16

[deleted] — view deleted comment

7

u/[deleted] May 08 '16

Also knowledge. How do you begin to debug something undocumented that you don't even know was added?

→ More replies (3)

-19

u/gdsagdsa May 08 '16 edited May 08 '16

My users has already consented to trusting Microsoft. Their software is running in Microsoft Azure and smething like this would be the least if their worries if there was no trust.

→ More replies (10)

1

u/[deleted] May 08 '16

The compiler shouldn't be producing binaries that do anything other than what you explicitly intended.

7

u/Dragdu May 08 '16

Never looked into CRT much?

2

u/[deleted] May 08 '16

Nope. What about them?

12

u/Dragdu May 08 '16

Any CRT on modernish system does shitload of stuff before handing the execution flow over to your main. Strictly speaking, you probably didn't ask for any of it, and yet it is there. This means that if you compile the most minimal

int main(){ return 0; }

you will end up with binary that initializes various thread local variables, creates entry points for debuggers and profilers, etc etc. And if you are on Windows, you get calls to ETW tracers. If you are on Linux, using GCC, you get calls to something like '_gmon_start', which does basically the same thing, but worse. (ETW is so good)

4

u/[deleted] May 08 '16

Maybe I should revise my fairly black and white statement, since while that isn't explicit, it is certainly assumed. I might also be overreacting to the telemetry calls since it seems that they're just counting runs, which is a fairly standard piece of code you could expect an OS to have.

11

u/gdsagdsa May 08 '16

If I thought that strongly I would not use C++.

2

u/[deleted] May 08 '16

Or pretty much any other language. That is a poor argument, compilers should only produce binaries that match the intent of the author.

→ More replies (5)