• 0 Posts
  • 22 Comments
Joined 1 year ago
cake
Cake day: August 8th, 2023

help-circle





  • To repeat the other person’s point a bit, what you’re describing sounds very much like LLVM, and other IR languages.

    IRs exist to allow a variety of programming languages to be specified in a way that doesn’t require direct compilation of that language to asm. This means the IR has to support some representation of the superset of all those languages’ features.

    So I guess your question could be interpreted as: why don’t we just use an IR to write code? Mostly because they require you to forego many of the modern conveniences of modern programming languages. The whole point of going higher level and more opinionated in language choice is to allow you to turn designs into code faster than you can with lower level representations.

    I don’t entirely follow what you’re trying to achieve with the plugins idea but it very much sounds like a combination of ideas that are found in LLVM combined with features from modern workbench IDEs. You might want to read about the architecture of Eclipse.

    Eclipse was a popular development “workbench” that allowed you to plug in various tools at every level and stage of development and configure them to your taste, as well as allowing you to build your own plugins to work with languages in a bespoke way.

    https://www.eclipse.org/articles/Article-Plug-in-architecture/plugin_architecture.html









  • The code that I suggest is too verbose. It involves too much typing.

    This seems to be the whole premise and it’s obvious that one does not follow from the other.

    Overly verbose code is code that can be expressed more minimally for some benefit. I can’t think why anyone would argue that one of those benefits is less typing.

    The author can solve this easily though: ask them why verbosity is an issue. Then they will know the answer and won’t have to presume something as tenuous as “amount of time spent typing”.






  • This doesn’t meet your criteria for not phoning home, but still worth sharing: I use Logitech Harmony Hub and find the experience of using it with Hass to be excellent.

    Harmony is really good at onboarding devices and has a huge library of supported devices, but the interface for using them is awful. Hass makes it much easier to build simple multi-device remotes, and to create nice automations. (Harmony’s version of this is utterly useless)

    You also get a nice physical remote to use with it too, which I’m personally not interested in but the less technical members of my family love it.

    Worth considering I think. You can always block the phoning home using Pi-hole, as I have.