Better HN
topnewbestaskshowjobs
Log inSign up

physicsguy

3,142 karma · joined Feb 12, 2018 (8y ago) · 1,452 submissions

Former Physicist. Now developer. Have worked in academia, scientific software development.
Submissions

comment 5y ago · link · parent

If I as a C++ dev come to a new project, I'd much rather that someone was using std::vector or std::array or std::unordered_map or whatever other container because I know how it works, and I know that any other new developer will know how it works.

Personally, I would expect very heavy justification (incl. profiling results showing orders of magnitude differences in total task performance) and a very strongly tested + well documented implementation for anyone sending me a PR with their own implementation of a container.

comment 5y ago · link · parent

I think of the C++11 RNG stuff is thread safe, you need to lock around it or have an RNG per thread.

comment 5y ago · link · parent

> the only way it can go is even more complicated, because the cannot strip out stuff.

The irony is of course that they have stripped stuff out. I spent a fair amount of time going through an old code base in my last job stripping out std::unary_function and std::binary_function. Not saying that the replacement isn't better however.

comment 5y ago · link · parent

> C++ has already got to a point the teams inside my company can't even talk between themselves properly (it's R&D and very heterogeneous, so not that bad) but this doesn't happen with any other language. It's ridiculous.

Yeah, that's totally true. But I would also say that a lot of it in my experience is people not even trying to keep up with the standards and barely even writing C++11 style code. I wouldn't expect to go into a Python shop (my other language) and work with people who hadn't tried to keep up with that language for 10 years but many C++ devs seem to have that attitude.

comment 5y ago · link · parent

My understanding was that the aim of the implementation here isn't really to be used by users, but to allow library maintainers to use them as the basis for user consumable coroutines.

comment 5y ago · link · parent

I certainly don't love the Series X UI design, but I think a point to be made is that it's (almost) identical to the UI from the Xbox One, and so is one that most people are well familiar with now, for good and for bad. When I plugged in my Series X, I knew exactly how to do everything because it was all the same. By keeping it the same, it lowers the barrier to entry to anyone upgrading.

comment 5y ago · link · parent

I used to use gmsh for all of my CSG + meshing work when I was doing simulations. Not done so for many years now though so not sure how it fares these days.

comment 5y ago · link · parent

It’s why I use Argos in the UK instead of Amazon now. I was looking for an electric blanket yesterday and the top 50 items were all dodgy Alibaba type stuff with 100s of 5* reviews

comment 5y ago · link · parent

> When you get a new hire, do you tell them to submit a ticket with licensing and wait until they can get their Docker Desktop license

that's how it's worked for me - in my last job spent 3 weeks waiting for a Qt License, Intel compiler license, MSVC license...

comment 5y ago · link · parent

My tiny part of a division of my last company made $40 million USD per year in revenue. We had ~40 employees. Getting the funding for using something like this came from a few levels up and would be in no way guaranteed.

comment 5y ago · link · parent

so, when's everyone switching over to Podman?

comment 5y ago · link · parent

So, there's a few factors in my own choice of shopping that makes them a bit redundant:

1) 25 years ago, supermarkets (with exception of Coop) didn't really sell appliances, books, video games consoles, etc. in the same quantity that they do now. So people don't need to go to a department store as frequently because of that, because they can pick up household. It's maybe not the best example, because it's been killed by the collapse of Philip Green's empire, but until recently my local Tesco had outlets for Topshop, Outfit, etc. in it. Sainsbury's has Argos in it in lots of stores now. And these are much more local to people's houses.

2) On top of that is online shopping. That's another place you can go that's more convenient than going to a department store. They have stock online! Often department stores did not.

3) When you do go to a department store, they're usually more expensive for the same or lower quality as elsewhere. John Lewis and Selfridges are the only ones I've purchased anything in in the last 10 years and that's because they have a good range of stuff, and for John Lewis in particular, it's known for having good customer service on things like returns of faulty goods and long warranties. It's also the only one of them that actually had stock in? Debenhams and BHS prior to closing were a mess for e.g.

comment 5y ago · link · parent

I totally agree, and I’ve seen some completely nuts GH actions setups already where people seem to want to use every single possible action. What happens when the charging model no longer suits you? I’ve done self hosted Jenkins -> TravisCI -> CircleCI -> Self hosted GitLab on one of my projects in the past few years… I want to do as little CI provider specific stuff as possible.

