skysight-inc/HackerNews huggingface dataset:
To use Promise.resolve you have to know whether the value is ready or not before you enter the promise, but you should enter the promise and then check that status. There are very few situations where Promise.resolve should be used: it is essentially a weird performance optimization for constant values. A basic example is something like reading from a network buffer: you call read, and there might be data immediately or you might have to wait; and in JavaScript the way you read might involve a callback, so it isn't even like "check buffer and then use Promise.resolve as awkward special case" but instead "call read passing callback; if data is already there the callback is called immediately". This also comes up while implementing stuff like "a set of values that consumers can ask for a value from; if the set is empty they will have to wait until there is a value".

Regardless, I legitimately believe the mental model of it not switching back and forth is fundamentally more correct for the primitive. The goal should also be that the abstraction has the same behavior and ordering semantics as doing it by hand. When you do it by hand, you essentially must run the code there immediately as otherwise there is no way to even run that code at all. Why would you ever want that code to be delayed? It frankly sounds like you are modeling Promise as if it meant Thread or something... a Promise is just a tiny adapter whose purpose is to change a wrap some setup code for accessing the value of a later event together into a common interface. A promise isn't doing the work: it is adapting the API of random models of doing future work (one-off callback APIs, random evented interfaces, etc.) to its own. Having this allows us to hack in (due to the lack of good monad support in most programming languages) async/await in a non-horrific way. If you want to do future work your first step should be to come up with a model for how your future work will happen, and then you use Promises just to do this adaptation, not to like, spawn some computation that will take time and which should happen later.
A huge part of "can’t execute being not poor" is a direct effect of lack of resources.

There is also plenty of research that shows that poverty is detrimental to mental health in a way that reinforces poverty. The insecurity from not knowing where your next meal will come from or not knowing were to sleep is a direct cause of poor decision making.
This is how most technology started out - electricity, cars, jets, trains, refrigerators, air conditioning etc.

Very few technologies have been created by targeting poor or middle-class people first.
Hi rhn_mk1,

This is Tariq Malik, managing editor at Space.com, and thank you for note regarding the missing link for photographer Rogelio Bernal Andreo in our recent piece. That was an oversight on our part and we have added the link here: https://www.space.com/39699-astrophotographer-spots-elon-mus...

Mr. Andreo actually reached out directly to Space.com to share his video with our team via our submissions system, and asked that we consider showcasing it in a future story after giving us permission to use his video and comments.

Mr. Andreo did, however, mention that he was in the process of updating his website and asked that we link to his Facebook page in the image credits. And we did so.

I just wanted to reach out to let you know that Mr. Andreo did give Space.com full permission to use both his video and blog post as sources to share his story.

Thank you so much for your time and your interest in space. We’re happy you enjoyed the story.

Sincerely,

Tariq Malik
Space.com managing editor
tmalik@space.com
Disclaimer: I work as a data scientist at a large financial institution based in the US; to be fair it is one that has a reputation for being on the "cutting edge of tech", FWIW.

The data teams I work with don't know SAS and some members aren't even that facile with Excel, opting to use Apache Spark (mostly Python, but also Scala bindings) or pandas instead. Almost no one does serious data work on their local machines, and there is a big push to store all of our data off-prem.

The dev teams I work with actively experiment with different cloud-based architectures, devops automation tools, database solutions, etc.

From a product perspective, lots of teams use agile workflows, but each team is allowed to (and encouraged to) choose their own style of getting work done.

This is not meant to imply that banks have largely moved to this model; I think that we are the exception rather than the rule. This is _also_ not meant to imply that top-down corporate "solutions" don't affect us, and that greed has been completely factored out of the equation. But I've been pleasantly surprised by how much leverage and freedom we have as the "tech department".
A very large number of people absolutely do not know what they need, or - if they do - are not sufficiently motivated to pursue those needs. See, e.g., the obesity epidemic, smoking cessation, social security (in lieu of retirement savings), tax refunds (in lieu of adjusting withholding), etc.

Willpower, knowledge, and just plain old wherewithal aren't free and can't just be assumed.
> you cannot cancel the actual (OS controlled) asynchronous operation

This is way too broad a claim. If I do something like:

(sleep 1 ; echo "done") &
kill $!

I'm pretty clearly "cancelling the actual (OS controlled) asynchronous operation". Now it may have done some sleeping at that point, and if you replace the sleep with something that has side-effects, then some of those side-effects may have occurred, but the operation is still being "cancelled".

Obviously it's not the case that every operation can be (meaningfully) cancelled, but some can. This is even more true when you consider that when you're using JS, you're generally way above the OS level. XMLHttpRequest has an abort() method for a reason: The underlying socket request may be queued up based on your browser's connection limits and, even if it's kicked off, your browser is going to have multiple opportunities to abort the process even if none of the underlying sub-operations can be preemptively cancelled.
> Everywhere else, all you need to transfer money is the name of the bank, account holder and account number.

