skysight-inc/HackerNews huggingface dataset:
WeChat payments seem like genuine improvements. But agree it's going to be very challenging for these companies to expand overseas. Perhaps still easier for China to expand outside its borders than outside companies expanding to China.
> There's one thing severely lacking in lisp: compile time type checking!

Lisp does have compile-time type checking; see my comment: https://news.ycombinator.com/item?id=11699581
Not sure if this is the right place for this.
Have their been any decent-sized rigorous human studies on this? I see a few small ones but I may be looking in the wrong place.
Oh, I missed that one.
There is another interesting feature in C++17 for lambdas:

Possibility to cast a lambda to a function pointer.

It will become possible to store a lambda as a struct/member that could bind to "this" (like in Javascript).
at a meta level, I plan everything the night before.
my time is short, so I need to optimize productivity.
Show HN: Processfly – simulate command line processes for testing purposes
The government as an instrument of the average person? I find the notion absurd on the face of it. Maybe it's the instrument of a small group of people who originally came from a group of people you could call "average", and maybe it has some incentive to do visible things that make it appealing to a majority of the citizenry. But by no means can a random average person say, "I want the government to do X", and cause the government to do X for them, except in a very restricted class of X's (like "arrest this person who I see doing Y crime"). If it happens that a majority of average people want Z, maybe this will influence some politicians at some point, or maybe it won't. (It's sort of similar to the market incentive companies face, but worse in various ways.)

Furthermore, just because you can use an institution to do some things for you (if you can call that "being your instrument") doesn't mean you have nothing to fear from it. It does not follow, especially not in the case of the government. More or less every person who's been oppressed by a government could nevertheless say it was providing police and other services to them. If the government were the average person's instrument, as in, a piece of machinery that didn't do anything unless an average person picked it up and used it, and in that case performed exactly the actions the person wanted, then your conclusion would follow [barring accidental misuse and such]. I'm tempted to imagine that you're deliberately giving HN readers an exercise in how to recognize the misleading use of language in a debate.

While I'm on the subject, I'll volunteer that the social contract is a nice-looking facade made up after the fact; it's more like, the government does things to everyone, and afterward maybe a few people decide it was worth it and approve, while others may be displeased but usually lack any effective means of changing the situation, and shrug and put up with it. Further, I'll quote Nock:

"The positive testimony of history is that the State invariably had its origin in conquest and confiscation. No primitive State known to history originated in any other manner. ... Moreover, the sole invariable characteristic of the State is the economic exploitation of one class by another. In this sense, every State known to history is a class-State. Oppenheimer defines the State, in respect of its origin, as an institution "forced on a defeated group by a conquering group, with a view only to systematizing the domination of the conquered by the conquerors, and safeguarding itself against insurrection from within and attack from without. This domination had no other final purpose than the economic exploitation of the conquered group by the victorious group.""
Because language goodness really doesn't matter that much. It's like people arguing about which car is best. Sure, a BMW can do more than a Kia, in more style. But in terms of what influences the course of human events, what usually matters is, can your car get up to the speed of traffic and continue running until you get to your destination. Everything else is just niceties.

Even the advantages in comfort don't really change much, because your expectations just adjust to whatever level of luxury and effort you are used to.

The truth is, functions, variables, and loops are an extraordinary form of magic. Being able to use those forms of magic well is an infinitely deep space of learning and growth. Maybe your language feature helps you solve a problem better, but compared to the opportunities available to you in terms of just becoming a better programmer, it's a comparatively small opportunity.

For example, knowing when to put away your primary language and use a special purpose one (and when not to) is an ability that can improve your productivity 1000x. I don't think there are any language features that can come close to it.

