skysight-inc/HackerNews huggingface dataset:
Copenhagen has the same system (it's actually steam that is piped around the city; gases are much easier to move than liquids). It's called district heating.

In the basement of my building there's a heat exchange, which uses the steam to heat water. This water is piped around the building.

My fairly new apartment has a meter fitted on that hot water pipe. It measures how much heat I extract from the water, and I'm charged accordingly.

In some older buildings, they have some sort of temperature logging device on each radiator. I assume this is to charge the residents according to their usage.
Living here in Portland, though, my fear is that it won’t be developers taking a flyer to build these homes, it will be the investor class bankrolling the developers to build permanent rental properties.

Hoping I’m wrong, but the last few decades’ antics with investors tells me I’m not.
How many joules of energy are needed per gram of protein...?

That's the key number this article should have found out and quoted. They should have compared it to grow-lamps and other closed-environment food production methods. If the numbers didn't look good, they should have also quoted an engineer saying "this is what we can do now, but we hope to get it down to X, and it theoretically can go as low as Y".

Those numbers could have been brought into context by saying "with current solar technology, that means the whole world population could be fed with solar panels the size of Ethiopia".
In the UK, semi-detached houses are probably the most common middle class type of dwelling, so it's interesting to see that there is some sort of debate about this.

Loads of differences between US/UK but still
I think it's much more likely to be somewhere in Russia, Kazakhstan etc.
If you already have rainwater harvesting, good for you, but if you depend on borewells and tankers for water, then news like this is not alarmist and is worrisome. Borewells are already becoming dry throughout the city, and digging deeper results in more brackish water. Cementing every single part of land, and not building recharge wells only adds to the problem. (Tankers are reliable for now, but it's silly to put the control of a vital resource in the hands of a private entity that will always be attracted to the highest bidder. The poorer sections of society will be affected first and hardest)

As the population of Bengaluru increases, the demand for water will increase. It's not just a distribution issue, it's a civic planning and ecological issue. Encroachment of lakes[0] and the booming real estate market aren't helping the situation at all.

Also, desalination is not as easy as one thinks [1].

Better solutions to this problem are effective civic planning, ensuring that the groundwater table is recharged, (as you rightly mentioned) rainwater harvesting, and preserving the lakes Bengaluru has.

[0] http://bengaluru.citizenmatters.in/bangalore-water-bodies-nd...

[1] https://www.hydrofinity.com/blog/why-desalination-is-not-the...
Note that you're just saying a generality, without addressing the comment you're replying to at all.

Sweeping atrocities under the rug is also very common, then trying to project one's own failure to speak out against them as some kind of moral failing of those who do.

> Every powerful state relies on specialists whose task is to show that what the strong do is noble and just and, if the weak suffer, it is their fault. In the West, these specialists are called "intellectuals" and, with marginal exceptions, they fulfill their task with skill and self-righteousness, however outlandish the claims, in this practice that traces back to the origins of recorded history.

-- Noam Chomsky

Just the fact that this discussion was barely penalized, is bursting with accusations of "hysteria" (that also has tradition) and "racism" and "flamebait", while these for example were very harshly penalized, speaks volumes:

https://news.ycombinator.com/item?id=20318279

https://news.ycombinator.com/item?id=20315905

I think grotesque is a good word for it:

https://www.youtube.com/watch?v=dsoImQfVsO4&t=33m27s

> One of the greatest advantages of the totalitarian elites of the twenties and thirties was to turn any statement of fact into a question of motive.

-- Hannah Arendt, "The Origins of Totalitarianism"

This is exactly the tactic, and the pattern in hundreds of HN discussions: make accusations one doesn't need to prove, and the accused cannot disprove. "You just say this because you hate X", or "you don't say this because you think it's true, and despite it possibly offending someone, no... this is flamebait, my inability to address your argument on its merits is actually your intention". But of course it's verboten to be offended by any of that.
Xcode has its own C memory sanitizers? That's very surprising to me.
That is exactly what totalitarian regimes like North Korea do to maintain the high living standards in certain cities.

Mobility rights is seen as a fundamental human right and is protected by constitution in most countries.

What needs to happen is to provide economic incentives for people to spread out, not through laws that limit ones right to movement.
In which nordic country do you live? Im swedish and we have centralized water heating, and to me it sounds insane that people where you live does not have gate valves. The only time I heard of someone without that was when a friend changed the heating system in his building, and that was like a week of high temp. 30 degrees inside during winter sounds totally insane. Here we discuss that we should lower from 23 in the winter to save resources.
"New USB controller firmware"

I took it to mean that the USB controller was doing double duty holding the now reflashable firmware for the main processor. Still a little weird, but makes a bit more sense.
What's your impression of Lua-Terra? (http://terralang.org)
Doubtful. I think web development, mobile and enterprise are the biggest development domains by headcount, and neither has to normally touch C or C++.

And that's fine, why does one have to understand an ancient language when they can interact perfectly fine with machines by using Python, Swift, Java etc?
There is Musish (https://musi.sh/) which uses the MusicKit JS to allow Apple Music playback in the browser.

There are also plans to bring the Apple TV app to Smart TV platforms as well, so a similar framework may be on the way for TV too.
If nothing else, you can always serve as a good example of a bad example.
SkyTran
> India's population density is comparable to many Western European countries.

I went down worldpopulationreview.com's list; I'll post my list annotated with country size as a reply to this comment.

Findings:

India, the country, is #28. It has essentially equal population density to the Netherlands (#29, in Europe!), while being a modest 87 times larger. Belgium (#33) has only slightly less density, and India is merely 102 times bigger.

The next European country down is England at #50. It's much closer to the size of India -- 8% as large -- and has two-thirds the density.

Pakistan is #55; it's about four times the size of England with comparable density.

#59 is Germany; it's less than half the size of Pakistan with comparable density. Luxembourg and Liechtenstein, who you might have thought would have super-high density, are equal to Germany. (Monaco and Vatican City really do have super-high density.)

The only other country-sized European countries in the top 70 are Switzerland and Italy, #68 and #69. They have half the density of India. Italy is a tenth of India's size. Switzerland is slightly larger than the Netherlands.

Bangladesh, by the way, is #12, with more than double the density of India (in about 1/20 of the space).

So I can't agree that India's population density is comparable to "many Western European countries". It's comparable to a couple of diminutive European countries. Equal density over 100 times the area is not what you would expect; it's something very unusual about India.

In fact, we can just compare the regions directly. Europe has 743 million people in 10 million square kilometers of land for an average density of 74.3 people per square km. India (including Pakistan and Bangladesh) has 1740 million people in 4 million square km, for an average density of over 400 people per square km (roughly equal to the density of India the country, which makes sense), about 6 times the figure for Europe.
the hub? it's lg thunderbolt monitor with usb hub.
or go all in, and establish a world government. I think a single governing body is the only true way forward for humanity, if humanity is to move beyond earth and be a space faring civilization.
Areas are taken from Wikipedia, with water area removed where Wikipedia lists water area. This list is the full top 30 "countries" plus whoever I thought was of interest down to #70. Many areas are rounded.

1. Macau 30 square km
2. Monaco 2.2
3. Singapore 720
4. Hong Kong 1,070
5. Gibraltar 6.7
6. Bahrain 778
7. Vatican City 0.44
8. Maldives 298
9. Malta 316
10. Sint Maarten 37
11. Bermuda 39
12. Bangladesh 138,000
13. Palestine 5,800
14. Saint-Martin 53
15. Mayotte 374
16. Barbados 439
17. Lebanon 10,300
18. Taiwan 36,000
19. Mauritius 2,000
20. Aruba 179
21. San Marino 61
22. South Korea 100,000
23. Nauru 21
24. Saint Barthelemy 25
25. Rwanda 25,000
26. Comoros 1,659
27. Tuvalu 26
28. India 2,970,000
29. Netherlands 34,000
30. Israel 21,000
33. Belgium 29,000
37. Japan 365,000
47. Vietnam 310,000
50. United Kingdom 239,000
55. Pakistan 860,000
59. Germany 357,000
68. Switzerland 40,000
69. Italy 294,000
yes except now I have to replace a perfectly good thunderbolt monitor with a usb-c monitor.
Hmm. When I need to find a specific JS library I do a search and there are a good 20+ of them all with different dependencies, levels of support, different past issues, etc. It's so difficult to pick a good one. I mean, you can just _pick one_ and go on with your life but if you pick the wrong one it can really bite you.

Whereas with C# or Java or Ruby or Python or countless other languages the standard library is big enough that a quick search, find an example and boom I'm done (I always thought the MSDN was amazing; it's like Mozilla's JS documentation but for C# with tons of awesome examples). If it's highly complex I can find a library that likely depends mostly on standard library functions and not have to worry about tons of dependencies.

I do a ton of development in JS and I think its standard library is one of its biggest flaws. ECMA would rather avoid adding too much to it as they seem to view the language as a small, scripting language and the platform should provide everything. That's a valid view, I think, but I don't agree with it at all. It's grown far too much to keep that view IMO.
What have been the upsides recently?
Regardless of how you feel about Apple's design choices, recent improvements in both Bluetooth and Wi-Fi mean that it's clear to even those that can't predict the future that wired/corded connections are going to be obsolete for all but the highest bandwidth (i.e. Thunderbolt/PCI/uncompressed UHD+ display) interfaces (and, of course, power). Most peripherals used by most people will be entirely wireless. This isn't an Apple thing, this is just the way things are going in our industry.

If you want "full port", invent a time machine and travel back to the time when people accepted cables. That time is gone now.
> As someone who is used to a room temperature of 20C, 28C is above the point of idle sweating and becoming lethargic.

AC should not to be used for more than delta 8C. Maybe 10C. For Americans: if it's 104F outside it shouldn't be set to less than 86F. Setting to the customary 68F is very bad for your health.
Let's take a moment and remember that a lot of the bad aspects of what happened to India after the brits left was because they divided up the country and then washed their hands in innocence. Now you propose to do it again. Why? It did not work well last time, and somehow you imagine dividing it along the lines of a single relatively minor (as in it's eminently solvable, not because it has little impact) problem that it will go better now.

I don't follow your reasoning about this at all.
As a non-north american I was initially confused at the replies because surely duplexes are low density construction for a city.
What I have seen in many SPA apps is a lot more requests over the network, instead of one bigger page that contains everything.
There are developers at google (most likely in increasing numbers) that would look like a deer caught in the headlights when asked to work on a C++ part of the code base (anecdotally according to a guy working at Google)
Human vision goes years before our cancer rates spike. We are essentially living past our primitive life expectancy until something fails which is very recent and evolution has had little time to catch up to this.

At a nuts and bolts level cell volume is less indicative of cancer as interfaces like skin, lungs, and intestines are vastly more likely to get cancer than most other tissues. Early cancers are often the result of mutations during growth from a single cell which is closer to log(volume) vs simple volume in terms of risks.
> get a few interns

Pretty much agree, but not sure Internships are the best way to do it. Expecting people to work for no pay means you only get those that can afford to work for no pay.

I remember an article on HN from few years ago, about the German apprentice system. Paid work, coupled with college education.

https://tobi.lutke.com/blogs/news/11280301-the-apprentice-pr...

https://news.ycombinator.com/item?id=5314268
Creating Progressive Web Apps Using Angular
If I encounter an issue on Linux (that I can reproduce), I can investigate it to its root (sometimes in the kernel driver) and fix it (or find someone who has fixed it). On windows, I have only seen issues fixed either by reinstalling applications (mostly randomly) and praying or by using annoying work arounds. IMHO, the cost is higher in Windows.
No way. I hate localized error messages. At least in modern times as software vendors stopped putting error numbers into the message.

It's very hard to find solutions online when you only get a localized error message.
Who will wake up from a coma? Electrical jolts in the brain offer hints
The rumor is that USB-C was an Apple invention, quietly pushed into the USB-IF so that it wouldn't have the Apple stink on it, and so that it would become a global hardware standard in the way an "Apple Thing" never could: power and high speed data, in a convenient and reversible plug.

Now they're on Chromebooks, WinTel machines, and the Raspberry Pi.

If the rumor is true, it was a really smooth move by Apple.

It would be an extremely Apple-esque thing to hack an industry-wide movement just so that your laptop could be charged by any power brick made by any manufacturer at any time (even if your competitors get this functionality too).
This is great -- I was sorry not to see the web target at WWDC, especially given Apple's WebObjects history.
I had to go to one of these cold places once for a couple of weeks. The car I was given was a modified Toyota Land Cruiser with two 100 liter tanks, additional insulation, additional battery inside, Webasto heater for both inside and engine compartment. It was also stocked with some useful stuff in case you do get stuck out in the middle of nowhere.

Those people were ready, when you live your whole life in such environments you quickly get "infused" with a lot of experience that was accumulated over generations.

So I'd be more worried about people in a regular country getting severe low temp weather than a failing heating system in one region used to extreme cold.
I think you're being too kind on point #4. Even if you perfectly understood the basic idea of reference vs value semantics, two independent string objects being the same or not depending on their length is just... calculated to confuse.
There is a water shortage and you propose to solve it with two solutions that don't currently exist. Not everyone harvests rain water right now. The solar that you speak of doesn't exist, and filtering sea water is definitely not as simple as "using some of that solar power".

It is a problem because the situation currently is looking pretty bad. As far as I can tell people are not denying that a solution is possible. When is it not?
The headline is "Why plants don't die from cancer", rather than "Why plants don't get cancer". It's just suggesting that it tends not to kill plants.
After spending some time working with machine learning and AI, the early development of the human brain is just fascinating to me.

With our best algorithms, you have to feed thousands and thousands of images for ML to be able to identify things like a certain type of animal.

And yet, my 14 month old can see a cartoon drawing of a penguin in her books a few times and then days later, recognize an actual photo of a penguin from a completely different source.

The human brain, even on an infant level is just so spectacularly amazing.
Inequality is exacerbated by the assumption that everyone has a mobile phone
Why is it bad for your health?
You've got the wrong end on this one.

Oregon law prescribes urban growth boundaries, so there's already a mechanism to counter sprawl. HB 2001 is in no way a "build more sprawl" bill.

The bill also allocates funds to local governments in order to help them understand how their infrastructure needs may change under the bill.

"Appropriates moneys to Department of Land Conservation and Development to provide technical
assistance to local governments in implementing middle housing regulations and to plan improvement of urban services supporting middle housing."
I think the thing is, that Apple is missing a chief engineer rather than a head of design. I really like most of the Apple designs from an aesthetic perspective, but they need an engineer to loudly tell them, when their beautiful designs cut too much into proper engineering and usability.

Keyboards need to work, "pro" laptops need enough cooling and repairability, in general, you shouldn't have to throw away working parts just to repair other parts glued to them (how can they have the desktop iMac being glued together at all?).
It hit me that way, too. Gruber recently wrote:

> I don’t worry that Apple is in trouble because Jony Ive is leaving; I worry that Apple is in trouble because he’s not being replaced.

I think that's spot on. Jobs is dead and Ive checked out. Who's doing the thing that they did, now? I don't want to buy products that are designed by committee.
On the other hand, there is exactly one copy of qsort in your entire program image, no matter how many different uses it is applied to. That's better from a caching POV than numerous expansions of templated sorting.

Caching is everything; something that does an indirect call, but through a hot cache, is usually better than something that avoids it, but thrashes the cache.

Caching is so important that byte code that fits into a L1 cache (together with the byte code dispatcher) can beat native code that doesn't fit.

Indirect calling itself isn't so bad when it isn't computed. The comparison function being called by qsort stays the same over the entire job. The source operand which provides the call address is known way in advance of the indirect call, making it possible to pipeline through that without stalls.

> good luck achieving in C what is possible to do in C++ with constexpr at compile time

You can always just type out all the code you want by hand, including all the cases, using a liberal sprinkling of copy and paste. You can open-code some quicksort by hand, or else piece it together out of some prolog/payload/epilog type macro fragments or whatever.

It's just not generic and reusable that way; but in many C programs, that doesn't matter at all.

At the end of the day, we are somehow still using LAPACK routines written in Fortran for number crunching.
Really? I don't think I could sleep if it was 86F in my apt haha clothes sticking.
> text segment

> heap

These are not C concepts, they are programming concepts.
They're east of NY, at the tip of long island
Yeah, my reaction was... are things that bad there that this is significant good news?
I really don't think Twitter is the correct platform for long-form discussions and writeups. It's so disjointed to try and read through that.
'Dog days', for those getting the link cut short.
Why is that crushing? The decision is likely interim, and we're talking about design in terms of industrial engineering.
I think you are mistaken, they are not equivalent in any way that would be meaningful to assessing cryptographic strength.

The stack-exchange questions that you link to refers to [1] "Discrete Logarithms and Factoring". Section 1 "Introduction" already states many facts that imply that DLP is hard, even if you can factor:

* fastest known method for DLP is O(exp(c sqrt(log n log log n)))

* 1. 3c) "if we can factor in polynomial time, then to
quickly solve a^x ≡ b mod n, all we need are solutions modulo the prime divisors of n"

Note that "solutions modulo the prime divisors of n" are still instances of the DLP with super-polynomial complexity, and in cryptographic applications N is usually a prime number anyway (DHE, ElGamal crypto-system), so 1 3c) does not actually apply.

