skysight-inc/HackerNews huggingface dataset:
For me learning vue was much easier, cuz I knew Angular 1...

React was harder to learn, but I find myself making more components than I did in Angular and Vue. React delivers on the idea of making reusable components accessible.
I'm surprised there's no way to pay for that access.
A book is text. What command do you type to turn pages in a book?

Oh, you don't?
TL;DR: I see that Apple is doing great engineering, but where is this engineering better than Samsung's? Or is it not?

---

This was fascinating, but I am not very knowledgable when it comes to hardware and I have a burning question.

Everybody here seems to think this was a great feat of engineering. I am looking also at the teardown of the Samsung Galaxy S8. Where is Apple doing a better work than Samsung? Is it just the fact that Apple are "doing it themselves" that is impressive? (not implying it isn't.)

The only thing I can see is that the iPhone X seems to devote much more space to battery, by cramming up all of the components tighter together. Does this mean the iPhone X will have a better battery life?

I truly have no dog in the fight, and have no interest in starting a flame war. I'm just curious.

PD: Yeah, the A* CPUs are fantastic, no doubt. But that doesn't show in this teardown.
Roll on the day. I've been wishing for a chatbot/virtual assistant that asks questions for quite a while now.
He sells $1B every year to fund Blue Origin. Source: https://news.ycombinator.com/item?id=14047650
China has had several major border skirmishes with India, some with Russia and with Taiwan and I’m sure there are others too. Israel has had lots. Russia has had some ugly episodes too.
Then don't install it or uGapps. The point of uGapps it to provide an open-source implementation that can be audited so it's easier for you or me to decide if we want the code running on our phones.
There's nothing new about this. I remember a story from the days of mainframes, where a data center had to be redesigned - they had built it without heating, expecting the mainframe to provide all the heat the building needed in the winter. By the time they got around to buying a machine to put in it the technology had progressed and it was much more power efficient than they had planned.
"Go is syntactically a big language. Neugram’s front end has to match it, and that’s a lot of work, much of which is still to do."

I appreciate the sentiment – that there's a lot of work left to do – but isn't the assertion about syntax size false? I thought Go's syntax was quite small compared to other popular languages? It only has 25 reserved words (Java has 50+) and was designed in part to be uniform and easy to read.
But they're a democratically elected state entity.
Gophercises – Coding exercises for budding gophers
Correct

https://mobile.nytimes.com/2017/04/05/science/blue-origin-ro...
On antipatterns:

> setState() in componentWillMount()

componentWillMount() is an anti-pattern. It is not a true lifecycle hook. It is invoked on the server, unlike componentDidMount and friends. Anything you do here can, and perhaps should, be done in the constructor.

> Mutating State without setState()

handleClick() {
// BAD: We mutate state here
this.state.items.push('lorem');

this.setState({
items: this.state.items
});
}

There's no explanation as to why this is bad, just that it's bad and you shouldn't do it. Because.

The real reason, in this particular example, is that any lifecycle hooks that rely on comparing two consecutive versions of the state will not work, because the older version of the state will have been mutated.

> Using indexes as keys... Bad... This limits the optimizations that React can do.

> Good... React would be able to reorder elements without needing to reevaluate them as much.

This isn't any incentive at all. I don't do premature optimizations and so I'd happily use key={index} if optimization was the only issue and performance didn't suck.

The real incentive to use a value that uniquely identifies the entity being rendered as the key, rather than an index, is to prevent the representation of entities from being removed and added back to the DOM, so I can animate their addition and removal, via CSS transitions, when they are actually added and removed. Using the index as the key would make the wrong elements animate. Also, I wouldn't want certain elements to unnecessarily go through the end of their lifecycle only to be created again, especially if their lifecycle hooks are tied to various side effects (e.g. API endpoints being called).
I've never seen anything remotely like it... is there anything else like it on the mass market?
That's a bit of a stretch. I get by just fine in the console without making any real use of its gui-ness; !! is a lot more efficient than reaching for the rodent. Actually, I'm in the process of switching to a framebuffer console -- I mostly just need to get emacs to make use of my truecolor implementation and I'll be X free.
I'm f-unemployed which means I can spend time doing interesting stuff meanwhile I drawn my savings. I'm doing mostly two projects:

# 1: A game boy advance emulator in Rust - just for fun to learn the language and to implement a virtual machine.

# 2: A cold storage secret manager with a James Bond feeling.

In the case I die <everyone is gonna die anyways> I need to let people instructions, documents, bank ids, passwords and other stuff. So I designed a secret sharing mechanism which allows me split secrets and generate tokens for specific people. Once enough people gather and join their keys, they can unlock their specific secrets. If you want to understand a bit just go through the 1password design docs and Shamir secret sharing mechanism, although I had to improve the later to improve security.

Once I gave some friends a piece of paper with a QR code with says "in case I die access this website", most of then got interested in having a service like this. I registered a domain but I'm still not confident enough to make it public.

If you want to invest or discuss drop me a line on hn@eternity.is :P
Mapping out chicago's parking tickets
Polling metrics over I2C for a distributed power stack
7 ongoing FOIA requests for email metadata.
A clojure web scraper
Building an caching server with an nvme raid
Building a large LAN party with some friends
Why nobody's remembering Albert II - the first animal reached the space? He even doesn't have wiki article..
I never minded setting up. It was breaking shit down at 2am or later, plus a drive home, that always drove me nuts.

But i always loved, and still do, finding good tunes and then curating a vibe and a night. That's a great feeling. Free drinks help as well ;)
Security hardening of Meso's cluster
Atari ST... I stand corrected :)
I wonder why my script didn't pick that one up! Will have to test and learn something new.
There's a lot of openly available networking hardware on the Open Compute Project.
One thing I totally dislike with CT is that literally everybody can see all the subdomains that my certificate is valid for (esp. LetsEncrypt), but also for cases where your "normal" wildcard-cert does not work - e.g. .foo.de is covered, but because wildcards dont go beyond 1 level, .bar.foo.de is not covered, and so everyone can see that there is one (or more) subdomains at bar.foo.de.

