skysight-inc/HackerNews huggingface dataset:
Pyret is inspired from Racket, which starts at step 1 with functional programming. It's not about readability or getting people to learn as fast as possible to write basic code, but to try and teach core program design principles easily and build a solid base within a single semester. The syntax is not as clean as Python, but it offers much more clarity in terms of testing, signatures, and offers a very interesting method of writing loops with map/filter/foldr.

I have a bias here, as I help teach an introductory course using DrRacket, and many of my colleagues are very aware of Pyret, some even helping to develop it. In one semester, however, we have students with a full understanding of recursion, linked lists, many other common data structures, anonymous functions, functions as data, and understanding of map/filter/fold and how to use them. The class is specifically aimed at people who do not have prior programming skills, and works very well in my experience. Yes, it is a lot, but it builds an incredible base, and if taught to build on itself slowly, is actually very minimal conceptually. The optional features in Pyret are probably allowed with that in mind.

One of its weaknesses, arguably, is that it doesn't look like much else out there in common use, since it's a Scheme. This syntax is an attempt to try and make the same ideas translate to other languages easier, such as Python/Java.
My 10,000 foot high understanding is that the kind of performance you're seeking is achieved by the dark arts of database tuning. At a certain level of abstraction one might think about the query planner's default mode as context free and your goal as adding context sensitivity to it.

At the other end of the abstraction tree, it might be that a relational database is the wrong tool or that a row-based relational database is less right than a column based database. If you can see how the data ought to be organized for performance, then it might make sense to build project specific data structures. Or use an in-memory database. There are lots of options besides relational databases.

Good luck.
Amazon's new grocery stores
Ageing process may be reversible, scientists claim
I guess my anwnser is: Developer performance is messured badly.

To messure it well you need someone with good taste (which is had to find developers often dislike other peoples code for no good reason).

From your 3 options its only on code you ship thats cared about. But its quality and volume.
Part of the reason whitespace is inconsistent around operators is because nothing about most languages forces you to care. It's a lot like case sensitivity in that regard.
I'm curious as to why not instead measure average battery consumption by each user to get a mean, and range which would allow a "range" of time to be shown (at the start this would be a much wider range of course).

The user could then adapt to this range because they know the usage the best. Considering the dynamics of the computer and how we use them a range would be much more suited to fulfill this type of feedback from the system.
Life after big IT
For Q3 2016 Google earned over 70% of its revenue and 80% of its advertising revenue from "Google websites" [1].

Google websites include search as well as YouTube, Gmail, et cetera. AdSense, AdMob or DoubleClick revenues make up the bulk of the other 20%.

[1] https://www.sec.gov/Archives/edgar/data/1652044/000165204416... pages 31, 33
New UX Course Wants to Land You Design Jobs
If performance is your only complaint, know that webstorm will probably be worse.

I LOVE the tooling in webstorm, but the it just eats up all my ram and pegs out the CPU on my 2011 MBP. And if it's trying to index a large project, I just take a break because it renders my machine almost unusable.
every one i know in india, /r/india and even its circlejerk / 4chan analogue of /r/bakchodi is also strongly in favor of the war on cash also.
It is quite different syntax from Ruby.
I think calisthenics are great, but they focus more on muscular strength than cardiovascular.

There are only so many push-ups you can do before your muscles are fatigued. Running, swimming, and cycling are better for cardio because you can do them for great lengths of time.
> We considered reducing the scope, but ultimately decided to keep the scope pretty broad because writing underhanded code in Rust is hard

Are we sure of this? The contest may prove otherwise.

Half-jokes aside, it would be surprising if it wasn't significantly harder in Rust than in C, and presumably any glaring problems are easier to address based on the more active nature of Rust development as well as tight feedback between the language development/compiler and the rest of the community (along with Rust's general attitude of "just be careful" not being good enough).
Yobuddy App- Weed App
We know first hand what James Clapper thinks of the Constitution, today from the Intercept: https://theintercept.com/2016/12/15/james-clapper-has-a-clas...
This has been one of the things I saw as the biggest hurdle (as a former Tumblr employee) - most people unfamiliar with Tumblr assume it's a blogging platform, while the dashboard with its social aspects is biggest component of Tumblr. Wordpress and Tumblr are very different beasts when it comes to what they offer in whole - though Wordpress would suit those that only use Tumblr as a blogging platform.
Please define: best method. Do you mean for speed? for privacy? for something else?
Fascinating to watch a brief video from Robert Whitaker [1]

