skysight-inc/HackerNews huggingface dataset:
How is Hack? Has anyone built anything with it and would like to share their thoughts? How's the HHVM community?

I've always thought that PHP was an underrated language that got a bad rep due to whacky design choices and PHP developers being seen as "less skilled" (a stereotype I know, but it is prominent) than others. Object Oriented PHP and frameworks like Laravel were a nice change of pace in my opinion, and there's plenty of good PHP coders out there if they had the right experience and stuck to a good coding guideline.

Alas, I confess I stepped away from PHP due the stereotypes against it, but HHVM always seemed promising. I haven't heard much about it over the years though.

What's the toolchain for HHVM?
>To end Framework Churn once and for all, we need a way to create components that speak a language every developer and framework can understand. A component language that can be standardized but is also compatible with existing framework component languages.

Components are just one thing frameworks do -- among many other things. So the existence of a 'standardized component format' wont do anything to reduce framework churn.

Nor are Web Components going anywhere.
> If a passcode is available in the world

Yes, but it only exists in the world during user intent. This isn't the case for an auth method which is entirely based on physically having something within your proximity. If I stand close to your, you auth method is now in my proximity, available for me to use, or possibly even take.
Function naming:

We're moving towards functions_like_this(), instanceAndStaticMethodsLikeThis(), and async functions like foo_async() and methods like fooAsync(). We're unlikely to change the PHP builtins, but we're fairly likely to build replacements - for example, Hack Arrays are best used with https://github.com/hhvm/hsl instead of the PHP array functions, and this also provides replacements for common string operations that are consistent and fit well with the Hack type system (e.g. nullable or throw an exception instead of falseable).

For return values, I'm not sure exactly what you mean - could you give a full example? If I take your example verbatim, it's a syntax error in both Hack and PHP - if I go for "5"*10, it's a Hack error (https://gist.github.com/fredemmott/90c5f8eca17d1d4e1204f0085...)
This is not really true, the difference is much smaller and you will not boot windows 10 with the i386 feature set.

Since Windows 8 the NX bit is required, making it require relatively modern CPU's, mostly x86_64, allthough a few x86 has it as well.

So for example, you can run the 32bit version of win 10 on the 32bit Core Duo (it has nx), while OSX with its 64bit requirement needs a Core 2 Duo.

Newer OSX require a graphics card of DX10 level, Windows 10 require DX9 level.
If you delete a team, can a new one be created with the same name?

Edit: Additionally, are team names private? Can they be discovered without guessing them? If you guess one, can you prove it exists?
Show HN: Peer review published journal articles
The Psychology of iPhone:A Neuromarketing Strategy, or an Overdose?
Peers’ Science is a platform for researcher to write fact-based reviews on publish articles. Having more people in the community review a published article will help catch mistakes that were overlooked in the peer review process. Articles which are based on solid research will be naturally robust to multiple reviews. This will help researchers get a more rounded opinion of an articles and avoid article purchasing cost which they might not need.

There are already 154 million article citations imported for researchers to start writing reviews. I am open to features requests from researchers; just email me at support@peers.science. If you like what I am doing, please consider supporting this website. I am open to receiving GCP credits.
What if neither Alice nor Bob have a domain name? What happens if the domain name is dropped, transferred to a third party, suffers a dispute etc?
am I the only one imagining some crystal based lifeform out there, somewhere?
Oh how the turn tables...
There's a diplomatic crisis between Saudi Arabia and Qatar. Al Jazeera is from Qatar.

https://en.m.wikipedia.org/wiki/2017_Qatar_diplomatic_crisis
The best things to know as an undergrad is:

Can I consistently pass the technical exams? Read Elements of Programming Interviews cover to cover.

How can I get in contact with a recruiter at Amazon? Trade shows, through university contacts etc

Am I someone who is humble and likeable? This isn't talked about enough.

If you can do these things then you should be able to get a job at the big companies.