Compounding this, every time you use a unique language feature, you incur readability costs, and portability costs. The more control structures you put into your toolbox, the more choices you have to consider every time you read and write code. That cuts into whatever wins these fancy control structure provide.
Are you saying the government does not do "vigorous enforcement of drug laws, long punishments for criminals"? These are topics that are the source of perennial complaints on HN. I think rayiner's point is that outside the HN echo chamber, there is a lot of implicit support for all kinds of empowerment of government and law enforcement agencies to "keep people in line". These same people may possibly even condone surveillance if it helps catch some small fry drug dealers.

I see the same thing when it comes to TSA threads. I know people who actually want the TSA around, and when stories of TSA ineffectiveness come out, their reaction is not "security theatre!", it's "fund them more!"

The point is, the government is literally doing what most of the populace wants it to do. The opinions on HN are in the minority.
Mistake #10 contains a race condition when another thread destroys the last shared_ptr to pIceman (Top Gun fan much?) between the call to !pMaverick->myWingMan.expired() and pMaverick->myWingMan.lock().

Just use:

if (auto p = pMaverick->myWingMan.lock())
p->take_shower_with(pMaverick);

See http://en.cppreference.com/w/cpp/memory/weak_ptr/lock
I think "permanent" in the sense of "until the state collapses and the government, and the nation, ceases to exist" is a fair use of the word.
Smart-home technology must work harder to create smarter consumers
تور کیش ویژه نیمه شعبان در هتل های ۴ ستاره ورود ۱ خرداد ۹۵
Consider the Google search that started this:

"not for public release filetype:pdf"

That's a pretty flagrant attempt at accessing confidential documents. It isn't like someone googles "how to catch a roadrunner" and accidentally downloads confidential Acme documents. This is a full on attempt to find poorly secured documents.

Now, consider what Google does. It runs bots (that respect things like robots.txt) and then publish links to everything that they can find.

Maybe I'm missing some subtlety, but I don't understand how these are similar. Can you explain yourself further?
I think most economists will tell you the USA-China economic trade benefits both countries. Few will tell you it is "unfair". China get American money, and the USA get swath of cheap goods.
That's not something you can feel, but it seems reasonable to think it.
With that said, reputation and word of mouth is everything in China. Before an app like Didi was the king, people were changing ride share apps every month. New deals, new coupons, new rumors, etc... The tide changes really fast here. Didi just happened to be the only app that could hang in there.

Regardless of how many people there are, if 10 people online say something is not worth using, no one else is going to use it.
I'm planning on writing a calculator in x86 assembly, so this will probably be a good starting point for me. I want to do this to grasp a better understanding of assembly. I currently am looking to develop on my MacBook Pro. Does anyone have more resources and/or suggestions? Thank you.
Probably no. I think when you reach some level of understanding, you'll use manuals. Then you know what you're looking for. :)
Jiayou! But I think there has to be innate demand for it, and for the right reasons, not just because it is cheap and available.
I don't know why he bothered to blank out the IP address for is-savvy.nl. DNS will tell you that there is literally one A record which matches the last two bytes.
The Tension of Swift
As someone who uses more C than C++, I have often wondered about the value of "smart" pointers and other pseudo-automatic memory management abstractions, since in any case one has to understand the traditional manual memory management to use them correctly, and if they do, they then also have to understand the additional semantics of the class implementing it too --- or bugs like the ones shown in this article will result.
Interesting 6 minute short about the company: https://vimeo.com/63511505
Re: response times, I don't think it's unreasonable to explain that you have additional interviews coming up. You're excited at the offer, but you want to explore your other options before making a final decision. Then get on the phone with the company/companies you really want to go to and get in for your onsite ASAP.

As has been discussed on HN ad nauseum, most exploding offers are pretty BS. A ton of time and money has been spent on you already, they want you, and the odds they rescind that if you ask for an extra week to decide are pretty slim. That said, by waiting you DO probably give up some of your ability to ask for extra $$...

