3 ms·
How exactly is GitHub supposed to work if their computers are not allowed to look at your code? Git doesn't work by magic.
by jstanley 3y ago
How exactly is GitHub supposed to work if their computers are not allowed to look at your code? Git doesn't work by magic.
- pavlov 3y agoI guess it hinges on the definition of “looking”. Receiving files, copying them within a file system, and transmitting the contents? Clearly not looking. Computing a hash for each file? Doesn’t seem like looking either. Parsing the contents, or tokenizing them for a ML model? That’s looking IMO. I think the defining factor is the size and nature of the derived state update on the server. Copying and transmitting retains only metadata about the file. Computing a hash produces only a handful of bytes of state about the file, and there’s nothing that can be inferred about the file’s contents from the hash. But if you start storing something like word frequencies, that’s not neutral anymore, it’s a “look” into the contents.
- paxys 3y agoGo to github.com, open your repository and open a file. It shows up on the screen. Is that not "looking"?
- pavlov 3y agoNo, because the server doesn’t update any state based on the transmitted file contents except some metadata like “last viewed”. The state update based on the file contents happens in my brain, and that’s the “look” action.
- eknkc 3y agoThey do code highlighting, search indexing and symbol resolution. I don't know if those can be disabled but they need them to look at the code, update state (indexes and such, maybe caching on highlighting).
- dijit 3y agocode highlighting is done in the client, the infrastructure just serves the content for that particular feature.
- deleted 3y ago[deleted]
- bentlegen 3y agoWhat about parsing and tokenizing the code for code search?
- pavlov 3y agoYes, that’s clearly GitHub looking at the contents. At that point you just have to trust they don’t do anything else with the internal representation they’ve built. When Gmail was introduced two decades ago, there was some short-lived furore about the fact that Google admitted they were reading your emails for ad targeting purposes. To a lot of people like myself, this seemed a bridge too far when you’re used to servers that don’t “look” at your private stuff. But it certainly didn’t hurt Gmail’s adoption. (I still don’t use Gmail because of this original lingering distaste.)
- jvolkman 3y agoThey don't "read" emails for ad targeting anymore (according to them). But they certainly do for search and spam filtering, which are features that users expect.
- einpoklum 3y agoOnce things hinge on the definition of commonly-used verbs and nouns, you've got a problem. And if you don't agree, just remember that my claim hinges on the definition of the words "you", "definition", "got" and "a".
- pavlov 3y agoThe problem is GitHub’s if they’re the ones accessing copyrighted content under poorly defined terms.
- croes 3y agoSame way a postman delivers a postcard.
- jstanley 3y agoBy carefully reading the entire thing and storing a list of deltas from some other postcard when it would help compress it better?
- can16358p 3y agoPostman doesn't need to show, potentially scan, and parse the contents of some text while displaying on a website. Not really analogous.
- Joker_vD 3y agoA postcard is not a letter; its contents are written in the open, right near to the postal address, and are fully visible to the postman. I imagine that's why the OP chose specifically a postcard for his example.
- croes 3y agoExactly. You expect him to read the address not the content. Maybe you don't mind if he reads the content sometimes but if he reads every postcard every time you would be pissed.
- NoZebra120vClip 3y agoYou'd be surprised at what the United States Postal Service does with all flat paper mail, then! https://www.usps.com/manage/informed-delivery.htm https://www.usps.com/manage/informed-delivery.htm
- jameshart 3y agoPostman doesn’t provide tools to diff your postcards, search them, scan their content for security issues, or automatically take actions based on the contents of your postcards. GitHub does all those things with your commits.
- ChatGTP 3y agoIt's the sharing with partners bit that I don't like. If I want that to happen, I should be able to explicitly grant permissions.