Skip Navigation
On "Safe" C++ • Izzy Muerte
  • Reading time 105 minutes...

    And worth every second!

    I decided to have another go at learning C++ given all the recent work that I had heard about regarding memory safety and support for functional programming. This gives me a lot less confidence that my efforts will be worth it in the long run.

    Time to check out rust I guess 🤷.

  • Starmer condemns Badenoch for abandoning cross-party consensus on climate crisis policy
  • But we could (and, given our history, should) be leaders. Even from a selfish perspective, there will be a huge demand for green technologies in the future, and we should be positioning ourselves to provide them.

  • Can't wait to go back after I get a better PC
  • Unless, you know, they enjoy doing that

  • Mason Alternative for Emacs?
  • To add some more context:

    Eglot is part of Emacs now, so it comes preinstalled. It's good at finding lsp servers, but won't help you to install them. Definitely the option if you want to keep things simple and can live with the need to manually install servers. (Also a quick note, the hook you should use to auto activate eglot is eglot-ensure, rather than just eglot.

  • Bitwarden Desktop version 2024.10.0 is no longer free software
  • I can't imagine that's any more free than bitwarden?

  • The empire of C++ strikes back with Safe C++ proposal
  • The big downside is that, for backwards compatibility, the default must still be unsafe code. Ideally this could be toggled with a compiler flag, rather than having to wrap most code in "safe" blocks (like rust, but backwards).

    One potential upside that people don't seem to be discussing is that the safe subset could also be the place to finally start cutting down the bloat of C++. We could encourage most developers to write exclusively in the safe subset, and aim to make that the "much smaller and cleaner language" trying to get out of C++.

  • Man faces legal action by Northern over £1.90 rail ticket error
  • This is for trains... My guess is that it's for 20-30 year olds that commute by rail

  • Steam Survey for September 2024 - Linux 1.87%
  • Obviously there's a lot of caveats about how representative this survey (or any other survey) is of the broader population, but I think this is a good reminder of how weird we all are. Nobody on here claims to use Ubuntu or Manjaro, yet they are more popular than Fedora (and potentially even arch, when steam decks are discounted).

    There's nothing wrong with that, I love the weirdness of the Lemmy Linux community! I just always think it's good to appreciate when opinions (like my love of ublue) aren't as popular as you think they are.

  • New rail line needed between Midlands and northern England, study says
  • I thought the route still hadn't been finalised for the northern leg of HS2. Also high speed means you're less flexible, as you need to go in a straighter line than normal rail.

    I agree that it seems unlikely that the extra effort to complete the northern leg of HS2 would be greater than that of starting from scratch, but I've been surprised before.

  • Ambulances called to Amazon’s UK warehouses 1,400 times in five years
  • Thanks, for computing some useful statistics! As much as I believe the implied hypothesis that working at Amazon is bad for one's health, I think the guardian intentionally tried to present the largest number possible with no context.

    Frankly, "Amazon warehouse employees 10x more likely to need an ambulance" is a more impactful headline anyway.

  • How is RISC-V better than arm for Linux?
  • Please somebody correct me if I'm wrong, but I really don't find the "chip makers don't have to pay licence fees" a compelling argument that RISC-V is good for the consumer. Theres only a few foundries capable of making CPUs, and the desktop market seems incredibly hard to break into.

    I imagine it's likely that the cost of ISA licencing isn't what's holding back competition in the CPU space, but rather its a good old fashioned duopoly combined with a generally high cost of entry.

    Of course, more options is better IMO, and the Linux community's focus on FOSS should make hopping architectures much easier than on Windows or MacOS. But I'd be surprised if we see a laptop/desktop CPU based on RISC-V competing with current options anytime soon.

  • Rachel ‘Freeze’ Reeves has claimed £1000s in energy bills on second home
  • Am I right in thinking that the article's main complaint, namely that the means testing excludes those too poor to retire, is wrong? You can still claim pension credit if you're on a low income.

  • Amazon workers narrowly reject union in historic vote
  • We have bad/corrupt governments sometimes, that doesn't mean we should get rid of governments. (Though maybe the libertarian Fraser institute might disagree with me there.)

  • Anti-monarchy Labour MP has to retake oath after omitting part of it as protest
  • Firstly, I reckon it’s debatable whether having an active monarchy is a net gain financially (how much could we charge for admission to Buckingham Palace?).

    But, for me at least, it's simply a matter of principle. I believe we are all born equal, and that nobody should be given special treatment due to something as trivial as their ancestry. Having a monarchy flies directly in the face of many values I think we as a nation value deeply.

    Also they have a lot of land that their great great ... Grandad nicked from the Saxons and I wouldn't mind that being nationalised.

  • Emacs Face Line Spacing / Margin / Height
  • I feel this. I remember spending ages trying to figure out how to remove the bar in doom modeline (yes eventually I realised I could just make it the same colour as the background...), only to discover that it was necessary to control the size of the modeline.

    I imagine this stuff is really deep in the internals of Emacs, which is why people are less keen to touch it. But if we were in the mood to do that, I would like even more CSS-like features, such as the ability to configure each side of a box property independently

  • Developing GUI app on Immutable Distros
  • In my experience it Just Works ™️. I spin up a distro/toolbox, compile some software (e.g. Emacs) then run the executable inside the container, and up pops the GUI window.

    If you use distrobox, you can even distrobox-export desktop files, at which point a containerised gui application is practically indistinguishable from one installed on the host system

  • What is your favourite game with native Linux port?
  • Its all about how an application goes from "I would like to display X on a screen" to how X actually gets displayed. Wayland is effectively a language (technically a protocol) that graphical applications can speak to describe how they would like to be drawn. It's then up to a different program more deeply embedded in your OS to listen to and act on those instructions (this program is called a Wayland compositor). There's a lot more to it (handling keyboard input monitor settings, etc), but that's the general idea.

    Wayland is a (relatively) new way of thinking about this process, that tries to take into account the wide variety of input and output devices that exist today, and also tries to mitigate some of the security risks that were inherent to previous approaches (before Wayland, it was very easy for one application to "look at" what was being displayed in a completely different app, or even to listen to what keys were being typed even when the app isn't focussed).

    Thing is, change is hard, doubly so in the consensus driven world of Linux/FOSS. So, until the last couple of years or so, adoption of Wayland was quite slow. Now we're at the point where most things work at least as well in Wayland, but there's still odd bits of software that either haven't been ported, or that still rely on some features that don't exist in Wayland, often because of the aforementioned security risks.

  • Carnival of Self-Harm
  • I suppose a complete history of Tory government was out of scope for what's already a dissertation-length essay.

    Actually, at the end the author begins to slightly contradict himself by arguing that (neo-)Thatcherism is the long-term objective of the conservatives. I suppose the consistent narrative is that the Tories have a long-term commitment to policies that can only ever yield short-term gains.

    This does lead to the rather dire conclusion that British politics is stuck in a cycle where Labour slowly rebuilds the British state, only for the Tories to sack it the instant our fickle support for progressive government waivers.

  • Carnival of Self-Harm
  • Not that I saw. A nag screen maybe, but it was dismissible

  • Study finds 268% higher failure rates for Agile software projects
  • Its just the symbol The Register uses at the end of an article. Like how some papers use a filled in square.

  • samc samc @feddit.uk
    Posts 0
    Comments 68