[-] FizzyOrange@programming.dev 9 points 4 months ago

Unlikely, you'd do packet processing in hardware, either through some kind of peripheral or if you're using RISC-V you could add custom instructions.

[-] FizzyOrange@programming.dev 9 points 5 months ago

I just use Rust for this. You can make the binaries fairly small if you put a bit of effort in. Plus it's not a niche language, and you get the benefit of a huge community. And your code is pretty much fast by default.

The only real downside is the compilation time, which is a lot better than it used to be but still isn't great.

[-] FizzyOrange@programming.dev 9 points 5 months ago

I dunno I would say Lisp syntax is probably the worst option. Or APL style.

[-] FizzyOrange@programming.dev 9 points 6 months ago* (last edited 6 months ago)

Yeah it actually is fairly common to have the high word first because humans unfortunately picked the wrong endianness, and integers are written in big endian.

E.g. what value would you expect from u16x2_to_u32(0x1122, 0x3344)? If you said 0x11223344...

Still, the rant is stupid because all that needs to happen is to fix the name.

Honestly it's really surprising that the kernel doesn't already have a library of reliably but manipulation functions for common stuff like this.

[-] FizzyOrange@programming.dev 9 points 8 months ago* (last edited 8 months ago)

Assembly is very simple (at least RISC-V assembly is which I mostly work with) but also very tedious to read. It doesn't help that the people who choose the instruction mnemonics have extremely poor taste - e.g. lb, lh, lw, ld instead of load8, load16, load32, load64. Or j instead of jump. Who needs to save characters that much?

The over-abbreviation is some kind of weird flaw that hardware guys all have. I wondered if it comes from labelling pins on PCB silkscreens (MISO, CLK etc)... Or maybe they just have bad taste.

I once worked on a chip that had nested acronyms.

[-] FizzyOrange@programming.dev 9 points 8 months ago

Still better than Device Tree though right?

[-] FizzyOrange@programming.dev 9 points 10 months ago

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!

[-] FizzyOrange@programming.dev 9 points 10 months ago

Ah yes phpBB those were the days. Wait, no they weren't. They sucked. Old forum software was one of the worst computing experiences I remember.

Want to download a custom Android ROM? Hope you like reading through this 120 page thread one page at a time. Oh and each message will be surrounded by a metric mile of profile pictures and signature.

RSS was pretty great though, I'll give you that.

[-] FizzyOrange@programming.dev 9 points 1 year ago

I assume he meant Linux on x86 laptops, where I can confirm battery life is atrocious and support for random display things is also pretty bad. My laptop still wont do more than 30 Hz over HDMI (works fine with DisplayPort though).

[-] FizzyOrange@programming.dev 9 points 1 year ago

Oh yeah I can't read 😄

I would be extremely surprised if any compiler was smart enough to short circuit that.

I would be a little less surprised if checking the whole string was actually faster anyway though... but I would still bet against it.

[-] FizzyOrange@programming.dev 9 points 2 years ago

I'm not sure hardware-based full disk encryption counts as a "highly specialized requirement". It's enabled by default on Android, iOS, Mac and even Windows usually. It's a basic requirement for businesses.

[-] FizzyOrange@programming.dev 9 points 2 years ago

Yes. For the project I work on pip install takes about 60 seconds and replacing it with uv reduces that to about 7 seconds. That's a very significant improvement. Much less annoying interactively and in CI we do this multiple times so it saves a significant chunk of time.

view more: ‹ prev next ›

FizzyOrange

joined 2 years ago