Let's assume an attacker finds a RCE in JIRA, Confluence or Gitlab... now everything the attacker has to do to find a list of candidates is to run a simple grep -i gitlab|jira|confluence|whatever on the CT logs, while he'd have to go the brute-force route before CT.
This reminds me why I don't like induction proofs. Although sound, almost by definition no insight can be obtained from it for either why the proposition is true, or why the proof itself is valid.

Here's another proof I just though of that doesn't use induction: Let's prove that x^5-x is divisible by 10.

x^5-x = x(x^4-1) = x(x^2+1)(X^2-1)

We want to prove that among these 3 multiplied elements, we can find the factors 2 & 5.
2: If x is even, it's x. If x is odd, it's the other ones.
5: Consider the following table of : x | x^2 (mod 5)

x | x^2 | Which element is divisible by 5
-------------------------------------------
0 0 x
1 1 x^2-1
2 4 x^2+1
3 4 x^2+1
4 1 x^2-1

so we get that in all cases there is a factor of 5 as well.

Not sure this provides more insight into why the proposition is true, but IMO this proof feels more valid.
Major universities are basically investment funds that maintain a side business in education for the tax break. Sure, exempt actual research (the PI, the lab, the grad students) and actual education (professors, classroom physical plant) but tax the endowment, the administration, the sports facilities, and so forth.
The taxes (what, 20% capital gains?) seems an excellent deal for the ecosystem where he grew his company: a stable political system, strong asset protection enforced by strict laws, an educated workforce in a relatively unpolluted environment, etc.
I made this point poorly, because I agree with you that Go is quite easy to read and very predictable.

With more words: I have written a parser and type checker for an ML-style language, with parametric types and several other neat tricks in it, and I've now written a parser and type checker for a good subset of Go. The latter has been far more work. I am not entirely sure how to explain the work. Go has lots of syntactic and type conveniences that are easy to use and read, but quite difficult to implement.

