HNHacker News
TopNewBestAskShowJobs

chrisdevereux

723 karma · joined January 12, 2012

submissionscomments
chrisdevereux··on Manners in Early Modern England
Well yeah, it's unusual enough to be worth mentioning that a historian is interested in social theory. As an example of the stuff they read that you might not expect.
chrisdevereux··on Godot gets a brand new animation editor with cinematic support
I've been waiting for this....
chrisdevereux··on ECMA TC39: “SmooshGate” was officially resolved by renaming flatten to flat
You're right, it's not as bad. But the metaproblem here is making the assumption that the global environment is not going to add new APIs.

In the case of Angular zones, if additional async APIs are added to the browser, Angular needs to be updated to patch them with its own zone implementation.

This wouldn't break existing sites, but could leave, for example, sites on older angular versions unable to use new browser APIs, use libraries that use new browser APIs, or install security updates to dependencies if newer versions rely on new browser APIs.

chrisdevereux··on ECMA TC39: “SmooshGate” was officially resolved by renaming flatten to flat
> Zones monkey-patches global asynchronous operations such as setTimeout() and addEventListener(), which is why Angular can easily find out, when to update the DOM.

https://blog.thoughtram.io/angular/2016/02/01/zones-in-angul...

I can imagine Angular zones becoming problematic in exactly this kind of way in a few years...

chrisdevereux··on Which is the most ideologically diverse American city?
Given that we tend to over-emphasise the differences between ideological positions that we're more familiar with, and under-emphasise the difference between positions that we aren't, it's hard to see how an exercise like this tells us anything except the author's own political experience and imagination. Even if there were empirical data here, how could we objectively determine the distance between ideological perspectives? And what dimensions of their many differences do we emphasise?

We see this most clearly when we look at ideologies that are dominant today. For example, a fairly core ideology over the last 30 years is that more and more aspects of society either should, or inevitably will, be governed by the market. As a result, ideologies that don't subscribe to this this idea are generally viewed as similar no matter how much they might otherwise be unrelated. Which is kind of strange, since 'ideologies that don't subscribe to this idea' amounts to most of the ideologies adopted over the course of human history.

chrisdevereux··on Ask HN: If I only learn one static typed language, which one should I learn?
Another vote for Typescript here. For one because it's a really nice modern type system that doesn't get in your way too much. Also because if you're already familiar with node, you'll be able to focus on the language rather than new libraries/tooling/ecosystem.
chrisdevereux··on Ask HN: What are the OSS alternatives to iOS/Android?
Thought experiment: Say that I have a raspberry pi or similar. What hardware do I need to plug a sim card in and connect to a mobile network? Can I order it from a commodity supplier?
chrisdevereux··on Ruby `reject!`
O(0) would though, right?
chrisdevereux··on Hustle, a text-distribution tool, raises $3M
In what sense is Hustle 'grassroots'?
chrisdevereux··on The promise of static typing
Aside from project size, the problem domains of libraries are likely to vary hugely between languages. With statically typed languages being biased towards either systems programming or more algorithmically complex tasks.

The proportion of Haskell libraries for tasks like string padding is probably lower than the proportion of ruby or js libraries, for example.

chrisdevereux··on The Rest Is Advertising – Confessions of a Sponsored Content Writer
In all seriousness, a browser extension that flags sponsored content would be great.
chrisdevereux··on UIKit for the Mac
Exactly. Apart from anything else, we already have HTML. Why would you want to write a lowest common denominator UI that only targets the Apple ecosystem?

You'd be getting neither the benefits of native nor the benefits of cross-platform.

chrisdevereux··on Ask HN: Opinion about Searle's Chinese Room?
Its popularity in undergraduate philosophy courses reflects the fact that it is easy to criticise more than it telling us something interesting about consciousness.
chrisdevereux··on David Bowie Has Died
They had the Monkees back then. We have real artists now. Have things changed so much?
chrisdevereux··on North Korea Announces That It Has Detonated First Hydrogen Bomb
I am 99% sure that both China and the US would be happy with a deal along the lines of "The regeime goes, but NK stays a Chinese satellite", assuming that such a deal were feasible without risking huge destruction and loss of life.
chrisdevereux··on Let artificial intelligence guess your attractiveness and age
I wonder if they were included in the training set...
chrisdevereux··on Let artificial intelligence guess your attractiveness and age
Very brave of you to put the founder photos on the front page...
chrisdevereux··on Building a cross-platform desktop app with NW.js, React and Flux
Most embeddable webviews allow binding additional methods that call into native though. This is how cordova works, in fact. If you're restricting access to local html/js, it shouldnt be any different to nw/electron from a security perspective.

