Linuxulator on FreeBSD Feels Like Magic

(hayzam.com)

35 points | by vermaden 2 hours ago

4 comments

  • wolvoleo 2 hours ago
    I really don't like using projects like linuxulator or the linux compatibility layer (are those different?). I'm running FreeBSD because I prefer it over Linux. I don't want to make it like Linux. If we give in to that we'll end up importing more and more linuxisms and in the end everything will require those.

    Bedides, the FreeBSD port of codium works fine and with a few setting changes you can install even the proprietary extensions like the Remote SSH.

    There's a few tools I don't use because they don't have a FreeBSD port. I've asked the developers and they were like 'just use the compatibility layer'. But nope, then I'll just pick something else.

    Right now I have nothing using the Linux compatibility layer at all which is great.

    • vermaden 2 hours ago

          > (are those different?)
      
      Its the same thing - just different naming.

          > I'm running FreeBSD because I prefer it over Linux.
      
      Me too but there are things that will not be ported (at least soon) anyway ... that is where Linux Compat Layer helps. Even simple watching movies with DRM bullshit (Widevine) or using a Brave browser that is not in the FreeBSD Ports ... or running Linux games ... or CUDA workaround ... and no NopeVidia will not provide official CUDA support anytime soon.

      Also please remember that entire The Matrix (1999) movie was rendered [1] on FreeBSD machines in Linux Compat Layer because the software used to do that was not natively available on FreeBSD an yet it sill run faster on FreeBSD in Linux Compat Layer then natively on Linux. Let that sink in.

      Even today [2] playing Linux games in Linux Compat Layer is faster then natively on Linux - with more FPS and more 'stable' gameplay.

      Hope that helps.

      [1] https://freebsd.org/press/press-rel-1/

      [2] https://youtube.com/watch?v=lK6eRbz9DkM

      • jabbywocker 1 hour ago
        In the reference video you posted he literally states that the FreeBSD version was less stable than Linux, that he experienced repeated game crashes in FreeBSD, that frame rates would drop 50% without explanation and that the overall experience was better on Linux than FreeBSD or Windows.

        It should also be noted that it’s also not native on Linux either as he’s using Wine on both Linux and FreeBSD

    • drzaiusx11 2 hours ago
      Do the "linuxisms" inherent in a compatibility shim like linuxlator get exposed to users in day to day application use?

      I figured it'd be more like how proton provides windows APIs on Linux and applications "just work" as per normal.

      I admire your purist approach, but most folks don't have that luxury and just need to make do with what works today for their tooling of choice (or more common, what their employer thrusts upon them.)

      • tomth 1 hour ago
        Compatibility layers can also introduce security bugs. One of the reasons why it was removed from OpenBSD.

        BSD is more for purists anyway. Virtualization seems to be a better option than compatibility layers for the odd program that doesn't work natively.

        Maybe that it's different for Windows API's on Linux, because by virtualizing Windows, you're still dealing with an unfree OS.

    • wutwutwat 2 hours ago
      Leaving a potential solution on the table that could make your own life easier is silly to me. You don't have to use it for everything and you shouldn't worry about some Linux takeover. Id imagine that for user-land desktop environment related stuff there isn't much difference. Gnome on FreeBSD and gnome on Ubuntu can't be doing things that different from one another.
      • wolvoleo 1 hour ago
        Well if I wanted to make my life easier I would just use ubuntu or something. Or even Windows? Because even between Linux distros there's a lot of difference in terms of usability. FreeBSD is not something you can run without investing time to figure things out, you really have to be willing to think different. But that's good for me, I don't like going with the flow, I'm an anti-team player :)

        But by supporting options that have real ports, I stimulate those. By giving in to the easy way I will make that more palatable for developers.

        And Gnome and KDE have native ports. I really hate the opinionated design of Gnome so I don't use it, but I do use KDE. It does have a lot of cool tweaks by the maintainer to make it work properly.

        • wutwutwat 1 hour ago
          I was just saying, is your goal for the os to get out of the way so you can get a job done, or is your job tinkering with your os. I've ran opensense which is a freebsd derivative, and I daily macOS/Darwin which is bsd. Honestly until I need to mess with some systemctl flags I get the same experience from bsd and Linux. Posix and all...
          • wolvoleo 48 minutes ago
            macOS is not BSD. It's a common misunderstanding, it borrows some userland but the kernel is radically different.

            But yeah my OS should get out of the way but I don't mind investing a little time in getting things working right. That includes picking the right tools. I was looking for a notetaking app and one of them was like 'just use the compatibility layer'. I think it was notesnook. I just picked obsidian instead which has a port. Still not ideal as it's electron but pretty much all these notetaking apps seem to be electron somehow. And I needed compatibility with android too.

            If there's something I could really not do without I would consider it but there's nothing like that right now.

            • torstenvl 20 minutes ago
              > macOS is not BSD

              No. This is a common contrarian take, but it's nonsense. macOS is built on Darwin which, along with XNU, traces its lineage through NeXTSTEP to 4.3BSD.

              macOS is every bit as much of a BSD derivative as FreeBSD is.

  • throw0101a 15 minutes ago
    Back in the day I used to run the Linux client of RtCW on FreeBSD with Nvidia drivers:

    * https://en.wikipedia.org/wiki/Return_to_Castle_Wolfenstein

  • jrmg 1 hour ago
    After spending time on Apple’s M1/M2 Macs (coming from a large x86_64 desktop), going back to x86_64 feels like a regression, both in performance and battery life.

    Isn’t it still the case that, for speeds comparable to an Apple system, x86_64 is still more power/performance efficient than basically any other ARM-based system you can buy?

    • throwa356262 27 minutes ago
      In raw power x64 is still the king, has always been.

      You can skew things by looking only at single core performance (where apples most expensive cpus might win because of their strategy of having fewer but more powerful cores + memory latency gains are much more visible with only one core).

      With that said, things are changing in the PC landscape and some extremely powerful and power efficient ARM designs are coming soon. We have already seen a small glimpse of that with MediaTek.

    • swiftcoder 39 minutes ago
      For the most part, yes, which is why he's using a Mac as his daily driver, and ssh'ing into the BSD box
  • kleiba 13 minutes ago
    Cool! Reminds me of how some 18 years ago or so, I was using TRAMP in Emacs to do remote development over ssh. Some things never change, apparently.