skysight-inc/HackerNews huggingface dataset:
The argument passed to `resolve` gets returned from the resolve function and becomes available to any handler that handles it with `then`. In the above example, the object is being destructured as part of the arguments. The destructuring is probably what's tripping you up.

// straightforward, no magic
const simpleFunction = function() {
return Promise.resolve({ name: 'simpleObject' });
}

simpleFunction().then(function(response) {
console.log(response); // { name: 'simpleObject' }
});

// alternatively, destructuring the arguments
simpleFunction().then(function({ name }) {
console.log(name); // 'simpleObject'
});
Please provide me with a way of deleting my account.
Dollars stores sell a subset of products not the full A-Z Thst amazon and Walmart specifically target. Small towns used to have a fabric store, a butcher, a florist, toy stores, auto parts. The list goes on. Walmart sells it all, often with no real competition, the dollar store does not sell all of those items.
One example: if two programs share the same CPU and have access to CPU resources, then one program could transmit information to another program by putting the CPU under load and removing the load again in some kind of morse code fashion. In computers with fans this would probably be noted by users but not every computer has fans. It's not a very high bandwidth way but enough to get ssh keys transmitted within a few hours of connection.
Ask HN: What’s the future of serverless media sync technologies?
I'm trying to understand the short-term (12-month) use-cases of serverless media synchronization technologies, what sort of companies and software products would be interested in these technologies, and what sort of products and experiences can these technologies enable?
The point is that I would certainly buy this car have I the money, despite minor drawbacks (not "horrendous" based on the video).
Thing is, at any limited amount of funds it doesn't work. It's not like it works better as you get more funds. It just gets more volatile.
If you see something like this that concerns you, rather than create a new account to post, just email the mods using the Contact link in the footer.
Is the novel part the application to materials science? I can't get to the nature paper on mobile but the analysis in the other resources linked here looks pretty thorough.

Is there anything new methodology wise in the nature version?
> the root of the situation is that (a) someone isn't doing their actual job in a remotely competent way

Not really. I've worked with several assholes. They were all extremely assertive, and usually also very competent (but I've found also the utterly incompetent ones). The problem is that even if they're right 95% of the time, the 5% of the times they're wrong they force everybody along the wrong path, because their purpose as work is not to get stuff done right, but to assert their status. So talking them out of a bad idea is impossible, and they tend to favour solutions that serve more the purpose of demonstrating their skill than to get good results.

(As an aside, since assholery is widespread in software engineering, it is legitimate to wonder how much of the so called "best practices" floating around are just exercises in one-upping each other in a status game- "hey, you write your tests first, but you should really write them first in this obscure DSL that is being promoted by the creator of ... ")
In practice, doesn't everyone run the same query in Production? If variables are being used, they're the same degrees of freedom that rest had anyway, right?
More websites should fail on Chrome and work just fine on FireFox.
That site is an unmitigated mess.

What a POS.
Build some biking infrastructure, it is super cheap on top of existing roads. Take away a small amount of space from cars and parking between all major common destinations, and bike/pedestrian usage will skyrocket if they feel safe going anywhere nearby.
I recently read Simon Singhs book "The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography" [1]: it is very fun and readable about this (and many other) cipher.

https://www.amazon.com/Code-Book-Science-Secrecy-Cryptograph...
Elixir is a language that I can very productive in day one. Only Ruby+Go enable me to be productive like that. Lot of people get turn down by so many thing in Elixir like OTP and other cool stuff that you never used and think it's complex.

I literally learn it on the job.

Lack of typing is the biggest issue for me, but pattern matching enable to get the shape of object and to a certain extent and I'm quite sasitify with it.
Or does your bot defend itself in court and you just press the 'submit' button each time it makes a statement?!
Human Side-Channels: Behavioral Traces We Leave
...and if the headline was "Learn to Program in easylang.online" it never would have sniffed the front page of HN
This isn’t an alternative to yaml. It’s a yaml generator. To me it’s not competing with yaml it’s competing with python or Haskell, and i’d argue that putting yet another language in your stack just for generating config files is added unneeded complexity.
And sure while both python and Haskell are Turing complete, how often do we actually run into issues when generations flat config files? I mean I’ve never had that issue, and I’ve never caught myself thinking “if only there was a nice way to limit myself to a non Turing complete subset of python/Haskell”...
User generated benchmark derived from the DBTest'18 paper by Tableau
Swagger/OpenAPI is very fragmented, it builds on JSON Schemas by adding some properties and removing others, then on top of that the AWS API Gateway again removes some options and adds others. Its a total mess trying to navigate which features I can and can not use.
The unpredictability of the consequences of our actions (in the context of free will and fate) has been in the consciousness of the Western public since Sophocles at least.
This post now says flagged.. Why would a story like this get flagged?
When you mention "no tooling (Haskell)" what do you mean? I am using Haskell (mostly for hobby projects) and am wondering what I am missing out on, since I feel the tools available is sufficient.
> having a high percentage of the population being illegal immigrants, it becomes highly unpopular [...]