As there are few implementers and many users, I think the original designers of Go picked well when they put the work on us implementers.
I'll make sure this is fixed on Monday ! Thank you :)
Twitter Sidestepped Russian Account Warnings, Former Worker Says
No, not even close. We're taking about mid four figures decrease in take home pay for people making 30k. It's a double digit tax hike on grad students.
Even if they don't always serve the same purpose, they serve a similar purpose in a number of examples. It's still a valid analogy to get someone thinking about how they might work.
You can do it without a table by factoring

x (x^2-1) (x^2+1) =

x (x-1) (x+1) (x^2 - 4 + 5) =

x (x-1) (x+1) ((x-2)(x+2) + 5)

Now one of the five consecutive numbers (x-2), (x-1), x, (x+1), (x+2) must be divisible by 5, so the whole is as well.

I agree with you about induction.
You can already "go run program.go" from anywhere, even outside of a project structure, which is the same result as running an interpreted script.

It's a novel idea but I don't really see it taking off. Is there really that much benefit to having a shebang at the top of the file versus executing "go run" and is it really worth having a REPL for a fairly verbose language? I certainly don't see myself wishing for a Java REPL, and I don't particular see myself reaching for a Go REPL either.
If you use C your program has broken history by default and you need to go an extra mile (or use a nice framework) to remedy this. I guess the difference is that in C world, we've more or less standardised on a few nice frameworks (Qt, GTK, etc).
Every currency that's backed by an actual government. Whatever else happens, you can always pay your taxes with it. It is the currency of the economy the currency is native to. As long as that economy is running, you can use that currency to purchase goods in that economy, and the currency has value. People doubting whether enough people will start using it in the future is irrelevant, because enough people are already using it in the present. A country will have to work really hard to sabotage its currency, and that's extremely rare (though it has happened in Zimbabwe and Weimar Germany).

Bitcoin, by comparison, isn't used for everyday transactions by a lot of people (though there are some). There's no real economy it's native to (unless you count Silk-Road-style markets), and there's no guarantee that you'll be able to use it there in the future.
Intuitively, induction proofs are valid because you're checking the theorem for every natural number n. Of course, you're doing that in a clever way because the naive way would take a little too long, but still that's what it is all about.
Righities block the board, too, depending on the side they're on.

And you can't effectively draw some things on a tiny monitor screen.
Unfortunately you've gotten a run of bad luck with some bad companies.
The hallmark of scientific objectivity is not convincing other people, but making correct (and testable) statements about reality.
Put the universities on the hook for that $6K. Universities make a killing off grad student labor. Make the university pay the piper.
Less Euromaidan, more Gamergate
Ukraine couldn't have used the threat of nukes WRT Crimea. It happened too fast (IIRC Russians used old school messengers to avoid Western SIGINT), and at least the majority of the population supported or did not actively oppose them (e.g. Ukrainian generals defecting to the Russians)

It's another story WRT to Eastern Ukraine. Ukraine's military units had poor morale and were repeatedly destroyed by regular Russian soldiers AKA "volunteers". The time frame is not days as in Crimea. Perhaps the threat of nukes would have stopped Russian tanks and soldiers from "volunteering" in Ukraine.

It is now up to the armchair historians and alt-history writers to contemplate the what-ifs.
You never forget your first! SoundEdit16: https://www.file-extensions.org/imgs/app-picture/2247/sounde...
The goal is to add other features that are also useful for scripting. The big one I've worked on so far is syntax for the os/exec package: https://github.com/neugram/ng/blob/master/docs/shell.md#a-sh...

Another thing I'm interested in is operator overloading, for compact/pleasant matrix/table types.
“Everyone using their tech support” doesn’t appear to be a viable purchasing decision for a company’s stock.
All those filthy rich grad students pulling in $20-35k/yr!
As a huge proponent of all things ESB related, I can confidently say that ESB is dead.

This is very unfortunate because I think we still need a way to do cross service mediation, process orchestration, etc.

