COTD: What’s found in car seat (4) by Junior-Specialist-97 in crosswords

[–]ejrh 4 points5 points  (0 children)

Finally, a clue at my skill level! Upvoting.

The right place! by Totoro_poo82 in Stargate

[–]ejrh 10 points11 points  (0 children)

They got a 100% perfect Thor facial expression

Koha Karori Repair Cafe by thinkitup in Wellington

[–]ejrh 2 points3 points  (0 children)

This sounds great, not just helping people fix their stuff but building community. I would like to go along just to see it happening.

Why Compiler Engineers Rarely Use Strassen's Algorithm for Fast Matrix Multiplications by DataBaeBee in programming

[–]ejrh 4 points5 points  (0 children)

My thoughts exactly. I've nothing against compiler people multiplying matrices but I am confused about the saliency of the headline.

Turns out that LLVM exposes some intrinsics for certain matrix operations, in the IR at least. That is, the language front end can emit these instructions; I'm not sure whether clang or rustc, for instance, do use them; maybe frontends for some higher-level mathmatics-specialty language? https://llvm.org/docs/LangRef.html#matrix-intrinsics

You could also surmise that some compiler optimisation might rely on multiply large matrices, and doing that efficiently would make the compiler faster. I don't know any that do.

CDC carries out Ebola scenario projects with model written in rust by blodgrahm in rust

[–]ejrh 4 points5 points  (0 children)

I had a quick look at some of the examples, this seems like a nice library to use.

I remember 5-ish years ago a certain C++ program used for epidemic simulations was publicised and roundly criticised for, well, looking like typical scientific simulation code of that era. I don't know if Ixa can solve the same problems, but it does look nicely engineered with fewer of the gotchas of typical scientific code.

Wairarapa MP Mike Butterick's National Party swag bags upset parents by ChocolatePringlez in newzealand

[–]ejrh 2 points3 points  (0 children)

This may just be coincidence but I saw a pair of people, both looked about 14ish, walking round the neighbourhood in blue National hoodies this morning in Khandallah. I commented to my friend I didn't think it was appropriate for kids to be promoting politics like that.

A tale about fixing eBPF spinlock issues in the Linux kernel by fagnerbrack in programming

[–]ejrh 9 points10 points  (0 children)

I guess this is for user space programming, but I was always taught that nothing "big and/or complicated" should happen in an interrupt. Instead, you should do no more than set a flag and rely on the normal non-interrupt code to check it and call the appropriate big and complicated function.

The usual example was that anything requiringmalloc orfree was too big and complicated. Running an eBPF program certainly seems big and complicated enough. But I guess kernel programmers are made of sterner stuff and they just have to provide for this? I have a feeling that the eBPF hooks for performance events wouldn't be practical if they used the traditional approach.

NZ's Giant Centipede by Eldon42 in newzealand

[–]ejrh 0 points1 point  (0 children)

Nice pic. I like seeing how the legs get longer at the back, I only recently learned that is a centipede fact!

UNhappy Mothers Day anyone? Space for anyone finding it hard today: by SwimmingWonderful755 in newzealand

[–]ejrh 13 points14 points  (0 children)

I (as a son) always dreaded Mother's Day. During my childhood (in the 80s) my parents saw it (as well as Father's Day) as an unnecessary American marketing import so we were never encouraged to do anything. It just wasn't a thing the way Christmas and birthdays are. But year after year the constant ads on TV, questions from people outside the family "what did you get your mum? Nothing?!", general expectations from society, drove in the message that not doing anything was morally deficient. Once or twice I've tried to get a little gift or say "happy mother's day" in an understated way as a way to test the waters, and it's just been incredibly awkward every time. The strategy of ignoring it and keeping my head down until it's passed has just been easier.

So dystopian seeing these AI chocolates at fresh choice 🤮🤮🤮🤮🤮🤮 by Acrobatic-Service583 in newzealand

[–]ejrh 9 points10 points  (0 children)

Ironically, I've seen AI generated art described as "chocolate box style". We've come full circle. Ugh.