One last thing. There's so many different roles at Amazon you need to ask yourself "what am I most interested in?"
Usually this means that local Snap employees (if any) are put at risk. In countries like Saudi Arabia, it almost certainly is jail-time in very brutal facilities.

(I don't know if they actually have employees there, but in general, this is a huge risk for many international corporations.)
nope! We feel pretty strongly this is the right answer.
>Supreme Court unanimously reaffirms: There is no ‘hate speech’ exception to the First Amendment
https://www.washingtonpost.com/news/volokh-conspiracy/wp/201...
Random Ideas for September 11, 2017
I don't care much about Amazon playing hardball with TNR - car companies have been doing this for ages. The fact that he owns WaPo is a much bigger deal.
If you like Python, you will love CoffeeScript. :)

I have not used Underscore/Lodash in production, but I use jQuery a lot with CoffeeScript. CoffeeScript does not replace jQuery, although it can make your jQuery a lot nicer.

As far as other libraries, there really are no restrictions; CoffeeScript compiles transparently to JavaScript. The only thing holding it back would be poor support in the specific ecosystem you are working with, such as a lack of plugins that automate the build process. In that case, you may need to compile manually or set up your own build script. But other than that, you can use CoffeeScript in place of JS pretty much anywhere.
Software Entropy Explained: Causes, Effects, and Remedies
Woah. Its bad enough with react which many did not expect. Now also this BS. No thanks really.
Nonfiction describing learning/daily experience in profession/skill/etc
No it's not.

And even if it was, reporting it to the DOL and let them handle it would be a thousand times less stressful and cheaper.
SQL Injection Attacks in Entity Framework Core 2.0
>People use this comic way too often to shush those of us who want to have a debate about whether a standard would be useful in a particular situation

And more often than not, they are right.

In this particular case Web Components only solves part of what frameworks do, and solves it badly. As badly as CSS solved the layout problem the last 2 decades.

I wouldn't mind a nice Web Components solution, but the current design reminds me of the over-engineering of things like Swing and JSF.
Obviously I can't prove it, but we can look at a few metrics: academic performance, influential ideas, impact on society. I think Carmack would lose on all these fronts.
Does the presence of files in the teams feature mean that kbfs will be rolling out to the iOS app? Its been "coming soon" for awhile now and has always been the more compelling feature to me than chat :) Either way, congrats on the release, this looks really awesome!
I just question if this would bring us a better web than if the EFF remained in W3C.
There have been several cases, mostly along building standards, but the state of Georgia famously sued Carl Malamud for infringing on the copyright of state laws when he publishing the full annotated version of their laws online:

http://www.latimes.com/business/hiltzik/la-fi-mh-state-of-ge...

Malamud had worked with Aaron Swartz on opening up Pacer:

https://public.resource.org/crime/

And he was joined by the EFF defending against a suit by the Sheet Metal and Air Conditioning Contractors Association after he published the details of a Federally-mandated safety standard:

https://www.eff.org/press/releases/publicresourceorg-prevail...
I was once using angular, and I wanted to use a common thing I had done in the past (autocomplete for a form I think it was). I already had a simple and effective way of doing it in jquery, but getting angular and jquery to work together is kind of a pain.

at the time, it wasn't implemented in angular very well, and there were some specific things I wanted to do that was incompatible to the way angular did it.

when I posted to the community how to get it working, their response was 'using jquery is not the angular way'. my way is getting things done with code I have used time and time again.

it took a bit of wrestling, but I was able to get it done with jquery and angular.
If you read original sources you find a lot of weird nonsense that is quietly skipped over these days e.g. mystical numerology in Plato's republic, Aristotle's incendiary views on women and slaves etc.
The new world of global TV channels, online media, fake news, international firewalls and propaganda from different countries is really interesting and difficult for me to to decide what is best. eg are RT, AlJazeera provide a different point of view tinged with a little state propaganda a good thing. I like diversity of news, but can see bizarre conspiracy theories given oxygen. Should the government manipulate the media to keep peace in a country? Eg the Chinese way isn't necessarily bad. Watching US news channels its clear they are often highly biased too. Maybe news really is a third facts, a third opinion and a touch of cultural viewpoints, propaganda and cultural straightjacketing. I thought I knew what was best but now I dont know.
I want to eat the same lunch every day
I'm being unrelated, but thank you for this comment.

