• 3 Posts
  • 932 Comments
Joined 2 years ago
cake
Cake day: September 24th, 2023

help-circle

  • Two things:

    1. Desktop requires mature CPUs (large out-of-order designs with high IPC) and there just aren’t really any of those yet. They’re starting to arrive (e.g. XiangShan which is even open source!) but as far as I know there isn’t a single chip available to buy that’s faster than a Raspberry Pi 4.

    2. Microcontrollers can get away with only the basic instruction set (add, multiply, load, store etc.) but for high performance you need a ton of extensions that are considered standard. x86 and ARM have had decades to build them up but in RISC-V a lot of them are only recently ratified (e.g. Vector) or still in the process of being defined.

    I would say we might see cheap Android phones with RISC-V CPUs in maybe 5 years. Though there’s an additional difficulty there in that you need to emulate ARM for games, and I don’t think anyone is working on that.







  • I feel like the best option at the moment is egui. It’s native. Works on the web too. Very easy to get up and running. The things I don’t like about it:

    • I personally think the default style could do with improvement. Mainly it’s way too cramped. There’s a happy middle ground between no padding and bootstrap. I mean Win32/Qt/etc. got this basically right.
    • Immediate mode. Yeah it’s easier, especially with Rust, but … it’s surely not how it’s supposed to work.
    • The low level drawing API (like if you’re making custom widgets) is surprisingly amateur. Not something I’d want to target if I’m spending a lot of time e.g. writing a custom map widget or git graph or something.

    I also tried Slint. Like the author I think the license is pretty reasonable. But it is pretty involved to set up a project and since it compiles everything from source it can take a very long time for a clean build of hello world. It’s like if you were using Qt but instead of a binary package the sources are just included in your app.

    Also I have bad experiences from QML (Javascript 🤮, weird scoping rules, etc.) but hopefully they learnt from their experience.

    Looking forward to the 2030 edition anyway!











  • No not in the same way Tony Stark did. But Tony Stark is imaginary. Obviously nobody can build an electric car or a rocket in the same way that Tony Stark does.

    Of all the criticisms of Musk this is the weakest. There are many way more valid ones… for instance:

    • He’s an arsehole.
    • He straight up called that diver a paedo, and even paid a scammer to investigate him.
    • The scummy lottery thing for votes for Trump. I don’t care if it ends up being technically legal, it’s clearly immoral.
    • Selling the promise of FSD for hard cash when it clearly is never going to happen as he claimed. I still don’t know why there’s been no class action suit over that.
    • Backing proper insane far right groups in Europe. These people are worse than Trump. I wouldn’t say he is backing neonazis, but he’s certainly in the vicinity.

    Despite all that he clearly has a pretty good handle on engineering and is definitely involved. He’s not just a figurehead.

    I know right, people are multidimensional. You can downvote if that blows your mind.


  • Be thankful we got Javascript. We might have had TCL! 😱

    Interesting footnote: the founding of Netscape occurred at the same time I was deciding where to go in industry when I left Berkeley in 1994. Jim Clarke and Marc Andreessen approached me about the possibility of my joining Netscape as a founder, but I eventually decided against it (they hadn’t yet decided to do Web stuff when I talked with them). This is one of the biggest “what if” moments of my career. If I had gone to Netscape, I think there’s a good chance that Tcl would have become the browser language instead of JavaScript and the world would be a different place! However, in retrospect I’m not sure that Tcl would actually be a better language for the Web than JavaScript, so maybe the right thing happened.

    Definitely dodged a bullet there. Although on the other hand if it had been TCL there’s pretty much zero chance people would have tolerated it like they have with Javascript so it might have been replaced with something better than both. Who knows…