That said, you will not see any new deployments utilizing an ESB. The fact that all open-source ESB projects are essentially abandon ware tells you all you need to know.
Yeah that definitely sounds right--at some point the brain will need to do the understanding as the paper won't. So I also agree that capturing more facets and the richness of thoughts is a much better goal than simply enhancing symbol-shunting. I suppose my idea could best fit in as either a transitionary model, or more likely as more of a replacement for the current method of teaching and learning derivations. In a sense just decreasing how bad the current worst case of teaching is rather than trying to increase the best case. Focusing on didactic rather than exploratory although I realise that both are possible with more expressive systems.

No, don't worry you have not done any discouraging. I really appreciate all your thoughts on the matter and will definitely think more about what (or if) this should be. I currently don't have much time to work on it but definitely have time for some good mulling.
Those are instincts bred by evolutionary because they're vital for survival. Recognising an elephant is not the same thing for us. Instead, we get a generic toolbox for quickly learning to recognise very different objects, from animals to machines to abstract shapes. We're not born being able to recognise them, but we can pick them up very quickly from even rough descriptions.
I don't know why you're being downvoted - IBM did, in fact, custom make and sell tabulators to the Nazis[0]. The Holocaust might not have been possible at the scale or efficiency with which it was undertaken without the force multiplier of IBM computational and processing power.

[0]https://en.wikipedia.org/wiki/IBM_and_the_Holocaust
Logic Audio (I started at v5) remains the most complex UI I have ever had to learn. It makes perfect sense to me now, but I long thought it was designed by sadists. I just did t understand the why of it.

> Any time I see new-school UI designers' take on audio apps I cannot help but cringe. They are completely misunderstanding and underestimating their audience -- audio is complicated and we need complex tools to do what we do.

Absolutely. Also worth mentioning is that many of these tools borrow elements from physical recording studios. If you haven’t worked in a professionally wired studio, some of the abstractions seem dated and unnecessary. Replacing / reimagining them is not practical, as DAWs still need to run in these environments. But try explaining that to someone who is just starting out chopping loops in their bedroom.
So what would Ukraine have done if they had nukes? Nuked the enemy troops in the Crimaea, with their own population in the way? Or bomb some Russian city and start a nuclear war ...against the second larges nuclear power?

Honestly, use of nuclear weapons just sounds like pure madness, no matter what the threat one is under. I mean, unless we're talking about an alien invasion (and I'm not impartial to keeping around a few nukes just in case that ever happens).
> You seem to not understand exactly what the situation is even if NK would get an early warning say 10min it would not even get it past the guy who answers the first phone get alone to the military in the field.

You seriously think high level Chinese diplomats don't have very quick communication access to Kim Jong-un? Why would you think that? I think it's very likely they have phone access to multiple aids of which one is guaranteed to be very close.

> The US and Russia have invested 70 years in building infrastructure which is designed for a single contingency which is to launch a retaliatory strike within 15-20 minutes this requires an enormous investment and North Korea barely has phone lines.

That's because our system has checks and balances and a heirarchy. Kim Jong-un likely has direct phone access to the cammanders in the field, and through secured lines. That's the first thing you do, and that doesn't take a genius to figure out.

> This doesn’t even take into account the fact that the soldiers manning the artilary installations can barely hit anything and that they don’t have enough shells to fire their 11,000 cannons zeroed on Seoul.