One final note regarding the perception of playing the field. It was something I was concerned about when I was in the job search process. When people asked me where else I was interviewing, should I tell them? Doesn't that reveal that they're not, so to speak, my one true love? Had that exact discussion with the recruiting team at my current gig; turns out it generally makes you appear more desirable than disingenuous.
"I don't get it. If LISP is such an EPIC language why are there no major pushes from LISP community, or just showcase a piece of software that proves it."

Irony. Using HN to say this. [0]

[0] Arc ~ https://en.wikipedia.org/wiki/Arc_(programming_language)
Why Kylin and not Xubuntu or Lubuntu?
> For them PHP or Java are tools for getting shit done.

... as opposed to Lisp?
Also, in the last several years it's become more and more common for AP classes to simply "teach to the test". They pump our students who can get 5s on the test but have little practical knowledge of the subject.
People also tend to very much forget that cancer is not a disease, but a class of diseases. Not all cancers will respond equally to the same treatments.
Startups, employees, and arbitration
It don't know if the author noticed that the news out of China for the last year has largely signaled the disintegration of the Chinese development model, with the state relentless intervening basically everywhere to prevent the collapse of the stock market, prevent capital flight, prevent the massive bankruptcy of various firms, prevent worker unrest from economic dislocation etc.

With contradictions of the Chinese economy now becoming visible to the rest of world, even if the Chinese state continue to distort it's statistics, the idea that the Chinese tech sector is oh-so-vibrant-and-healthy seems much less plausible. The tech sector depends on the Chinese internal market and that just doesn't look good or healthy or competitive - especially not competitive. Western companies are shut out but it's pretty clear native companies need connection to stay healthy too.
I used to love globes as a kid. This os pretty amazing
“Free Speech and the Modern Campus” by Camille Paglia
> On the one hand, we’re told that the intentional targeting of civilians in wartime is a war crime.

It is not that simple, consider the WWII bombing of Dresden (which is defendable IMHO), for example...
Well then I'm wrong. But I trust that a lot more than a single anecdote about someone's grandma.
> RepetitiveStupidityFactory myStupidityFactory = new RepetiriveStupidityFactory;

Yeah because

(let v (make-instance 'RepetitiveStupidFactory))

is so obviously superior, right?
> I don't get it.

1) The purpose of HN posts on Lisp is to fellate pg, nothing more.

2) One of the big reasons Lisp has failed commercially is that expert programmers create their own personal libraries, which cannot be taken to the next employer for legal reasons. So all that effort is wasted.
Many journalists, lawyers, political activists, and civil rights advocates would disagree with your characterization. Just because you personally aren't aware of abuses doesn't mean that they don't occur.

Bush-era antiwar groups, Occupy Wall Street, leftist political groups, security researchers, environmental activists, whistleblowers, lawyers representing "sensitive" clients, and MLK himself... all have faced some kind of illegal surveillance or intimidation tactics. (There are many known targets that I didn't list here, and likely many that we don't hear about, simply because the oppressed often lack access to media channels.)

I would much rather be manipulated into buying more Coke than targeted for harassment, intimidation, no-fly lists, and smear campaigns because of my political beliefs. Not that marketers are angels, but they don't hold a candle to the type of abuse that the government can dish out when someone is "marked" as inconvenient.
A rule of thumb that I use is, if you cannot see the owner, then you're probably focusing too narrowly. For a directed graph, which is a "sea of nodes" with no real ordering, I would have the "graph" object own all its nodes; for an AST, if it is truly a tree, then the parent owns its children, or otherwise see the directed graph case.
My state has laws on spam and you can sue.
thats audio, and only some of it...I want location
Almost all current implementations (except TurboANX) are in general not better than huffman coding.
See: https://sites.google.com/site/powturbo/entropy-coder