Presumably the great-grandchildren of residents from the 1930s are not still “illegal immigrants”.

> probably because they are replaced by newcomers

Oh... so this is not actually the same people living there. Well what happened to the families who lived in this place 25, 50, or 80 years ago?
> I agree that firing assholes improves a company's morale and environment, but sadly there is little evidence that it actually help a company's business.

Maybe the root issue lies with our societies putting business above ethics. "As long as you're making money, everything's fine, until you piss off someone with more money than you."
Electric vehicles will solve the problem of localized pollution. The cities and dense urban areas will have less pollution and you will be actually be able to walk on the footpath without inhaling fumes from gas guzzling machines.
Not to mention that for a decade and more, HN was full of "dynamic languages are the best! Who needs types! Dynamic FTW!" comments and articles. It wasn't fully accurate, and neither is the about-face to "Types FTW! Typing is the best thing ever!".

I have come to enjoy the more self-documenting nature of static typing (in PHP of all languages). Yesterday I worked on a legacy project with no typing, and to determine what was passed to an untyped method (with no documentation) required running the interactive debugger and inspecting what was passed in different scenarios...
I was wondering why you choose to go with video data rather than photos.
From what I know, for a given feature point, you would rather have pictures with really different point of views. It seems to me video would generate a lot of redundant data, massively increasing processing times for very little gain.

What's your experience on this?
In other news, solar power will not solve world hunger and satellite TV will do nothing for domestic violence.
static type system
I don’t think we were referring to “Monopolistic Competition” only monopolistic intent, as in, a desire to achieve monopoly to gain pricing power.
Paywalled bullshit. Why is this on the front page?
For me to take the train to work every day from London to Sunbury it works out to just over twenty pounds per day. For what I pay in commute fares is less then leasing and insuring a new car (which also won’t decide 5 minutes beforehand that it won’t be stopping at your station because it needs to make up time). I’m very pro getting people to give up their cars but I don’t see it happening In the U.K. until affordable alternatives exist
Lots of bikeshedding about minute differences in syntax. Especially #3 rubs me the wrong way, it is all syntactic sugar, the only tangible thing you get from all this is to prevent the code from working in older browsers.
You're still not providing any meaningful distinction between the two. How do you actually distinguish between a tool-assisted human and a human-assisted tool? What's the test and where is that written in the legislation?

> If you want another way to look at this problem, imagine that out society grants algorithms copyright over the works they produce with our assistance, while granting us copyright of the works we produce with the assistance of algorithms, and that the law demands all algorithms be credited (CC-AT) when their copyrighted works are republished by humans.

That's just restating the question, not answering it. And the hairy mess used for copyright is not a very promising thing to aspire to.
What are the implications of this on the Turing Test?
This isn't really Kyocera at all.

It is a Startup called [1] 24-m. I cant even find a PR from Kyocera mentioning this breakthrough / achievement. And like all startup battery headlines and PR, I read it with lots of skepticism.

http://24-m.com/pressrelease/
I would love to see London do this - I tried biking in London but it’s too scary for me right now
How to Install Python 3 or Python 2 in RHEL 8
One project I wish someone would undertake is streaming of 1950-80 Hollywood movies. There are some many great movies made in that period and many of them are slower paced than modern movies. The really good ones are of cause still owned by someone, but it doesn't seem like it would be to expensive to license them, I'm mean they are already paid for and aren't making a ton of money on DVD sales or TV licenses anyway. The tricky part would really be to find the license holders and negotiate bulk licenses.

Similarly 1970 - 1990 porno streaming service seems like it should be able to make a little profit.
That’s amazing! Can I subscribe somewhere to stay informed on the project?
That was a fun read. Very interesting.

I have noticed that the AST nodes don't have a parent reference. I wonder how it knows for example when encountering a "continue LABEL" that the code is nested maybe deeply in a loop with that label. The only way I would think of is traversing the tree up but I think there is no way of doing this. How do they do it?
I agree to some extent. To get the same power from rackets loops you have to do a lot more work using for/fold.

I have an implementation of rackets loops for guile scheme, and I'm currently rewriting it to allow arbitrary transformations in the loop clauses.

Say I want to write a Fibonacci loop, currently I can't do this:

(for/list ((a :first 0 :then b) (b :first 1 :then (+ a b))) a)
I think the first thing to say is that the mathematics of quantum theory is the same no matter what interpretation you adhere to (with a small caveat for things like gravity-induced collapse). So, yes, collapse is unavoidable as a mathematical operation which we apply when making predictions about future events.

