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 1y ago · link · parent

That’s so misguided it’s unreal.

I’ve worked at several companies where there have been decent HPC/GPU codebases and at all of them the staff working on that have largely come out of academia in one way or another.

comment 1y ago · link · parent

Vulkan didn’t even exist when I got a free card from NVidia.

For cross platform programming on GPUs people in academia/industry just gave up because performance was worse, the tooling was terrible and library support was non existent. OpenCL, OpenACC, OpenMP GPU offloading have all been disappointing.

comment 1y ago · link · parent

To some degree, but the first cards didn’t really give great performance in practice. By the third gen they were worth it and then Intel cancelled it.

comment 2y ago · link · parent

It makes a really big difference for anyone doing business in Europe though.

Legally we're only allowed to use text-embeddings-3-large at work because Azure don't host text-embeddings-3-small within a European region.

comment 2y ago · link · parent

Very sweet!

comment 2y ago · link · parent

You don't get a CUDA killer without the software infrastructure.

Intel finally seem to have got their act together a bit with OneAPI but they've languished for years in this area.

comment 2y ago · link · parent

That just wouldn’t fly where you have business customers, many insist on data deletion at the end of contracts. In practice though partitioning or using seperate databases can be a better strategy for dealing with that as otherwise dealing with backups are challenging.

comment 2y ago · link · parent

They are difficult but it shouldn’t be underestimated the cost of trying to keep consistency with the alternatives either.

I sometimes think that people ask the wrong question on this sort of thing - rather than thinking “what technical solution should I come up with” you should be thinking “what is the business requirement here, and what consistency guarantees are needed?”

In many cases you want to soft delete anyway and mark rows as stale rather than deleting them wholesale. Cascade deletes need to be very carefully thought about, as while they’re very handy they can be quite destructive if the relationships are not mapped out.

Personally having spent some time now in the microservices hole, I miss all the power SQL databases give you for this sort of thing. I think everyone should spend some time reading and digesting ‘Designing Data Intensive Applications’ and evaluating the trade offs in detail.

comment 2y ago · link · parent

You’d have to structure it differently, it’s definitely not a free lunch

comment 2y ago · link · parent

Not on Windows!

comment 2y ago · link · parent

Python polyglot code bases are not a solved problem at all. There have been difficulties installing TensorFlow and PyTorch with poetry for some time, and the installs still regularly break. This is the reason so many people use Conda. In HPC people are increasingly using Spack and EasyBuild to stop you having 10 versions of BLAS installed with all your Python dependencies.

Comparing it to other languages isn’t really fair since they don’t have polyglot code bases in the same way, and where native packages exist in for e.g. Npm, then you run into the same problems anyway.

comment 2y ago · link · parent

In practice the software I’ve worked on has typically been engineering/scientific. Back in older pre-ARM days that meant Intel compiler toolchain on all platforms.

comment 2y ago · link · parent

Heh, news to me. I've always stuck with OpenMP for cross platform across Mac/Windows/Linux

comment 2y ago · link · parent

ABI compatibility is one of those things that is necessary with such a long history, especially with commercial libraries that don't really have an equivalent in the newer languages. The issue with C++ that doesn't exist with it's competitors is that there is a long tail of software people use commercially that isn't source available that's incredibly important in certain use cases.

I worked in a previous role on C++ CAD/simulation software that required vendored things like solid modelling kernels and it was incredibly painful. Occasionally one of the vendors would just not do the work and you'd end up having to spend half a year ripping out the dependency that worked perfectly well. The team working on the software were generally in favour of moving up through to modern standards, while I was there we did 03 -> 17 for e.g. but that didn't finish til 4 years after the C++17 standard came out for all sorts of reasons. When VS2017 came out everyone breathed a sigh of relief because suddenly we didn't have to wait to upgrade the compiler.

comment 2y ago · link · parent

> Recommendation: replace your program’s threading with Dispatch.

The Apple assumption that people writing software they want to work on MacOS isn't cross platform strikes again.

comment 2y ago · link · parent

It's been a few years to be fair, I stopped working with C++ in early 2021 or so so maybe I've just misremembered. I do remember having to take Abseil on where we previously didn't.

