skysight-inc/HackerNews huggingface dataset:
> The approach of generating source code and exec()ing it, is a cool demonstration of Python's expressive power

Man, I don't see many positive opinions of exec out there.

> I think we should move on from the original implementation and optimize the heck out of namedtuple. The original has served us well. The world is constantly changing. Python should adapt to the (happy) fact that it's being used for systems larger than any of us could imagine 15 years ago.

I really wish the BDFL could say the same for CPython itself. This continued insistence of treating python as a teaching language with a teaching implementation is really weird.
Actually your edit made it clearer from both. I had the feeling that namedtuply was constructing _source, but it wasn't obvious in the article either. So thanks for explaining, both your comment and the article.
The mechanical knitting machine was invented in 1589.

The Worshipful Company of Framework Knitters was incorporated in 1657 London.

Some framework knitters were among the Luddites, who resisted the transition to factories.

https://en.wikipedia.org/wiki/History_of_knitting#Industrial...
This came up on the latest episode of ATP. They discuss some alternatives/options...

http://atp.fm/episodes/236

I'm not sure where in the episode the topic is discussed. I'd guess about halfway through.
Samsung launches new smartwatches ahead of Apple in its biggest health push yet
This is always what I assumed a genie would do if you wished for world peace.
Could you explain what you mean?

In terms of time spent? Level of knowledge in the subject area?
I don't want to generalize to others, because a PhD can be a really painful experience, but you got me spot on. I wasn't willing to iterate and try enough paths forward until one stuck. I'm still not sure why that was, because it seems obvious now and I saw others doing it right, but there was a lot of wasted time.
A more charitable interpretation might be that a detailed and clinical account of the absurdity of the most tedious bureaucracy may have made for rather... dry reading.
I think it all boils down to how you deploy your stuff. If you think Cloud is so massive that it is never a SPOF, you'll likely not meet your availability aspirations in some time in future.

Cloud to me is also shared risk. I read - "Google cloud outage" as "multiple companies that rely on a shared infrastructure is not available ATM".

The mindset should be to run your services on a distributed infrastructure with no SPOF. Leverage cloud, fog, racks, PCs, whatever resources you can, but diversify your content/service and be risk averse from failure of one kind.
Does this mean the import mechanism caches loaded module, but not where to find non imported things ? I would expect that it crawl dirs from the PYTHON PATH once and then get data from a cache. I know you can extend the PYTHON PATH dynamically, but you could intercept that in dunder methods to update said cache.

Also: for the same interpreter, the same "*.pyc" files and the same PYTHON PATH, we could dump a cache file and share it across interpreter starts if no dirs in PYTHON PATH have been touched.

If it's not done, then it might be interesting to bring that up to the Python ideas mailing list.
Why? Seems pretty basic and simplistic.

I'm more impressed by the various types of field harvesters
Meta nitpick: he's clearly referring to the future relative to now, so it makes sense in that context.
I absolutely do. I probably would have worded it differently.
Germany as a whole has a pathetic relationship towards cultures and religions. Due to the excessive guilt-culture it is political suicide to openly criticize some obvious problems. There is also widespread over-tolerance and leniency with regards to religious or cultural excuses and demands for privileges. Germany is currently a non-secular state with strong dogmatic public-opinion in some areas.
I don't think it gets recalibrated year to year.
What is wrong with immigration? What do you have against people looking to move to new countries. When someone moves, they pay taxes, they work, they contribute to society.

It's not easy to immigrate, and often smarter, better educated people are the ones who get to immigrate. It's a benefit for the country that gets a lot of immigrants (i.e. The US benefits from this a lot), and a detriment to the country that loses them. Often called brain drain.

Employers can choose who to hire, a smart employer won't care if the candidate is born in the same country as you, it has absolutely no bearing on their quality as a human, or the work they complete.

If you live in North America, aside from the aboriginals, everyone is descended from, or directly an immigrant. What makes you so much better than someone else looking to move?

Again, a tech news aggregator is not a place for ignorant opinions on, frankly, humans.

You also haven't answered why you feel this way.
Show HN: Visual Calendar Report
https://news.ycombinator.com/item?id=13840282
This is just a microcosm of the greater political climate created in the US over the past 40 or so years. Business interests completely control every single legislative decision made. We're all just along for the ride now.
He never said refugees. I'd also comment France and other eu countries have done no better with their newer Muslim populations
Well first off, use the term "consultant", and you'll see a 50% increase in revenue.
Author here:

>"Public cloud bandwidth is obscenely priced compared to what you can get it for on the CDN market"

Amen to that! I think where this comes in to play is when you've already got colo space and excess capacity (e.g. eBay etc) and/or you'd like to leverage other edge pop's outside of your provider (e.g. mainland China). But it also adds some level or protection against correlated backbone issues if you can add p2p edges along other providers (similar to Netflix's design). When we looked at the correlation across existing CDN providers we found it was ~95%[1].