I'm curious where you got this bit of information? All I need to transfer money in the US is a routing number and account number.
John radically overstates his case in that article based on incomplete information; note that none of the code he points to is even 1.0 code.

Nonetheless, it’s accurate enough to say that the 1.0 BI connector used Postgres code. It was definitely the fastest way to deliver it.

2.x was built from scratch, it uses no Postgres whatsoever.
Magic Leap's staggering VR goggle technology just got even better
I work at a financial services company.

You simply cannot exist if you are not a tech company due to the complexity of the regulations.
Rust 1.24
Do read the whole thing, but here's the quick summary of most important parts:

[neural net] “nodes” are just weights stored in a computer’s memory. Calculating a dot product usually involves fetching a weight from memory, fetching the associated data item, multiplying the two, storing the result somewhere, and then repeating the operation for every input to a node...

In the [new] chip, a node’s input values are converted into electrical voltages and then multiplied by the appropriate weights. Summing the products is simply a matter of combining the voltages. Only the combined voltages are converted back into a digital representation and stored for further processing.

The chip can thus calculate dot products for multiple nodes — 16 at a time, in the prototype — in a single step, instead of shuttling between a processor and memory for every computation...

One of the keys to the system is that all the weights are either 1 or -1... Recent theoretical work suggests that neural nets trained with only two weights should lose little accuracy — somewhere between 1 and 2 percent.

Biswas and Chandrakasan’s research bears that prediction out. ... Their chip’s results were generally within 2 to 3 percent of the conventional network’s.
You can substitute current buzzwords (AI, ML) for Information Theory and it reads as fresh as ever:

> INFORMATION theory has, in the last few years,
become something of a scientific bandwagon.

> It will be all
too easy for our somewhat artificial prosperity to
collapse overnight when it is realized that the use of a
few exciting words like information, entropy, redundancy,
do not solve all our problems.

> What can be done to inject a note of moderation in
this situation? In the first place, workers in other
fields should realize that the basic results of the
subject are aimed in a very specific direction, a
direction that is not necessarily relevant to such
fields as psychology, economics, and other social
sciences. Indeed, the hard core of information theory
is, essentially, a branch of mathematics, a strictly
deductive system. A thorough understanding of the
mathematical foundation and its communication
application is surely a prerequisite to other applications.
It's not really comparable to TPU. The MIT chip uses analog tricks to perform binary neural network operations. It's probably directly comparable to FPGA DNN, I think.
This is a fundamental issue with multitasking, in that an independent task will have its own stack, so errors can't propagate up the stack of the function that started the task.

e.g. consider this python code:

def start_task():
Thread(do_task).start()

What happens if do_task throws an exception? The exception can't propagate up from start_task because start_task may have returned when the exception is thrown.

At some point you have to join your threads, and you have to await/then your promises, otherwise there's no well defined place in your program for the exception to go.

Linters can help with this. tslint is one example, I believe it can give a warning for unhandled promises.

