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

Not quite, since there are much more involved ways to read it like imaging with a TEM, but certainly not 'fit in a hard drive sized container'

comment 1y ago · link · parent

I did my PhD in this area. It’s very difficult to “read” information stored when there is no net magnetism. Hard drives are built using a read head that detects the stray field from ferromagnetic materials.

When there are particular topological textures like skyrmions you do get a spin hall effect which is quantised but in applying currents you also change the magnetisation through something called spin transfer torque.

comment 1y ago · link · parent

Heh, we probably know some people in common :) I used to be based on Boldrewood. Looking at undergrads dates it's quite possible I demonstrated Python to you!

comment 1y ago · link · parent

This is timely given the discussion under this yesterday: https://news.ycombinator.com/item?id=44557115

comment 1y ago · link · parent

I don't think I've recommended using the official installer for Python on Windows for at least a decade. It used to be always Conda I'd recommend but these days it's uv.

comment 1y ago · link · parent

Haha :D

comment 1y ago · link · parent

I mean, I'm keen on a small number of dependencies too, but the smaller the scope of a package you go, I find the more likely they are to be abandoned. The Go JWT library has been forked twice because it became abandoned by the original authors, just to give an example.

comment 1y ago · link · parent

Well, most cars are bought on finance here, so that's not really surprising. Plus Martin Lewis, who is a sort of personal finance crusader has been shouting from the rooftops about this issue.

It's a really weird one, effectively, car dealerships can offer finance to customers. Generally many of these customers won't be able to get an unsecured loan for the value of the cars they're interested in, which is why they get finance through the dealerships. The dealerships make commission on the finance they sell. They had to disclose this for many years in the finance paperwork. The court case that was lost by a dealership was that the size of the "secret" commission wasn't disclosed to the car buyer who might have sought finance somewhere else had they known. This is all quite unlikely because if you were going to do that, you'd likely have taken out a loan prior to going to purchase the car, which is why this is so odd.

The government is halfheartedly signalling that they may seek to limit through legislation any compensation because it's likely to ruin the UK car lending market which will then kill off what vestiges of car manufacturing still remain in the UK.

comment 1y ago · link · parent

> Also, by their very nature they almost require you to write a program of a minimum size even when a simpler program would do to solve your problem.

I'm not sure I agree, sure they require you to pull in a large dependency, and that might not be good for some use cases (particularly microservices) where you're sensitive to the final size of the image but for e.g. with Django you get spawned a project with settings.py which configures your database, middleware, etc. and urls.py which configures your routes, and then you're really free to structure your models and endpoints however you like.

comment 1y ago · link · parent

I last touched PHP when you sprinkled it in between HTML (and deployment was FTP-ing it to a server) so I'm well out of date with that though I've heard people say that it's quite nice nowadays.

comment 1y ago · link · parent

Look, I'm not for a moment suggesting that a proxy application would be a good fit for Django (or even Python). I'm talking about 'building a full stack web application in a reasonable amount of time, with auth, with a database, etc. etc.'

comment 1y ago · link · parent

Fortunately the framework is pretty configurable on all this sort of stuff! Just to hit pagination again since it's the example I've used in other comments, in DRF you implement a custom pagination class:

https://www.django-rest-framework.org/api-guide/pagination/#...

That's the same as for most other configurable things. And ultimately if you want to override the behaviour for some specific endpoint then you can still easily do that by just implementing your own method for it.

After working in Go now for several years, what I've found is that generally people just don't some things in their first pass because it's too much work and makes the PRs too large, and then they retrofit it afterwards. Which meant that the APIs were less consistent than the ones I worked on in Django.

comment 1y ago · link · parent

I do the same, it's easy enough and doesn't require a ton of hosting logic.

Out of interest, how do you run your migrations in production, deploy the service then run an ad-hoc job with the same container again? That was one thing I was never super happy with.

comment 1y ago · link · parent

There's nothing hard about it, it's just that the sum total of code you need to write is much larger, and that takes more time.

comment 1y ago · link · parent

It's always going to be more work with composable libraries since they don't 'flow'.

Just picking one of the examples I gave, pagination - that requires (a) query param handling (b) passing the info down into your database query (c) returning the pagination info in the response. In Django (DRF), that's all built in, you can even set the default pagination for every endpoint with a single line in your settings.py and write no more code.

In Go your equivalent would be wrangling something (either manually or using something like ShouldBindQuery in Gin) to decode the specific pagination query params and then wrangling that into your database calling code, and then wrangling the results + the pagination results info back.

Composable components therefore always leave you with more boilerplate

comment 1y ago · link · parent

I think Rails is stiff competition, it's just I prefer Python.

comment 1y ago · link · parent

