1. 54
  1.  

  2. 19

    I ran across a pretty interesting talk about zig here.

    Note: I got a good laugh at the end of the talk where he said he made tabs in the source a hard compile error. Well played Andrew. ;)

    1. 9

      I personally loved the whole “Ya I know saying Zig is faster than C is a big statement since programming language performance is measured as a fraction of C, but I’m telling you it’s an improper fraction”

      1. 1

        Agreed. It was a good presentation – there were a few memorable moments like that.

    2. 5

      What I don’t really understand is how Andrew has a comfortable standard of living in NYC on $600 per/month.

      https://www.patreon.com/andrewrk/overview

      I’m guessing that there must be another source of Zig donations aside from Patreon?

      1. 7

        Savings?

        1. 2

          Oh woops, I misread the first paragraph, I thought it stated that Zig was supporting him entirely, when it’s actually about his programming supporting him.

          1. 3

            Note that this isn’t his first attempt at doing this. But the project he was working on before Genesis didn’t find the same traction as Zig has. BUT, if I recall correctly, he also didn’t live in NYC the last time… Anyway, he’s got experience with living frugally, so I’m sure he knows what he’s doing here.

            1. 2

              he extrapolated the donations growth versus his savings.

          2. 2

            What I don’t understand is if you are not working in NYC anymore, and only working on your own and getting donation, why doesn’t he move to anywhere but NYC to minimise his personal expense?

            I’m sure there are cities in the US with 80% the fun of NYC at lower than 80% of the cost.

            1. 17

              I work remote, and there are places I could move that are < 20% of the cost.

              My friends aren’t going to move with me, and I have enough money to live where I am. Why be wealthy and lonely?

              1. -10

                Didn’t know your city is the only source of friends in the world. That must be good for the economy.

                1. 32

                  I know that this is very hard for some people to believe (seems to be harder the more western the society is), but some people don’t consider their friends a replaceable commodity. Not that I don’t want to make new friends, but these are my friends right now and I am more loyal to them than I am to a meaningless job or to money.

                  1. 4

                    Maybe because your partner has a job he/she really enjoys in this city? I mean, we’re lucky in our field to have a lot of different possibilities, in remote or not, mostly well paid. Let’s not forget that it’s a chance and not something everybody has.

                2. 2

                  The usual reason is the significant other.

                  1. 1

                    There’s a shit-ton of them. Even Memphis TN that’s close to me with all its problems is low cost of living with all kinds of fun stuff to do. Just don’t live in or shop around the hood. Solves most of problems if you don’t have kids going to school or college.

                    There’s plenty of cities in the US that similarly have low cost of living with plenty going on. One can also live in areas 30-40 min from cities to substantially reduce their rent. The fun stuff still isn’t that far away. The slight inconvenience just knocks quite a bit off the price.

                    1. 4

                      I don’t remember the details, and I can’t find the link, but a few years ago someone did some research here in Berlin where they compared the cost of rent in more-or-less the city proper, and the cost of rent + public transportation tickets when you lived in the outskirts. It ended up being not much of a difference.

                      1. 2

                        Well, if you don’t workin in the city and need to commute then you spend even less. Though OTOH, you get tax returns for commutes in Germany so probably the commute is not that expensive to begin with.

                        1. 2

                          Berlin is currently the city with the highest increase in rent world-wide and a few years ago, it was unusually low.

                          Also, Berlin is hard to compare in many aspects, possibly because of a very unique city history.

                  2. 5

                    Zig is great, and you mob should all pitch in a few bucks a month to help get it to production-readyness :D

                    1. 13

                      This community has people who know compilers, type systems, optimizing C, parallelization, concurrency, test generators, IDE’s, technical writing, and language marketing. Just to name a few things relevant to a PL implementation. Probably better for Zig if they donated brains and time instead of money. ;)

                      1. 7

                        I contributed non-working 32-bit port. :) As far as I know the first attempt to port Zig at all.

                      2. 2

                        One question I had about Zig that I can’t seem to find an answer to in an admittedly cursory look is what does it have for multithreading / parallel processing? I won’t look at a new language that doesn’t have thread support builtin.

                        1. 5

                          this is in process, see https://github.com/ziglang/zig/issues/174 for an overview and links to relevant issues.

                          Coroutines have already landed on master: https://github.com/ziglang/zig/issues/727

                          1. 2

                            I won’t look at a new language that doesn’t have thread support builtin.

                            Funnily enough, I’d say that I wouldn’t get excited at a new language that does have thread support builtin.

                            My reasoning is that the operating system should be enough for scheduling.

                            Now, I know I’m probably biased by my work on Jehanne’s kernel and the Plan 9 style, so I’m sincerely curious about your opinion.

                            Why do you want more schedulers to integrate instead of using just the OS one?

                            1. 1

                              Threads are OS-scheduled too; they’re a kernel-provided parallelism API on both POSIXey systems and Windows. Maybe you’re thinking of green threads or threadlets or whatever?

                              1. 1

                                Maybe you’re thinking of green threads…

                                I thought @jdarnold was talking about green threads, coroutines, and other similar techniques that are usually provided by language specific virtual machines.

                                Pthreads are not language specific: they are a C api that any language could wrap, but not something that requires particular support from the language.

                              2. 1

                                Because threads are necessary for modern programming. If you want to take advantage of processor and OS level threading, how can you do it if the language doesn’t have some way of taking advantage of it? I’ve spent far too much time trying to figure out all the various ugly threading problems in other languages and I think the language should “just do it” for me.