[–] -2 points 10 months ago

Everyone is talking past each other because there are so many different ways of using AI and so many things you can use it for. It works ok for some, it fails miserably for others.

Lots of people only see one half of that and conclude "it's shit" or "it's amazing" based on an incomplete picture.

The devs you respect probably aren't working on crud apps and landing pages and little hacky Python scripts. They're probably writing compilers and game engines or whatever. So of course it isn't as useful for them.

That doesn't mean it doesn't work for people mocking up a website or whatever.

  • source
  • parent
  • context
  • [–] 5 points 10 months ago (1 child)

    Yeah... I mean they should have just copied whatever video conferencing platforms do because they all work fine behind corporate proxies and they also don't suffer from this "increasing delay" problem.

    I haven't actually looked into what they do but presumably it's something like webrtc with a fallback to HLS with closed loop feedback about the delay.

    Though in fairness it doesn't sound like "watching an AI agent" is the most critical thing and mjpeg is surprisingly decent.

  • source
  • [–] 6 points 10 months ago (1 child)

    That is not actually a "data race". It is a race condition for sure, but a data race is a very specific thing - where two threads access the same location at the same time and at least one is a write.

    That could be unsafe in Rust because it might lead to reading "impossible values" like an enum that isn't equal to any of its variants. Therefore safe Rust must prevent it or there's a soundness hole.

  • source
  • parent
  • context
  • [–] 19 points 10 months ago (4 children)

    Doesn't say anything you didn't already know. Probably written with AI.

    Also the conclusion is wrong:

    Neither approach is universally superior.

    The Rust approach is obviously superior.

  • source
  • [–] 1 point 10 months ago

    Squarespace is very different to Wordpress.

    But also you didn't really specify how serious this site is. Is it meant to be a proper business or just someone's personal site? For the latter Squarespace would be fine. E.g.

    As for maintainability, it depends on whether the customer wants to pay you again every time they need to modify things. Many wouldn't want to.

  • source
  • parent
  • context
  • [–] 3 points 10 months ago (6 children)

    Building from scratch, I'd use Fresh. It has two things I've always wanted but not seen elsewhere:

    1. You can use TSX for components. Clearly the right way to build a webpage.
    2. You can do everything server-side. Most sites barely need anything client-side and it's just easier and better to do things server-side where you can.

    Impossible to say how much you could charge for that without way more details. Tbh there are a ton of off-the-shelf solutions like Wordpress that can do that already so probably not very much at all.

  • source
  • [–] 3 points 11 months ago

    it has modules for everything

    Not everything. PyYAML, Pydantic and Typer are things I commonly want in scripts that aren't in the standard library.

    Simply do pip install anything. But best practice is to use a python virtual environment and install packages into that one.

    It's more than "best practice". It's mandatory on many recent Linux distros. And yeah setting up a venv and installing dependencies is not something you want to have to do for each script you run.

    Its one of the slowest to write code in.

    It depends what your goal is. If you want robust code that works reliably then I would say Rust has the edge still. Yes it will take longer to write but you'll spend way less time debugging it and writing tests.

  • source
  • parent
  • context
  • view more: ‹ prev next ›