Better HN
topnewbestaskshowjobs
Log inSign up

physicsguy

3,139 karma · joined Feb 12, 2018 (8y ago) · 1,451 submissions

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

comment 9mo ago · link · parent

I'm not sure why this is against 'frameworks' per se; if we were sure that the code LLMs could generate was the best possible, we might as well use Assembly, no, since that'd lead to best performance? But we don't generally, we still need to validate, verify and read it. And in, that, there is still some value in using a framework since the code generated is likely, on the whole, to be shorter and simpler than that not using a framework. On top of that, because it's simpler, I've at least found that there's less scope for LLMs to go off and do something strange.

comment 10mo ago · link · parent

> Costs for all features are shared by all users.

To a degree but most enterprise focused software usually has differential pricing. Often that pricing isn't public so different companies get different quotes.

comment 10mo ago · link · parent

The other thing is bringing in the knowledge about what other customers in the same field want. For business-focused software this can be a boon, customers often can't really envision the solution to their problem, it's like the Henry Ford attributed "If I had asked people what they wanted, they would have said faster horses"

comment 10mo ago · link · parent

Until a given company decides they need access control for their contractors that's different from their employees, etc. etc. etc. - seen it all before with internal often data scientist written applications that they then try to scale out and run into the security nightmare and lack of support internally for developing and taking forward. Usually these things fizzle out when someone leaves and it stops working.

comment 10mo ago · link · parent

I just don't buy it.

Most people who've been in a business SaaS environment know that writing the software is relatively the easy part aside from in very difficult technical domains. The sales cycle + renewals and solution engineering for businesses is the majority of the work, and that's going nowhere.

comment 10mo ago · link · parent

With this, they've not provided an upper bound the error on the kernel expanded with N terms which I think is a big missing piece.

comment 10mo ago · link · parent

Yes, agreed. I find it interesting that people are saying they're building these huge multi-agent workflows since the projects I've tried it on are not necessarily huge in complexity. I've tried variety of different things re: isntructions files, etc. at this point.

comment 10mo ago · link · parent

I've had quite a bit of the "tell it to do something in a certain way", it does that at first, then a few messages of corrections and pointers, it forgets that constraint.

comment 10mo ago · link · parent

Even the exact same source code compiled with different compilers, or the same compiler with different compiler options.

Intel Compiler for e.g. uses less than IEEE764 precision for floating point ops by default, for example.

comment 10mo ago · link · parent

The massive missing factor here is personality.

You can be the most impactful person going but if you are an asshole then you won't get promoted.

Edit: maybe I should say - an asshole to management, or bring up difficult things, etc.

comment 10mo ago · link · parent

How does it compare to Maya these days?

comment 10mo ago · link · parent

Makes a dent when they fire at the high salary end and rehire at lower salaries.

comment 10mo ago · link · parent

What a bizarre comment. Take something like NumPy - has a hard dependency on BLAS implementations where numerical correctness are highly valued for accuracy and require deep thinking for correct implementation as well as for performance. Written in a different language again for performance so again an LLM would have to implement all of those things. What’s the utility in burning energy to regenerate this all the time when implementations already exist?

comment 10mo ago · link · parent

This is a great way of framing it that I'd never thought of before.

I worked in engineering software for a long time and because of who we sell to, there's always been a very hard cost-benefit analysis for customers of SaaS in that space. If customers didn't see a saving equal to more than the cost of the software in Y1 they could and would typically cancel.

comment 10mo ago · link · parent

This was the norm many years ago, I worked on a simulation software which existed long before Protobuf was even an apple in it's authors eyes. The whole thing was on a server architecture with a Java (later ported to Qt) GUI and a C++ core. The solver periodically sent data in a custom binary format over TCP for vector fields and things.

comment 10mo ago · link · parent

The typical way would be to unroll the inner loop manually; often you can get away with:

    for (int i = 0; i < N; i += SIMD_WIDTH) {
        for (int j = 0; j < SIMD_WIDTH) {
            // do code
        }
    }
but failing the compiler optimising that you can do it more like:

    for(int i = 0; i < N; i+= SIMD_WIDTH) {
        float mask[8];
        // do work into mask, find max of the mask
    }
That's effectively what you're doing anyway in the SIMD code, but it keeps it more readable for mere mortals, and because you can define SIMD_WIDTH as a constant, it's also slightly easier to change if a new instruction set comes along; you're not maintaining multiple kernels.

comment 10mo ago · link · parent

> As a HPC developer, it breaks my heart how worse academic software performance is compared to vendor libraries (from Intel or Nvidia). We need to start aiming much higher.

They're optimising for different things really.

Intel/Nvidia have the resources to (a) optimise across a wide range of hardware in their libraries (b) often use less well documented things (c) don't have to make their source code publicly accessible.

Take MKL for example - it's a great library, but implementing dynamic dispatch for all the different processor types is why it gets such good performance across x86-64 machines, it's not running the same code on each processor. No academic team can really compete with that.

comment 10mo ago · link · parent

The big thing for me has always been (a) reliability of the hardware (b) good performance/battery trade off (c) nix-like environment.

In my prev. job I had a windows laptop with WSL2 though and I actually was super productive with that. But the laptop hardware offerings at the same price point are rubbish, just not very robust. Linux machines if you're in a corp and want one in the next 6 months are usually even more restrictive on hardware than they are on Windows.

