News for hackers. Stuff that matters.

ucarion

Re:Localizing “Papers, Please” (2014) on Sunday June 25, 2017 @02:48AM (#14628952)
The Unicode CLDR has a whole database of formatted strings for each locale, for more or less the reason you describe. Formatting dates or big numbers (12345 -> 12.3k) is impossible to achieve without a generic formatting language.

Pluralization is another nightmare of its own. Look into how Russian and similar languages pluralize. It has to do with the value of the number modulo 10, similar to English ordinals.

CLDR: http://cldr.unicode.org/

It might be worth linking to the talk that discusses html5ever's use of macros? I'm having trouble finding it.
Re:Getting Past the Dominance of the Nation State on Sunday June 18, 2017 @08:55AM (#14580441)
To suggest that humanity needs a global state seems to beg the question of all of politics: how do you get people to get along and transition peacefully to new states?

The threat of Napoleon got the Holy Roman Empire to globulate into its modern nation-states. But I don't see how Saudi Arabia is ever going to relinquish power, let alone share a government with the Israelis.

Re:“Stop Zillow” on Friday June 02, 2017 @08:50PM (#14474294)
Is there any credence to the claim that Zillow's "zestimates" are frequently inaccurate? If not, then I don't see any legitimacy behind this movement.

Edit: I ask because the populist-y invective on this site raises red flags for me, but I also don't know anything about this industry.

Re:4D Toys: a box of four-dimensional toys on Friday June 02, 2017 @04:19PM (#14472987)
That's a neat idea! But I think it might be a bit overwhelming and confusing. It would help with getting the bigger picture.

Every 4d object would end up being a clear 3d cross-section where it intersects with our 3d world, plus a cloud of superimposed and increasingly hazier 3d cross-sections above and below us along the 4d ("w") axis, projected down onto w=0 3d-space.

Re:Stripe Sigma on Thursday June 01, 2017 @10:37PM (#14467012)
Answering my own question: a person who works at Stripe is a "Stripe", not a "Striper".
Re:Stripe Sigma on Thursday June 01, 2017 @08:44PM (#14466496)
As usual, another beautiful Stripe product page. Fantastic job! The product looks pretty awesome too.

In case any Stripe-people are lurking here, the scrolling on the example query modals (the ones you get from clicking on e.g. "How many active customers do we have?") is painfully slow -- as though it had only been tested for Mac touchpads, where scrolling quickly is easy.

I'm on Firefox/Ubuntu, using a shitty USB mouse with a scrollwheel.

P.S.: What demonym does Stripe use? "Striper" is a letter away from an embarrassing typo.

Re:Kerbal Space Program Acquired by Take-Two Interactive on Wednesday May 31, 2017 @03:07PM (#14455068)
I'm confused about this too. The Martian (at least the book) has good science throughout. But in Gravity, the space shrapnel is moving much faster than the ISS, yet has the same orbit as it. I don't think that's possible, from what KSP has taught me.
Re:Turning Off GitHub Issues (2016) on Tuesday May 23, 2017 @06:24PM (#14405914)
"I found a bug and you won't consider it unless I phrase it as example code? Screw you, I won't report it then!"

This seems like a reasonable thing to think and say.

A better alternative to the article's suggestion is to state somewhere that it is very likely your issue won't be considered unless it takes the form of a PR. The maintainers, if they don't want to deal with the bug, will say "could you make a PR with a failing test case? Otherwise I don't have the time to work on this".

That way, those who really want the bug fixed have to put in work, but those who just noticed a problem and are kind enough to let the maintainers know can do so easily. Why discourage bug-reporting?

Re:Gödel and the limits of logic (2006) on Monday March 13, 2017 @09:04PM (#13864076)
I can't speak for Godel's original proof since I haven't seen it before, but I certainly found Computability and Logic [1] to be pretty approachable. It's the textbook used for UC Berkeley's "Intermediate Logic" philosophy course (in other words, it's so easy even philosophy majors can understand it! :P).

From my understanding, C&L diverges from Godel's original proof technique in order to make it easier to follow, but it's much more rigorous and explicit than what you'd find in Godel, Escher, Bach or something. It's still a textbook.

[1]: https://www.amazon.com/Computability-Logic-George-S-Boolos/d...

Re:Announcing Tokio 0.1 on Wednesday January 11, 2017 @01:58PM (#13376468)
The method `from_str` is from the FromStr trait. [1] The `parse` function only works on types that implement FromStr. It's "special" in that it's the conventional way to do things, but the compiler does not treat FromStr specially.

[1]: https://doc.rust-lang.org/std/str/trait.FromStr.html

Re:Lessons learned as a React contractor on Thursday January 05, 2017 @09:27PM (#13333426)
If you've never used Webpack, don't use create-react-app. The configuration it generates is almost impenetrable if you're not already familiar with Webpack.
Re:Derek Parfit has died on Tuesday January 03, 2017 @02:14PM (#13312081)
It's not "anti-Super Natural" per se, but he is against a separately-existing entity. Why Ulysse Carion yesterday is the same person as Ulysse Carion today is much like why France yesterday is the same country as France today. Personal identity is much like "national" identity -- it's not a very profound connection, just a high degree of correlation and continuity.
Re:Derek Parfit has died on Tuesday January 03, 2017 @02:11PM (#13312049)
I'm not trying to use Parfit to bash religion -- I just chose this particular example. For the average person, souls are more interesting than Mere Addition or mixing your brain with Greta Garbo's. The fact that many have been goaded into replying (and hopefully many more are silently reading Parfit) seems to confirm this.
Re:Derek Parfit has died on Monday January 02, 2017 @11:00PM (#13306579)
If you speak to Christians who believe in souls (not philosophers or Jewish theologians, who have boundless capacities for mental contortions), they'll agree that teleportation/copying is problematic to the idea of souls. Who goes to heaven in these situations?
Re:Derek Parfit has died on Monday January 02, 2017 @06:17PM (#13305316)
I hate most philosophy, but I read Parfit's technical Reasons and Persons and genuinely enjoyed it. Did you ever think teleporters could be the basis for an argument against souls? Parfit thought so. Plus, his writing is optimized for being understandable -- no flowery bullshit. You don't need any special knowledge to appreciate his work.

I highly recommend Reasons and Persons: https://www.amazon.com/Reasons-Persons-Derek-Parfit/dp/01982...

Here's an illegal copy online, which can convince you how good his stuff is: http://chadpearce.com/home/BOOKS/161777473-Derek-Parfit-Reas...

The closing words:

"Disbelief in God, openly admitted by a majority, is a recent event, not yet completed. Because this event is so recent, Non-Religious Ethics is at a very early stage. We cannot yet predict whether, as in Mathematics, we will all reach agreement. Since we cannot know how Ethics will develop, it is not irrational to have high hopes."

Re:Rust is more than safety on Wednesday December 28, 2016 @08:06PM (#13275007)
Ah, thanks for catching that subtle-but-important mistake. :)
Re:Rust is more than safety on Wednesday December 28, 2016 @02:43PM (#13273066)
Though I knew how to use them, I didn't understand how Rust closures could work until I read these articles:

https://doc.rust-lang.org/book/closures.html

https://doc.rust-lang.org/book/trait-objects.html

Basically, a closure is just an anonymous trait, and traits are implemented with vtables. This reminds me of how you can think of Java's lambdas as anonymous classes (though they're not implemented that way).

Re:LiChess: Learn from your mistakes on Thursday December 22, 2016 @09:07PM (#13242227)
Online ads also track you, and are often executed in poor taste. It's as though most of the posters had a camera and bright flashing lights.
Re:Web Fundamentals on Friday December 16, 2016 @07:11PM (#13198095)
In case someone reading this can fix it, there's a typo:

> App install banners make it easy for users to add your app to their home screen with a single click, and is an indication to the user that the app their adding, meets an important quality bar.

"their" should be "they're", and there shouldn't be a comma after "adding", I think.

This moratorium will only last a week. I think our discourse will survive. Though political discussion is essential, I think you'd agree it has downsides when there's too much of it or when everyone considers it high-stakes.

The way I see it, the mods are asking us all to hold our political tongues and see what the comments feel like. They're very clear that it's an experiment. Maybe when politics resume seven days from now, people will remember what quality discourse looks like. This is mods trying to keep the conversation good.

It's not just political correctness. The socially optimal future is one in which anyone, regardless of race and gender, can become a software engineer. Someday, we're going to put in effort to move from our current world to this better future. Software engineering is a highly-desirable, well-paying, forward-looking job and it's still early days. Why not give it a shot?

There are of course many PC-police types who can't give a clear reason why we should pay attention to diversity, but there are good reasons nonetheless.

It seems doubtful that income inequality is inherently bad, but perhaps it's strongly correlated with things that are inherently bad (i.e. suffering, if you ask me).

Consider a society A, and then society A+ which is identical except the most well-off person is twice as well-off. It's hard to see how A+ could be worse than A in any way. Maybe there's an even better A++ where A+ has some redistribution, but that's another argument.

We don't mind inequality within lives (nobody says it's inherently bad to have most of your happiness distributed toward the later half of your life), so we'd need an argument why inequality across lives is bad.

> How do you know? My impression is that most taxi drivers are very busy adapting. But I don't know either.

To be clear: I don't know either. I'm an outsider to this industry. I'm just offering arguments.

> Let's be clear: The people hardest hit by Uber/Lyft is taxi company owners.

I don't think this is true. They're losing the most money, but they have lots of money. Taxi drivers risk losing all their revenue, which is worse.

> Uber has been around for half a decade. How many decades does it take?

I think this is the hardest question. According to the people behind this bill, half a decade is not enough. I agree with that judgment.

You identify most of the difficulty of this scenario:

1. Taxis are a dying industry, but taxi drivers are not adapting.

2. As a result, taxi drivers are suffering. Their livelihoods, which have brought food to their families' tables for decades, are being taken from them by forces they could not anticipate or control.

Of course,

3. We care about these taxi drivers. Suffering is bad no matter what industry you work in. Suffering is worth avoiding.

Ultimately our answer has to be to say "your job doesn't really exist anymore, you need to find a new one". But it matters how much time we give taxi drivers. Clearly, asking them to adapt overnight would be too demanding, so there's a balance to be made between market efficiency and the realities of our apish learning rates.

In the long run, a lot of jobs are going the way of the taxi, and perhaps basic income is the long-term solution. But we can't implement basic income today. It's a massive solution to what is currently a minor, contained problem.

Every country's policies are a gigantic legacy codebase. Basic income would be re-writing a huge chunk of the code, where this tax is adding yet another minor hack to keep the thing running smoothly.

Re:Game Theory – Prison Breakthrough on Friday August 19, 2016 @02:31PM (#12322279)
The article describes interpersonal Prisoner's Dilemmas, where if every person optimizes for themselves, the final result will be worse for each and every person (than if they had all shown restraint). As the article points out, this may explain pollution and overfishing.

There are also intertemporal Prisoner's Dilemmas, where each if person-at-time-T optimizes for their immediate goals, the final result will be worse for each and every moment in that person's life. This may explain why we overeat: any given moment is made better with a Big Mac, but if you ate a Big Mac all the time every moment your life would be made much worse than if you led a restrained, healthy life.

Re:Optimism on Tuesday August 16, 2016 @06:23PM (#12301089)
It's an open question in philosophy (what isn't?), but isn't happiness our ultimate aim, or at least a very important component of the ultimate aim?

It's pretty easy to try to bias yourself toward happiness, but still have a daemon in the background making sure you're not diverging from reality too much. If you're very concerned about being biased, then you can probably trust yourself to be reasonable when being biased in this way.

For many of us, we're more inclined to be irrationally biased against ourselves than in favor of ourselves. The conscious, monitored, and controlled bias the OP describes can counteract our natural pessimistic inclinations.

Re:React Server on Thursday August 11, 2016 @08:15PM (#12272676)
If you're gonna use React Router and Redux, you should also check out react-router-redux:

https://github.com/reactjs/react-router-redux

Re:The fight to cheat death is heating up on Thursday August 11, 2016 @08:09PM (#12272655)
Derek Parfit (a philosopher), in "Reasons and Persons", considers many of the cases you hint at, as well as few more tricky ones (such as progressively replacing your brain cells with someone else's, or splitting someone's brain [1] and putting the two halves in different bodies). He ultimately argues for two points:

1. Personal identity is basically just psychological continuity (physical continuity doesn't matter). That psychological continuity needs to be "non-branching" -- identity has to be one-to-one, and so if there's a clone of you walking around, it makes more sense to say neither of you are "you" than to say "both" are.

2. As the weirdness in (1), suggests, Parfit doesn't think personal identity matters very much. Self-interest (as opposed to altruism) seems a little silly when you linger on who exactly you care about, especially in the face of blended-brains and split-brains.

If we were immortal but had finite memory, Parfit would argue that personal identity is more of a sliding window. As we forgot our ancient memories, we would lose touch with that part of ourselves, eventually becoming totally distinct persons over time. Which, of course, sounds a lot like the actual human condition.

[1]: https://en.wikipedia.org/wiki/Split-brain

Older »