Better test this yourself on your own data with TurboBench:
https://github.com/powturbo/TurboBench
I just don't understand. You clearly believe that their method cured their cancer. But you lost interest From there? I obviously don't believe their method works, but if I did, I wouldn't just shuffle off to do something else. I just don't understand how you, and these cured scientists could all just shrug at this incredibly miraculous and basically free cure of a horrible disease that will kill tens of millions of people this year alone.
SCOOP (Scalable COncurrent Operations in Python)
I get your point, but I think that if you're consumer focused, and your app doesn't actually do it's core function when you start drumming up hype, you're screwed. Consumers have a low attention span and want instant gratification. You may only have that once chance to get them hooked, and a beta sign up list has pretty low engagement rates. If they hear about the hype, find a beta sign up page, and bounce, you've lost them.
Docker doesn't boot a kernel. It uses host kernel features. People who use alpine as a base for Docker images are just using the root filesystem from an alpine install.
Only with mmap'ed files.
Clojure is running enterprise tools around the world. We use it exclusively at our company, partly because we are small and time:productivity ratio is really good with it for few developers.

But much larger companies are using it also, nearly exclusively.

As far as macros go, the most popular Clojure library for routing web requests on a server is Compojure, and it wraps a lot of low-level stuff up in a tight lisp macro set that makes it trivial to functionally compose your http requests. It's pretty nifty and is used extensively in industry.

Also this web site you are interacting with right this moment as you read this is built on lisp.
the title is clickbait. If we are looking at Asia then India is the more relevant competitor.
With a huge Valley-returned entrepreneur community as well as being open for Silicon Valley to do business, I am betting that India will grow faster. Indeed Ola and Flipkart's senior management comes from Facebook and Google at this point ... and were forced to innovate faster and harder when Amazon and Uber entered India.
This happens across all categories of startups. Sure China has a larger customer segment than India at this point, but that is not something that is going to continue for long.

Oh and fundamental freedom and democratic rights go a long way to attract talent. Its not for nothing that talent chose to settle in the extremely vibrant and tolerant San Francisco area. Pretty much the exact same reason why Delhi and Bangalore drive most of the tech ecosystem in India.

