skysight-inc/HackerNews huggingface dataset:
No idea why you think it seems that way. Using a temporary variable is not "just sugar", it's a big change in semantics!

Take a more familiar example:

x, y = (y, x)

Let's pretend that this is "just sugar" for using a temporary variable. What would the desugared version look like? As a first guess, how about:

z = (y, x)
x = z[0]
y = z[1]
del(z)

This seems fine, but it's wrong. For example, it would break the following code (since `z` would get clobbered):

z = "hello world"
x, y = (y, x)
print(z)

A temporary variable would need to be "fresh" (i.e. not clobber any existing variable). As far as I'm aware, there's no syntax for that in Python. What we can do is create a fresh scope, so that the temporary variable would merely shadow an existing binding rather than overwrite it. We can do that with a lambda and the new `:=` syntax:

(lambda z: (x := z[0], y := z[1]))((y, x))

However, this alters the semantics because the stack will be different. For example, we might have a class which forbids some attribute from being altered:

class A(object):
def __init__(self, x):
super(A, self).__setattr__('x', x)
def __setattr__(self, name, value):
if name == "x":
raise Exception("Don't override 'x'")
return super(A, self).__setattr__(name, value)

This will raise an exception if we try to swap two attributes:

>>> a = A('foo')
>>> a.y = 'bar'
>>> print(repr({'x': a.x, 'y': a.y}))
{'y': 'bar', 'x': 'foo'}
>>> a.x, a.y = (a.y, a.x)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 6, in __setattr__
Exception: Don't override 'x'

If we replace this with the lambda version above, the exception will have a different stack trace, which we can catch and process in arbitrary ways. For example, maybe we know that the `foo` function will trigger these exceptions when given `A` objects, but it's a recoverable error. So we "ask for forgiveness instead of permission" by catching these exceptions somewhere, looking checking the stack trace to see if the Nth stack frame is `foo`, and abort if it wasn't. If we "desugared" using the above lambda, the Nth stack frame source of the exception would be a different function (`<lambda>` instead of `foo`) and hence such a program would abort.

On the one hand, that's a pretty crappy program. But on the other it demonstrates that "use a temporary variable" is not "easy" in the general case (which is what language implementations must handle).
Previously discussed:

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

https://news.ycombinator.com/item?id=17445406
Anything to back that up? Stats? First-hand / second-hand experience?
The thing with Chrome extensions is, many, many extensions already require the ability to interact with every page you visit, which is essentially Chrome extension root. If your extension already requires this, you don't need to add permissions when you update / sell your extension, so nobody is warned.
> That’s why every app has a privacy policy

Privacy policies are not effective. Users don't have time to read all the privacy policies or to shop for apps that provide real privacy, if one exists. Users don't have the expertise to understand the systems, the policies, or the implications of surrendering their information.

The evidence seems strong that it is beyond most users. Usually in those situations there is regulation, as there is now in the EU. For example, banks can't charge variable interest rates that escalate to 50% and say 'it was in the agreement'. Airlines can't sell you a ticket to Oslo and then fly you to Rome, and say 'change of flight plan was in the agreement'.

> Technology can only limit access and use cases so much

If it was in Google's interests, I bet they could find a way.
If it has a 1 month curing time, I would assume weather would affect outside structures more often as well.
Working in industrial automation I can confirm that ugly color coded touch interfaces are optimal. Group functions by color and/or menus by color. Operators quickly know where to glance for data and which "buttons" to press.

Most of today's UI's are centered around web/mobile where form over function is the rule.
Do cubicles really take up that much more space?
And also, the banks make a ton of money using Swift. Even the Western Union and MoneyGrams of the world want to keep taking their huge cut. Even a new startup will have trouble getting traction in places where you can't exchange Ripple for fiat.

Add to all of this the fact that 60% of the tokens are held back. Who wants to take a large position in a currency when a single entity can flood the market anytime they want.
Thanks for the suggestion, will look into saving the content on Google Drive or other storage options.
React Native: A retrospective from the mobile-engineering team at Udacity
That's more Trading Standards though than EU-originated regulation - I think it's a bad example because weights and measures is extremely old and well-understood.
Moog Says Chinese Tariffs May Force a Move Overseas
It is meaningfully different: with the glass example the company can take concrete action and get back into compliance, and no longer have ongoing issues.