Where interpretations differ is in the physical content they assign to mathematical objects and operations. In some interpretations the wave function is "really objectively out there", but in others the wave function is "just a good way to store my beliefs about the future".

If you adhere to the former case, then either collapse is merely apparent (ie. many-worlds) or it's a real mechanical thing that is going on in the outside world. If you adhere to the latter case then the collapse process is merely an act of updating beliefs.

Now, if collapse is a real physical process then you run into the measurement problem and "Wigner's friend" style problems. At what point does collapse occur and what induces it? Why is quantum evolution reversible right up until the point of collapse? Is there a combined wave function describing both the observer and the system, and does that wave function collapse? etc... In QBism these issues do not arise because it makes perfect classical sense for, say, an observer of an observer to have beliefs about what that other observer believes.
Oh really? Because I’ve yet to see anyone explain how joins can be accomplished with GraphQL.
I'm very surprised by this. I have built REST in the past and recently I built a large GraphQL service. I found GraphQL to be a lot less confusing both for front-end and for back end. The tooling is amazing, standardized schema introspection is great.

Sure, if you try to shoehorn an API that does not fit the database, it can be challenging, but you can always start with the simple case, doing multiple queries to the DB for one GraphQL request and only later see what is actually used and could benefit from optimizing.

You have more opportunities to optimize. With REST, if a client needs to list some resource and then access all of them one by one, it is going to be n+1 requests and you can't do anything on the back end to change that. With GraphQL you can look at the query holistically and optimize as needed.

All in all it feels to me that GraphQL gives the client the ability to better communicate the intent of what they are trying to do. Declarative over imperative.
How would you write such a program?
> Hasn't this been fixed with the requirement to pre-register trials?

If it was that simple...

Preregistration is a step in the right direction, but there are still plenty of ways to game the system, particularly as it's not properly enforced: http://compare-trials.org/
Photograph of melting Greenland sea ice
That's kind of like saying C isn't an alternative to assembly, it's an assembly generator.
Has China Infiltrated America’s Universities?
The site states it has an EB2ADTS engine. That's a PSA group engine used in a bunch of cars such as the Peugeot 3008. So support/parts would be be pretty easy to obtain.
Valve’s new code cuts AMD GPU compile times by over 45% for Linux games
You have to bet the bonus money at least once.

I did this. Bet the bonus on some super low odds trots race to place that was as good odds as anything to get my money back and then bet the other half on a 36:1 long shot that Bernie would win the nomination.

I got my money back with the low odds Trotter, otherwise I would have bet the balance on another low odds event. Obviously didn't win the long shot.

Not sure why I did it as I don't normally gamble but generally curious and though it was a fun way to risk a small amount to potentially win a "free" holiday.
I think Mazda is trying to fill in that niche, the recent 2019 Mazda3 is more refined and luxurious compared to competitors in it's class, but without the price tag of a German luxury.
Also, the problem is ill posed. I don't think road congestion can be solved by making a different car. It's a social problem related to jobs, schools and houses.
Recently I read a similar example on CS50 course, to do fast search. It is simply a json request everytime a keyboard event is activated. For storage, either store it in memory for instant lookup table or use redis.

https://cs50.harvard.edu/college/2018/fall/weeks/7/notes/
look for the example on WORDS
You can get a new Mitsubishi Mirage for under $10k, if you really wanted to. Just like this car, it also comes with a 1.2L 3-cylinder engine, and is also not at all a sports car.
This 'awful article' is about experimental tests of a working theory.

Can you provide a reference explaining how MWI might be falsified experimentally?
See also

https://www.spectator.co.uk/2019/07/chinas-surveillance-tech...
If you're interested in Feigenbaum's constant, check out Numberphile's video about it: https://www.youtube.com/watch?v=ETrYE4MdoLQ.
$type cars ‘will not solve’ transport problem, others warn
My favorite is when people write scripts that concatenate YAML files in such a way that you have to be really careful about how this one file always needs to be indented by 12 spaces otherwise everything breaks in horrible ways.
It's just the opposite. If the law isn't nailed down then people with fancy lawyers can argue it means whatever they want, jurisdiction shop to get it in front of a favorable judge, etc.

Making the law clear and correct is the only way to prevent the ambiguities from being construed in favor of whoever has the most money to spend litigating it.
The transport problem (that is not just the problem of emissions) can only be solved through rigorous planning.

A planning that involves all aspects (direct or indirect) of the multi-faceted problem of mobility.

But hey, who has time for plannin'.
I'd do it using Bitcoin. And I know how to use Bitcoin ~anonymously. Or some other cryptocurrency that's actually anonymous.

It's true that getting assets from cryptocurrencies is hard. I don't do it. I just spend my ~anonymous income on ~anonymous servers to play with.

