Forgot your password?

Comment: Re:Living in the country is an anachronism (Score 2) 264

by TheRaven64 (#47718515) Attached to: Helsinki Aims To Obviate Private Cars
One word: Zoning. If you've played SimCity, you have a good idea of the structure of a lot of US cities. For some reason, they decided that places where people live, places where people shop, and places where people work should all be separate and so you need to drive to get between them. In most of the rest of the world, cities formed where villages grew until they were overlapping, so contain a mixture of homes, shops, offices, and so on. In the UK, it's hard to live in a city (or town) and be more than 5 minutes walk from a grocery store and usually a load of other small shops. A big supermarket may be a bit further away, but most deliver so you don't usually need to physically visit them.

Comment: Re:Shame (Score 1) 93

by K. S. Kyosuke (#47717227) Attached to: Interviews: Bjarne Stroustrup Answers Your Questions

No, because in Java you declare variables to have types.

But if those types are not final, you don't know the dynamic subtype of concrete values (and the concrete methods to call) in advance, and you're forced to do the same kinds of optimizations that Javascript does. Seriously, look at current VM tech again. Type feedback and speculative inlining are of legal drinking age in the US by now.

Comment: Re:Shame (Score 1) 93

by K. S. Kyosuke (#47714233) Attached to: Interviews: Bjarne Stroustrup Answers Your Questions
Of course, how else would you suggest to build a high-performing implementation of JS? These days, just about everyone is using either the Self-93 implementation model or something suspiciously similar. (BTW, technically, *all* Javascript functions are anonymous functions, it's just that some of them happen to be bound to global variable names, very much like in Scheme. Optimizing the calls of anonymous JS functions is no different from optimizing calls to any other JS functions.)

Comment: Re:Oh god so what? (Score 1) 189

by TheRaven64 (#47710949) Attached to: C++14 Is Set In Stone
Clang has some builtins that allow you to get the carry bit, so you can cheaply write code that branches on carry. We (mostly CERT, I helped a bit) had a proposal for inclusion in C11 that would have added qualifiers on integers explicitly defining their overflow behaviour as trapping or wrapping, along with a model that let this be implemented cheaply (e.g. allowing a set of side-effect-free code to propagate temporary results and only trap if one of them along the way overflowed). Sadly, it didn't make it into the standard.

White dwarf seeks red giant for binary relationship.