comment 10mo ago · link · parent

There is quite possibly an argument that the match should have been cancelled/away fans not issued tickets, the issue is the cover up and dishonesty which is why he has to go.

comment 10mo ago · link · parent

It’s well known that living conditions went down for the average person as they moved into cities and industrialised. So the average living condition of someone living in London for e.g. being lower than that of a farmer in a country less far along on the industrialisation journey isn’t that surprising really.

comment 10mo ago · link · parent

I found with FB if you’re in some community that uses it then that’s it, you either use it or miss out.

For a long time my running group used it, and while it still does, the WhatsApp community is more used now. My (Catholic) church still uses Facebook for many announcements along with its own website.

comment 10mo ago · link · parent

And yet the SAB downgraded the risk to fans from High to Medium in their report...

comment 10mo ago · link · parent

Come on, that's not the full story at all.

The body that made the recommendation, the "Safety and Advisory Board" met several times and changed their report multiple times. When it was finally released they redacted large parts of the decision making process including saying that:

* The police didn't want the match to go ahead (prior to any evidence for that)

* Two local Muslim councillors (Labour and Lib Dem) had been lobbying against it going ahead with one saying (quote) 'we are the voice of the people'

Additionally:

* They edited the report saying risk to local muslim residents went from Medium -> High

* They edited the report saying risk to fans travelling went from High -> Medium.

* They adjusted the number of police needed from 1200 -> 5000 in order to try and justify the decision.

When the full unredacted report was leaked, then they were put on the back foot and falsely threw out that they'd got the evidence (including of local muslim residents in Amsterdam being thrown in a river, which didn't happen) from a Dutch Police report, which wasn't true.

Anyone with a brain in the police should know that recommending cancellation or banning away fans from a Champion's League game is a major international news story. The chief of police needs to be on top of the details and 100% sure that the evidence is there.

comment 10mo ago · link · parent

You do have NUMA to control memory placement, it's not that easy to use though: https://blog.rwth-aachen.de/itc-events/files/2021/02/13-open...

comment 10mo ago · link · parent

This one I always found super weird, because typically in Europe you just can't carry days over beyond the current year, so that argument for it never really held. Or at least, not many, my current employer lets me roll over 5 but they have to be used by 1st March.

In the UK we're typically by law entitled to 25 days inc. bank (i.e. public) holidays, but most 'professional' jobs will give you at least 25 days plus bank holidays giving a total of ~33ish days per year of leave. When one of the bank holidays would fall on a weekend (e.g. Christmas Day) then it's transferred to the Monday following. Very very occasionally, there are additional bank holidays added e.g. for the Royal Wedding in 2011 one was created.

Often companies will give you a few more days after a number of years of service e.g. an additional 4 days after 5 years. Public sector jobs are usually more generous again e.g. 32 days + bank holidays plus some 'closure' days meaning ~42ish days of leave.

comment 10mo ago · link · parent

> every combination of compiler, optimization setting and platform I intend to support, disassemble all the resulting binaries, and analyze the disassembly to try to figure out if it did autovectorization in the way I expect

I just used to fire up VTune and inspect the hot loops... typically if you care about this you're only really working on hardware targeting the latest instruction sets anyway in my experience. It's only if you're working on low level libraries I would bother doing intrinsics all over the place.

For most consumer software you want to be able to fall back to some lowest-common-denominator hardware anyway otherwise people using it run into issues - same reason that Debian, Conda, etc. only go up to really old instructions sets.

comment 10mo ago · link · parent

A few gentle points:

(a) You mention that the NVidia docs push people to use libraries, etc. to really get high performance CUDA kernels, rather than writing them themselves. My argument would be that SIMD is exactly the same - they're something really that are perfect if you're writing a BLAS implementation but are too low level for most developers thinking about a problem to make use of.

(b) You show a problem where autovectorisation fails because of branching, and jump straight to intrinsics as the solution which you basically say are ugly. Looking at the intrinsic code, you're using a mask to deal with the branching. But there's a middle ground - almost always you would want to try restructuring the problem, e.g. splitting up loops and adding masks where there's conditions - i.e. lean into the SIMD paradigm. This would also be the same advice in CUDA.

(c) As you've found, GCC actually performs quite poorly for x86-64 optimisations compared to Intel. It's not always clear cut though, the Intel Compiler for e.g. sacrifices IEEE 764 float precision and go down to ~14 digits of precision in it's defaults, because it sets the flag `-fp-model=fast -fma`. This is true of both the legacy and new Intel compiler. If you switch to `-fp-model=strict` then you may find that the results are closer.

(d) AVX512 is quite hardware specific. Some processors execute these instructions much better than others. It's really a collection of extensions, and you get frequency downclocking that's better/worse on different processors as these instructions are executed.

comment 10mo ago · link · parent

QML isn’t that different anyway from what you describe

comment 10mo ago · link · parent

You can get 32TiB of RAM instances on AWS these days

comment 10mo ago · link · parent

I think devs owning testing only works where they’re consumers of the product.

So a developer productivity tool - perfect.

A fully fledged engineering application targeting monitoring of assets? Not so much

1
456
49