HNHacker News
TopNewBestAskShowJobs

njs12345

1,175 karma · joined December 23, 2009

submissionscomments
njs12345··on The struggle with Rust
It occupies a slightly different niche to Rust as it has a GC. If you can live with that, it's probably going to be more productive than Rust for you.

It's definitely worth playing around with a language from that family. OCaml is maybe slightly more practical than Haskell and it has some nice resources available - in particular Real World OCaml looks really good: https://realworldocaml.org/

njs12345··on Languages on BEAM, the Erlang virtual machine
How about the property 'this variable is never null'? You might call this trivial but it seems to be useful given that real-world programmers get it wrong frequently: http://stackoverflow.com/search?tab=newest&q=NullPointerExce...

Or the property 'this variable is never used after a free' in a language with manual memory management (Rust encodes this) or 'this program is free from data races' (also Rust)?

No one is arguing that strong static type systems make it impossible to write programs with bugs, but eliminating whole classes of bugs at compile time certainly makes it easier.

njs12345··on Basic Economy Fares Don't Lower Ticket Prices, They Increase Ticket Prices
They will still check bags most of the time - if the flight is full and everyone has brought a bag with them there won't be enough locker space.
njs12345··on Rust vs C Pitfalls
That sounds interesting - have you got any more details on exactly how they set this up?
njs12345··on Running as a Thinking Person’s Sport
A 1 hour run for me burns 1000+ calories: https://www.strava.com/activities/800853045

Of course it's possible to eat 1000 calories' worth of food in one sitting, especially if you're eating something with tons of carbs in. But if you keep your diet roughly the same and go on a 1 hour run three times a week, you'll definitely start losing weight..

njs12345··on If Prisoners Ran Prisons
> For instance, a prison can't be too nice, lest it turns into a free vocational school and people will find committing crimes and getting caught to be an excellent way to get education.

If this turns out to be a serious problem then perhaps your society has other issues it should be dealing with?

'Nice' prisons certainly seem to work pretty well in Norway: https://www.theguardian.com/society/2013/feb/25/norwegian-pr...

njs12345··on Google Fiber Cutting Jobs and Halting Rollout
We have a lot of fibre-to-the-cabinet in the UK, which means you may only have copper for a few hundred metres. It's obviously nowhere near as good as fibre to the home, but I think lumping it in with plain old DSL is a bit unfair - a lot of people get 60+mbps down and 18+mbps up which isn't too shabby internationally.
njs12345··on Driverless, Electric Shuttles Now Operating in Lyon, France
An example of BRT - there are quite a few of them now: https://en.m.wikipedia.org/wiki/Bus_rapid_transit
njs12345··on Mastercard sued for $19B in Britain's biggest damages claim
Antitrust isn't exactly an issue until you have a significant amount of market power. It's not like it's likely to affect most people who start businesses. Hostile to big business maybe, but not so convinced that's a bad thing..
njs12345··on Why Uber Engineering Switched from Postgres to MySQL
No, the migration itself will cause transactions to stall.

For example, if you have a table with 1M user records, and you run a migration to add a column in MySQL, then any updates to the table will be stalled while the table is rewritten to add the extra column (which may take a while). This is independent of how many records it touches - even if the transaction only touched 1 record and would take 10ms to execute, if the migration takes 10 minutes it may be stalled for up to 10 minutes.

In Postgres you can add a nullable column, and the table will only be locked for a very short amount of time, independent of the size of the table.

njs12345··on Why Uber Engineering Switched from Postgres to MySQL
From the MySQL docs: http://dev.mysql.com/doc/refman/5.7/en/alter-table.html

> Updates and writes to the table that begin after the ALTER TABLE operation begins are stalled until the new table is ready, then are automatically redirected to the new table without any failed updates.

While the master may be technically up for writes during this period, it's not much a goer if your table is large and has any write traffic at all, as anything writing will stall for what may be an extended period.

njs12345··on NASA Data Shows Toxic Air Threat Choking Indian Subcontinent
You can compare the maps for e.g. PM2.5 in New Delhi and LA quite easily:

http://aqicn.org/map/delhi/mandir-marg/#@g/28.6188/77.2405/1...