Video streaming specifically is _especially_ bandwidth intensive and will definitely cause issues in corporate LANs. It's one of the reasons we add ASN categorized black listing (e.g. residential vs. hosting vs. corporate etc)

[1] https://blog.edgemesh.com/understanding-diversification-netw...
Isn't this, like, cynicism completely decoupled from reality? Google invests a lot of money and time in a myriad of projects with altruistic motivation. Google summer of code, $100 Million per year for non-profits, OSS releases such as tensorflow or Chrome, google.org and on and on.

Of course you can say that this is motivated by PR objectives. But then you're creating a situation where they couldn't do anything right.

Many of their regular products also straddle the border to altruism. Google Scholar doesn't seem to bring in much money, yet it's one of the most important tools for research. Electric, and self-drivings cars seem to be obvious wins for both the shareholder and humanity etc. etc.

They've also created the model for the modern workplace: rooted first and foremost in trusting people to do the right thing, and letting follow their interest to a degree previously only seen at Bell Labs and similar institutions of a lost era. And where Bell Labs was possible because Bell was raking an incredible amount of money, Google has turned the causality around: their free-wheeling embrace of creativity is seem the world 'round as a reason for their success.
> We call this the "meteor hits our datacenter" scenario. With the Backblaze Online Backup product, the hope is your laptop isn't hit by the same meteor so you still have a primary copy of the data.

Just reading this right now I realized, actually, usually for online services you want to use the server closest to you, but for backup I guess it's the opposite - you want the server that's furthest away from you!
The problem is that the preferences of individuals does not match the preference of those people in a group.

A group (say, of castaways on a desert island) can easily afford to have 99% of people donate 1% of their output to support a 1% of their population that was paralyzed in the crash, and most would prefer not to watch that 1% die of neglect. But individually, no one can give 100% of their output to that 1%.

Left to their own devices and anonymous, people will slowly opt out of the voluntary contribution, and the situation will be worse than what everyone wanted. Unless the group has some means of compelling everyone to contribute.

I'd rather live in a society where everyone (including myself) was forced to contribute, than a society in which no one was. Living in a society in which everyone else happens to contribute to the things you'd like, while you don't have to contribute, is not an option that's on the table.
Salesforce attempts to replace SQL with natural language
You could say that about basically every labour-saving device though. Tractors, earth-moving equipment, container ships, whatever. And even textiles are almost wholly automated now - lots of textiles are grown or spun, woven, dyed and printed almost entirely by automated machines - robots, in effect. Final assembly is in many cases the first time a given piece of textile has been touched by human hands. So why is the automation of this final step going to be the thing that prevents countries from climbing the "development ladder"?

When cellphones became affordable, it didn't mean that countries without decent landline networks couldn't "move up the ladder". They just jumped straight to the more advanced technology. If higher-productivity technologies are available, and are cheaper than using scarce human labour, then you use it. More productivity is not somehow a bad thing.
A little bit late to the party here, but the number of allocations is really just 0 bytes. It shows 128 bytes because the benchmark is creating new references to A, B and C. To correct this use either interpolation with $A, $B and $C or initialize A, B and C in the setup phase:

> @benchmark C .= A .+ B setup = (A = rand(1000, 1000); B = rand(1000, 1000); C = rand(1000, 1000))
BenchmarkTools.Trial:
memory estimate: 0 bytes
allocs estimate: 0
--------------
minimum time: 2.048 ms (0.00% GC)

This is showing 0 bytes indeed.
I don't disagree. In your scenario, time becomes more of a concern than the money. After a certain point, you just want whatever is easiest for the people involved.
This is just a lazy comment. Who says these people aren't living a healthy life right now?
Historic Approval for First Gene Therapy in the U.S
Its nice to see AMD competitive again.
Remote imports for Python?
Perfected the feed? Uh.

My biggest complaint with youtube is that the feed is awful. It doesn't help me discover new stuff I like, it doesn't even help me discover obvious stuff like new uploads from posters I like. I don't know what the hell they're doing, but I've caught myself resorting to google searches to find Youtube content that I like on more than one occasion. Maybe I'm a minority, but the entire front page of youtube is a huge miss for me.

The feed seems to be incredibly biased towards recently watched videos, to the point where clicking a single weird link on reddit is enough to fuck up my top suggested videos for a while.
I can't wait to dance with a hotdog.
>> static, vastly simpler

>is the right way to go.

Right, and this is the problem. Digital information is frequently neither. Denying this and shoehorning it into techniques that work for simpler, more static information is hiding the message for the medium. It's bad design.

>The basic 2-or-3-column layout with a thin header was fine, with maybe some tweaks for smaller screens these days. Early-period web's allergy to non-content large media files was good. Design mostly gets in the way, while making everything more expensive.