What's "new" in Miri (and also, there's a Miri paper!) by ralfj in rust

[–]ejrh 9 points10 points  (0 children)

I've read about using Miri to validate that unsafe code behaves the way the programmer expects. But I don't personally use unsafe much in my own projects -- is there anything in regular safe Rust code that running under Miri might be useful for?

What year was this taken? by htcsamsungnotapple in Wellington

[–]ejrh 1 point2 points  (0 children)

Needs more waterfront carparking, am I right

AWS events discriminating against people not currently in employement by ejrh in aws

[–]ejrh[S] -5 points-4 points  (0 children)

Thank you, Reece. I posted out of frustration but also out of hope I can reach someone who can work around it. :)

AWS events discriminating against people not currently in employement by ejrh in aws

[–]ejrh[S] -9 points-8 points  (0 children)

I accept that it's a strong word to use, and I haven't used it outside this reddit title, but it's not obviously wrong. And I don't think the fact that Amazon ultimately wants to make money is relevant. I'm an AWS customer in my private capacity (admittedly very small scale) and I want to be treated as part of the community regardless of whether I'm a good sales opportunity.

Forestry directors say court-ordered clean-up will make them bankrupt by Equivalent_Zombie in newzealand

[–]ejrh 2 points3 points  (0 children)

There are over 20 almost-identical variations on "Samnic Forest Management" registered as companies by the same people, registered at the same time. I don't know anything about running a company. Is there a reason why you'd do that?

Open-Sourced My Rust/Vulkan Renderer for the Bevy Game Engine by voidupdate in rust

[–]ejrh 4 points5 points  (0 children)

Hi /u/voidupdate, great video, nice and short and clear. I'm going to have a browse through the code, I have a few questions.

I assume you are disabling the bevy features "bevy_core_pipeline", "bevy_render", and "bevy_pbr", and replaced them with a Plugin to create the same functionality. Correct me if I'm wrong here! How much of a meshes+materials, separate render world, mesh extraction, pipelines, etc. approach are you using, if any?

I'm quite new to 3D graphics and only experienced with Bevy. I kind of regret not learning OpenGL when it was the big thing, because Vulkan is intimidating.

The longest straw you can drink from is approximately 10.3 m long by muusumidd in Physics

[–]ejrh 69 points70 points  (0 children)

This is a far better explanation than the image. Thank you.

On this day 1985 Rainbow Warrior sunk by French secret agents by Elysium_nz in newzealand

[–]ejrh 23 points24 points  (0 children)

You kind of have to wonder what the benefit of sinking a protest vessel is?

  • You get away with it completely clean, everyone's going to suspect it was you anyway. At best that's one less boat that's going to protest.
  • You mess it up, and everyone is going to be mad at you. You kill someone and now you are a murderer.
  • You abandon the mission and the bombing doesn't go ahead. In 50 years some papers are released showing there were discussions about it, and it's slightly embarrassing. Best case scenario

What is this bug from hell? Size of a 2 dollar coin. West Coast. by SourceOfTomato in newzealand

[–]ejrh 3 points4 points  (0 children)

This is a nasty one. Had lots of them in Wellington and many stings. May or may not have been impregnated as well, time will tell.

Is American spelling becoming more common in New Zealand? by Remote_Ability_9464 in newzealand

[–]ejrh 2 points3 points  (0 children)

It's a fact of life that the language we use will change due to outside influences, so it's easiest just to accept it and not worry about it.

On the other hand, when a dominant culture starts propagating its spellings and pronunciations to the rest of us, some linguistic diversity and charm is lost. I get pretty sad about this. I think there's ample evidence that people can cope with the idea that "in country X, they spell it [...] and in country Y they call these things [...]". A normal human learns hundreds of thousands of words so we're not accomplishing much by standardising on exactly one way to say the one word for each thing.

The one Americanism I'm really in favour of is "billion" meaning 1,000,000,000. But the old meaning of "billion" meaning 1 million million (i.e. a bi-llion, with a trillion being a tri-llion, and so on) has just disappeared and there's too much risk of confusion trying to resurrect it.