comment 2y ago · link · parent

Oh, that's surprising, I thought RyuJIT could do it with certain types!

comment 2y ago · link · parent

I'm well aware, but in practice there needs to be some way of at least autovectorising loops built in to the compiler, even JIT/GC'd languages like C# will do this for you.

comment 2y ago · link · parent

People vendor dependencies in Go too!

comment 2y ago · link · parent

C++ is still important in domains where performance is really critical.

I also think there's a place where it can easily be supplanted, but currently cross platform native software has Qt and bindings for it in other languages are mixed.

In performance critical things, Rust still doesn't feel like the final answer since you end up cloning a lot and refactors are very painful. Go obviously has it's issues since SIMD support is non-existent and there is limited control over garbage collection, though it works well for web APIs.

comment 2y ago · link · parent

I used to really like Google Test, and then Google decided in it's infinite wisdom to make the OSS version depend on their C++ shared library replacement Abseil, and not just that but the live at head version.

That makes sense internally for Google because they have their massive monorepo, but it sure as hell makes it a pain in the ass to adopt for everyone else.

comment 2y ago · link · parent

They already do - here in the U.K. you can fix your energy price for 12-24 months typically which is a gamble in the future price of energy.

comment 2y ago · link · parent

I think the initial setup complexity is less with ECS personally, and the ongoing maintenance cost is significantly worse on K8s when you run anything serious which leads to people taking shortcuts.

Every time you have a cluster upgrade with K8s there’s a risk something breaks. For any product at scale, you’re likely to be using things like Istio and Metricbeat. You have a whole level of complexity in adding auth to your cluster on top of your existing SSO for the cloud provider. We’ve had to spend quite some time changing the plugin for AKS/EntraID recently which has also meant a change in workflow for users. Upgrading clusters can break things since plenty of stuff (less these days) lives in beta namespaces, and there’s no LTS.

Again, it’s less bad than it was, but many core things live(d) in plugins for clusters which have a risk of breaking when you upgrade cluster.

My view was that the initial startup cost for ECS is lower and once it’s done, that’s kind of it - it’s stable and doesn’t change. With K8s it’s much more a moving target, and it requires someone to actively be maintaining it, which takes time.

In a small team I don’t think that cost and complexity is worth it - there are so many more concepts that you have to learn even on top of the cloud specific ones. It requires a real level of expertise so if you try and adopt it without someone who’s already worked with it for some time you can end up in a real mess

comment 2y ago · link · parent

Probably just outspent

comment 2y ago · link · parent

Kubernetes biggest competitor isn’t a pile of bash scripts and docker running on a server, it’s something like ECS which comes with a lot of the benefits but a hell of a lot less complexity

comment 2y ago · link · parent

Well, I guess what I mean is that most people have some level of general intelligence that when applied correctly can generally give good results in most subjects. In general the people who do well in school do well in everything, even if they have a preference, and as such could do well in most of those subjects if they went on to further study. The evidence tends to be that in lower income countries people push towards subjects more likely to bring financial stability than those they prefer which bears this out somewhat.

There are some extreme cases of course but I’m not sure the general public needs to worry too much about those, most of us aren’t an Einstein nor do we have learning disabilities.

comment 2y ago · link · parent

That certain countries both now and in the past have had significantly higher mathematical ability among the general population and much higher proportions going on to further study suggests that ability isn’t innate but that people don’t choose it. In the Soviet Union more time was spent teaching mathematics and a whole culture developed around mathematics being fun.

568.

Fitness app Strava is tightening third-party access to user data(arstechnica.com ↗)

1 points · by physicsguy · 2y ago · 2 comments

comment 2y ago · link · parent

The bits that have really cost have been going through the Cotswolds where local opposition has meant insane planning applications and eventually a decision to bury the lines in tunnels. It was totally unnecessary and could have gone above ground if we had a more sane planning system, something the new government has promised to at least try and change (I suspect they will fail…)

comment 2y ago · link · parent

by far the most common method of public transport for commuting is by bus, which is why the Gov spent all that money subsidising bus fares in the last couple of years.
1
181920
49