This wasn't because print designers were in charge. It's because the design industry, for the most part, is allergic to innovation and was ignoring the web. The web designers weren't designers - they very junior developers with none of the pretensions or preconceptions that come with formal training as well as all the problems that come with that, and a really primitive medium.

It's rather telling that returning to those pre-css days would improve things, is it not?
The oversupply problem is one that doesn't seem to be going away ay time soon, especially in the pure sciences. From my anecdotal evidence, it seems to be harder and harder to get into academia or cross into industry each year. I have multiple bio and chemistry PhD friends who have been either stuck in limbo at a postdoc position or who have left the field in frustration. I wonder if it will correct over time, or if the glut or PhD's will continue to grow.
Can you expand on why that would be humane?
What is wrong with immigration?

Aren't you are attacking him for something he didn't say here?
Duplicati rules, as long as all you need are files and folders. It's no good for SQL, Exchange, Bare Metal, etc. though.
An anti-immigrant stance is by definition unfounded and ignorant.

I know s/he is locked in their position because of how often they bring it up in threads all over HN.

It doesn't matter if I'm making an accusation. The other poster comments frequently on immigration on HN.
Yes and no.

There is the concept of gradient (or slope).

Even today you will find that earthworks (of course it depends on coutry regulations) use normally fractions expressing the gradient.

You dig (in normal terrain) sections with a 1/1 slope, depending on consistency, harder soil can be excavated with 1/2, 1/3, 1/4 or 1/5 (w/h).

You normally create landfillings /for roads, railways, etc.) with 3/2 slopes, which is a very good example how something that is extremely complex expressed in angles, like arctan 2/3, can easily be represented in practice.

As well, acqueducts or sewages, railways and roads are usually calculated longitudinally basing on percent (or per thousand) gradient, like 0.1%, 0.5% (h/l).

Vertical walls, like the walls built to contain the terrain on the "mountain side" of roads create - if perfectly vertical - the optical effect of appearing "leaning" towards the road, and usually are built with a 5% to 10% "opening" gradient from bottom to top to avoid that effect (and to save concrete), without anyone actually ever calculating the angle at the base.
Increasing productivity by 10x
The status page linked to here says that the issue spans multiple regions (across multiple continents!).
Why are you defending this person so much here?

> All that happened is we were told we need immigration instead

What do you infer from this? It's pretty obvious.

This isn't the first time I've ran into this person.
This is generally why I think it's a good idea for undergraduates to get a couple of years of work experience in before returning for their PhDs: the experience of grinding out work that you really don't want to be doing is salutary and acts as motivation to get on with things once in the program.
Ha. I was wondering the same thing. I have a somewhat unrelated question for you, though.

You've been using Clojure for a while. Do you still like it? If you were to start your current project(s) over today, would you still use Clojure?

Clojure is on a list of technologies my team is considering using instead of Ruby/Rails. Our goal is to move to a stack that discourages complecting, encourages what we consider to be good practice (immutability, function composition, explicit dependencies, etc), and which has reasonably good performance characteristics. Clojure seems to fit the bill, and has the added benefit of syntactic simplicity which I really like.

Lack of static typing is probably the biggest downside vs some of the other languages we are weighing.
How the blogging world has changed
Presumably, the RNN would be deep enough to recognize that "a coherent plot" is a component of the work on which it's being trained and which it must generate. But not so deep that it generates eldritch horrors.
That requires infrastructure. Here's the thing though: if you can do it dirt cheap overseas and cut out labour, then you can do it dirt cheap pretty much anywhere.

Offshoring really gets done to reduce costs via cheaper wages. If you take out the wages, then offshoring doesn't look as good as it once was.

The issue is that white collar work is now the stuff that gets offshored. But then I see the absolute dire service many outsourced companies provide and I often wonder how much the business loses because of it.
Introducing Fitbit Ionic
Americans tend to look down on anyone who has a doctorate from anywhere in Europe that isn't Oxford or Cambridge. I'm not sure it's justified, but there you go.
You could just as well ask if anyone wants through the camera AR that Apple and Google are pushing. Aside from Pokémon Go, which while successful was hardly a good example of AR tech, I haven't seen anything compelling done with through the camera AR. Snapchat filters are popular but not exactly a game changing application it seems to me.
Ah, I'm not saying it is mice that are the vectors, but that mice are a food that keep Deer Ticks alive in the summer months.

Also, from the conclusion of your NIH article:

>Despite a decrease in EM rash incidence, however, we did not find a statistically significant effect of the deer hunt on EM rash incidence, probably due to LD reporting issues, study design limitations, and the small population size.
Great article, I'll definitely take a look at this! I think it's a nice solution for startup companies that are looking to cut costs on CDNs as well as experiment with P2P tech.
https://www.amazon.com/Amazon-Allrecipes/dp/B01N3MS7AV
See section 17.5, "final Field Semantics" in
http://docs.oracle.com/javase/specs/jls/se8/jls8.pdf.