The biggest problem I see with India is lack of infrastructure at the same level as China. That I admit, is going to be a make or break.
I also wonder if there is also a difference in focus between your university and the AP exam. For instance my highschool allowed use of TI-89 and focused heavily on concepts and word problems. This was similar to the AP exam, so I was top of my class in Calculus and scored a 5 on the AP exam. However in college I struggled in post BC calculus like diff-EQ because they put a strong emphasis on differentiating and integrating by hand and banned all but the simplest calculator.
This reminds me of an app my friend of of mine built (or started to) a few years ago. skore.org (SSL isn't current). The idea was basically similar, except it included people and was meant to include connections (e.g. Bill Gates associated with Microsoft).
What Mark Suster Missed in His Blog Post Defending UBeam
Not trying to brag, but I also took it a decade ago, (2005 to be exact) and i found it startlingly easy, and got a 5 no problem. So did many of my classmates. It made calculus 2 in college a breeze, since even though the exam had integral stuff on it, colleges would only give me credit for Calc 1.
That is a little vague. What type of calculator exactly? A GUI one, or just an expression parser/evaluator? For the latter, you might find this interesting:

http://www.hugi.scene.org/compo/compoold.htm#compo4
Just wrote out a boilerplate for side projects https://github.com/zweicoder/react-redux-express-boilerplate

Normally I host it on DigitalOcean
We haven't yet seen a corporation start a world war because multinationals the scale of google and samsung are a relatively recent phenomenon.

With that said I agree that we're unlikely to see a world war started by a corporation. I think we're far more likely to see an interplanetary conflict started by a corporation however.

It will be quite an easy thing for an asteroid mining venture to turn into an arms manufacturer the likes of which we have never seen.
A language is more the choice of a coder and the environment they use.What you need to realize is the history of Lisp and face the face that new languages are merely re-implementation of paradigms which are present in some other language.
Lisp started as a set of axioms which then were implemented.You should read pg's [1] description of Lisp.

>If you have seven primitive operators (quote, atom, eq, car, cdr, cons, and cond) then you can define in terms of them another function, eval, that acts as a Lisp interpreter.And so any language that contains these seven operators is a dialect of Lisp, whether it was meant to be or not.

So Lisp is hard to understand and use but what happens when you try to modify/make languages which handle the situations that Lisp can,you end up with Lisp.And as a Lisp Dev, when you have seen this cycle.You really do not feel the need to defend every attack against Lisp.

PS:I am not a Lisp dev,but i am trying hard to learn Lisp.

[1]:http://www.paulgraham.com/ilc03.html
Should have used a unique_ptr. ducks
Don't worry, I was uncertain about it too!
You're doing some major revisionism with this post and claiming a lot of completely unsubstantiated (and in my opinion, completely made up) facts.

(https://news.ycombinator.com/item?id=11699585)
That reminds me of that study that was done a while ago that showed how much information you can guess about people based om their FB posts
http://www.nytimes.com/2014/06/30/technology/facebook-tinker...
In this article, they seemed to be targeting one person. They fucked up because they didn't get a warrant. They shouldn't need one. It is a public place.

I don't want to get into the situation where regular citizens are not allowed to take pictures of people in public places. Still, I can see their lawyer's argument for expectation of privacy. What about the homeless? Do they have no expectation of privacy? Unless they are in their tent? (If they even have a tent).
Sorry but a simple site like HN is not a good showcase of any language. I think they mean more ambitious and popular software.
Does that make them not related?
I assume this is only for stateless lambdas, that have not captured anything? Because otherwise a function pointer would not be enough, right?

Currently, any stateless lambda can decompose into a function pointer and be passed to any function that expects a function pointer, right?

Are you saying that ++17 has augmented this, and if so can you provide more details or a reference (or an example) as I'm quite curious to know more.
This is not what I was talking about.
The odds are the "known known".
In case of Alibaba we have the known unknown.
>The parameter list is optional.

To avoid confusion, only an empty parameter list is optional. You can't omit the parameter list if you take args, unlike lambda shortcuts in languages like clojure which allow you to implicitly refer to arguments inside the body using a universal variable name, and therefore omit the parameter list for all lambdas. That possibility does not exist in c++.
> The way the x87 FP stack works is a bit weird, and these days it’s better to do floating-point arithmetic using xmm registers

x87 allows to do calculations in extended precision, i.e. word width is 80 bits. SSE is limited to double precision (64-bit words). Also FPU has some advanced math instructions, like sin, cos, tan, exp, etc., and these operations will be available in AVX512F.
Yes there are... I wouldn't recommend starting with SPARC Asm though, it's nowhere near as fun as a CISC like x86, nor as easy as MIPS (which tends to be the "boring" go-to architecture CS courses use.) ARM is more interesting than MIPS and easier than x86.
Ask HN: Is there a reasonable, actually integrated Web IDE out there?
It's kind of silly. There are design tools that don't let you write JavaScript. There are JavaScript tools that don't let you write server side JavaScript (or any other language). There are server aware tools that don't let you run on your own servers. And that's before discussion of collaboration et al.

Is there a reasonable workflow out there?
Agree. The android app doesn't work as smooth as the web version. (Found out the hardway).
> Heck, go is billed as a systems language and it's GC'ed! That would be crazy 20 years ago. Perhaps still a little crazy today, but far more feasible.

Not at all, I was introduced to Native Oberon around 20 years ago. It was a great OS used at ETHZ and many European universities. Specially the system 3 version with its gadgets framework.

Around the same time DEC/Compaq had SPIN OS implemented in Modula-3, with POSIX API and a very interesting distributed objects framework.

Xerox PARC had the Mesa/Cedar workstation in the early 80's.

There were a few OSes implemented with Algol 68 variants that had GC at OS level in the early 70's.

The craziness is that in the last 20 years, thanks to the rise of FOSS and its UNIX/C culture, younger generations seem not to bother with everything else that existed.