1. 65
  1.  

  2. 36

    Congrats to waddlesplash, the Haiku project, and all the users!

    1. 23

      Hey, thanks very much!

      1. 3

        Best of luck, man! This is amazing! I can’t wait to see all the cool updates!

      2. 1

        Do you know if Zig has been ported to Haiku yet? I’ve used Haiku on and off for years, and I’ve been getting into Zig recently, so porting it might be fun. Given Zig’s portability, the fact IIRC Haiku uses ELF, and the BYO²S functionality in the stdlib, an initial port would probably be a fun weekend project.

        1. 1

          Yes

          Although I think the work should be audited; I noticed some suspect values the other day. Why would some error codes be negative and others not? I think the contributor who did this did a lot of copy pasting and guesswork.

          Anyway not to complain, but I do think there could be a lot of improvements made to Zig’s Haiku support. Contributors welcome :)

          1. 2

            Why would some error codes be negative and others not?

            The short answer that you are looking for is: indeed, those are incorrect, and all the error codes in Haiku are negative. Actually they are all defined in the same file (/system/develop/headers/os/support/Errors.h).

            The long answer is … there is a wrapper system which allows you to enable some feature flags and link to a static wrapper library to get positive error codes in the case of applications that really, really want error codes to be positive and cannot be easily patched. It is very rarely used these days, and HaikuPorts instead tries to upstream patches to applications that assume error codes are positive, but it does exist. Most applications should not have to think about this at all, though.

            Anyway, please feel free to us Haiku devs on IRC or GitHub to review Haiku-specific things. (I thought I looked at the Zig port before it was merged but I guess I missed that section.) It used to be the case that most projects would just tell us “I don’t really care about Haiku, keep your patches in your own tree;” but that seems to be changing in recent years and now most projects seem to be amenable to accepting patches from us. Rarely, like in the case of Zig, we even get patches done by someone who isn’t a Haiku or HaikuPorts developer! So that is itself an exciting development, even if they get things wrong some of the time.

      3. 16

        N.b. Haiku, Inc. is a US non-profit so donations are tax-deductible for US taxpayers! Please consider setting up a monthly recurring donation, as this style of donation helps small non-profits better gauge runway amid likely grant fundraising efforts and shows an engaged and wanting consumer base.

        https://www.haiku-inc.org/donate