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

Is anyone still using it? It already went through the enshittification years ago!

comment 3y ago · link · parent

It’s kind of worth remembering that Ultimate Guitar used to have lots of the tabs removed because of copyright claims, so to some extent the advertising hellscape it is because they have to pay licensing to the record labels

comment 3y ago · link · parent

Most people buying a desktop unplug their old desktop and plug the new one in in its place, swapping over all the peripherals.

comment 3y ago · link · parent

It's almost too late, at least here in Europe, WhatsApp is pretty ubiquitous, probably because the split between Android and iPhone is much more even.

Even my elderly relatives use WhatsApp, it's that popular. My local village has a chat group on it.

comment 3y ago · link · parent

Most users in this market segment get the software in English, German or Chinese and nothing else because the cost doesn't justify doing it elsewhere.

comment 3y ago · link · parent

We’re already using ChatGPT at work to do machine translation because it takes weeks to get back translations for the 10 languages our application supports.

It’s not a work of literature, it’s quite technical language and feedback we’ve had from customers is that it’s quite good. Before this, we wouldn’t have ever supported a language like Czech because the market isn’t big enough to justify the cost of translation, and Google Translate couldn’t handle large passages of text in the docs well enough.

comment 3y ago · link · parent

The expiry problem is not much different to if someone deletes the package, so I’m not so concerned about that, but my main pain point is that if you’re developing Go code and your company decides to move Git provider (had this happen multiple times as companies grow, get acquired, etc) then you either have a mess of “replace” all over go.mod, or you have to point everything to a new location. It’s particularly annoying if you want to check out and build an older version of your code, because the changes to go.mod have to be cherry-picked, and by that time you’ve probably updated your dependency’s versions.

comment 3y ago · link · parent

Once you start to look at scientific packages in other languages, they have the same issues as Python does, because they start to use scientific libraries written in C and Fortran, as rewriting 50+ years of code is actually really hard.

comment 3y ago · link · parent

Python packages are mostly fine if they're pure Python, the issue comes when you're installing native C/C++/Fortran dependencies, which most ML and scientific codes have. People who complain about Python vs Go or Rust or Node in this area I think are not comparing like for like at all.

In academia, everyone pretty much uses Conda to get around these issues, because packages there if you stick to the main channel 'just work' but the licensing is prohibitive elsewhere. Many years ago, you couldn't generally expect to install a Python package on your machine if it had compiled dependencies without installing those libraries yourself with your system package manager and having a local compiler toolchain. That's changed because PyPi introduced wheels which allow you to bundled shared objects, and is why Python is now usable on Windows, but it's not perfect as the this post shows. Wheels generally are available for the most popular OS/architecture combinations - x86 processors, Windows, Mac, and 'manylinux' (an old Linux distribution with low version of glibc to maintain compatibility with newer distros. If you fall outside of that (ARM Mac, want to use a distro with MUSL rather than glibc, etc. etc.) then you basically are on your own and need to compile everything from scratch, and you're going to have a lot of... fun... doing so. In my previous job I worked for a University with a POWER9 GPU cluster, and so we used tools like EasyBuild and Spack to try and manage this, but many packages required manual patches in order to get them working.

comment 3y ago · link · parent

Looks nice, but pretty printing the output of the JSON is a must.

I do like how you can paste the JWK URL for validation, not seen that elsewhere.

comment 3y ago · link · parent

There's a long way to get there though - roughly adding ~0.5GW a year of battery storage in the UK and need ~40GW.

comment 3y ago · link · parent

I read that book at the time, and what I rememember from it was that on top of the things discussed in the article here, there was a fairly lengthy section on peak demand and balancing that with renewables which are intermittent, which formed part of his conclusions.

comment 3y ago · link · parent

So, for 2, what I mean is stuff like:

    GET /api/object/<id>?withAdditionalMetadata=1&expandChildren=1&.....
So then the OpenAPI schema has to be something like:

    schema:
      oneOf:
        - $ref: '#/components/schemas/Object'
        - $ref: '#/components/schemas/ObjectWithMetadata'
        - $ref: '#/components/schemas/ObjectWithChildren'
        - $ref: '#/components/schemas/ObjectWithChildrenAndMetadata
So inevitably the client ends up being quite complex to handle this.

comment 3y ago · link · parent

I’d add:

* If you’re going to forbid people changing a parameter with a PUT or PATCH request, then the schema for these shouldn’t list them as parameters. This seems to creep in to APIs constantly as people are lazy and will use the same serializer method as for POST with an additional check somewhere in the code that changes the response. Just don’t do it!