The core of his argument appears to be that because the brain tends to compensate for disequilibrium, psych drugs in the long-term paradoxically have the opposite effect that they do short-term - anti-depressants are depressogenic, anti-psychotics increase long-term psychosis, etc

[1]: https://www.youtube.com/watch?v=5VBXWdhabuQ
Mouse Utopia and the potential extinction of modern developed societies
> It's funny, but people never seem to question if modern American life actually, you know, is good for mental health. Maybe people are mentally ill because the world is super effing weird and hard to adjust to?

http://www.vanityfair.com/news/2015/05/ptsd-war-home-sebasti...
Types are great unless you are forced to be explicit instead of the compiler doing automated type deduction.
> As it turns out inviting the entire internet to ping my IP address might not be the best idea I ever had...
Bandwidth is regularly maxing out at 300Mbit/s of incoming ICMPv6 traffic

Oh, boy. I'm impressed it's still working.
> Functions can end in a where: clause that holds unit tests for the function. These assertions are checked dynamically.

Wouldn't it be even better to check these statically, such that a program with failing unit tests doesn't even compile?

There may be tests that can't be checked statically, but I think these wouldn't quality as unit tests anyway. (These would be more at the level of integration tests.)
> I will not be sad when AI automates away the majority of the legal industry.

It won't. Companies will just sell their specially-crafted AIs to law firms and governments for a lot of money. These AIs are currently used for identifying judges likely to be sympathetic toward your cause.
How about a refactorthon?
I'm curious which parts look (more) complicated to you.

For some perspective, when teaching Pyret to total beginners, we start with arithmetic and calls to library functions, then build up to function definitions and examples. At that point, there's just a handful of syntactic constructs to consider, and they are nearly identical to Python.

Things like "data" and "cases" don't come till later, and do come with more overhead, but also are introduced to students who already have some "finger-feel" with the language. Python has its own overhead with "class" for defining structured data at a similar point, including things like "self" and "__init__".
The code for HN is available at http://www.arclanguage.org/arc3.1.tar.
> The point is so much of our conclusions are based off of these null hypothesis.

Quantum mechanics, special relativity, and general relativity (I'm not sure which ones you're objecting to here) all have strong predictive power. The fact that we can build extensions of these theories and see experimental validation of those theories is itself support for the underlying principles. With quantum mechanics, you can explain atomic spectra, crystal field splitting, aromaticity and antiaromaticity, vagaries of chemical bonding--and that's only in the domain of chemistry. Special relativity can also explain, say, why there is a stable Pb²⁺ ion.
What if you ask Verizon?
Really great Delve integration would be enough for me. IdeaJ has a great debugging experience.
Measure it by the bug count over a release cycle.
The syntax is the converse of innovative. Standard ML is very old. End keyword telegraphs Pascal and Algol.

About the only new thing here is the testing, documentation and contract support and it is great to have.
As much as I want to believe things are over prescribed, and that medications don't actually help, my anecdotal experience is very similar to yours. I've heard nothing but extremely positive things. Comments like "I have my life back". And "I finally feel okay in my own skin".

