Better HN
topnewbestaskshowjobs
Log inSign up

njs12345

1,175 karma · joined Dec 23, 2009 (16y ago) · 384 submissions

Submissions

comment 1y ago · link · parent

When not per tenant you still have this problem, and typically resolve by releasing database migrations separately to the code that uses changes (ensuring backwards compatibility).

I guess per-tenant you would handle similarly but build some tooling to monitor the state of migrations. It might even be easier in some ways, as you might be more able to take table locks when migrating per-tenant.

comment 2y ago · link · parent

Confessionalism is probably just as large a confounder as communism in this context though..

comment 3y ago · link · parent

There is the Images Batch API that isn't subject to the 1200 requests/5 minutes limit: https://developers.cloudflare.com/images/cloudflare-images/u...

comment 3y ago · link · parent

I could see a combination of this approach and one of the audit approaches like `cargo crev` working well in the unsafe case:

- Require audit if there is new unsafe code

- Otherwise, rely on cackle to enforce no use of fs/net etc in safe Rust

This could provide the best of both worlds, automating most of the audit burden while still providing strong guarantees.

comment 3y ago · link · parent

The lenders will come out alright. Even if the utilities end up being renationalised their debt will be converted into government bonds. The mugs here are the public, which end up paying to service the debt that has been used to issue dividends.

comment 4y ago · link · parent

https://ourworldindata.org/grapher/carbon-intensity-electric...

With an ageing nuclear fleet built mostly in the 70s and 80s France has the cleanest electricity of any country in Europe (except those with abundant hydro).

comment 4y ago · link · parent

A good place to start with Coq is Software Foundations: https://softwarefoundations.cis.upenn.edu/

comment 4y ago · link · parent

The atomics themselves sure, but I guess often they'll be used as a barrier to protect an UnsafeCell or something, like in the implementation of Lazy<T>: https://docs.rs/lazy-init/0.5.0/src/lazy_init/lib.rs.html#85

comment 4y ago · link · parent

> Even rust's memory model has places where it can't do what C++ can. (you can't use atomic to write data from two different threads at the same time)

Perhaps not in safe Rust, but can you provide an example of something Rust can't do that C++ can? It has the same memory model as C++20: https://doc.rust-lang.org/nomicon/atomics.html

comment 4y ago · link · parent

China has just hooked a pebble bed reactor up to its grid: https://en.wikipedia.org/wiki/HTR-PM

comment 5y ago · link · parent

A fun Postgres extension to require this: https://github.com/eradman/pg-safeupdate

comment 5y ago · link · parent

Football Radar | Systems Engineer | London | Remote (UK) | Full-time

We're looking for an experienced Systems Engineer / Site Reliability Engineer to help us deliver high quality software and shape our technical roadmap over the coming years.

The Development department consists of 20 developers across 4 sub-teams: Analysis, Modelling, Systems and Trading. As part of the Systems team, you'll get the opportunity to enhance our DevOps culture, taking our collaboration and automation to the next level. We're on a mission to improve stability and standardisation, and shorten feedback loops in order to make our team more efficient in delivering business value. We're also looking for someone who can help us integrate security considerations into our development process.

Find out more about Football Radar and the role here: https://footballradar.recruiterbox.com/jobs/fk0mg3u/

comment 6y ago · link · parent

Land value taxes also seem like they would work very well, have some nice incentive effects and are hard to game: https://en.wikipedia.org/wiki/Land_value_tax

comment 6y ago · link · parent

This isn't quite the same, because it's just an alias - you can pass a UserID to a function accepting a PostID: https://play.golang.org/p/nSOgcJs_66y

It still provides a documentation benefit of course.

EDIT: Whoops, yes, as lentil points out, they are indeed distinct types not aliases. So it does provide the benefit of the Rust solution.

comment 6y ago · link · parent

We have to register to vote in the UK: https://www.gov.uk/electoral-register

The same sort of dogwhistles about 'voter fraud' have been getting airtime in the media as well so I'm sure it won't be long before we have widespread disenfranchisement, just like in the US.

comment 7y ago · link · parent

Just count yourself lucky that you don't have an Exchange Only (EO) line, that doesn't have a cabinet and runs directly to the exchange.. I'm in Whitechapel (Zone 1) and get 8/1

comment 8y ago · link · parent

I agree in general with your comment, but..

> If you can already tell ahead of time which company's stocks are going up, just take more cash and use it to buy those stocks.

These are pre-IPO companies so you can't easily buy their shares.

comment 8y ago · link · parent

It might not necessarily be high in fat - it's probably the calorie restriction that works, as in this trial:

https://www.nhs.uk/news/diabetes/radical-low-calorie-diet-ma...

comment 8y ago · link · parent

If you have any concurrency in your system then you aren't going to cover all the states using unit tests. You'll need some sort of formal model for that.

comment 8y ago · link · parent

The base language is actually very small - you do need to know a lot on top to get anything done but arguably that's true with most languages.

comment 9y ago · link · parent

CPU also causes a similar problem - for instance Java (and lots of runtime Java libraries) use the number of available CPUs to decide how many threads to use for various tasks, which can cause terrible performance if you're giving a container 1 CPU of a 48 CPU server and it thinks all 48 are available - we encountered this at work recently and eventually bodged around it, but definitely a gotcha that this stuff isn't handled properly by runtimes yet.

comment 9y ago · link · parent

If you enjoyed this you might enjoy Jeffrey Archer's prison diaries - he was a British politician jailed for perjury in the 2000s who wrote up his time inside: https://www.amazon.co.uk/Prison-Diary-1-Hell/dp/0330418599

comment 9y ago · link · parent

If you wanted to, you could even use a trigger to compute that field, and then backfill it - no changes to app code required!

comment 9y ago · link · parent

Ecuador didn't do too badly under Correa: http://cepr.net/images/stories/reports/ecuador-2017-02.pdf

comment 9y ago · link · parent

I imagine JSON serialisation overhead is pretty small when compared to parsing/typechecking a Rust program, which is probably what the Rust Language Server has to do whenever anything changes..

Not to mention that a lot of people capable of writing the tooling would struggle to export a C API. I write Scala in my day job and it would take me a while to learn how to do that - and I've done some programming in C/C++ before.

comment 9y ago · link · parent

There are ways of doing this in a monorepo (by copying code to a new target for instance) - the difference is that you don't need to pay the price of versioning with every change.

comment 9y ago · link · parent

Looks like you would be allowed to use it: https://code.google.com/codejam/terms

'You may use any programming language to solve a Code Jam problem. However, for any round after the qualification round, the compiler, interpreter, libraries, and external services you use must be available such that anyone else can use it for free without a time limitation and without violating any rights of any person or entity'

comment 9y ago · link · parent

All of the places you listed have massive problems with NIMBYism. If the places a 30 minute cycle away from the City of London had the residential density of Hong Kong, what do you think house prices would be like?

comment 9y ago · link · parent

You might like Jonathan Haidt's book 'The Righteous Mind' - http://righteousmind.com/

It has a lot on how people make ethical arguments in particular which I found quite eye opening (if a bit bleak in terms of its consequences for civic society).

comment 9y ago · link · parent

Is there anything really wrong with sharing a PIN for all your cards? What sort of attack does this make easier? Maybe if someone sees you entering a PIN for one of your cards and then steals your wallet?
12345
13