comment 5y ago · link · parent

Well, most Windows applications you have to actually deploy are compiled with MSVC, and historically most OSS libs don’t use cross platform build scripts, etc.

FFTW these days I think has a CMakeLists.txt file, and Visual Studio well supports CMake now but it didn’t used to.

comment 5y ago · link · parent

It uses a default lower accuracy floating point model than GCC, so initially people think it's faster til they realise their results are slightly different and have to mess around with the `fp-model` flag

comment 5y ago · link · parent

Yeah, I used in my last job (commercial CFD code), and it was widely used by others in our sector. It's nice if you need to support Windows/Linux as well as brings for e.g. MPI, etc. and compiling scietnfic libs like FFTW on Windows is a PITA, so using MKL which comes bundled with it is very easy.

comment 5y ago · link · parent

> I haven't ever used a car to go to work in my life.

Think that depends a lot on where you live. When I was a student, I didn't use a car at all, but my wife did during my PhD to get to work, and now we both have to have cars because our commutes are not practical by public transport. This is living in the Midlands in the UK.

comment 5y ago · link · parent

It's quite complicated. Income Tax is spread over the year as the first £12k or so is not taxed, so they try to use that balance across the 12 months. We also have something called National Insurance through which eligibility for a state pension is calculated and that's calculated weekly/monthly. There are also student loan repayments, and depending on when you studied at University it changes the threshold you repay at.

comment 5y ago · link · parent

That's quite different to taking notes in for e.g. a lecture on something though, which was the sort of environment I was talking about.

comment 5y ago · link · parent

When I did some pedagogical stuff for teaching at a University, we were told that overwhelmingly the evidence pointed that writing notes led to better recall than when using computers for taking notes, and it was thought that it was because it requires some degree of processing - many people are able to type fast enough to almost verbatim copy down what is being said in lectures but almost nobody (aside from those who can do shorthand proficiently) can do so with writing. So people have to select the important parts to note, and in doing so that seems to help people remember it better.

comment 5y ago · link · parent

It's kinda cool? But I mean, why not just buy an Anker 20k mAh 20W battery pack that you can use with every other USB device... at less than half the price:

https://www.amazon.co.uk/Anker-PowerCore-Essential-External-...

comment 5y ago · link · parent

My sister used to work at Primark. Someone once urinated in the changing rooms... grim.

comment 5y ago · link · parent

I like Uniqlo these days. But they don't have a shop near me which is a big shame

comment 5y ago · link · parent

My workflow these days is to use WSL2 for everything. It even handles CUDA now

comment 5y ago · link · parent

There's a really important issue with QA which is that you can't just farm it off to a team that doesn't know how to use the product. In my last job, which was working on Engineering software, they had a few student interns and a couple of permanent staff that had no training as engineers. So when bugs came in from customers, they had no ability to try and work out what the issue was, it was really dysfunctional - they weren't able to say "this is because the custoemr doesn't understand the physics" for e.g.

They eventually moved an application engineer from pre-sales into the team and it made a huge difference in triaging this stuff, because many 'bugs' that came in were things like "my model isn't converging" and the answer was 75% of the time things like "you need to refine your mesh further", whereas previously it got shunted onto the dev team.

comment 5y ago · link · parent

I find in simulation codes that lack of awareness of (a) is an absolute performance killer. Generally, it's better to use a pattern for an object that's a container for something - so don't have a 'Particle' object but a 'Particles' one that keeps things stores the properties of particles contiguously. In my old magnetics research area you have at least 8 and more frequently 10+ spatially varying parameters in double precision that you'd potentially need to store per particle/cell.

comment 5y ago · link · parent

Go binaries are often not truly standalone. You can certainly make static Go binaries that don't use cgo, but you can't then use standard libraries which rely on it.

comment 5y ago · link · parent

Ocado in the UK have really been clever with the way they've done it via automation rather than people. Worth reading about, I do wonder when they'll make a profit though...

comment 5y ago · link · parent

https://backofthenet.fandom.com/wiki/John_Beck

> The corners of the pitch developed their own eco-systems and it was all too common to see a player go to take a corner only to be mauled by a cougar.

comment 5y ago · link · parent

I really like it, but they do pile up in my magazine rack because you need to sit down for quite a while to get through an issue! Fortunately, given it's mostly reviews, they don't go out of date quickly.
1
414243
49