* Don’t change the response format based on query parameters. It makes it hard for typed languages to use the API because the client has to handle all of the weird response types you’ve got. Inevitably you end up with more and more getting added and it any client becomes crazily complicated. 99% of the time it’s not worth the bandwidth saving - and if there’s lots of useless information that clients don’t want, it’s worth thinking about whether the API design is right in the first place.

* Stick to one mechanism for doing things. Pagination and sorting behaviour should be the same for all endpoints. The end user doesn’t care that you’re a hip microservices company where teams don’t talk to each other - if the APIs behave weirdly and inconsistently between themselves, it will be hard to use.

comment 3y ago · link · parent

Well, now the SPA thing has run it's course, and we need a backend for our frontend, which will also to talk to our other backend.

comment 3y ago · link · parent

' Do Things That Don't Scale' is a good approach when you have very few customers, but you have to start investing time in stopping it once you reach a large number.

What is manageable when you've got 5 employees and 1 customer isn't manageable when you've got 10 employees and 10 customers, because that support load is inevitably becoming more and more of each person's day.

comment 3y ago · link · parent

Them offloading domain registration is pretty bizarre

comment 3y ago · link · parent

“Interest rates”

comment 3y ago · link · parent

The issue with the MicroBit was that it wasn't really a well thought out initiative with multi year funding. They gave them out for free to one single school year, and then schools had to pay for them which meant practically that most schools didn't do anything with them because it wasn't worth the time investment. They were also late delivering, so didn't turn up at the start of the school year when they were supposed to but half way through the spring term. I helped do some training of teachers to use it in 2015 while I was doing my PhD, and they'd not even got the kit for their classes at that point.

comment 3y ago · link · parent

It’s rare that Indie games are the same technical sophistication though.

Nothing wrong with them at all but the scale is just totally different, it’s like running a small bakery shop vs an industrial factory churning out bread for supermarkets

comment 3y ago · link · parent

Putting people in bomb bay was relatively common!

My grandfather did his national service with the RAF driving lorries across Palestine/Egypt/Iraq/Transjordan in 1945 to 1947 and flew over to Egypt in a bomb bay with all the other recruits.

comment 3y ago · link · parent

They also forced resale of those games as part of it - so Ubisoft is allowed to sell Activision games. Originally MS proposed only playing games you’d already bought on Ubisoft’s platform

comment 3y ago · link · parent

I don’t use high level frameworks like PyTorch because my work is in computational physics so I do actually use the lower level libraries. The documentation doesn’t even come close although it has got better. But they’re just not at feature parity, and that’s not on anyone but AMD currently. They need to invest more in the core libraries.

Just look at cuFFT vs rocFFT for e.g… they aren’t even close to being at feature parity - things like multi GPU is totally missing and callbacks are still “experimental”. These are pretty basic features - bear in mind that when people ported from CPU codes CUDA had to support these because they existed in FFTW (transforms over multiple CPUs rather than GPUs though via MPI).

comment 3y ago · link · parent

Don’t agree at all. PyTorch is one library - yes, it’s important that it supports AMD GPUs but it’s not enough.

The ROCm libraries just aren’t good enough currently. The documentation is poor. AMD need to heavily invest in their software ecosystem around it, because library authors need decent support to adopt it. If you need to be a Facebook sized organisation to write an AMD and CUDA compatible library then the barrier to entry is too high.

comment 3y ago · link · parent

> the NSA would have had to be aware of a class of weak curves so large that it’s not plausible that no one in academia or industry discovered them in 25 years.

GCHQ in the U.K. hires more mathematicians than any other research institute or University in the country. Not sure about the US equivalents but I imagine it’s similar.

Diffie-Helman key exchange was known about by GCHQ and the NSA prior to it being rediscovered by Diffie and Helman. I think it’s hard to assume anything about the underlying capabilities of intelligence institutions. Not saying they do know this but it’s also not impossible, this stuff is their bread and butter.

comment 3y ago · link · parent

I still think that for many cases, small to medium enterprises should consider migrations with downtime. If it’s B2B it’s relatively normal to have maintenance periods.

comment 3y ago · link · parent

It's not very common in the UK to be honest even though it's mentioned as a country where it's eaten. You'd likely have to go to a butcher here too, I don't think I've seen it in supermarkets apart from maybe upmarket ones and perhaps the odd regional chain.

comment 3y ago · link · parent

Same here in the U.K. - when you hit £85k of revenue you need to VAT register although many businesses do it before if they’re purchasing goods.

comment 3y ago · link · parent

At least here in the UK there's a lot of talk about it along with neonicatanoids in part of disturbing bee populations rather than the cancer risk.

comment 3y ago · link · parent

Freevee was an obvious step towards this.
1
293031
49