Edit: looks like the tint framework linked above actually isolates the webview from the node runtime. Nice.

chrisdevereux··on Building a cross-platform desktop app with NW.js, React and Flux
Or even better, use the platform's native webview.
chrisdevereux··on The Word “Million” Didn’t Exist Until We Needed It
> there was no word for “million” in Old English, a medieval predecessor of the language you’re currently reading

This sentence is a fantastic example of why translation is so hard!

chrisdevereux··on Economists effectively assume that capitalism is unnecessary
You're right, I really meant to point out that there's an interesting relationship between markets and computational complexity (and that it's odd for the efficient markets hypothesis if it assumes that P=NP) rather than advocate for markets being an unqualified good (I'd probably describe myself as some kind of Marxist, fwiw).

> But has anyone proved that markets actually do approximate the (intractable) correct allocation? They could be a very poor approximation or even be actually computing something we don't want.

> They could be a very poor approximation or even be actually computing something we don't want.

Well, it would be wrong to take the market allocation to define the desired outcome, but assuming we have some other understanding of what our desired outcome, we can at least assess whether it performs better or worse at the computation than some other approach, right?

It's interesting also that markets seem to share properties with other sub-optimal approaches to computationally hard problems. Getting stuck in local maximas, for example.

chrisdevereux··on Economists effectively assume that capitalism is unnecessary
Which is a actually sort of related to why markets are useful: Providing an approximation of a solution to the problem of allocating resources where an optimal solution is unfeasible due to complexity.
chrisdevereux··on Show HN: Hacker News desktop app made with Electron and Node
Smaller apps would probably benefit from an electron-like system that just uses the inbuilt system browser. I'm not aware of any such projects, though.
chrisdevereux··on Let's Build dispatch_queue
One of the occasionally annoying things about developer communities is their tendency to present certain technologies as unqualified 'magic' and one should be thankful for developing for platform x because only it has technology y. GCD is sometimes presented this way, when it's mostly just a thread pool with a nice API.

Which is why articles like this are so great. When I was first dipping my toes into development, Mike Ash's articles were a great help in cutting through the marketing hype and realising that these are mostly things you could have implemented yourself given the time and inclination.

chrisdevereux··on Almost None of the Women in the Ashley Madison Database Ever Used the Site
50% of you...
chrisdevereux··on Backdooring JavaScript using minifier bugs
Even if you don't use a minifier on the server, a library built using any kind of transpiler (babel, coffeescript, typescript...) could be susceptible to this kind of attack.
chrisdevereux··on Shutdownify is shutting down
Challenge accepted!!!! (Possibly missing the point)

     setOfAllPossibleStatesOfWorld.every(s => s.app.isRewrittenInNode) && app.rubyVersion.hasReallyUnintuitiveUI
chrisdevereux··on Branch Prediction and the Performance of Interpreters – Don’t Trust Folklore
Is there a reason that machine languages don't allow the programmer/compiler/runtime to explicitly control the CPU's cache & instruction pipeline?

Presumably they have access to much better information about the code's intent and future behaviour than the cpu does.

chrisdevereux··on A Eulogy for Objective-C
Also, since classes are mutable, calling a method in a multithreaded environment may result in lock contention, which I imagine being tricky in a driver.

So using obj-c in the kernel might require giving up some of the language's dynamism. Not sure how this was handled in NeXT.

chrisdevereux··on Estimate the cost of a Web, iOS or Android app
Oh, I wasn't really objecting to the content of what you said there... It's open for debate whether or not there's a better expression than "man hours".

I just wanted to point out that said debate would hinge on more than a narrowly semantic question about the meaning of "man".

Page 1 of 11Next →