skysight-inc/HackerNews huggingface dataset:
Right now we're using a very small percentage of the total supply of solar energy to Earth. [0]

We could grow our economy by literally 1000x and still not have any worry of running out of energy coming from the sun.

Your comment sounds like someone who says we shouldn't bother doing anything due to the inevitable heat death of the universe.

[0] https://en.wikipedia.org/wiki/Kardashev_scale#Current_status...
Oh absolutely. I've tried doing complicated logic with (MySQL) stored procedures. It's painful. Definitely send the queries from a sane programming language.

One way to think about this is that you just want to take control back from the ORM of the exact database queries sent down the pipe. Which, BTW, is why every ORM worth its salt has functions for dropping down to plain SQL - teach that as best practice for doing computation in SQL queries, not stored procedures.
You're right, you shouldn't consider doing it unless there are significant gains to be had.

But see my other comment.

(However, I don't think Cuba has qualms about pirating software, if this was hw it would have been a different issue)
Site is offline :o
This was my question too. Zapcc's faq says: Precompiled headers requires building your project to the exact precompiled headers rules. Most projects do not bother with using precompiled headers. Zapcc works within your existing build.

Precompiled headers are currently ignored by Zapcc.
I guess it has to be quite excessive (e.g. ordering tens of things every day).
I may be in the minority here, and I'll happily accept that if I am. But my rule of thumb is that anything that can be done inside the database should be done inside the database.

But I'm a python/C#/.Net person.

The stored procs/functions go into a repo just like everything else does. It's not that big a deal. Alembic for migrations is pretty solid. And if you're dealing with a large code base, you log changes inside the DB itself. Use the database for version control.

It's really manageable. It requires that your dev team really knows SQL. But I don't think that's a bad thing.

It's fast, gets the job done, and if you're running a language that doesn't make it easy to deal with concurrency, it's nice to just let the database handle transactions.

For everyone who isn't facebook or google, this is the way to go, in my experience.

Let the db do the hard work, let your preferred language be the middleman, and have a reasonable front end framework do the presentation.

I can scale a web app to millions of users on a couple hundred bucks a month of hardware with this approach. You can too.
I also wonder if this has anything to do with how Google and Facebook both make their own-ish servers ( https://code.facebook.com/posts/1711485769063510/facebook-s-... // https://www.google.com/amp/s/www.wired.com/2016/02/googles-h... ) which would potentially allow Intel more wiggle room with early release chips vs supplying all the chipsets and reference designs themselves. It could also just be the volume of FaceGoog. It's a pretty normal thing for a business to do. I don't really see the cause for outrage here. I do wish that Intel had more competition, and hopefully I'll be building a new gaming PC based around the AMD Zen SR7 when that comes out.
Yes, it's part of their business. But if you return 90% of what you order, you are a major cost to them and they have no reason to keep you as a customer.
The big deal is the claim that companies that were promised access RSN to these chips will now have to wait ... 6 months, was it?

It's the breaking the promise more than anything else that problematic, if the sources, presumably from these screwed companies, are accurate.
According to the FAQ, the hole is supposed to get deeper, but the guys are just widening the hole. Can you guys please correct that? Thanks.
I see. I guess this is like the people who "abuse" unlimited online storage.
Well, I think it's the 'love of wisdom' angle that I saw in my friend's frustration and the article author's distinction between problem understanding and problem solving. I think there's a place for knowledge for knowledge's sake, akin to Hardy's belief that mathematics is worth pursuing for its own sake, not just its applications.
This. Once you accept any advice as universal and/or infallible, you're on your way to cargo cult.
This reply is almost completely unrelated to the thread topic.
Except Rails took off with the same fashion and hype and hipsterism. It's just older.
You can try gold with parallel and/or incremental linking (although incremental linking didn't work on a large library where I would've needed it most)
The problem is the claim that Intel reneged on commitments to sell these chips to other companies RSN instead of in 6 months, and it's not a capacity issue.
Frankly, I am starting to have serious reservations about brew itself. It seems to now be forcing a self-update on every package installation, and that update somehow (I'm not a good enough *nix hacker to sort it out) gets some kind of elevated in the process privs: I've tried setting some of its component ruby scripts read-only and even changing ownership, and they still get force-updated on package installation.
I think the encryption has been known to be bunk for quite some time now [1]

[1] https://eprint.iacr.org/2015/1177.pdf
[2] http://www.alexrad.me/discourse/a-264-attack-on-telegram-and...
[3] https://unhandledexpression.com/2013/12/17/telegram-stand-ba...
The other Arctic tipping point is because the ocean absorbs a lot more energy than ice... so once the Arctic loses more ice cover, it will go ice-free and remain that way.

Nobody knows when/if the methane problem will happen. The ice/ocean thing can be modeled.
Optimisation 1 might be premature. If most cases the text is short then the functional approach is arguably nicer even if a tad slower.
Great post!

Taking responsibility for your situations can also help a lot. If you treat anxiety as an illness you give up your power over the situation. If you consider it only as a temoraly condition it gets easier to make the needed changes and get out of the anxiety.
Yup, the multiple here docs on a line thing is also in the POSIX spec for sh. I had no idea that was possible before implementing the shell!

And I'm pretty sure it does NOT appear in the million lines of shell code that I've parsed. They use here docs in weird ways, but they don't have multiple here docs on a line.

This led me to find the algorithm for parsing here docs, which surprisingly all shells I've tested support, even though almost no programs use it.

http://www.oilshell.org/blog/2016/10/17.html

The algorithm is: process the here docs in a post-order traversal of the AST.

There is an example in my blog with 3 here docs, with one of them being in the while CONDITION (which is itself a command):

while cat <<EOF1; read line; do echo " -> read '$line'"; cat <<EOF2; done <<EOF3
...

In shell at least, you can put the ENTIRE Program on one line. Change all the newlines to semi-colons. You could have 1000 here docs in a program. So you could put 1000 here docs beginnings on one line, and then you process the ends in that specific order.

Ruby must have borrowed this from shell... I guess Matz knows shell REALLY WELL.
A big advantage of taking the time to read a book, even if the book has just one central idea, is that it forces you to spend 5+ hours thinking on that idea. No summary can do that for you. I'd even go so far as to say that it's not even important which book or idea you spend that time on; just spending time with your own thoughts and imagination will teach you things no non-fiction or summary can.

I do agree that summaries and comments are useful, but they serve the same purpose as non-fiction rather than fiction.
This Christmas, we're getting my girlfriend's mother (mid-60s, not tech illiterate but never worked professionally with tech) the smaller iPad Pro. Target had them on sale for $200 off (Black Friday deal, available online). She has a first-gen Mini right now, and it's her primary internet device. It works really well for her, but it's slow these days and can't run any ad-blocker, since it's not a 64-bit chip :(
Interactive Numerical Optimization Tutorial
Suck a mean...

Get my toaster to talk to my dishwasher! Or my refrigerator to talk to my oven!

Oh wait, those were the stupid selling points for "home automation" that haven't changed in 20 years...

Um... open the pod-bay doors?
> A very sad incompetent and shameful history that Obama looked like he was finally willing to confront.

A historically seldom act of courage it was for a leader of a state what Obama did there. Not as thorough as the Warsaw Genuflection by Brandt, but not far away either.

Nations cannot admit their past wrongdoings although unquestionable. Creating tensions, a foreign one, often a domestic one too (ie. Turkey and the Armenians, or Turkey and the Kurds). Former "patriots" are revealed as actually hurting their nation just as breaking such a cycle of having to act stubborn becomes unquestionably patriotic, once viewed from the distance of history.
Most ORMs will not do the level of aggregations you want or need without writing raw SQL within your ORM. If you are already writing raw SQL in your ORM for aggregation level computations, you might as well create a stored procedure, make it IMMUTABLE (if you can) and gain those performance benefits.

At the end of the day, I would just use the tool that has the most comfortability with the team on the project. You can obviously start with an ORM, but there may come a point in time where performance needs a little boost.
I've had similar experiences.
And it's not always Ruby processing being the slow part but returning multiple result sets to your application layer.

I've seen some huge result sets (thousands of rows) returned to do a simple aggregation for a dashboard widget.
So saving for the future "funds their current lifestyle"? I don't see a sarcasm tag on that.
non open source, based on clang, but faster?

in the perfect world I would like that everyone who uses clang would freely benefit from this improvement. should some big and good corporations just buy out those guys?
Ah, I wasn't aware that Intel promised them early access. Did Intel break a contractual obligation or an implied agreement with previous partners? I'm unclear as to what promise means in this case.
I believe that many people don't use stored procedures/functions because of lack of knowledge/know-how, difficulty or needing something done yesterday (which in itself is related to the previously), unfortunately.

I say this because I've seen it happen multiple times.
>> With the correct abstractions, you can definitely run tests on save.

You definitely can, but you'll have to roll your own watcher and sync, there's no Guard equivalent that I'm aware of.

>> SQL is rather readable these days.

Used to think so as well. But then I had to read some pretty nasty sp's which calculated discounts depending on what user already has, and geolocation, and time of day, and day of month, and tons of other stuff, and the return value had to be a complex hierarchy of categories/products. So what would be 2 pages of python turns into 500 lines of SQL with some statements 80 lines long, plus it was still a pain to json-encode in python. The only positive thing about it was that I wasn't the one who had to write it.
an overall experience after reading: the new model seems only has 2 real pros: brighter screen and faster ssd... Damn, such a pity.
Absolutely agreed. In our particular situation, the ruby calculations were the bottlenecks based on our benchmarks.
It's odd that you still can't directly type to Siri, even on the Mac. (You can indirectly type by 'editing' a previous voice query).

The compeitors: Cortana accepts both voice and text input. Google Now/Allo does too (although the new Assistant in the Pixel is only voice though). Alexa is only voice.
I want this for my flight simulators...
Its speculated that it could effect the Gulf stream which transport allot of warm water to northern parts of the Atlantic, which gives especially the Northern part of Europe a relatively mild climate considering the latitude.

https://en.wikipedia.org/wiki/Shutdown_of_thermohaline_circu...
These are the methane clathrates trapped mostly in the siberian sea (Arctic ocean), where increasing sea temperatures are causing methane to bubble up to the surface in large patches (sometimes 1 sq km in size).

Runaway global warming by melting methane clathrates is known as the Clathrate Gun Hypothesis: https://en.wikipedia.org/wiki/Clathrate_gun_hypothesis

In previous mass extinctions, such as the End of the Permian, 251 million years ago, 96% of species were lost - due to a similar event:
" A cataclysmic eruption near Siberia blasted CO2 into the atmosphere. Methanogenic bacteria responded by belching out methane, a potent greenhouse gas. Global temperatures surged while oceans acidified and stagnated, belching poisonous hydrogen sulfide. "

https://cosmosmagazine.com/palaeontology/big-five-extinction...
I once reduced the running time of a report from 45 minutes to 3 seconds (900x improvement) by moving the code inside the database.

If a programming language wants to stay fast it must eventually become a database. I realize this is an unpopular opinion but popularity is the wrong metric to judge by.
Rents are plunging in the most expensive U.S. markets
I'm not waiting for anyone to stop breaking the law, I'm waiting for someone to start enforcing the law. I'm not sure if I'm arguing or agreeing ;-)
Both companies and investors who have been ruined by "naked shorting" (a gray area despite regulation SHO) know more about the shadow world of settlement.

If you are a retail short, SHO regulations apply to you. If you are a shadowy short running operations in Bahamas, but funded by shadow partners of clearing house, you can make a killing.

http://www.economist.com/news/finance-economics/21678146-lat...

http://cdn.static-economist.com/sites/default/files/pdfs/EN_...
http://cdn.static-economist.com/sites/default/files/pdfs/Fif...
I would love to see a C++ compiler implement multi-core optimization and code generation for template instantiations. I feel this can be a big win for cases where you instantiate a template n times and they are basically all independent from each other.
Since English is (largely) not tonal, you're not used to the rapid pitch changes required by tonal languages, hence the "alien" feel. For what it's worth, I find Thai quite euphoneous compared to Vietnamese or Cantonese, both of which have even more tones.

Question for HN: if your first language is tonal, what do non-tonal languages sound like to you? I've frequently heard Finnish described as boring/mumbling, because it's both non-tonal and has a very predictable stress pattern (emphasis always on the first syllable).
She might well be happier in a different development environment. The link [1] is to a 1996 article that describes organizational aspects of Space Shuttle flight software development. The priorities were understanding and perfection, which may resonate with the OP. Shuttle is history, of course, but I'm sure there are similar mission-critical coding environments today.

[1] https://www.fastcompany.com/28121/they-write-right-stuff
I was born in Romania under communism, which fell in December 1989.

We didn't have children living on the streets either. But the reason for that was that giving children up for adoption was essentially illegal, the women of our country being denied contraception, having a mandate to reproduce and raise offsprings. And also foster homes were essentially prisons, some in really poor conditions; at least those that had the children with special needs were absolutely horrible (i.e. the new men couldn't admit the existence of the handicapped).

So you know, the actual reason many of these countries haven't had children on the streets is because the police wouldn't allow it ;-)

And I feel compelled to mention this for those among you that might get romantic ideas about how communism happened to be in practice.
Webinar: Monitor Your AWS Services with New Relic.
Do they always work in this room so close together? How can anybody concentrate like this?
That algorithm is an exercise in bias confirmation; it's ludicrous, IMO. Any criticism of current orthodox ideology is interpreted as a point in favour of Russian propaganda.

Could it possibly be that some people have the genuine thought that starting a new cold war with Russia wouldn't be a very good idea? Or is that simply impossible without it being a Russian propaganda plot?

IMO this is all heat that obscures what's going on. There's a new culture war afoot. IMO this site (PropOrNot) is a paranoid reaction to the rejection by a certain segment of the American population to an orthodox groupthink. Instead of people talking to one another and trying to communicate, they're polarizing. It's no good.

(I flagged the article, FWIW.)
If anything I think screen height is even more important if you're going to portrait mode. 16:9 is horribly thin, 16:10 is better, 4:3 is possibly the best portrait aspect ratio.
More open/extensible APIs. I want to be able to register my own actions with them with ease. Right now Alexa seems to be the most flexible, but even then you gotta do some serious hacking to get it to work.

Another thing I was working on at Microsoft back in the day was contextual deep voice search mixed with touch. Essentially the UI pattern was tap and hold on an app, then speak. The voice command would be sent directly to the app itself so you could have it be recognized by it. Example: hold your finger on the pictures app and say, "show me Mike". It'd then bring up pictures of Mike.
DOJ has issued official guidelines for the manufacture of smart guns
I get far more enjoyment out of working to fix actual problems for actual people

I'm with you - the catch is, how do you know what are the actual important problems, except by how people allocate money?

We could each list a thousand problems that ought to be solved, but we can only work on one thing at a time. Thus we use a scarce resource (money) to communicate our actual priorities.
I really wish that Alexa could handle push notifications. "Your order is leaving Domino's Pizza now" would be great.
You may be thinking of small claims courts, where some states don't allow lawyers. Arbitration follows whatever rules the arbitration organization chooses.
I whish Internet access wasn't needed for basic tasks like "play that song".
ATTN Moxie: How is Signal secure from the NSA when you force each user to provide their IMEI and mobile phone number when they create an account?
>> Cause of anxiety was wanting to live a lifestyle and not wanting to work a stressful job. Marriage and "permission" to quit solved the issue immediately.

I am goin to play the devil's advocate but it would solve all of my problems if I would marry someone ritch who pays my bills while I quit my stressfull job and follow my passion. And she should also write a blog post about it.
That list describes some frustrations I'm currently facing in my job.

Another symptom I perceive is that "Product Management" doesn't try to model anything about how the business really works or what mental schema users have for what's going on.

Instead they construct UI mock-ups of the data-entry fields/screens they think could somehow provide CRUD access, and demand that engineering integrates it with "whatever already happens."

This leads to the strange situation where the small engineering team often has to reverse-engineer the ball-of-mud code, to inform executives how things are "supposed" to work based on the ad-hoc demands once made by their predecessors.
Is Scala not practical?

Julia's generated functions are also capable of similar designs.
who needs a hole in the ground?
I generally agree, although some books don't need the week-long time to digest what they are saying and process the implications.

For most "pop" books, they are often either based on a long-form article (commonly New Yorker or The Economist) or have a long-form article that summarizes them. I have switched to just reading that instead and saving my reading time for more "meaty" books.

As some examples, off the top of my head: The Checklist Manifesto, Simple Rules, The Long Tail, anything by Gladwell. I didn't need to read the whole book of any of those; the long-form article covered it.
TL;DR: not a new compiler, but one based on clang plus some tuning/optimizations.
The New Workplace Is Agile, and Nonstop. Can You Keep Up?
How to Detect Fake News
Go away. I'm starting to feel like I won't be able to buy a toaster that won't have a personal assistant shoehorn ed into it in a few years.

Maybe I can set them up in a circle and let them babble away to each other?
Margaret Thatcher sent British troops to train the Khmer Rouge, I doubt Castro ever did anything as sick as that.
My assumption is that we will see a continued change in the arctic sea ice pattern over the next decade. The effect on weather will be interesting to see, if the arctic isn't all that cold the annual pattern of wind and heat in the northern hemisphere will be very different; how I don't really have any idea. In a complex heat engine if you change the distribution and amount of heat it's not easy to predict what the end result will be.

Of course if we stop studying it everything will go back to normal /s.
Scientists are often correct in their predictions, whereas economists sort of aren't. It's an epistemology question; these experts are not the same as those experts.
Hence Kx, ZODB.
No, capital gains taxed less than wages incentivises investment over working. Which IMO is the wrong thing, because it's fundamentally regressive - young, poor but intelligent and educated people can only work, not invest, so we should encourage them by taxing them fairly.
Ruby borrowed them from Perl, which borrowed them from shell. I used mutliple heredocs once or twice in both perl and shell myself, but they break syntax highlighting, so it's hard to keep using them.
I discovered a similar vulnerability in OSX in 2004. Some things change slowly:

https://lee-phillips.org/sshv.html

At the same time, others were discovering similar vulnerabilities using other protocols. (I know the page looks like crap, so don't bother mentioning it.)
Will get worse next year in the US when ISPs can do as they please.
Naypidaw: A city looking for a purpose
"Tipping point" refers to positive feedback loops that you get into above a certain level of ice melt. One is potential methane release, as another commenter pointed out. Another is the reduced albedo of the melted water as opposed to ice - the water will absorb heat from sunshine more easily, and conduct that heat to the ice. There may be more. (Of course, there may also be negative feedback effects I'm not aware of.)
> SQL is rather readable these days. It's obviously not as easy to read as ruby

As someone who can't read Ruby but can handle "any level" of SQL fluently, that's obviously not a very objective statement.