Skip Navigation

User banner
Posts
17
Comments
154
Joined
2 yr. ago

  • Go, Java, and Nim (in most cases) are all memory safe but are generally slower than C or C++ due to the ways they achieve memory safety.

    Rust's memory safety approach is zero-cost performance wise, which makes it practical for low level, high throughput, and low latency applications.

  • That flag exists, it's called unsafe for if you need to tell the borrow checker to trust you or unwrap if you don't want to deal with handling errors on most ADTs.

    You can always cast anything to an unmanaged pointer type and use it in unsafe code.

  • A crash is different to a SEGFAULT. I'd be very surprised to see a safe rust program segfault unless it was actively exploiting a compiler bug.

  • As a compiler developer this speaks to me on a deep level lol

  • Wellington needs more karaoke spots

  •  
        
    const fn = (a, b) => a ?? b
    
      
  • Market shar(ul)e

    Jump
  • They're both free software licences (i.e. you can get the source code for for BSD licenced software and GPL licenced software that you're using at no extra charge and modify it as you please). The GPL licence has an additional restriction for developers that says if you use any GPL code in your codebase, your entire codebase must also be GPL or some other compatible open source licence.

    This means that if I made some code parses a file format and another developer includes that code in their program to support that file format, they're now forced to licence their whole codebase with a similar licence to the GPL. If it was BSD then they would only have to mention that they used my BSD licenced code and include a copy of that licence. A user would then be able to go and see my original code that was used, but not the rest of that application's code or any modifications that the application author made to my code. Because the GPL is too restrictive for most developers here, there's a version of the GPL called the LGPL which is often used for code meant to be used by other programs which is closer to the BSD licence but additionally requires that if they modify your code, they must also share that modified code.

    I usually use a licence in the middle called the MPL (Mozilla Public Licence), which is similar to the LGPL but has a few things I prefer and has the advantage for me of not being connected to the FSF and GNU project.

  • I didn't make the meme, I saw it on twitter and thought it was funny in a self deprecating way.

  • I use all three, although primarily run Linux and macOS.

    I think Apple's hardware offerings have really beaten the competition with their new M-series chips just outperforming everyone else with significantly less energy. You also get the advantage of macOS being a UNIX system, so if you're familiar with Linux, the same principles apply.

    I switched from running Linux on my Surface Pro 3, then Linux on a Dell XPS 15, to a 14" MacBook Pro with the 10-core M1 Pro. I still use Linux on my desktop and love it, but macOS is very similar to Linux and apple's portable hardware beats everyone else by about 3 years or more imo. There are definitely some apple universe quirks but I wouldn't consider anyone else for a laptop for another few generations of competitors attempting to catch up with where apple was in 2021.

  • ARM, but Apple has the most advanced ARM chips and macOS /The AS Platform has the best amd64 to arm64 translation layer.

  • I mean at that point you're basically running macOS 😉

  • I couldn't imagine buying any laptop other than a Mac because the performance to battery life ratio on everything else is awful. Plus if you want a UNIX system, it's an easy buy.

    After owning an Apple ARM laptop I'd never go back to anything else.

  • Manjaro and Antergos are just asking for trouble. If you want Arch, use Arch. Otherwise Ubuntu, Debian, Linux Mint, and Fedora are popular.

    I don't think the full Radeon suite is on Linux but there are tools for screen recording like simple screen recorder and OBS.

    There is lots of 3rd party software available on all of these distros in their respective package managers, but Ubuntu has the advantage with PPAs allowing for more 3rd party repos to be easily added to the package manager.

    HDR support is still very early/basic right now: https://wiki.archlinux.org/title/HDR_monitor_support

  • No wait at all at my place.

  • They line up to the electorate candidates from the same party.

  • Good Girl by Aquilo. It brings up a lot of relatable feelings around growing up Christian and ultimately is quite sweet.

  • The downside is all these greedy landlords make the prices outrageous so nobody can get a deposit on a house. It's easy when you already own one house because you can use it as collateral and also your tenants will pay off your mortgage.

  • No, you pay off their mortgage in exchange for not being homeless. All renting should be rent to buy. No renting without equity in exchange.