With any website (hackernews included) the only way they can actually completely prevent there from being copyrighted content in the comments that they host and publish is to not offer the ability to comment at all.
This is an older post but I've updated it yet again today and it's still as applicable now as ever.
Yeah, just apply to work at one of the many companies that hasn't gone to an open floor plan (?).
More generally than just books,

when to quit, is a really hard problem

I'm reminded of the Hacker New link from a month or so ago about 'The emotional journey of creating anything great' https://news.ycombinator.com/item?id=17164822

where most of the time invested in doing something, looks like all the time you invested, will end up having a poor ROI

pretty much every point there except the end looks like a case study for calling it a sunk cost and quitting to do something else.

Its a hard thing to know when your sample size of data is big enough to make conclusions that have consequences on

(I guess all in all that's the point, you need to use some heuristic, and the link is arguing for a heuristic of 50 pgs when reading a book, which seems like a rule of thumb that I have no particular objection to)
Who is the author, Matt Mochary? Why should I care what he thinks?
The Player of Games is sort of Banks-lite. If you didn't like that then you are not going to get into his other stuff. Personally I like his novel but I can understand why others don't - he has a certain style and way of constructing plots that either grabs you of leaves you bored.

There are certainly many books that I struggled through and wished I didn't, but there are others that I thought I was going to hate long past the 50 page mark that brought me around in the end. But 50 pages is enough to know that a book is _terrible_.
One person's high fees are another person's profit centers.
I built this tool for my own purpose. I wanted to practice writing long essays that's all this tool does. But I will surely look into permanent saving options and sharing of these notes.
Eh, SWIFT's GPI service apparently already only takes a few seconds, not days, and has around 150 banks signed up and using it, and it's transferring over 100 billion USD per day.
I've seen the 'super hybrid' a few times, at least in Australia, on both ATMs and credit card machines. A touch screen (with physical numpad) at but with positional buttons on the side so the choices can be both touched, or use the buttons. For me it creates a bit of cognitive overhead at first - I'm getting mixed messages as to how to interact - but then I make a random guess and its right. No matter which I tried, I would have been right.
So how does Ripple make money then?
In comparison to open offices, yes.
Good point, but I not a 120 tabs person.
> a man who doesn't understand the laws he's trying to push forward.

I think we should stop giving politicians the benefit of the doubt, that they do not understand the laws they are lobbying for.

It is their freaking job to do so. And if it's above their head technically, no matter whether it is about internet, nuclear power or farming, it is up to them to either catch up or back off.
There are two, similar, though different, extensions.

uBlock origin is a dedicated, quite-good, low-fuss, ad blocker.

uMatrix is a much more general, very powerful, though somewhat fussy, general Web capabilities manager. If you don't mind fiddling with sites periodically, it's very strongly recommended, but for user populations who don't do this or grasp technology poorly, it will require some fairly close managing, _especially_ if the user base doesn't report problems and just accepts "the site is broken".

I'd highlighted my preset recommended set of browser extensions for 2018 a couple of weeks back. The hero image is uMatrix's control interface.

https://plus.google.com/104092656004159577193/posts/WVEM83FY...
Well, it’s a shame but at least the story adds up.
The example animation looks broken in Safari (including Tech Preview 59), works in Chrome 67 (of course), and in Firefox 61.

[Edit: This seems to be a macOS/driver bug affecting only some models]
I never try to get too much into the math, but the amount of concrete required for X is staggering in general, even at small scale.

Recently built a foundation for my deck, what was estimated on the concrete tube for pillars was nowhere near what was actually needed.
I recently read the book Deep Work by Cal Newport, and I wish I had employed this 50-page rejection rule instead of pushing through the whole thing.

I’m a big proponent of deep work habits, avoiding open-plan offices, etc., ... most of the stuff the book talks about. But it is just so poorly and shallowly written, mixing in little factoids or sound bytes that have no real evidentiary weight behind them and as a result just go in one ear and out the other. Most of the advice is entirely subjective, supported by anecdotes about unrealistically successful people who can use their positions of luck-driven-success to be sounding boards for whatever grandiose selection bias and retrospective plaudits they want.

I was very disappointed after seeing the book praised often here on HN. But boy, it was a total stinker and there are many better books on the topic (Peopleware, for one).

The whole book of Deep Work could have (and should have) been summarized with about 5 pages of bullet points, and published just as some blog post. It is absolutely dreadful as a long form book.
This is not an American culture. This is the nature of a human being.
You can't be serious. Taking 13 people, with an absolute maximum of Open Water level training (if that), back out through hundreds (or thousands?) of meters of low or zero visibility diving, including (apparently) tight restrictions, without risking the lives of all concerned? Aint gonna happen - unless the water level drops to the point where they can just float back out.
It's great to hear your opinion. I built this tool for my own purpose. I wanted to practice writing long essays that's all this tool does. But I will surely look into permanent saving options and sharing of these notes.
The fact of the matter is that businesses like to tell themselves they're data-driven, but they aren't. Consider the continuing popularity of the bogus MBTI test.

(Whoops! I already left a top-level comment. Sorry, bad form)
I’ve run into sites that consider + invalid within an email address. It would also be easy for a site that wants to sell off user info to have a regex strip the +sitename from emails prior to selling the list.
Bufferbloat happens on high speed links like those but amount of bloat you see is in the 30ms - 60ms range (vs seconds(!!) on home links). Bloat happens mostly (aside from microbursts) on overloaded links - and high speed backbones are typically overprovisioned so the problem only shows up when there's an outage or fiber cut. Example of what happens today on a fiber cut: http://blog.cerowrt.org/post/bufferbloat_on_the_backbone/

IF things like fq_codel were deployed on those we'd not see latencies climb that much at all, we'd see bandwidths decline to the actual capacity available - and only the biggest flows would be hit to do so.

FQ_codel is lightweight enough to fit directly in high speed hardware and it does indeed run on 40gigE plus devices on linux, ddpk, BSD, in software. But it takes a long time for new chipsets to adopt new algorithms even if they incorporate support for deeply desirable features like ECN.

That said... 10Gbit to the home.... ooohhhhh. it's really hard to bloat that!
Is the transition from crust to mantle a sudden one or gradual? It seems unlikely that the two could be entirely separate. And how about between the mantle, outer and inner cores?

Strange drilling fact: When digging the Channel Tunnel, all existing bore holes (going back a century) had to be mapped and the tunnel avoided them so that if any of them hadn't been plugged properly it wouldn't create a hole that caused the tunnel to fill with water.
I use deques A LOT, e.g. interthread messaging, and decaying/windowed time series calculations.

Like, if you want a running mean of the last 250ms, you put a timestamp and value pair in the back a deque, and every update you check the front of the deque to see if it should be popped (i.e. the timestamp is older than 250ms), and the mean updated.

I suppose you could use a circular buffer with a vector as well, but you have to guess what your max size will ever be, or handle dynamic resizing. Maybe it would be worth it in some circumstances.
I'm aware of Ghostery's data-scavenging, and not happy that it's opt-out (GDPR noncompliant), but it can be disabled.

It's on my flagged list, but remains installed.
When did Python have multi-line lambdas?

Are you maybe conflating blocks with chained iterator operations? Adding blocks to Python's current functional syntax would be pretty ugly. "foo.filter(bar).map(baz)" is nice even if you can only use named functions.
Investor psychology is the only thing keeping the price of stablecoins stable
Hopefully we can go to mostly physical interfaces and voice (for nav input). Where is a touchscreen the best answer?
Do you have scripts that could rebuild your pet Gitlab server? Beyond the storage requirements and stateful components, getting Gitlab to bootstrap from a base image should be pretty trivial, right?
Note that if you have gigabit or faster it's usually cheaper to build a router box with a really fast CPU. Most/all reasonably priced network applicances can't do FQ in hardware offload and their CPU's are pretty weak. Never managed to get over 200mbps on any network box besides a super beefy PC.
What does “sensitive” mean in this context?
> 3.	Someday/Maybe: This is the list of things that you one day want to do, but don’t need to get done now (e.g. read a book).

Someday/Maybe

Schedule a guitar lesson

Order the book Getting Things Done by David Allen

---

Man, this guy really gets me.
I have a pair in my pocket now!
There would be a simple solution to a law that forbids linking to content without consent of the author:

Only link to content where the author added a standardized 'You are free to link to this page.' meta tag.

In no time, every page on the net would carry that tag. Because authors want to be linked to.
Oh he showed up, for the free fancy dinners.
When Sports Betting Is Legal, the Value of Game Data Soars
Didn't cause my laptop fans to spin up.
My brief experience with PHP was pretty good. I remember it being fairly nice to work with, and really easy to get up and running with.

The choice of a Pascal program to do the actual drawing was interesting. I'd heard of Lazarus, but hadn't seen it used before.
Lyft and Uber Won’t Be Happy Until They’re Your One-Stop Transit Guide
Every time a new Coinbase feature or product is posted on HN most of the comments are anti-Coinbase.
Scaling IoT Time Series Data with Postgres-BDR
This is the best comment I've read here so far, and interesting to learn you're also a Muslim. You're clearly very well educated too.

I do have concerns though in relation to political Islam. Watching some videos hearing from "the horses mouth", I find troublesome to expect any possible integration from the many millions of Muslims already living in the EU. As the following video shows, it's the common Muslim who thinks like what the Western only attributes to the radical Muslim.

I'd like to hear your comments about the contents of this video please https://youtu.be/fhBvzliBey4?t=1m30s
When you visit wikipedia in the UK you some times see a banner with information. I'm posting here the content and links of the banner:

> To all our readers in the UK
This Tuesday we need your help. On 5 July 2018, the European Parliament will vote on a new copyright directive. If approved, these changes threaten to disrupt the open Internet that Wikipedia is a part of. You have time to act. Join the discussion. Thank you.

> Contact your MEP: https://changecopyright.org/

> Read about on Wikipedia: https://en.wikipedia.org/wiki/Directive_on_Copyright_in_the_...

> Learn more: https://meta.wikimedia.org/wiki/EU_policy/2018_European_Parl...

In particular that changecopyright.org link seems organized by Mozilla, and connects you directly with an MEP.
Any recommendations on malicious site alternatives?

I'm still looking to update my router (Turris Omnia) to use DNSMasq rather than Knot Resolver, which may offer an edge on DNSSec capabilities (though I believe this has lapsed), but is far less capable of being locally customised along the lines of DNSMasq.

https://www.knot-resolver.cz/

http://www.thekelleys.org.uk/dnsmasq/doc.html
The cost of college is going up dramatically. The younger engineers I've worked with recently often have six figures in debt starting out, and a lot of them went to state schools. They'll be paying that well past the traditional home buying age.

Yeah, they could have made some different choices and only been, say, $60k in debt, but "it gets better" comes with some pretty big caveats for a lot of people right now.
Doist | Back-end Engineer | Python | World | Full-time | Remote: https://doist.com/jobs/#back-end-engineer-python

Doist | Marketing Developer (Full-Stack) | CSS, HTML | World | Full-time | Remote: https://doist.com/jobs/#marketing-developer-full-stack

Doist | Senior Android Developer | Java | World | Full-time | Remote: https://doist.com/jobs/#senior-android-developer

At Doist, we’re always striving to build not only amazing products but also amazing teams: Teams that innovate and change how productivity tools are made. Our flagship product is Todoist, a to-do app with over 15 million users worldwide. Recently we launched our second app Twist which is a mindful team communication and collaboration app.

These are all remote positions. You'll be free to work from wherever you please. You can also choose to work from our office in Porto or Barcelona, or we can get you a dedicated desk at a co-working office near you. :)

To learn more about who we are and how we work, please check out our Ambition & Balance blog: https://blog.doist.com/
This autonomous market:

https://www.reuters.com/article/us-israel-tech-intel-mobiley...

https://www.nvidia.com/en-us/self-driving-cars/drive-platfor...
I completely agree. I've run into a lot of people who say something like the following:

> But dude, you just have to get through the first 3 seasons and the show gets so good.

No, I'm really fine not wasting 15-30 hours of my life when there's hundreds of other incredible shows, movies, books, and video games.
Here is my experience with SWIFT for International payments:

1. Emitter pays around 35-50 USD to send you the money.

2. It takes from 5 to 10 days depending on (traffic?).

3. No clue where your payment is until it hit your account. Basically there is no visibility (unlike the blockchain where you can see in real time if the payment is made even though it is not confirmed).

4. Your bank take a cut. Usually it is another 10-20 USD.

And here is the worst part. In some countries (maybe many, most?) there is an obligatory FX circle even if you hold USD accounts.

1. You receive the amount in USD.

2. Bank convert USD to Local Currency.

3. Bank convert Local Currency to USD.

4. USD deposited in your local bank account.

And here is the funny part: The bank make sure it fucks you really well on the FX fees. Around 5-7% both ways. So ends up over 10% of the total amount + the fixed fees.

Welcome to reality.
I've tried perhaps a dozen of these writing tools, as I'm looking for one for my Android tablet. I've yet to find one where I can write more than a page worth of stuff without being forced to crane my neck to stare at the very bottom of the tablet for the entire rest of the time I'm writing.

Sublime allows me to scroll past the end, and I didn't realize just how important that feature is until I had to trudge through the endless morass of apps that don't. Predictably, this app doesn't either. I wonder how much actual writing these writing app devs actually do.

I'm not asking for an option for the cursor to stay in the middle or two thirds of the way down the screen, though that would be really really really nice. But scroll-past-end is essential.
Having just published a book, and going through a couple of alpha and beta reader groups, I look at my experiences, the stack of books by my nightstand, and realize: most people do not buy books to read them

They buy books for the promised experience they'll have owning them. I think most of us heavy readers are not honest enough with ourselves to admit it, but we're not enamored with the ideas in books as much as the experience. An unread book is the promise of a good time yet to come.

I don't know about the Rule of 50. I know that some of the best reads I've had were a struggle for a good, long while until I could finally get into the mind of the author. I also know that some really awful books were a struggle too -- and they didn't get better.

The problem here is that everybody has authors they are easily able to follow. The text just sort of flows. For me, Dean Koontz was like that for a while. It got to the point I started believing a machine was writing these things. They were enjoyable, easy-to-read, action-packed, and completely forgettable. I loved them. Used to call them my "airplane books". Pick one up the morning of travel, finish reading it that day.

Compare that to my current read, "The Brothers Karamazov". I'm struggling, and it's not the author. It's my mind getting aligned with the author that's causing the problem. Sometimes it takes a lot more than 50 pages for that to happen. A little faith is required.

If I had to come up with a rule, I'd go with Pearl's Rule, except for classics. And I'd add a fallback position: try the audiobook. Many times it's easier to listen to an audiobook half-way and get the general gist of it.
>Twiddling with QoS might help, but a faster internet connection probably won’t help at all.

The key issue here is contention, or a busy egress interface - that's when buffering occurs. I do not understand why adding capacity, or reducing the probability of a busy egress interface, "won't help at all".
Researchers apply computing power to track the spread of cancer
Restore Privacy – Your online privacy resource center
Have been scaring myself with this site since primary school, amazing to see it popping here!
The idea that its a privilege to be viewed as "pretty expendable" is to me a rather odd. In any war where a minority group is used as an expendable meat shield, I have never seen anyone argue that its proof that that minority group holds power and carries "-actual advantages-" in society. In contrast, when some individuals of a category holds power while others are viewed as expendable it indicate that that categorization (ie, this one based on being male) is a poor predictor for privilege.