`p` will reject, any function that awaits p will reject. The error is that you've fired off an asynchronous task but you don't have any code that cares about the result of that asynchronous task (and the stack of any code that
The book under review carries the imprint of William Morrow, which is a brand of HarperCollins, which is owned by News Corp, which was originally a Murdoch property. Another News Corp media property is the New York Post. So is the WSJ.

Which of these entities do you think paid the NYT to publish this review? Because that would be a major story.
This is a helpful list, thanks.

I've read traction as well, and am currently using the Bullseye Framework [0] with some success.

At the end of it, it still feels a lot like "throw stuff against the wall and see what sticks".

Personally, I don't have a lot of clarity around how to repeatable test and measure.

0: https://medium.com/@yegg/the-bullseye-framework-for-getting-...
The biggest problem with XML is verbosity. Besides the excess complexity it also add bits over the wire to transmit all that extra crap.

JSON is king.
That changes nothing for ArangoDB (https://docs.arangodb.com/3.3/Manual/Transactions/) as they have had this feature long before MongoDB. But MongoDB gets the headlines for the hype and being light years late to the party.
It is honestly a nightmare. I had to make a decision which framework to invest learning in with very limited funds. At the time, the big choices where Angular which had been established and backed by Google and React which was still very new with a much smaller community. I went with Angular and by the time I learned everything I needed, everyone wanted to hire React developers. Running out of money, I ended selling all my belongings, moving to a new city, and doing Backbone.js development. I've been working on learning React for the last several months not earning money and it is more difficult to learn than either Angular or Backbone because it isn't as opinionated driving me to have to learn each tool to decide which is best. My mind craves structure. Whereas most developers have 2 years React experience on me. I figure if I waited 6 months to learn JavaScript frameworks, React would have been the better choice and I would have been far better off than what happened. In a way the MEAN stack screwed me.
It does seem kinda random to me. "Contrary to popular belief," he wrote over the weekend, "the percentage of the population that directly encounters poverty is exceedingly high." Between the ages of 25 and 60, Rank has found, almost 40 percent of Americans will live at least one year below the poverty line. Yet over time, most also pull themselves back above of it. https://www.theatlantic.com/business/archive/2013/11/a-shock...

Also the #1 reason people go into bankruptcy in this country is medical costs. That's not something that can be "executed".
Yes, in fact. Whenever I've had these conversations with people, I always try to probe deeper to figure out why they are so angry about what should be common decency. And the answers are always the same. They think it's not about decency, and that their rights, and their way of life, are being attacked. In their minds that attack always comes from "liberals" or "niggers" or "faggots trying to rape our children in the bathroom" or some other hateful, bigoted nonsense. They think that their right to call these people out ("call a spade a spade" is an oft used phrase) is being eroded, and that means "PC culture" is preventing "dialog" and "telling it like it is" or "turning us into liberal pussies."

I cannot tell you how many times I've had this same unfortunate discussion. And every time it makes me sick to my stomach.
I think a big part of this divide is semantics. What is a conservative? Is it a Rockefeller republican (center right)? Is it a populist Trump supporter? Is it a member of the current Republican party? Is it a traditional social conservative? Is it a traditional economic conservative?

You say that religion and (it seems) discrimination are cornerstones of conservativism but I would categorically disagree with that notion. I hold many of the classical conservative values (limited gov, thoughtful regulations, primacy of the constitution, belief in public investment in education, health care, defense, and research to support the public good etc) and would consider myself to be at least an economic conservative in the classical sense, yet I am an atheist, am socially liberal, and do not support racism, sexism, or xenophobia in any way. I would say some of these negative ideas are represented by the Republican party in its current incantation, but the ideals of the Republican party and conservative ideals are not necessarily one in the same, in the same way that the ideals of the Democratic party are not equivalent to classical liberalism.
Correct me if I'm misunderstanding something, but won't this chip need a ton of ADCs to process these computations?
Yes, a passive wake up receiver is possible. See https://ip.sandia.gov/technology.do/techID=175
I used to be bullish on crypto. Now I see something like this and wonder "why the fuck do I want to use crypto to buy something when cash is instantaneous and my credit card provides consumer protection?". Add on to this the necessity of dealing with capital gains on my taxes at the end of the year just for buying something? No thanks.

I also fully expect to get downvoted to oblivion for this opinion based on what I have seen in the past.
I don't see any evidence in the link you posted.

And it's interesting that you bring Samsung that for 3 years issued patches every single month for my old Note 4. You may not get latest and greatest Android version immediately (missing the essential "hamburger emoji fix") but you'll still get security updates.
Good advice. Where have you found good marketers that you can engage on a long term?

A few marketing companies I've talked to are either (1) we'll write a blog post for you every month for $100 or (2) pay us $60K a year and we'll take care of everything.

Neither of those sounds appealing. Working one-on-one with a competent marketer, however, sounds doable.
This is something that’s easy to forget once you have money: lack of liquidity is expensive. The (ironic) gravity of cash means the more you have the more you get (interest), and the less you have the less you get (interest).

Louis CK has a whole bit about this, back from when he was still broke: https://youtu.be/Y_-1l_SlA7c

I guess time has done him well :)
Does anyone know what the new text editor Xi [0] uses? What about the GNU Zile [1] library?

[0]: https://github.com/google/xi-editor
[1]: https://www.gnu.org/software/zile/
True. My theory on that is that it is due to racism inherent in the culture. But hopefully it may not be quite as bad in the current generation. Anyway to improve that aspect of their culture to me it is a similar problem of trying to integrate the cultures -- we can't just force them to accept our ideas without an exchange or understanding theirs. Unless you believe in the traditional approach of war which to me is clearly a very stupid and self-destructive path.
I already thought cuttlefish were awesome but reading that they are using chromatic aberration to distinguish colors blows my mind! Thanks for sharing!
Which course are you doing? I've been doing fast.ai and can't recommend it enough, it's extremely practical and based on an outstanding library built on PyTorch. The person who teaches it is exceptional, so if #2 was your problem then you won't need to worry about that.
just saw this -- no worries, and thank you for your response. i think that is very reasonable and we are excited to go head-to-head with amazon on all fronts (delivery experience, quality of jobs offered, retail offerings/selection/etc).
Yes this has changed. The BI Connector 2.0 is written in Go and uses the MySQL wire protocol: https://docs.mongodb.com/bi-connector/master/release-notes/
> couldn't squeeze anything more than organic marketing for it

Were you not able to get an ROI on paid ads?
> Students should feel absolutely no guilt in pirating textbooks.

False.

> The whole industry is a racket, designed to exploit kids in a situtation where they have no choice.

True. But your previous sentence does not follow from this. The bad actions of others do not justify your own bad actions, no matter how tempting it becomes to think otherwise.
As a fallback. I like LISPs as much as the next guy/gal, but editing the AST by default is too low-level. The importance of paredit is a language smell in my opinion, not something to aspire to.
This has a good scope for humblebundle
Google tracks link clicks in Hangouts
Open a Hangouts chat from the GMail web client. Send a URL to someone (or receive one). Right-click → Inspect Element; the actual link will be a redirect through google.com.

I can't be the only one who thinks Google is severely violating user trust by tracking clicks in supposedly private conversations. (I know Facebook does this too, but I don't think anyone would be surprised at Facebook's behavior.)
> "Paredit is simply where text and ast manipulation converge to the closest point."

What about Parinfer? I don't use it but seems like it's even lower friction than Paredit.

https://shaunlebron.github.io/parinfer/
My friend managed to upgrade to 11.3 beta without restoring.

(Very bad joke on my part)

EDIT: apparently he did go into recovery but didn't lose his files.

He says you have to go in DFU, press shift and click on update then select the file for the 11.3 beta upgrade.
i am not entirely sure what you mean by this -- sorry. i was not trying to be divisive and offer a personal perspective as an engineer. can you clarify please?
One thing that Pollan (the reviewer) doesn't discuss here is the degree to which food culture and food habits intersect with regional and class identity formation and tribalism.

Food habits and trends seem to work both for and against those tendencies. On the one hand, foods once associated with hippies like tofu or almond milk can be bought anywhere there is a major grocery store. Even the taste for spicy/piquant food has become quite normalized and not anymore uniquely characteristic of particular ethnic communities.

On the other hand, the kind of places you actually buy your food are highly tribalized, with some socioeconomic classes preferring local and uniquely branded food and groceries, while others prefer chain type fast food and more "common" grocery stores.

It's fascinating that food has both the power to bring people together and also to polarize and separate them.
The Revolution and Slack
Understanding and Combating Memory Bloat in Managed Data-Intensive Systems [pdf]
He literally talks about the work-arounds you can use to delay the function call in the article, and explains why you would prefer it to be default behavior.

Error handling is annoying, and this is (eventually going to be) fixed in Node.js. In the browser, you can add some listeners: http://2ality.com/2016/04/unhandled-rejections.html
a companion post: http://slatestarcodex.com/2017/06/05/is-pharma-research-wors...

Here’s one hypothesis: at the highest level, the brain doesn’t have that many variables to affect, or all the variables are connected. If you smack the brain really really hard in some direction or other, you will probably treat some psychiatric disease. Drugs of abuse are ones that smack the brain really hard in some direction or other. They do something. So find the psychiatric illness that’s treated by smacking the brain in that direction, and you’re good.

Actual carefully-researched psychiatric drugs are exquisitely selected for having few side effects. The goal is something like an SSRI – mild stomach discomfort, some problems having sex, but overall you can be on them forever and barely notice their existence. In the grand scheme of things their side effects are tiny – in most placebo-controlled studies, people have a really hard time telling whether they’re in the experimental or the placebo group.

Nobody has a hard time telling whether they’re in the experimental or placebo group of a trial of high-dose MDMA. I think this might be the difference. If you go for large effects – even if you don’t really care what direction the effect is in – you’ll get them. And if you go for small, barely perceptible effects, then you’ll get those too. The dream of the magic bullet – the drug that treats exactly what it’s supposed to treat but otherwise has no effect at all on you – is just a dream. The closest you can come is something with miniscule side effects but a barely-less-miniscule treatment effect.
In my country, we don't use textbooks, and instead professors hand over the material.

After studying for a semester in Canada with textbooks, I did not see any added benefit to using textbooks.
Heathrow Taxi
That's like asking, how is "MS Word different than LibreOffice". Some people want to build their company on the backs of paid software. User preference really.

Pagestead also appears to have pre-built components for your users to build off of.
Gary Johnson made hay in 2016 about the fact that it took Hillary Clinton longer to change her position than Dick Cheney. I feel pretty confident that he wasn’t always in favor of it when he was in Congress or working in the Ford Administration (after all, even the Human Rights Campaign was opposed to campaigning for marriage equality in the nineties [1]).

But I take your point, and I don’t understand why it is so surprising that politicians could hold a la carte views on social issues, something which I feel used to be much more common and allowable in our culture (see also Barry Goldwater’s support for gays openly serving in the military in the late 80s, a policy that wouldn’t be implemented until 2011, which to the original point he credited to a gay grandson).

[1] http://dish.andrewsullivan.com/2014/04/16/jo-beckers-troubli...
This is a known footgun of promises. But if you are using async/await, uncaught error in the promise chain is the same as uncaught error inline.