They don't have to aim. Everything is likely already dialed in. There's only one target to retaliate towards no matter who attacks (since it's not going to be China). They could literally have a single qualified person go through and dial in the settings for every piece of artillery and every rocket launcher system, and just have trusted personnel to initiate the attack.

> North Korea’s conventional military is a joke these days and unless China puts its own soldiers into the fray it won’t be even a two sided fight.

It's not about being able to put up a fight, it's about making it too costly to start the fight.

In the end, even if the North Korean response comes after first strike (and a first strike likely wouldn't eliminate their offensive capability, according to retired Army Maj. Gen. Robert H. Scales[1]), a lot of South Korean lives will be lost.

1: http://www.huffingtonpost.com.au/2017/04/19/north-koreas-sim...
Kotlin/Native IDE Support Preview
In my experience it is like US nukes in Turkey.
$94.6 billion net worth at present per Bloomberg.

I know he is basically guaranteed to be running all of these sales off a sale schedule set far in advance for obvious reasons. However, I'd probably be doubling up those $1 billion sales until/unless this market gives out.

Raising $6 or $10 billion - enough to fund Blue Origin for maybe a decade - by selling out of a $94 billion base, sure beats doing the same out of $26 billion (where his net worth was at just ~33 months ago).
From this CFR discussion a couple years ago[0]: "… What about Twitter? I have no idea what Twitter is good for. But if it flips out every tyrant in the Middle East, I'm interested." - Michael Rogers, Founder, Practical Futurist; Futurist-in-Residence, New York Times Company

It seems as though some people are starting to realize the weapon they thought was their own, was never theirs at all… inserts something about chickens coming home and roosting

All in all, every step twitter takes to "protect" its platform (euphemism for those with voices most likely to be received and implemented by them, to achieve some arbitrary censorship ends) will be a step forward for federated and decentralized social networks.

Though, who are we kidding, lets hope that in the next election, even more money is wasted by the entrenched and ossified political orders and even more for the one that looses that needs some PR to cover their ass from the carnage that comes after, after all, its just good business.

[0] http://web.archive.org/web/20140531073143/http://www.cfr.org...
I only had this quote to go by:

> and the OLED is well supported by a frame, unlike some displays we know.

"Some displays" linked to the S8 tear down, and "we know" to the Note 4.

I too wish they had taken a stronger tack and clearly compared against other flagships. (Including the iPhone 8 too)
If you read the literature, there were plenty of people in the industry who were well aware of these problems and worked tirelessly to fix them (making them clown-proof), since around 1960. The military brass actively worked to thwart their efforts.
Jschema.js is a framework for modeling data in JavaScript
Sure, but like, the licensing works well for me. :)

Also, I don't know who decided to put a "Find out about LibreOffice Vanilla..." banner in that damn app, which appears Every. Time. I. Open. The. App. now. They need to be taken out back and code-reviewed harshly. It's not like LibreOffice is without many horrendous flaws either.
You think the monarchs and nobility didn't think they were enlightened?

Or do you just mean enlightened by your standards?
20% capital gains rate + 3.8% NIIT to the federal government.

(And another 7.9% to WA under governor Inslee's December 2016 proposal — which, to be clear, has not actually become law.)
1 point by lobf 1 hour ago | edit | delete [-]

I'm very sorry for offending you by not recognizing that "diversity in musical taste" provides for greater diversity than racial, social, and economic status. Silly me, I've been thinking about diversity all wrong. You're right, HN is very diverse- we have middle class white guys who like Metallica, and others who like show tunes. We have middle class white guys from suburban Iowa, and others from suburban Massachusetts. This is a very diverse website, I was very confused before.

>You care about diversity in things that don't really matter.

Race, social, and economic status don't matter. Musical tastes matter.

This place is so out of touch with reality. I'm glad I moved out of the bay area.
>You assuming that NK has an early warning system which consists of more than a guy with binoculars and circa 1960s radar which they don’t.

You're assuming Trump won't tweet our launch orders..
China, India and Pakistan, all three of them nuclear powers, have been fighting a low-level conflict over Kashmir for several decades. So far none of them has nuked the others.

Presumably, they realise the consequences of dropping a nuclear bomb in a region of the world with a couple billion people or three.
I'd add a few things:

We're humans, we like human relationships, sharing beauty/knowledge is part of that, that's why hurried teachers and classrooms are subpar, they turn it into a domination scheme (harsh words but I stand by them). On the other hand someone who shares the beauty he feels in a subject, his passion, will drive a pupil in the deepest of ways.

It will also remove some imaginary need for "school" to understand the world.

Lastly it will make people sense that sharing and exchanging is key. I'd like to see more of that.