This instantly brought me back to the 2003/2004 Computer Magazine articles with customized TiVo Setups or homebrewed alternatives entirely running on a media center PC.
> there is a propensity to use a package to get one small function vs using a library of common helper functions

Lodash functions are available in both forms.
Currying vs. Partial Application (2015)
Note also that the platform could only address 1M of memory (2^20 bits), so it wasn't the most limiting trade-off considering other concerns.
Every option has been mentioned. One note left out that might be important to some depending is resale value. If you buy a PC (Dell, Asus, Thinkpad, etc), the resale value is going to be substantially less after even a year. However, with something like the Apple MacBook (Pro, Air, Nil), you can probably keep it around a year, or even few and sell it for substantially more towards a new one later, of course it will cost more to replace it with the equivalent later on, so maybe it's not much a factor after all.

That said, I'd get what you need and start there. Do you need macOS? That narrows your choices by a magnitude or so. I'd get a refurbished MacBook or MacBook Pro from the Apple Store Online. If you want a PC every suggestion has been made. It's only a matter of where you end up sourcing it from.
It's not the same. SEPA doesn't allow double-spends, unlike unconfirmed bitcoin transactions.
Parents of student killed by police at Georgia Tech speak out
PHP packages are dropping HHVM support right and left right now because HHVM has already been… lagging in its PHP support.

So there's not really a choice to make. HHVM was tiny anyway.
So can this be implemented as a chrome extension? instead of a stand alone browser ?
Complex event processing in Clojure and ClojureScript
The first dataset is so simple that no chart is appropriate. "Companies A and B control two-thirds of the market". Big text. Done.