See also the paper's section 6 final remarks "Conversely, one can ask for a fast algorithm for prime-modulus problems, assuming all needed factorizations. Both of these questions remain unanswered".

[1] https://www2.eecs.berkeley.edu/Pubs/TechRpts/1984/CSD-84-186...
I guess this is where error codes come in handy.
This is specifically about allowing duplexes and similar small multiplexes in neighborhoods that are currently zoned exclusively for single family dwellings. So yes, this is actually an increase in density.

There are plenty of condo/apartment towers going up in Portland too, but this bill addresses the much larger areas of the city where those aren't viable.
Thermostats have been around for a hundred years or so. Could solve the problem...

What I've heard is that some portion of pension is given as free heating. So it makes no sense for the individual to conserve it. Giving it as money and then billing for the heating could create some other problems too.
Pondering with rising wet bulb temperatures globally, whether Darwin will kick in and whether humans will evolve into a more heat resilient species. Natives in Nepal are adapted to lower oxygen, so why shouldn't that be possible?
That sounds very nice, but there are scarce details on what makes them environmentally responsible, no mention of arsenic-free or mercury-free displays for example. I imagine it’s hard to affect any change to upstream suppliers when you don’t have volume.
They're part of the LLVM project.
Everyone with a OnePlus phone is getting gibberish notifications
The "x" in mathematics is completely different to an "x" in some business logic.

Business logic tends to be concrete, not abstract. Mathematics tends to be abstract, not concrete.

Yes, using x,y,a,b,c as names in the quadratic formula makes sense.

But so does "isOverCreditLimit" and "MonthlyInsurancePremium" in business (leaving aside arguments about camelCase etc etc).

Business logic needs to reflect the intent of the business. There is rarely the case for an "x" to "solve for".

Deconstructing a mobile phone plan into code is not the same as deconstructing a math paper. Quantitative mathematics is a very different computing environment to business logic.
Not for "pros" in general. For a certain group of video editors it is great. For other professionals, it would be nice, but is priced far outside of the budgets.
You mean kWh, not kW/h. Watt per hour would measure a change in power consumption over time.
Galls are normally caused by external chemical influence (e.g. chemicals being injected by an insect) rather than internal DNA change.
This is actually not true. It's about whats best for the gene.

If a gene in a male has a higher standard deviation than in a female, this can all be explained at the gene level.