News for hackers. Stuff that matters.

njs12345

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.

Re:The Closing of the Bulgarian Frontier on Wednesday December 20, 2023 @06:36AM (#38707510)
Confessionalism is probably just as large a confounder as communism in this context though..
Re:From S3 to R2: An economic opportunity on Friday November 03, 2023 @10:55AM (#38129750)
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...
Re:Making Rust supply chain attacks harder with Cackle on Friday October 13, 2023 @11:50AM (#37871942)
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.

Re:Why privatisation has been a costly failure in Britain on Tuesday July 11, 2023 @09:08AM (#36680448)
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.
Re:Westinghouse sees a tech disrupter in its eVinci microreactor on Thursday November 24, 2022 @06:47AM (#33730245)
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).

Re:Planning Go 1.20 cryptography work on Tuesday September 13, 2022 @10:20AM (#32824628)
A good place to start with Coq is Software Foundations: https://softwarefoundations.cis.upenn.edu/
Re:Twenty years of Valgrind on Thursday July 28, 2022 @12:10PM (#32266298)
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
Re:Twenty years of Valgrind on Wednesday July 27, 2022 @10:40AM (#32250944)
> 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

Re:Nothing like this will be built again (2002) on Tuesday January 11, 2022 @12:55PM (#29895013)
China has just hooked a pebble bed reactor up to its grid: https://en.wikipedia.org/wiki/HTR-PM
Re:An UPDATE without a WHERE, or something close to it on Friday October 29, 2021 @09:41AM (#29038266)
A fun Postgres extension to require this: https://github.com/eradman/pg-safeupdate
Re:Ask HN: Who is hiring? (May 2021) on Thursday May 06, 2021 @08:07AM (#27062009)
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/

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
Re:The Next Step for Generics on Wednesday June 17, 2020 @06:07AM (#23549706)
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.

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.

Re:Faster internet is coming, but only for a few on Tuesday August 06, 2019 @10:01AM (#20625227)
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
Re:Compare career levels across companies on Thursday November 01, 2018 @09:36AM (#18353726)
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.

Re:Is Type 2 Diabetes Reversible at Scale? on Wednesday July 25, 2018 @10:25AM (#17609469)
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...

Re:What I wish I knew when I became CTO on Wednesday February 14, 2018 @04:34AM (#16374650)
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.
Re:Reflecting on Haskell in 2017 on Monday December 04, 2017 @07:05AM (#15843269)
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.
Re:Memory inside Linux containers (2014) on Sunday October 29, 2017 @06:34PM (#15581892)
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.
Re:HM Prison – A Survival Guide (2015) on Thursday October 05, 2017 @09:08AM (#15408808)
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
If you wanted to, you could even use a trigger to compute that field, and then backfill it - no changes to app code required!
Re:Noam Chomsky Joins Faculty at University of Arizona on Saturday August 19, 2017 @08:25AM (#15052999)
Ecuador didn't do too badly under Correa: http://cepr.net/images/stories/reports/ecuador-2017-02.pdf
Re:Language Server Protocol, Rust and Emacs on Thursday July 06, 2017 @04:20PM (#14713598)
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.

Re:We’ll Never Know Whether Monorepos Are Better on Thursday June 29, 2017 @08:53AM (#14662849)
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.
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'

Re:Why predicted gridlock almost never happens on Tuesday April 04, 2017 @11:30AM (#14033705)
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?
Re:An Illustrated Book of Bad Arguments (2013) on Sunday March 26, 2017 @07:23PM (#13963964)
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).

Re:Monzo: All payments are failing temporarily on Sunday March 05, 2017 @11:58AM (#13796896)
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?

Older »