The second dataset could be done better with stacked bars (eg, https://i.imgur.com/oGzIKED.png). The author seems to think stripping temporal data is a virtue here, for some reason, when it clearly isn't.

The third dataset should be presented with a heatmap on a state (or county) level, a la https://projects.fivethirtyeight.com/mortality-rates-united-...
To boot Linux you formally need just the kernel image and a statically compiled busybox executable. This are only 2-3 MB.
The boot process can be optimized as well for such a tiny system. You don't need long and complex boot scripts. Just start the kernel and then start directly busybox und you are done.

Windows 2000 takes much longer to boot.
How have modern philosophers impacted society? (Show your work.)

It seems obvious that Carmack's ideas have been far more influential than most philosophers' ideas, but admittedly this is difficult to measure. Impact on society isn't, though.

“Every mathematician believes that he is ahead of the others. The reason none state this belief in public is because they are intelligent people.”
A total sociopath and a danger to society (especially his violent physical attacks of women). This guy should be locked somewhere so he doesn't hurt more people.
Shanghai police break up much-anticipated match between MMA and Tai Chi masters
Bubbles sound like a really great feature! I'll be waiting on a Mac version too so maybe this already exists - but it'd be awesome to be able to pin domains to bubbles so they always open in that bubble. Then Facebook can have their own bubble and can't see anything even if their scripts/buttons get through ublock.
That won’t help with many kernel related issues or issues in the HAL drivers themselves, only userland.
Yes, everyone should do customer support
Huh, just finished migrating a small 5K front end from CS to Scala.js.

Miss the concision of CS, both in terms of syntax and generated output, but otherwise really enjoying typed JS. Also, it's kind of cool not immediately knowing whether a particular source file is for the front end or back end -- like, oh, wait, this is the front end ;-)
OT, but any update on exploding messages in Keybase chat? (or did I miss it?)
Its not new, JavaScript has been around almost as much as Java which has a mature ecosystem since 10+ years.

JS world has had this "We're almost there" attitude since the announcement of HTML 5 ten years ago.
It's impossible to know how much to pay to get into the next block. If there's 10 payments waiting to get into the next block and there's only space for 9, there's no way they are all going into the block, regardless of their fees.

Users don't want to play a complicated expensive, impossible to win game in order to get their payments processed in a known timeframe.
It depends on range and accuracy.

You'd be surprised what a cheap Chinese under-lever will take down.
It's "just" Javascript, so it plays quite well with everything. Definitely jQuery. Main issue was that the missing JSX support. It definitely a Pythonic JS, and I much preferred it to JS a few years ago.
This is great news and a long time coming.

I really hope Amazon build something like Azure Container Instances [1], as per second billing would make this sort of thing feasible.

[1] https://azure.microsoft.com/en-us/services/container-instanc...
That's sure nice, but I'm waiting for AWS to switch to automatic sustained use discounts [0] like GCP offers.

[0]: https://cloud.google.com/compute/docs/sustained-use-discount...
DARPA’s Nanobot Projects EXPOSED. Plans to 3D Print Super Soldiers
React is an ideal version of web components in a world where ui = f(state)
That naming convention seems quite confusing.

Why not make all functions (standalone and methods) either snake or camel case?
So the goal here is similar to DMCA striking Pewdiepie: To use a legal measure against an entity you don't like because it's convenient.

That seems like a dangerous, slippery road with a lot of unintended side effects.
Hey, that's pretty neat!
Has Hack actually gotten meaningful adoption outside of Facebook?

I never hear about anyone using it...
The Cuban Missile Crisis is fascinating. I think the US military was absolutely ready to go to war, but thankfully they were reined in by the civilian leadership. Some parts of the US military had been pushing for a preemptive strike on the Soviets for years (thinking, correctly, that the Soviets had little capability to strike back at the US, but that it would not remain that way for much longer) and saw Cuba as a good opportunity to finally get it done. That scene from Dr. Strangelove where General Turgidson says the US would "get our hair mussed" with a mere 10-20 million dead was a pretty accurate portrayal of how a lot of the military leadership thought. And they pushed Kennedy hard to go to war. A more bellicose president could have easily been swayed by them, and we'd be living in a different world today.
Bullshit Makes a Good Building Material [Aug]
Sartre?

And how could any such list leave out von Hartmann?

https://en.wikipedia.org/wiki/Karl_Robert_Eduard_von_Hartman...

http://www.iep.utm.edu/hartmann/

https://ethicsofsuicide.lib.utah.edu/selections/eduard-von-h...
Why does believing God was involved mean Petrov wasn't heroic? Perhaps God was why the hero Petrov was there when he was?
So there are a couple different issues here. One is just states claiming copyright on their actual state criminal code or whatever, and selling the rights to republish it to Lexis or WestLaw or whatever as a state revenue source. This is happens, but is not actually that common in the US, and there's pretty broad agreement that it's shitty, and it doesn't happen at the federal level because the US federal government can't own copyrights.

Much trickier is "incorporation by reference," which is when the official law or regulation says "as part of our building codes we're going to adopt the 2012 version of the International Building Code in its entirety, and then amend it as follows..." without actually including the text of the IBC (or the fire code, or whatever), which is a document created by a private entity, and is copyrighted. This happens all the time, across levels of government, and it pretty clearly poses a problem, but it's not really clear whose fault it is or what to do about it. Individual city governments don't have the requisite expertise to concoct an entire set of fire codes for themselves, and it's not clear you'd want them to: we arguably all benefit from having the greatest experts in the country craft the best possible code, and product makers that sell across markets benefit from having a uniform standard. But because professional associations end up taking on this role since no single government will, it's not clear how to pay for the work of researching and writing the code, so they end up self-funding by selling the text itself. It's not clear that either the governments or the organizations are in the wrong, even if the public ends up suffering.
Dealing W Unbalanced Classes, SVMs, Random Forests, and Decision Trees in Python
Born and raised in Idaho, and took the Milky Way and constellations for granted. When I was a kid, my dad and I used to pick out all 7 stars in the Pleiades (7 sisters).

Then I went to college in Illinois at UIUC from 95-99. On the best nights in the midwest, I could barely make out Jupiter, due to both smog and light pollution.

So I just want to throw in my vote that I hope this happens.

Also on a national level, I'd like to see a movement towards shrouded street lighting, since everything is being retrofitted for high efficiency and getting brighter. Like maybe we could have a process to report bright street lamps and prioritize them to get shrouded.
I'll leave the first part of your question for someone less close to the project.

For the toolchain, when using it: it's currently mostly the PHP toolchain (e.g. composer) with some additions:

- the typechecker: this is a fast (I usually get full results in well under a second) static analysis tool, fully integrated with Nuclide (our IDE), and with excellent support in VSCode via a third-party plugin. This is a massive improvement in developer experience, especially when refactoring. Usually the unit tests pass first try once I've fixed the problems that Hack finds.

- an autoloader that can handle any definition (e.g. functions, typedefs, constants), not just classes

- the built-in webserver isn't just for development - no need for fastcgi + apache etc, though that is supported

As for building/working on HHVM itself, it's basically modern C++ using CMake, and the Hack typechecker is OCaml.
I didn't experiment because I felt it was unfair for my availability to wander through the week. People learned I was not present on Friday.

I wanted it to abut the weekend so that I could get into my own projects (coding, building, being with family, etc.) for a longer amount of time.
IRS Tax Fraud and IRS’s Woeful Cybersecurity
Likely due to GCP competition. I believe GCP was always per-second? [Edit: Misremember that, they were always per-minute. Lots of good information below directly form the related parties.]

Azure looks to be per-hour [Edit: Wrong again, they are per-minute as well. Oddly enough, I did check their pricing page before, but missed the per-minute paragraph and only saw the hourly pricing] but I'm seeing something about container instances possibly being per-second.
The Dangers of the Hackable Car
There's a lesson here about ethics. A BB gun should not be shot at anything alive. You will only injure the animal, causing pain and suffering. If you're going to shoot something, make an ethical kill that is instantaneous.

.22LR is no good for anything larger than a rat. Soft point or hollow point 5.56mm is very cheap and is reliable up to anything smaller than a coyote. .300 blackout can take a large hog.
Actually read the article before commenting please. She made it clear that she tried several ways, looked online for help, and the most humane option is illegal.
Except for the reading part that's exactly like software engineering. Since when does a software engineer ever start from scratch? We all build on top of what was before. As for "the field does progress and removes bad ideas or clarifies good ideas", that's best practices. That's new and better programming languages and libraries. Better operating systems. And "that mountain of work" has gotten us from punch cards to the Internet.
I think mature managers and mature employees makes this go away.
Given HHVM is already being dropped from PHP packages because of its lagging compatibility, announcing that they're not targeting PHP compatibility any more might be the nail in the coffin for HHVM (and thus Hack) as a viable “upgrade” from PHP for existing codebases.

I mean, it's great that Hack will work for new Hack code and existing Hack codebases, but there aren't a lot of those. It makes sense for Facebook — why waste your efforts on maintaining part of your runtime that you don't need? — but I wonder if this will consign HHVM to irrelevance in the long term. Maybe Hack is a compelling platform for new code, but then, why use this obscure proprietary Facebook thing that's a bit better than PHP when you could use any of the numerous other languages out there that are also better than PHP but have much better ecosystems?

Personally this makes me sad because I wanted to see a standardised, multiple-implementation PHP language. Facebook did, even. They paid someone to write a spec: https://github.com/php/php-langspec

Maybe someone will write a new PHP implementation to take that idea forward. Or maybe we'll be stuck with Zend forever.

The future is strange.
Doesn’t the FOIA allow the government to charge a “reasonable” amount for labor?
I suggest thinkpad 13.

I got mine i5-7200/256G NVMe/16G DDR4/noOS for about 800€ nad i'm quite happy with it.
It's light, uses modern components, has decent keyboard and it's not very expensive.