News for hackers. Stuff that matters.
Re:XARs: An efficient system for self-contained executables by rgovostes on Friday July 13, 2018 @01:36PM (#17524966)
Probably too late now, but xar already stands for "eXtensible ARchiver" and is a file format used on macOS in some package installers. It's notable for having an embedded XML "table of contents" that describes metadata of the archived files, so new fields can easily be added while maintaining backwards compatibility. (Compared to, say, the zip file format which does not even specify how to store Unix file modes.) https://en.wikipedia.org/wiki/Xar_(archiver)
Re:XARs: An efficient system for self-contained executables by JohnDotAwesome on Friday July 13, 2018 @02:14PM (#17525324)
Names are hard. My name is John. Programmers get really confused when I tell them that. "Did you know there's another programmer named John? You probably should have researched names before you decided to go with that one"
Re:XARs: An efficient system for self-contained executables by kstenerud on Friday July 13, 2018 @02:28PM (#17525469)
Yup, just like with people, name clashes in computers won't cause problems!

    # apt install docker
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      docker
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 12.9 kB of archives.
    After this operation, 45.1 kB of additional disk space will be used.
    Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 docker amd64 1.5-1build1 [12.9 kB]
    Fetched 12.9 kB in 1s (24.9 kB/s)
    Selecting previously unselected package docker.
    (Reading database ... 13860 files and directories currently installed.)
    Preparing to unpack .../docker_1.5-1build1_amd64.deb ...
    Unpacking docker (1.5-1build1) ...
    Setting up docker (1.5-1build1) ...
    root@testing:~# docker
    bash: docker: command not found
Re:XARs: An efficient system for self-contained executables by jwilk on Friday July 13, 2018 @03:42PM (#17526060)
For people who don't understand what happened here:

In Debian ecosystem, "docker" is a system tray application: https://icculus.org/openbox/2/docker/

Docker, the container software, is packaged as "docker.io".

Re:XARs: An efficient system for self-contained executables by dsnuh on Friday July 13, 2018 @04:13PM (#17526293)
Funny story... We had a contractor start named "John Smith" and this guy just could not get on the domain, receive email, etc. All his shit was just not working until like a week after his start date.

My team doesn't handle new user creation, and it's a big company, where sometimes other teams may as well be other companies. I kept getting tickets from this guy and he's reporting that none of his stuff works. There's nothing I can do, but I try to help the guy out.

Anyway, a week later his stuff works. I guess whatever team does the new user creation never planned for there to be more than four employees with the same name, and their automation broke on "johnsmith5". Sigh.

Re:XARs: An efficient system for self-contained executables by sillysaurus3 on Friday July 13, 2018 @08:05PM (#17527861)
I'm trying to imagine the architecture that led to this.
Re:XARs: An efficient system for self-contained executables by dsnuh on Friday July 13, 2018 @08:37PM (#17528018)
Trust me, I couldn't imagine it either. My guess is it actually probably broke on the second John Smith that joined, and they had to manually configure all subsequent John Smiths, and they just wait until they get a ticket.
Re:XARs: An efficient system for self-contained executables by elcritch on Friday July 13, 2018 @11:44PM (#17528682)
Alternatively a dev thinks gotta handle user name collisions: "try creating user... hmmm if exists append ‘1’ and repeat with 2..n+1, oh uhhh, better stop after, idk, 5 times (last time my test borked and filled up the database with username ‘(null)’ last time, sigh)". Programmer takes lunch.
Re:XARs: An efficient system for self-contained executables by fooker on Saturday July 14, 2018 @01:31PM (#17531291)
A plain fixed size C array embedded in some data structure somewhere?

Doesn't seem that big a stretch to imagine.

Re:XARs: An efficient system for self-contained executables by dsnuh on Saturday July 14, 2018 @03:17PM (#17531876)
This would be more like Windows batch jobs or Powershell scripts. I honestly think it just cannot handle duplicate names at all, and they wait until they get a complaint. When we were acquired, we had a person on our team receieiving emails for a different user with the same name that previously existed in the company that acquired us.
Re:XARs: An efficient system for self-contained executables by skolemtotem on Friday July 13, 2018 @02:22PM (#17525405)
But look, if I started a company called McDonald's, everyone would be confused and it'd probably be illegal. Complaining on forums about names is the open source community's alternative to trademarks.
Re:XARs: An efficient system for self-contained executables by rgovostes on Friday July 13, 2018 @09:46PM (#17528302)
Yes, if you were living in a world where the bank would only give an account to the first person named "John" to sign up, you should have researched names first. It will be fun dealing with file associations over the .xar extension.

Companies used to coordinate to make sure they didn't conflict on port numbers, Apple used to run a database for ensuring that creator codes were unique, etc. Now one of the biggest tech companies can't be bothered to check if they collide with another large tech company in a sparsely populated namespace.

Re:XARs: An efficient system for self-contained executables by dsr_ on Friday July 13, 2018 @02:21PM (#17525383)
Namespaces can help with that. For example, I note that you aren't just John, you're John Fawcett. And you probably have a middle name (or two, or more).

I bet you've worked somewhere with a collision on John. Did you adopt a handle, like John F, or maybe JohnDotAwesome?

Re:XARs: An efficient system for self-contained executables by JohnDotAwesome on Friday July 13, 2018 @02:28PM (#17525473)
I really wish I did have more than one middle name, both of which starting with `R` (indeed, my middle name does start with R). Maybe then as a J.R.R. Fawcett I could write fantasy novels.
Re:XARs: An efficient system for self-contained executables by 52-6F-62 on Friday July 13, 2018 @03:11PM (#17525801)
Oh I'm one of the lucky ones then. It's funny, I often wish I had fewer names. I swear— very few forms ever allow room for two middle names or two middle initials.

R.R.A. Fairley

But I'm a little more into science fiction

Re:XARs: An efficient system for self-contained executables by dsr_ on Friday July 13, 2018 @03:23PM (#17525902)
Pen-initials are quite common. Iain M. Banks wrote SF; Iain Banks wrote the more mainstream stuff.
Re:XARs: An efficient system for self-contained executables by mindslight on Friday July 13, 2018 @02:20PM (#17525379)
The larger "person's name" namespace includes the first name and last name. And people do generally treat it as a surprise when they find someone with the same name.
Re:XARs: An efficient system for self-contained executables by berti on Saturday July 14, 2018 @12:22AM (#17528812)
Yes, I was really confused by the AppImage comparisons in this thread until I realised this wasn't the XAR I already knew. It's hard to imagine they couldn't have easily checked the name before claiming it. The (Darwin) XAR page on Wikipedia was created in 2006 [1]...

[1] https://en.wikipedia.org/wiki/Xar_(archiver)

Re:XARs: An efficient system for self-contained executables by jwilk on Friday July 13, 2018 @02:18PM (#17525357)
Re:XARs: An efficient system for self-contained executables by fintler on Friday July 13, 2018 @02:22PM (#17525397)
Same thing with Flux and Yarn.