• 2 Posts
  • 113 Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle

  • My cousin was raised super religious and sent to religious schools that barely taught anything. When she graduated high school and went to a real college she flamed out hard.

    She couldn’t keep her grades up because she hadn’t been educated well. Flunked out and moved in with a tattoo artist living in a trailer. Got pregnant a year later and decided to keep it.

    Ended up working at a call center to support the baby and her husband who was over 20 years older. He ended up dying in his 50s so she moved back in with the parents.











  • So the basic purpose of a library is to allow code that does some useful thing to be easily used in multiple programs. Like say math functions beyond what is in the language it self or creating network connections.

    When you build a program with multiple source files there are many steps. First each file compiled into an object file. This is machine code but wherever you have calls into other files it just inserted a note that basicly says connect this call to this part of another file. So for example connect this call to SquareRoot function in Math library.

    After that has been done to every file needed then the linker steps in. It grabs all the object files combines them into one big file and then looks for all the notes that say connect this call to that function and replaces them with actual calls to the address where it put that function.

    That is static linking. All the code ends up in a big executable. Simple but it has two big problems. The first is size. Doing it this way means every program that takes the squareroot of something has a copy of the entire math library. This adds up. Second is if there is an error in the math library every program needs to be rebuilt for the fix to apply.

    Enter dynamic linking. With that the linker replaces the note to connect to the SquareRoot function in math library with code that requests the connection be made by the operating system.

    Then when the program is run the OS gets a list of the libraries needed by the program, finds them, copies them into the memory reserved for that program, and connects them. These are .so files on Linux and .dll on Windows.

    Now the os only needs one copy of math.so and if there is a error in the library a update of math.so can fix all the programs that use it.

    For GPL vs LGPL this is an important distinction. The main difference between them is how they treat libraries. (There are other differences and this is not legal advice)

    So if math.so is GPL and your code uses it as a static link or a dynamic link you have to providd a copy of the source code for your entire program with any executable and licence it to them under the GPL.

    With LGPL it’s different. If math.so is staticly linked it acts similar to the GPL. If it’s dynamicly linked you only have to provide the source to build math.so and licences it under LGPL. So you don’t have to give away all your source code but you do have to provide any changes to the math library you made. So if you added a cubeRoot function to the math library you would need to provide that.




  • Pocket. A closed source binary blob in a “open source” project.

    Orbit: AI productivity tool.

    Anonym: Ad server.

    Locking down extensions.

    Cutting 250 jobs while raising executive pay 400%.

    In 2021 the CEO made 5.5 million. They got about 7 million in donations that year.

    80% of their revenue is from google. But google encourages them to waste the money on stuff not related to the browser because it’s competition to chrome. Their job us to look like a viable competitor but not be good one.

    The browser is constantly getting worse on performance, user experience, and customizability.

    They have gone from 34% user share to 2.2%. So clearly I’m not alone in my opinion of the current state of the browser.







  • Us is a big country and when we formed it could take days to get from states to the capitol. Legislators and leaders might be away from home for a year or more and needed to get their home situated.

    So there is a lot of time between elections and assuming office in national positions. Results had to go from state to national, get certified, return the results, get your house in order, travel to DC, hire staff, and arrange housing (if congress).

    It’s also why 200 years ago the electoral college made sense. There wasn’t time to hold runoff elections. These days with fast information and travel it’s a garbage legacy system.