I've been long skeptical of the pharma industry, and those drugs... But the more I hear personal accounts like that, it's hard to remain skeptical.
First Chevy Bolt is delivered in Tesla’s backyard
This is indeed trivial to implement for Go in the sense of "implement" which allows for just calling out to guru ( https://godoc.org/golang.org/x/tools/cmd/guru ).
I'm at a predicament because WF has been very good to me, going back to circa 1999. never opened fake acct's, never charged me predatory fees, always had easy-to-access ATMs, friendly tellers, never made a single mistake. Now they have my mortgage and HELOC, so as much as I'd like to "punish" them by cancelling my account, I'd be punishing myself just as much.
Perhaps you and Netflix are one-in-the-same in some sort of FightClub/Mr. Robot like twist?
Somehow I doubt that the percentage indicator is any better. At constant 100% (or 50%) CPU utilisation, tracking the percentage, would you see a linear graph going down, hitting 0 as the machine shuts down? I've never tested that but it would be interesting to see the results for different models/OS versions.
And it only cost as much as most people make in a lifetime.

What a great value for society we got from this one.
Were there enough state-legal marijuana business operating under Clinton to make that comparison interesting?

(Bush second term to Obama first term seems like it would be the better comparison available, unless there were titanic policy shifts in the middle of either or both administrations)
Our very Brave writer has decided to reveal herself
It's crazy i am seeing this on HN. I feel Yahoo is all worth for the following reasons:
1) 2 decades old brand name everyone aware of
2) Yahoo! has some good products which is used by tons of people like Flickr, Finance, search(12% market share [0]), weather, media.

They just don't have a mammoth money making one product which subsidizes the rest of the business like Google. Not to mention the tech talent and the culture that Yahoo! brings to Verizon.

If you have any solid argument about why $4 billion is a waste, i would definitely like to hear.

0 : https://www.comscore.com/Insights/Rankings/comScore-Releases...
Pepper Trail, really?!
"Execution skills" - yup, nearly everyone thinks they're above average but do note that in business those supposed "execution skills" very frequently turn out to be trade secrets instead - that is, intellectual property that's confidential and invisible. If anyone uses the phrase "execution skills" (even if just in internal dialogue) and isn't referring to specific trade secrets, they're probably just pumping out hot air, with extra jazz hands.
Only if the Pyret was already in an offside position when the ball was last played by a team mate and it was not a goal kick, throw-in, or corner kick and Pyret was involved in active play (receiving the ball, interfering with a defender, or obstructing the goalkeeper's view)...but I digress.

Python's use of semantic white space in the form of indentation is sometimes referred to as the 'offside rule'.
MD5 is still not too bad, if properly salted. And if you use multiple rounds of hashing, it can be as slow as Bcrypt. As far as I know, MD5 is still not generally broken, we only found some weaknesses.

To prove me wrong you can try and reverse this one (unsalted , just one round):

27c8ac15df9357d92385f59aea2049e0
Better link: http://www.collectorsweekly.com/articles/how-the-soviets-rev...

The current link at Hodinkee is just a summary of the collectorsweekly.com article.
The logic was to impose a deadline on the free upgrade as an impetus for users to take it now rather than procrastinating on it forever.
IPv6 keeps being a running joke. At least some people still have some sense of humour about it.
Google Joins the Cloud Foundry Foundation
Many years ago I was given citalopram to help with severe anxiety. The big difference between this, and the other times I'd been given paxil, stratera, wellbutrin, Lexapro, and others, was that I had a therapist who was adamant that drugs alone will not help. You must combine drug therapy with closely monitored, regular one-on-one therapy. That year of therapy and the meds changed my life. Now I'm off the meds and doing very well. Just two cents but maybe others have similar experience?
Are those LA miles or Wyoming miles? apple is dealing with users who see their car is rated 30MPG for highway and then complaining when they only get 10MPG in rush hour LA traffic.
Treated sawdust may help sop up, burn off Arctic oil spills
Big data software company Databricks raises $60M for Spark
Why is push() checking for overlap? I thought not caring about that was the point of a ring buffer?

[EDIT:] To clarify for those who didn't (couldn't?) read TFA's first sentence, it specifically invokes "I've been writing ring buffers wrong all these years" [0], recently featured on HN.