Note that a String's value field is final.
Why Voice Assistants Will Give You a Headache
What is a "regular cancer checkup" we all need? I don't think I have ever had one. Do you mean just the standard physical checkup? That should be around $100-$200 and not something you would need insurance for. Mammograms and colonoscopies are more for people over 50, not for the young (50 is the new 20?) and still don't cost that much.
All three over the next 10 years.

Agriculture: Computer vision is improving really fast. The technology that Amazon is developing for picking products at its warehouses will also allow them to pick apples.

Food Service: The real killer app here is that special-purpose automated kitchens (like the ones that produce only fresh hamburgers) will combine with drone and self-driving car delivery to make meal deliver 1/4 the price of restaurants today.

Garments: The technology in this article means that production in the EU/USA will cost about the same as Indonesia or Kenya, and the EU/USA labor pool will have more of the high-skill technicians you need to service the robots. Combined with shorter supply chains and faster time to market and you'll see garment manufacturing becoming "local but automated" in most markets.

Depending on the supply of "sewbot technicians" the USA might even start exporting clothing to Latin America or wherever.
When this is an issue, I tend to create a namedtuple with default values for the fields at the same time I'm defining the namedtuple type itself.

NT = namedtuple("NT", ('a', 'b'))
default_NT = NT(42, 'foo')

And then later, if I want to initialize only one field:

my_new_NT = default_NT._replace(a=7)
I spend the rest of my time reading on engineering related topics that I care about. These may or may not be relevant to my work

I could get much more done, but realistically there's rarely enough work to keep me actually busy for 40 hours a week
You can get the mapbox-gl map instance by using a ref and then grabbing the mapbox-gl map off of that (but not documented or officially supported).
Watch Later is just a playlist. You control what's there.

Otherwise I agree completely.
Its just a liberal contract, and you just have to hope they won't do it the way this article flags.

Most crowd sales have unlimited discretionary use of the funds, and that doesn't mean you can't make a profit, especially if you receive something tradable back.

This is probably another reason why equity companies (or at least, purchases of their private equity) are going to go the way of the dinosaur, without liberalizing a liquid secondary market, now that there are alternatives available.
Leveraging bigdata requires different DA skills than traditional environments
Totally agree. I am a fan of Test Pyramid model, where at the top you have a very small number of long running, complex tests (usually e2e), and at the very bottom you have a lot of small, isolated and very fast unit tests.

Testing everything in a browser/e2e provides a rather poor cost/benefit ratio, especially as the project grows and more features and tests are added, so it should be reserved for cases where it is really important.

I like having e2e tests that cover the very core functionality and involve multiple parts of the stack. For example, if you have your rather typical app with a login modal, it's probably good to have a test that clicks on the button, makes sure that the modal is visible, and the user is redirected to the expected page after logging in. But testing if error message is displayed if email address is invalid? That's too much.
Generally, getting a PhD in a scientific field means that you contributed to science in a significant way.
I'm fairly sure that "Watch Later" is just a special playlist full of videos where you click the "Watch Later" button on...
Seconded, in our case we haven't yet but its on the roadmap.
Wholeheartedly agree.

Feels like a generational difference. I'm from the generation that prided itself on its ability to selectively craft one's own "feed" (RSS originally) by spending time finding the highest quality, most relevant sources of trusted content.

The author of this piece doesn't take that approach. And YouTube caters to such. [edited to be less judgmental]

I'm constantly annoyed that the YouTube homepage requires several clicks for me to find new videos posted by channels I subscribe to. The organization on the home page is different every single day. My only options are to delete suggested channels (to see them reappear a week later!!). But in small print on the side, YouTube taunts me that it actually does remember all the channels I've subscribed to. It just thinks that it knows better what I want to be watching.

And you know what? I probably do spend more time on the site because of this shitty design. But what their algorithms don't tell them is the slowly simmering resentment I have toward the site and my feeling of being in an increasingly adversarial role with Google as a whole. Maybe that feeling will never have any monetary impact on anyone, but it seems dangerous to ignore.
Nope, the current JMM dates from 2004.
I'm not qualified to comment on the financial accusations but if accurate they seem quite damning. However I'm not sure I like the way the author of this piece cites usernames from the _comments of the same article_ as experts in the field of solar technology.
A lot of water without actual benchmarks.
Zen Booth
Electroadhesion is a cool technology. The robot pictured, however, seems to use suction generated by fans. I don't see any high-voltage electronics or wiring.
> to have figured out.

?
It is kind of a sibling to Texas in a lot of ways. Too cold for me though. If you ever find yourself in the Dallas-Fort Worth area drop me a line.
It would be nice if you animated the position changes to avoid the jumpiness.