An unofficial, read-only Hacker News reader.

2035 came early (opens external site)

1037 points by setheron 5 days ago | fzakaria.com | 382 comments on HN

View full thread · View on Hacker News

Comment thread (17)

  1. It’s become okay in the past few years after two decades of absolutely Herculean effort of the whole industry and some particularly dedicated individuals.

    The foundation is still abysmal, but it doesn’t hurt because you don’t have to look at it anymore or you can use modern facilities instead. Note the striking similarity to what LLMs give you, it’s the same thing on a higher level.

    Replies (4)
    1. I don't disagree on this; I transitioned from a backend heavy role rendering ASP.NET Razor templates to the bold new world of SPAs in the mid to late 2010s, and some things were genuinely baffling like What do you mean the compiler(bundler) generates invalid code? What do you mean the bundler is unfixably broken, and I should use a different one? Oh, that's unfixable as well?

      That framework churn, leftpad, etc. stuff I think is something the JS community will gladly memoryhole. Thankfully, I was rightly repelled by that mess, and fled back to backend, and returned only when things calmed down.

      Btw, the pre-SPA era of jQuery is an interesting paradigm, while writing modern TS feels like writing basically any other language.

      Replies (1)
      1. The pre-SPA jQuery era was kind of incredible. We were doing such crazy stuff, just seeing what would stick. That was an exciting time. What are the limits of what the browser offers us? How far can we push this poor little language? Some genuinely great things shook out of that mess. It was a lot of fun. A great time to be learning. It showed that a lot was possible with limited tooling, platform limitations, a poorly-designed language and runtime, and some enthusiasm.
    2. though on second consideration, there was something that was AWFUL about JS in that era - the total confusion about the state of the art. I was getting constantly bombarded with articles about how JS is the future of engineering, how the biggest companies have already transitioned to this or that framework and that is the future.

      When learning something new, there's a transitionary era, where you just don't get it, but assume the experts do, and eventually you will as well.

      That is unless you're talking about something like quantum mechanics, where not getting it is the sign that you're not smart enough.

      And I didn't get it, and I constantly assumed I was two tutorials away from eureka. But no. I suspected that maybe the people dispensing wisdom and confidently decrying how their stuff is better might have been wrong, I thought it was just hubris and hunkered down, and eventually gave up, assuming I can't keep up with the state of the art anymore.

      The turning point came when I encountered a bundler bug in a fairly reputable library, and delved into its source - I expected to find some reasonable compiler stuff in there - tokenizing, parsing etc. etc. but what I found was a bunch of regexes and string replacements.

      At that point I had evidence that to at least some degree, the patients were running the madhouse, and while VB6 might be deeply unsexy, I highly doubt it's compiler ever featured gems like this (PHPs might have)

      Replies (1)
      1. This is exactly how many feel about LLM-assisted coding though.

        Every couple months a new model comes out and wows everyone, and suddenly everyone is somehow getting an even greater productivity boost. We were already at 10x in GPT 3.5 days, we must be up to something like 50x now, I guess.

        Except somehow, every day these models still write the same awful code, make the same mistakes, and apologize profusely when you call them out on the dumbest of errors. I saw Claude delete the project’s README by accident the other day and happily commit the change. Is this the ASI we’ve been waiting for?

        But no, I’m just holding it wrong. Just one more model bro, one more data center. A different harness, perhaps. Just don’t look at the code, bro.

        Only thing I’m getting out of this whole situation is that I should probably move into people management, too. The corporate IC culture is soulcrushing, though I guess it’s always been that way.

        Replies (2)
        1. >Except somehow, every day these models still write the same awful code, make the same mistakes, and apologize profusely when you call them out on the dumbest of errors.

          I don't see how that can be as true for you as it was during gpt3.5 days. It may still happen, but there's no way someone is shipping a full translation of ps5/xbox shaders in the days/weeks we've seen those projects complete in the same timeframe during the 3.5 days. At least not without vastly more tokens/compute/spend.

          The same could be said of humans "Except somehow I still see my direct reports forgetting semi-colons, forgetting to merge, merging to the wrong branch, deleting critical files, submitting with obvious typos...".

          And yet here we are succesfully maintaining both more and more complicated software than we were doing 5 years ago.

          It's the same solution in both cases, from what I've seen. You need solid definitions, architecture, testing, benchmarks, etc to measure your agents against regardless of their natural/synthetic origin. If some are having success managing synthetic agents, then there must be some method by which they are doing so in just the same way that there must be some method to a human succesfully managing human agents.

          You can't prompt your average (or really even field leading) humans with "build a saas try hard make no mistakes" and expect to check in next quarter to find success every time, after all.

          Replies (1)
          1. > succesfully maintaining both more and more complicated software than we were doing 5 years ago.

            I like the specific choice of words in that sentence, isn't that telling? Not "more useful" software, not "better" software.

            "Gee, I want my software to be more complicated" -- said no user ever.

            Replies (1)
            1. You're conflating UI/UX with the underlying software.

              I do in fact want both my security and encryption schemes to be more complicated than ever.

              I also want my look-ahead, search algorithms, caching, compression, load balancing, scheduling, and more to be more complicated than ever so that they are better capable of handling the increasingly complex tasks I demand of them.

              Complicated does not mean difficult in the same way that simplifified does not mean easy.

        2. > We were already at 10x in GPT 3.5 days, we must be up to something like 50x now, I guess. > > Except somehow, every day these models still write the same awful code, make the same mistakes, and apologize profusely when you call them out on the dumbest of errors.

          Well, neither claim is accurate as far as I can see.

          We were not at 10x in GPT 3.5 days AND models do not write the same awful code.

    3. I agree. But I am disappointed that none of the initiatives to put another language in the browser came to fruition (except WASM). Something like Ruby would have been nice.
      Replies (2)
      1. Not even WASM, because the tooling still sucks, and if you need a GC, JavaScript is still better than dealing with WASM GC, a MVP that only suits languages with the same GC semantics as JavaScript.
      2. I think WASM managed to fall between two stools - it couldn't decide whether it wanted to be a high performance runtime analogous to NaCL that allowed you to run code at native speeds, or a generic bytecode language that other languages can target (analogous to Java or .NET bytecode), while having the same access as JS.

        It mananged neither - the runtime is both slower to load, run and is significantly more complex than NaCL ever was, while suffering from lots of limitations, meanwhile WASM code exists separated from the JS runtime. It's high level features like garbage collection, aren't really usable by language runtimes.

        Imo the best thing would be, if you could compile Ruby to a generic bytecode, which has extended features to support dynamic objects. .NET kinda managed this back then, and there were things like IronRuby, which supported a decent subset of real Ruby code, but wasn't really popular afair.

        Replies (2)
        1. > the runtime is both slower to load, run and is significantly more complex than NaCL ever was, while suffering from lots of limitations, meanwhile WASM code exists separated from the JS runtime. It's high level features like garbage collection, aren't really usable by language runtimes.

          Basically everything in this sentence is false. Wasm runtimes are simpler than NaCl, which required an entire LLVM. They start faster, with lazy compilation, interpreters, parallel concurrent compilation, and dynamic tier up. It has fewer limitations than NaCl--it supports SIMD, can access all JS and browser APIs, and didn't require rearchitecting the browser. It's not separated from the JS runtime--all the browser engines use the same compilation, GC, and runtime infrastructure. The high-level features like GC that you mention not being usable from language runtimes are being used by Scala, Kotlin, and OCaml, with more coming.

          I shipped the first versions of Wasm in Chrome, and it's true startup wasn't great. Initially, we compiled all Wasm with the top tier before starting. V8 doesn't do that anymore, nor do any other runtimes. Startup is better, topline performance is better, and integration with JS is better.

          And did I mention that Wasm also runs in lots of other places?

          Replies (1)
          1. > can access all JS and browser APIs

            That's highly misleading.

            The crippling problem with WASM is that all data must be serialized prior to calling a JS library. You can't just call the API directly. It causes massive overhead and performance problems, making a data-intense "pure" WASM application very slow.

            Edit: The problem is very evident if you need to graph 1000s of points. Calling fetch (js-space API) has to translate data to something your WASM language can handle, then after parsing it in WASM there's overhead either for serializing the data into something the JS graphing library can handle, or overhead for passing raw HTML through js-space.

            Replies (1)
            1. It's true that there are plenty of APIs that require JS objects, but for anything that takes an ArrayBuffer, you can get export a Wasm memory that has a .buffer property and then slice it however you like; no copying and no serialization.
        2. I agree: I'm shipping a product built in WASM, and the performance issues and lack of direct browser API access are real limiting factors. Even I wonder if transpiling to JavaScript would be better overall than WASM.
    4. The ugly truth is that it’s difficult to have 40 engineers share 100 cores without fucking things up and process per core languages like Ruby and JavaScript just don’t even try to share processors, beyond a bit of multitasking.

      Getting people not to use global shared state is a struggle in any language, it’s just that it’s the primary one in JavaScript. But it’s not really global so it at least stops certain designs from making it off the whiteboard.

      When I got out of school I was really good at concurrency. Probably a side effect of taking a distributed computing class.

      But over and over again people broke my code, and over time I started making more and more grug brained systems and even declining PRs from engineers that tried to do things that I used to think were fine. If you have code only three engineers understand properly it needs to be locked away behind an API where others are discouraged from touching and don’t need to step through for every bug they work on. The latter is particularly tricky to pull off. The alternative is use a less sophisticated solution.