But if you're moving enough assets, you can pay people, who know what they're doing, to move it. As we've seen in real estate markets in many cities.
Can you please clarify, what is a guy feeling?
Indeed. The writer doesn't even challenge some of the more obvious problems with the comments they have collected e.g. self driving cars causing traffic jams as they look for parking - why would they look? Wouldn't they ask for a space, reserve one based on location, price, charging needs, then drive to it on a route that is less used than ones carrying time sensitive loads (food, people)?
I for one hated old Magsafe chargers a lot, It tends to burn at connection point with Macbook, among 4 old Macbook we had in our group we had to buy 6 to 7 expensive chargers due to connector issue or due to unreliable cables at work, In new Macbook Usb C connector is a big relief, and you can change usb c cable separately and don't need to buy whole charger.
Japan's 7-Eleven payment app gives easy access to scammers
I think the biggest problem with copyright is the length of time it's enforced for.

I'm happy enough with implicit copyright - though the argument about what should be inherently copyrightable does need to be fleshed out.

However, the current system generally works out to about seventy years after the death of the last person involved. (There are a lot of exceptions and nuances to this - it's a generalisation). Which can mean that a work is protected for nearly two hundred years. That is insane.

If we were to tame it back to two decades after last development, and make it so that only people, and not companies, can own copyright, then we might be in for a reasonable shot. (Companies can license copyright, and employ trademarks to protect themselves.)

As it is, the current copyright laws stifle creativity, and hand over power of most mainstream ideas to a corporation that can use things like DMCA and Content ID as hammers against any little players in the field. You can't create anything similar to what exists or has existed.

And yes, I do believe there is a 0% chance that this will ever happen anywhere.
We're also heavy Dhall users in production. Functional, strongly typed configuration is such a powerful concept that I struggle to understand how the language isn't more popular yet.

Common example: let's say I want to set up a PostgreSQL database for a service running in Kubernetes in AWS. How best to get it done?

Well, it turns out there's a number of different options: you can set up a DB through RDS, and a service in Kubernetes which directs to it through an externalName, which is probably what you want in production; you can set up Postgres as a StatefulSet, which is probably what you want in an ephemeral testing environment; or maybe you have a customer with a full-time DBA who will create the database for you and give you a connection string.

With Dhall, you set up a union type with each of these scenarios as options, and then you have a Dhall function for your Terraform and Kubernetes configurations. In your Terraform configuration, you have an RDS module where the count is set to 1 for the RDS/production scenario and 0 otherwise. In your Kubernetes configurations, you set up a service with an external name appropriately when you need to, set up a StatefulSet when that's relevant, etc.

Because they all use the same type in their function's parameter, they're guaranteed to stay consistent. You're guaranteed to never have an RDS instance setup alongside a Postgres StatefulSet. If you need to make changes (add options, change options, etc.) then you will get type errors in each and every place which forces you to address them, including in places you forgot about.

We started to adopt Dhall more than half a year ago now and we've barely scratched the surface of what the language makes possible. Purity in infrastructure and operations is a powerful drug.
Performance is definitely not close to Ruby, this is just blatantly incorrect. Elixir and Erlang can easily hold their ground vs Go.

The BEAM was originally designed to run software for telephone switches. It's often referred to as soft realtime because it is so responsive. It has been battle-tested for now over 3 decades.

Where the BEAM falls flat is pure number crunching but it's blazing fast with binary processing (e.g. string parsing).

A fresh phoenix project where you render a nontrivial template easily reaches sub millisecond response times, without any kind of optimization.
I’ve been struggling a little bit with this myself, and while I don’t think it’s been a massive problem for me (yet), I am aware of it.

I have a very assertive personality, which has done wonders for my career despite my average technical competency. Managers love to hear from me because I have (and have been told so) good communication skills, specifically the ability to quickly summarize pros and cons of solutions, while keeping extreme fairness in my technical judgements. On top of this, my “fearless” (asshole?) personality makes me treat everyone in the hierarchy (including VPs and upper management) as peers, and I have no problem arguing with them if I feel I have a reasonable technical issue I care about and diverging opinions from theirs.

Most of my brilliant coworkers, much more technically talented than me, tend to be more introvert and never “pick an argument with management”, which also means they never get the visibility I get, which results in public praises, financial incentives, and interesting work. I wonder if they perceive me as asshole.
Fair. I’ll be better.
Ventilen, or “friend to one” in Danish,

That's an unusual translation. A more obvious would be "valve" or just "vent".

- Edit after coffee: "Ven til en" actually means "friend of one". Amazing how faulty pattern recognition can lead you astray.
Im a bit late to the party, but outside of work I spend most of my professional time on a curated newsletter for infosec news: https://securitynewsletter.co/.

Two years running, just crossed 5700 subscribers. MRR between $600 and $1000.
Most successful thing I ever started and still love doing it. Kinda scary to have an “audience” of that size :)