[0] https://www.snellman.net/blog/archive/2016-12-13-ring-buffer...
PUA (from http://www.unicode.org/faq/private_use.html):

Q: What are private-use characters?

A: Private-use characters are code points whose interpretation is not specified by a character encoding standard and whose use and interpretation may be determined by private agreement among cooperating users. Private-use characters are sometimes also referred to as user-defined characters (UDC) or vendor-defined characters (VDC).
Utility versus entropy in social systems, or, the simple solution to fix Twitter
Sorry to hear that was your experience, but also glad to hear you found a solution that works. If you do come back to trying webpack, we're happy to help get you up and running. Feel free to reach out on twitter or github @TheLarkInn
Setting aside the accuracy of the data collection here, is it any surprise that companies prefer an enterprise focused product backed by support contracts, SEs, and actual desktop/mobile apps instead of web interfaces?

Oh, and one cannot overlook the power of Excel lock-in here - the number of business lines run on excel macros in this country is staggering...
It's difficult to explain the benefits of Webstorm. It's really the combination of many small things that add up to a great experience. For example, being able to download+save an NPM module by clicking on the warning next to the "require()", built in code coverage reports, CSS refactoring, fixing imports automatically when you move a file.

... One time I tried to do "setX(y);" in one of my programs, and it warned me that I probably didn't mean to do that. Amazing.

If you have less than 8GB of RAM though, you probably don't want to use it for large projects.
Eh, as a PyCharm user I never see much of anything suggesting Java. JetBrains does a great job with these editors.
Egads, it looks like a handwriting font. I have never seen its match for legibility.
Not sure who told you that but it's completely wrong.

Corporate income is taxed twice in the following sense: once when earned by the corporation, and again to the owner when received as a dividend out of the corporation's profits.

Salary paid to officers/employees is only taxed once, because it is treated as an expense to the corporation and thus only taxable to the recipient. Most small businesses avoid this as much as possible because individual tax rates are usually higher and salary payments incur SSI/payroll taxes.
Building a Sales Machine
Ask HN: How did you overcome the trough of sorrow for your startup?
Getting the initial excitement is somewhat straightforward: post to HN, reddit, PH, FB, Google+ and hope it gets noticed.

After that comes the trough of sorrow. We don't hear much about how people overcome the trough of sorrow and go on to grow their userbase.

If you have a successful startup or have seen people build one, how did you/they overcome this?
> Are we sure of this? The contest may prove otherwise.

No, we're not. Like I said, this can change in future competitions. It's no big deal if the first one is too easy. If the first one is too hard we may not get submissions and won't know if it is due to lack of interests or if it is too hard.

My baseline for determining this was basically that almost all of the underhanded C submissions use tricks that just can't work in Rust.

Furthermore, remember that the code will be run through clippy too. Many of the gotchas (e.g. Option::iter()) that can be used to create potential underhandedness should get caught by clippy.

But yes, we fully hope to feed back any findings into the compiler/libraries/clippy.
Who would say getting high on drugs could fix lifes instead of destroying them...
square(int):

mul r0, r0, r0

bx lr

Mips is damn awesome.
No mention of the recent genetic studies that show genetic similarity between deep-Amazon Native Americans and indigenous Australo-Melanesian people, which would seem to support this hypothesis[1]. It seems like there were at least two (actually probably 4) waves of non-European colonization of the Americas - the "Kelp Highway" one described here, followed by the big-game hunters who eventually wiped out that initial wave almost everywhere except in the marginal lands deep in the Amazon jungle. There was also the Athabaskan / Dené and the Eskimo after that.

13,000-15,000 years ago: Kelp Highway settlers

11,000-13,000 years ago: Big-game hunting ancestors of majority of Native Americans (Clovis culture) at time of European contact arrive and mostly wipe out the first wave of settlers except in isolated areas like the Amazon jungle

[somewhere in between]: Athabaskan / Dené come across from Siberia and occupy Alaskan / Canadian interior, as well as parts of the Pacific Northwest and American Southwest (not sure how they got there)

~3,000 years ago: Inuit / Inupiat / Yupik migration and settling of the circum-polar region

[1] http://www.nature.com/nature/journal/v525/n7567/full/nature1...
"The thing about magic is it's just as mystical when it breaks as it is when it works."

That's the most concise way of describing the problem I've seen yet. I'm stealing that. Thank you!
What's a Warboard and Why You Need It?
I think in Europe the reactions are usually a little more measured. After the attacks in Paris and Brussels, there was a reaction and a rise in populism, but I wouldn't call it assuming dictatorial powers.

I don't think it could be compared to Trump's reaction in the hypothetical case where there was a similar terrorist attack in e.g. New York.
How to stay in – manage an EU company from the UK
The increase in accuracy for GPS receivers is not related to the search and rescue service which works by sending a distress signal from the surface to a satellite.

That satellite might be one of the 4 that form the LEOSAR system - low altitude, in a polar orbit, capable of Doppler-based location of the signal (accuracy of 5-10 km), if exact coordinates are not transmitted by the beacon, but having to wait until they get in the range of a ground station to relay the data. The average accumulated delay is 1 hour at mid-latitudes.

Or it can be from the GEOSAR system - geostationary satellites that cannot locate the beacon by themselves because there's no Doppler effect, so they only work with beacons with an integrated and functioning GPS receiver.

MEOSAR - the new system they are introducing by installing components on new GPS, GLONASS and GALILEO medium altitude satellites is going to do proper beacon location like LEOSAR and send it much faster to ground stations (multiple satellites will pick the same distress signal and send it to multiple ground stations). Further more, they are adding a 2-way communication functionality, so beacons with the required capability can get a confirmation that help is on the way.

More details:

- http://www.cospas-sarsat.int/en/system-overview/cospas-sarsa... (see the bottom tabs)

- http://www.navipedia.net/index.php/Galileo_Search_and_Rescue...

- https://en.wikipedia.org/wiki/International_Cospas-Sarsat_Pr...

- http://www.egmdss.com/gmdss-courses/mod/resource/view.php?id...
Waiting sucks, so make performance a design consideration
TIL S&P 1500 refers to the combination of the the S&P 500, S&P Mid cap (400) and S&P Small cap (600) companies: http://us.spindices.com/indices/equity/sp-composite-1500/
It's 0xCCCCCCCD in hex, which looks a lot more structured at least. Though how exactly this makes sense is still unclear :-)

[edit] and playing around with the increment of x it keeps throwing in some magical values which are a repeating pattern in hex, with the LSB off by one usually...
Didn't weigh in on safety critical applications, so I think the numbers would we be way different if they included them. I have worked at various big name startups and code reviews and unit-testing are such a critical part of our workflow.
> all you get for yourself is bragging rights.

Not at all! You get the knowledge that the men and women standing beside you at an emergency will be there when it's your house/barn/grain silo that goes up.
This was from an old version of an IRC project.. basically, the main script sets up a $APP_CONFIG variable, which is the hash parsed version of a yaml config file. The files being included, which were plugins, could (and in reality, can) read this variable.

In short: If you run a Ruby program that sets up global variables, other ruby files required after that point can access those variables, even though Rubymine seems to think otherwise. This is documented in the program output linked to that bug report.
Of course it does. We (@ work) use G Suite and it's good if you use it for simple things, but it's really a toy. People who work a _lot_ with long-ish documents all know that Word is better (because of richer functionality); and people who work with larger spreadsheets know that Excel is better (functionality and performance).

It's the typical situation: no user uses more than 5% of Excel's functionality -- but users don't use the same 5%.

Where G Suite is great is 3rd party integrations, especially ones targeting small/mid size companies.
>> "moral wrongs result in people being locked up behind bars and their liberty taken away from them"

Imagine what the world would be like if this was true.
Agreed for sure. As someone who's lived or spent time in a number of other cultures I do think there's something excessively (if not uniquely) toxic about American life, which if I had to summarize (and agree with Sebastian Junger), would be: lack of community.
Degree9 Interview with PurelyFunctional.tv
Too bad that underhanded-c has a broken RSS and Atom feed.

http://www.underhanded-c.org/_feed_rss2

http://www.underhanded-c.org/_feed_atom

I added those to my RSS reader a long time ago, but didn't notice the 2015 announcement, let alone the winning entries. Why? Because the feeds are stuck, their latest entries are more than 2 years old:

11/03/2014 The 7th Underhanded C Contest is now Open
09/29/2014 2013 Winners
...
http://www.geek.com/apps/tsa-paid-1-4-million-for-randomizer...