Yes, I'm aware, a colleague moved to Berkeley and relayed a story where he confused a lot of people :)

comment 1y ago · link · parent

I really don't think that frequency was 'normal' in the UK at all. I'm a similar age and we had a takeaway maybe once a month (usually fish and chips, occasionally a curry or chinese). Meals out were a bit rarer, usually a pub but occasionally McDonalds. For the generation above mine, my grandparents on both side basically never ate takeaways unless it was fish and chips on holiday - culturally it just wasn't a thing. I just asked my wife who was much wealthier growing up than I was and she similarly reckoned she didn't eat out much / have takeaways often.

Looking at economic stats, spending on food and drink outside of the home grew enormously between 1992 and 2004 to overtake spending on food within the home: https://onlinelibrary.wiley.com/doi/full/10.1111/j.1467-3010...

comment 1y ago · link · parent

Is this not missing that lots of places still do their deliveries themselves?

For e.g. in my city I can order Pizza from Dominoes or Pizza Hut. Both are located on the same road. Dominoes uses it's own staff, Pizza Hut uses Deliveroo. I've tried both but Dominoes will delivery reliably in 25-35 minutes, and Pizza Hut took over an hour and a half. Guess which one I use still!

comment 1y ago · link · parent

There's an almost pathological resistance to using anything that might be described as a 'framework' in the Go community in the name of 'simplicity'.

I find such a blanket opinion to be unhelpful, what's fine for writing microservices is less good for bootstrapping a whole SaaS app and I think that people get in a bit too much of an ideological tizz about it all.

comment 1y ago · link · parent

I also like Django a lot. I can get a working project up and running trivially fast.

In my day job I work with Go and while it's fine, I end up writing 10x more code for simple API endpoints and as soon as you add query parameters for filtering, pagination, etc. etc. it gets even longer. Adding a permissions model on top does similar. Of course there's a big performance difference but largely the DB queries dominate performance, even in Python, at least for most of the things I do.

comment 1y ago · link · parent

You still need to adapt it to where you are though, people expect this because it causes misunderstandings. If I as a British person go to the US, I know that I can't ask people to go and buy some booze from the off-license and when finished ask them to put their aluminium can in the bin ready for the rubbish lorry while wearing their jumper because that sounds anachronistic.

comment 1y ago · link · parent

The kid was the son of Ayman Alyazouri, who yes is a Hamas minor official, but the thing was that the documentary makers knew that and hid it from the BBC who commissioned the documentary by pretending he had a different surname. The documentary showed the boy's "father" but it was actually his uncle. The kid's grandad, Ibrahim al-Yazouri, was one of the founding members of Hamas.

They translated the documentary's participants use of the word Yehud i.e. Jew into 'Israeli'. One of the cameramen Amjad Al Fayoumi (who effectively directed it, since the 'directors' were based in the UK) had posted on Facebook support about the 7th October terrorist attacks that kicked all of this off.

The problem is that the BBC and other media producers need to be squeaky clean when doing reporting on this, on both sides. It's not even like this was a quick news broadcast where accuracy needed to be checked, it was commissioned well in advance, they followed the boy around for months.

comment 1y ago · link · parent

Not really, in most small companies/departments, £100k a month is considered a painful cloud bill and adding more EC2 instances to provide cloud runners can add 10% to that easily.

comment 1y ago · link · parent

Part of the issue I found is that it's their lowest quality + shortest warranty models that are 'dumb'.

I (UK) bought this (https://ao.com/product/wnc25410gb-bosch-series-8-idos-washer...) Bosch one a few months ago and it is perfectly usable without enabling any of the smart capabilities though. I haven't connected mine to wi-fi at all.

comment 1y ago · link · parent

Shell

comment 1y ago · link · parent

I recently had an interview with a 'big oil' company and they told me that their biggest profit making centre in the business was in oil trading, not in oil itself.

comment 1y ago · link · parent

People aren't going to be replacing Salesforce and SAP with this, they'll just use the Chat interface built into these products.

Don't forget too that a large part of what these products do is give auditing and compliance data...

comment 1y ago · link · parent

I'm no longer in academia but I was asked to review a paper recently which was similar to one of my final papers, so I accepted.

The paper was written by four Chinese authors who had previously collaborated together. It was one of the worst papers I've ever seen. It went over the same ground as previous studies so in that sense there was nothing new, but more bizarrely it did things like state well known equations incorrectly (most notably one of Maxwell's equations) incorrectly and drifted off onto total tangents about how one might calculate certain things in an idealised situation that had no relevance to the method that the authors used. My assumption is that they had generated the methods section using generative AI and not gone over it with even a cursory check.

But the worst part is that I recommended rejecting it outright, and the journal just sent it on to it's slightly less prestigious sister journal rather than doing so.

1
121314
49