http://aqicn.org/map/losangeles/los-angeles-north-main-stree...

Quite a lot worse, as you can see!

njs12345··on Basic income plan clearly rejected by Swiss voters
With regard to deposit scams, the system we have in the UK works pretty well - the landlord must put the deposit in a government-approved escrow scheme, which then decides any disputes over how much of the deposit should be held back (anecdotally quite fairly).

If the landlord fails to protect your deposit, and does so in what might be considered bad faith, a court will often order them to pay you 3x the deposit as compensation - so they all end up actually doing it.

See https://www.gov.uk/tenancy-deposit-protection/overview

njs12345··on How Much Housing Will Be Built?
Government policy determines the price of land. Land is a major component of the cost of housing, so it stands to reason that government intervention in housing policy can make housing less expensive.

For instance, imposing a very high land value tax would reduce the value of land, which would in turn reduce the cost of housing.

njs12345··on A billion prices can’t be wrong
More or Less is also an excellent radio program he narrates on economics and statistics, definitely worth a listen: http://www.bbc.co.uk/programmes/b006qshd
njs12345··on Google AI has access to huge haul of NHS patient data
It's difficult - I have more of a fairness problem with this (such a deal would probably not be available to researchers or smaller companies) than a data privacy concern. As others point out downstream, I think it's not really in Google's interests to use the data maliciously and I have more faith in their opsec than that of any NHS trust.
njs12345··on Google AI has access to huge haul of NHS patient data
The world's 5th largest employer (just after McDonald's)..
njs12345··on Open Source Project – View 689 Salaries Posted on Hacker News, Share Yours
As a counterpoint to this post, I have free private insurance with work and never bother using it because the NHS works so well for day to day things.
njs12345··on Many railway lines in Britain that were closed in the 1960s are re-opening
The operator also has no control over fares and branding, I'd argue that's a big difference too.
njs12345··on Twitter shut down Emojitracker's access
> Immediately writing a public blog post is not negotiating in good faith.

Yet this seems to have been quite effective, given that the head of Developer Relations at Twitter is replying to this story on HN..

njs12345··on We're hearing about troubles at Nest
I would second that. Not in SV, in London, but I had a similar experience with an abusive work environment.

Stayed way too long and some of my shares vested. Now they're worth some money on paper, but it wasn't worth it - my advice for anyone in a similar situation would be to get out as early as possible.

njs12345··on How a Legal Journalist Got Fired for a Non-Compete
Luckily, in much of Europe, overly broad non-competes aren't enforceable: https://en.wikipedia.org/wiki/Non-compete_clause#Europe
njs12345··on Learning to Love Brutalist Architecture
The Barbican is definitely amazing — another favourite of mine is the Preston Bus Station: https://upload.wikimedia.org/wikipedia/commons/d/da/Preston_...
njs12345··on SSH tunnelling for fun and profit: AutoSSH
Sshuttle is awesome. Comparing the ease of use to openvpn, it's night and day..
njs12345··on The best cities to get ahead are often the most expensive places to live (2014)
I haven't read George's original works, but his philosophy allows for private ownership of land - it's just that the 'rent' of the land - the value derived solely from e.g. its location - will be taxed at a very high rate.
njs12345··on Money Flooding Out of Canada at Fastest Pace in Developed World
You might find the Wikipedia articles on international economics interesting - e.g. the "impossible trinity": https://en.wikipedia.org/wiki/Impossible_trinity
njs12345··on Functional-navigational programming in Clojure with Specter
The other name for this kind of abstraction is a 'lens' (as touched on at the bottom) - I found this library pretty quickly: https://github.com/DrBoolean/lenses
njs12345··on What is online pornography doing to sexual tastes and youngsters’ minds?
Probably the paywall - try Incognito Mode?
njs12345··on Daniel Thompson, Whose Bagel Machine Altered the American Diet, Dies at 94
I think there were bagels in Brick Lane before they were in the US, so in that sense it's a very traditional bagel indeed.. Not sure how long the shops there have been going though (white or orange).
njs12345··on Ask HN: What is the best pre-commit code review workflow?
Phabricator is great, can't recommend it enough.
← PreviousPage 2 of 13Next →