Readit News logoReadit News
tubs commented on What is the nicest thing a stranger has ever done for you?   louplummer.lol/nice-stran... · Posted by u/speckx
hexbin010 · 7 days ago
I agree. The railway now is mean, willing to prosecute, unhelpful and expensive

I've read various accounts of people trying to reclaim lost baggage and it's a Kafkaesque process designed to be totally useless

But the railway operators are 50% nationalised now. Northern, TransPennine, South West Railway, LNER, Greater Anglia, c2c, ScotRail, Southeastern, TfW are all government owned.

And the forerunner in increasing fares the last couple of years has been...the government. They renationalised various operators during and after COVID and are now busy decreasing rail subsidies and increasing fares.

(yes even with the freezing of some fares in April. It's only some fares. And prices had been going up multiple times a year in many places for a few years. There is a wider picture and other schemes happening pushing up prices)

Maybe Great British Rail will slowly and surely return us to a less mean system. Time will tell

tubs · 6 days ago
I left my bag on a train recently. I’m not sure I can describe “describe the bag using an online questionnaire that took about two minutes to complete” as Kafkaesque… bag returned in a little under one week.
tubs commented on Serflings is a remake of The Settlers 1   simpleguide.net/serflings... · Posted by u/doener
Tuna-Fish · a month ago
Settlers 1/2 are logistics simulators. The core of gameplay is that the map consists of vertexes on which you can place flags, and then connect flags with paths. On each path there will be exactly one porter, who will carry stuff from a flag to another. Arranging your network so that goods get where they are going in a reasonable time is like 90% of the gameplay.
tubs · 25 days ago
One worker and potentially one donkey.
tubs commented on How to get the GOT address from a PLT stub using GDB   rafaelbeirigo.github.io/c... · Posted by u/rafaelbeirigo
ghostpepper · a month ago
For anyone wondering, GOT is global offset table and PLT is procedure linkage table. gdb is the gnu debugger.

these are relevant if you, for some reason, want to write your own ELF parser, to load Linux executables without using the system loader.

it comes up fairly often when analyzing (or creating) advanced malware for linux

tubs · a month ago
Elf is used in many places outside Linux.
tubs commented on C++ move semantics from scratch (2022)   cbarrete.com/move-from-sc... · Posted by u/todsacerdoti
HarHarVeryFunny · a month ago
C++ supports both pass-by-value and pass-by-reference parameters. Pass-by-value means making a copy (a deep copy if it's a deep type), but you could always choose to optimize by passing large parameters by reference instead, and this is common practice.

The real value of std::move is cases where you to HAVE to (effectively) make a deep copy, but still want to avoid the inefficiency. std::move supports this because moving means "stealing" the value from one variable and giving it to another. A common use case is move constructors for objects where you need to initialize the object's member variables, and can just move values passed by the caller rather than copying them.

Another important use case for std::move is returning values from functions, where the compiler will automatically use move rather than copy if available, allowing you to define functions returning large/complex return types without having to worry about the efficiency.

tubs · a month ago
(More so since c++17) std::move should not be used for returns because this pessimises optimisations.
tubs commented on AWS multiple services outage in us-east-1   health.aws.amazon.com/hea... · Posted by u/kondro
lexandstuff · 2 months ago
Thankfully Slack is still holding up.
tubs · 2 months ago
It’s super broken for me. Random threads no longer appear.
tubs commented on Resizeable Bar Support on the Raspberry Pi   jeffgeerling.com/blog/202... · Posted by u/speckx
namibj · 2 months ago
If you can map all VRAM into host linear/physical address space, you can just use write combining page table entries to it and get efficient buffered write back caching for the CPU writes that created the very bytes you think of DMA-ing in the first place.
tubs · 2 months ago
Write combined on cpu will batch a few bytes here and there but you’ll never hit full 4k transactions without dma. I brought up a few new gpus on pcie cards and spent many moons staring at interposer dumps.

It’s ok for small things but even once you get into the command buffer range it’s slow slow slow without dma.

tubs commented on Why we need SIMD   parallelprogrammer.substa... · Posted by u/atan2
Veliladon · 2 months ago
GPUs are literal SIMD devices. Usually 32 or 64 ALU lanes.
tubs · 2 months ago
They are sim-t. It’s slightly different. I made them for a living for quite some time.
tubs commented on Arenas in Rust   russellw.github.io/arenas... · Posted by u/welovebunnies
oneshtein · 3 months ago
Vec size is dynamic, so no.
tubs · 3 months ago
Now you’re allocating in an ISR?
tubs commented on Lidar, optical distance and time of flight sensors   ams-osram.com/innovation/... · Posted by u/mahirsaid
MezzoDelCammin · 3 months ago
Also there's the simple physics view of the same problem. The advantage of scanning is that you can focus all the laser pulse energy into one narrow beam. Non scanning means covering the whole field of view at once with that same laser pulse. Then you have a choice. Either somehow deal with the exponentially weaker return pulse (since it's spread over the whole field of view), or try to increase the pulse energy (and there you're limited by laser safety regulations)
tubs · 3 months ago
Quadratically weaker, not exponentially.
tubs commented on Examples of Google Gemini Photo Editing Prompts   curateclick.com/blog/10-e... · Posted by u/QingWu
tubs · 3 months ago
I’m severely colourblind but in 4. That ain’t a red saree…

u/tubs

KarmaCake day240February 27, 2012View Original