skysight-inc/HackerNews huggingface dataset:
> Imperative programming is like building assembly lines, which take some initial global state as raw material, apply various specific transformations, mutations to it as this material is pushed through the line, and at the end comes off the end product, the final global state, that represents the result of the computation.

This isn't the best analogy as functional and imperative languages are both often used in a procedural fashion. If I simply replaced "global state" with "immutable arguments", this analogy fits functional programming as well. The fact that the arguments would be copied, however, would be implied.

> Each step needs to change, rotate, massage the workpiece precisely one specific way, so that it is prepared for subsequent steps downstream. Every step downstream depend on every previous step, and their order is therefore fixed and rigid.

This is more about tight coupling than imperative vs. functional paradigms. In general, imperative methods can be just as loosely coupled as functional methods. It basically comes down to what sort of data you're handling.

> Because of these dependencies, an individual computational step has not much use and meaning in itself, but only in the context of all the others, and to understand it, one must understand how the whole line works.

This, again, can be true of functional languages as well. You cannot always guarantee that a method is individually useful given the data at hand.
Same place on google maps, that works on every browser that supports WebGL: https://www.google.pt/maps/@52.0849891,4.3169948,78a,35y,77....
Card Thief
Welp, when I saw the title of the article my thought was "Wait what ?! Terry Pratchett Going Postal was actually based on real facts ?"

Those two books are among my favourites, but I was really not expecting that part to be true
We're making a push for more e2e tests where I work. And we very much have a focus on reducing the friction surrounding these tests.

We've settled on aiming to build a tool that keeps an index of selectors used <=> page/page structure. Then if something changes, you only have to update it once. So when you create a selector, it'll save it for that page, you can name it and reuse it.

Given that we have the source templates too, I think we'll try to validate that the selector will be valid. We might be able to even add tasks for the front end guys that alerts them if the changes they're checking in will break selectors.

Combine that will an idea for suggesting selectors based off the source, along with e2e script managent, it'd be a pretty slick tool.

It's a pretty ambitious project though. We do hope to make it general enough to open source though. We'll see if we make it (pun intended).
10 Technical Interview Tips
Google has been one of the largest purchasers and schedulers for aerial photography over the past 5+ years. Traditionally aerial photography uses airplanes as the flight system.
Well, it's Electron...
The problem with "radical transparency"is that the worst money-wasters get to hide behind confidentiality in the name of security:

1. Counter-terrorism spending, which wastes money protecting backwaters no terrorist has even heard of

2. The Drug War and it's army of informants

3. Seizures of property and cash, dimensions currently unknown

4. A Cold War-sized military in a post-Cold War world

5. The prison-industrial complex

Those are all discretionary spending. And those are all conservatives' favorites. And they all get wrapped in "we can't be transparent, because drug lords and terrorists!"
Real World OCaml. https://realworldocaml.org/v1/en/html/prologue.html

> Real World OCaml is aimed at programmers who have some experience with conventional programming languages, but not specifically with statically typed functional programming. Depending on your background, many of the concepts we cover will be new, including traditional functional-programming techniques like higher-order functions and immutable data types, as well as aspects of OCaml's powerful type and module systems.

It's a nice segue into the world of functional programming if you're not ready to give up on imperativeness just yet.
And if you are using archlinux, you can also grab a redshift plasma applet from the AUR that works great. Just put it on my laptop last night.

https://aur.archlinux.org/packages/plasma5-applets-redshift-...
I'd like to add to this that it's incredibly sad/frustrating when a product like Twitter especially (Don't mean to pick on them but it's such a good example of this) is blown totally out of proportion in terms of what is should/could be a very straightforward, API heavy, (I think) nerd-centric product into some kind of bastardized Facebook with a character limit that is for some reason worked on by almost four thousand people.

If Twitter had stuck to reasonable goals, kept the product more or less where it started and stuck to a small team, they'd be printing money. Now we never know if they're going to make it out of the year.
I'm glad to see that they've fixed the Oslo bug (half the city couldn't load since 2014).
Turn off your electronics for a bit. No displays for a few hours. Get used to focusing on things for a bit. Examine boring corners of the room. Then try reading while 'captive'. Train, bed, camping, or anywhere with minimal distraction. Books are amazing, but the initial wow factor is less than blinky things, so you have to spin down a bit.
Typescript and Graphql using class and decorator
Of course you're right. I just pointed out that the Tories and Labour did worse on the issue and suffered less for it. But then, the Lib Dems did the pledge and weren't able to stand up for it, so they did deserve some punishment.
'learning to fight against you, sort of like a human would' is a lot more fun than 'literally cheating and perfectly countering you'
Funny. What I got from his response is that you're still wrong. He just said it in a nicer way than the rest of us.
Around 2010 I stopped using Twitter. It never really appealed much to me. Once it came out that it was going to be a marketing tool, I saw no real reason to use it. Why use something that's sole purpose is to put ads in front of me? I see enough ads all the time.
> All parties will say that though.

I don't think conservatives say that "We aren't leaving if Scotland or Northern ireland poll even close to 50% for leaving the UK in order to remain in the EU after a brexit vote". That would have been useful information before the referendum.

> it's not clear the Scots wouldnactually vote

Exactly, it's very uncertain. And having a referendum with that uncertainty was very strange. And if it does become clear that the leave vote actually did break up the UK, then the consequences should (and could!) have been known to voters in the referendum.
You can do it using the techniques employed here:

https://github.com/aikorea/strikersii_ai/tree/master/genetic

Demo:

https://www.youtube.com/watch?v=k6Ir8yd9iOk

In terms of FGs, you would store the relevant game state as inputs and build a reward function around health, time, damage done etc. A relatively simple (and useful!) SFII AI would be one that tries to win by only using crouching medium kick, sweep and throw.
As someone in the Twin Cities, BAH, I was hoping to find more haskellers around. Oh well, I'll keep trying to get more FP stuff in where I work at least.
This is just me bullshitting, but I imagine you'd want to continue shipping a simple interpreter and some kind of script for the computer opponents and use a hypothetical learning system to generate the scripts separate from the game you ship. The AI code in the game would be simpler, the scripts could be easily patched, users could generate their own scripts, etc.

I think you could probably generate and hand-tune a number of situational scripts and let a learning system decide how best to chain them for particular circumstances (e.g. if the opponent is Character A, the computer is Character B, the computer's relative health is much lower, and Character A has a full super combo gauge, then it learns a particular sequence of scripts that proves effective in replays).
That's actually one of the reasons why I like React Native, because I'm hoping that it can be like "jQuery" for Android apps (in terms of jQuery's cross-browser compatibility). I'm assuming that the core RN code already contains a lot of workarounds for different Android versions, so we can just use one consistent API via JavaScript.

But you're right that it can get very tricky when you want to use a lot of third-party libraries. For example, I thought I would be able to just drop in 'react-native-blur' [1] and everything would work out of the box. I didn't realize that the Android component has been broken for a very long time, so I had to dive into the code and fix it. And then I ended up basically rewriting the whole library for iOS and Android, including the example apps, the README, and even the GIF in the README. But the nice thing is that other people can use it now, and they won't have to go through all of that. The other nice thing is that I learned a ton about developing native modules for React Native, so I don't regret it at all.

Just think that you're going to have to implement those workarounds anyway, so it makes sense to contribute them to an open source library that everyone can use. For your video examples, it would be awesome if you could take a look at react-native-video [2], and see if they already include those workarounds. (I would personally appreciate that a lot, because I'm working on a cross-platform RN app that plays a lot of videos.)

[1] https://github.com/react-native-community/react-native-blur

[2] https://github.com/react-native-community/react-native-video
cursing is now provably productive
The Probability Monad and Why It's Important for Data Science
Eight surprising facts about real docker adoption
Title is confusing. The individuals themselves aren't aging faster, the median age of people is going up faster than for other fields.
Lets get an early reflection of how Britain will vote in 2017 UK Election
I really don't get this line of thinking at all. In any coalition compromises are required. Yes the Lib Dems made a campaign promise not to increase tuition fees. But (and this is important), they DID NOT WIN the general election so therefore did not have a strong mandate for those promises. Somehow the Lib Dems get all the blame for increased tuition fees as if it was their idea. The blame for that should lie squarely with the Tories. They really pushed for it and were willing to compromise in other areas important to the Lib Dems to achieve it.
Trump will sign executive order to begin revamp of H-1B visa program
E-sports to become a medal event in 2022 Asian Games
> Is is completely unclear who writes messages and who responds to whom

Agreed. I always thought I was just dumb or something, since how could such a massive company with hundreds of millions of users have a completely nonsensical ui? It must be intentional on their part, but to me the user experience seems capricious.
"resulted in developers that don't even possess this type of thinking anymore."

The good old days weren't. What it resulted in on average was developers who just bashed on their manual allocation until it "seemed to work", not glorious hand-constructed shimmering perfect crystals.

At least now the code that "seems to work" usually does, and is memory-safe now, so yes, it's an improvement. If you still want to be careful and do it by hand in such a language, they're still there, and there's even better options arising.
How Translation Management Tools Work
Thanks!. PocketCasts looks interesting.
> Considering how much tax money the government takes in it is astounding to me they run such a deficit.

It's astounding to you that a superpower spends a lot of money? When we spend more on our military than the next n countries combined?

> if they flunk a cost benefit test

I consider myself a conservative, especially in comparison to most folks on HN, but this is nonsense. Conservatives in Florida demanded drug testing welfare recipients, even when data shows that fails a cost benefit test pretty handily.
When he came from NeXT, yes. He switched to Powerbooks as soon as he deemed them passable.
Netflix standing on the threshold of 100M subscribers
The validator part of the program almost uses backward-chaining implementation. The "list" of goals" for the backward-chaining is created by the definer part of the program which uses a recursive function.
As you get older you get more politically active. I'm guessing the retired have more time on their hands.

The young just aren't too bothered. Have a feeling, with Brexit, the biggest losers are the young and I hope that there is at least some semblance that they can do something about it this time.
With Earth you can load KML or KMZ files, and you don't have directions.
Constitutional rights? Doubt it.
> Then on Brexit, he went against the wishes of the members and supported Tory policy.

May was campaigning to remain before she was appointed leader. And said categorically she would not call a snap election. The lack of conviction is equal parts depressing and hilarious
After answering this a few times I wrote up a blog post of advice for how to starting programming "more functionally", regardless of language:

http://chriswarbo.net/blog/2015-01-18-learning_functional_pr...
I'm curious how you found Hacker News.
The 3 Keys to a Digital Transformation Roadmap
Are the majority of Brexit voters racist and nationalist (assuming you consider nationalism a negative)?

I don't think so no. I do think that should be clear from the text you have quoted.
I still have no idea what it is or what it does. Someone told me it's this feature, "Stories," but what does that mean? Does it have something to do with those text-on-gradient images that have been popping up? Like a status update but on top of some colors?
An oldie that has been passed around in various incarnations since the 2000s is an alias also called fuck which repeats the last command with sudo. Either coincidence or perhaps it could be where the inspiration for this project came from.

alias fuck='sudo $(history -p \!\!)'
There have been some attempts to apply ML to NPC control: sometimes to learn how to beat the player, sometimes how to mimic them (Forza), sometimes to learn what player wants done and assist them (B&W). But none of them have crossed the chasm from novelty to killer app.

The main difficulty with combat AI is that players enjoy mastering a game and beating it. And if the game keeps getting better and beating them instead, they will end up unhappy.
Scott Wlaschin's site http://fsharpforfunandprofit.com/ - For F#, but his articles try to answer the question "why is this useful?"

Eric Lippert's Monad Posts, starting at https://ericlippert.com/2013/02/21/monads-part-one/ - Uses C# to build up Monads using examples.
AMD's mid-range Radeon 500-series video cards are here
Since humans are not infallible, let's leave it at 'learning to fight against you, sort of like a superhuman would'.

It would make for a formidable opponent since you can still defeat it (with a good dose of luck).
> Every service request would new some worker object which would in turn spin up an FixedThreadPoolExecutorService

I've recently reviewed (and failed) code that did exactly this. Maybe it's a more common misunderstanding than I'd have thought.
AI's are useful as training dummies. I believe Killer Instinct has quite a good AI called "Shadow Mode" that learns from your behaviour.

http://www.polygon.com/2015/5/30/8691219/killer-instinct-tea...

It probably uses a hybrid or AI and scripting techniques.

As for things like human reaction limits etc, that can built into the AI as part of parameters it needs to operate within.
This very cool video demonstrates what you can do with it on a touchscreen: https://www.youtube.com/watch?v=7LGnozlwU1o

Also, if you like this kind of interactive thingies, you might enjoy the explorables subreddit: https://www.reddit.com/r/explorables/
I don't think it alienates any of their base.

FWIW, I know from immediate personal contacts that it does, and not in entirely trivial numbers. I'm in one of the most pro-Remain areas of the country, but also a LD/Lab marginal, so it will be interesting to see what happens as a result. I suspect it won't make much difference here, but if the same effect is evident in more moderate parts of the country, it could actually hurt them.
Snapchat adds world lenses to further its push into augmented reality
http://www.functionalprogramming.com/concepts.html

And then you go from there.

The last section there is important. In the real world, your language is not always your choice, but it's perfectly possible to put functional structure in most any language.
Most of the countries in the EU are in the Eurozone too. The UK is pretty much the last major economy in the EU that's outside the Eurozone, and one of only two EU members that are not in theory obliged to join it as soon as they're able to.
I always wondered how many realized that "leave" would mean the union is dissolved

Can you clarify what you meant here?
When I visited the site yesterday, all the pictures on the front page were of Russian rockets at Baikonur. I'm sure it was a quirk of timing based on what was getting uploaded at the moment, but I thought that was amusing.

This seems like an uncommon example of a pure success story as far as digitization and government website projects in general. Hopefully someone has written down the playbook so this can be replicated in the future.
To what, if any, extent is Chrome itself collecting user browsing data? That is part of Brave's business model -- there are many things about your behavior only the browser can know. Is Chrome doing the same?
There was a point where you could choose from which time to view the data. Very useful feature. Might even still be in there somewhere if you find the right chicken to sacrifice to make it appear.
The alleged link between the ShadowBrokers data leak and #Stuxnet cyber weapon
I think it's just Stereophotogrammetry (regular pictures from different angles), I doubt LIDAR and ML is used. It's at least not required.

https://en.wikipedia.org/wiki/Photogrammetry#Stereophotogram...
I remember sending in the mail the money and verification info for my SDF account. God I wish I remembered my account's password, it might still be there.
Ditto; are there specific pages people are trying and not working?
You don't understand the Lib Dems if you think we'd have voted for Brexit. Especially under Clegg.
The 3d view is faster in google maps than google earth, why do we need google earth? Also I'm already used to use ctrl to rotate the view on google maps.
There are several different ways to implement such solvers on top of Prolog.

One way is to simply extend the Prolog engine to handle such constraints natively. Many basic constraints are implemented in this way. In fact, you can regard even (=)/2, i.e., unification, as one such constraint, and all Prolog systems implement it, typically as one of their virtual machine instructions. The same method naturally extends to other constraints like freeze/2 and (in)/2, which are often implemented natively. See the system descriptions of GNU Prolog, as one example for a system that handles the CLP(FD) constraint (in)/2 natively.

For application programmers, Prolog systems typically provide an interface in the form of attributed variables are metastructures, so that any programmer can implement a custom constraint solver on top of Prolog by attaching attributes to variables. For example, in SICStus Prolog, there is a hook called verify_attributes/3, and you can provide a custom user-defined specification that handles your own constraints.

In practice, the implementation of constraint solvers on top of Prolog typically involves a combination of both approaches, with some low-level constraints implemented natively (i.e., as part of the engine), and some higher-level constraints implemented via the general interface on the Prolog level.

There are of course also other ways to do it, such as writing a Prolog meta-interpreter that interprets your code as if the Prolog engine supported such extensions. This is likely among the slower ways to provide such extensions, while a native implementation is among the fastest, and using general interface predicates will likely be somewhere between these extremes.
Probably because the shares that most companies offer are worthless for setting company direction. Employee pool of options is 20%? So investors & founders can always out vote everyone.
Dictionaries, Maps, and Hash Tables in the Python Standard Library
I used to think that especially in the arts.

I don't anymore, I've added links in the bottom.
Even if the tech is half as good as I wish it was. It means less people can do the work of tons of people with computer aid.
Essentially I don't think it will lead to lots of people getting work like the last industrialization did in terms of factories.

https://www.instapainting.com/ai-painter

https://deepart.io/

https://motherboard.vice.com/en_us/article/after-20-minutes-...

http://www.theverge.com/2016/1/21/10805398/friends-neural-ne...
> Facebook’s strategy of becoming an integral part of other company’s products was key to them becoming a utility. Twitter was on that same path prior to their limiting developer API access.

No, not really on the same path. If Facebook was strictly a status update website, then the comparison would be proper. But Facebook's platform was rich with content and varied features. That's what let its API system become such an enhancement: Other sites would integrate Facebook into their own platform for a feature or two, but people would return to Facebook proper because it allowed them to see those features _among other features_. In the end, regardless of their intent, websites consuming the Facebook API were essentially being integrated into Facebook, and not the other way around.

Twitter, on the other hand, _is_ pretty much a status update website. And if it kept its API open, it would have been a much different story than Facebook. No one would have a reason to return to Twitter, they would simply continue to visit the sites/apps that integrated the tweets. Whatever ads Twitter had would score even less clicks than they do now. It would, perhaps, integrate Twitter into the ecosystem more than at present, but I doubt it would open up much opportunities for revenue.

All that is, of course, conjecture. Still, I have a hard time seeing the Twitter API leading to something more.
I swear Electron is incredibly fast in every instance I've used it. Unless you're doing heavy computation with complex algorithms, it's really nice. I don't believe VS Code has to do any computationally expensive computations, and it enables many more people to work on a project (JavaScript being a truly universal language).

I'm currently working on a Mail application and my benchmark test case is an email account with 20,000 emails to be displayed. Noting we currently have no lazy loading and all these are loaded from an on-disk database and put inside their own Shadow DOM it truly did surprise me when it took just over 400ms for an entire page load on my development laptop (~3 years old with an i5, nothing special).

Even if you need to do complex algorithms, just write that particular part in C and use it in the rest of your JS code like normal.
Seems that works based on your location, take a look a the code inside the page.
Probably when you log in, they search on your background to see if you are eligible to anyone hiring
They where knocking a large building down near the office recently, this has that building in a partial state of demolition and has modeled the girders that where exposed.

I admit to looking at it slightly slack-jawed, that wasn't so much future shock as the future punching me square in the face.

https://earth.google.com/web/@53.74539679,-0.32722384,18.713...
Donald Trump to overhaul H-1B visa program
Modern Physics by Paul Tipler and the Feynman lectures by Richard Feynman.
Radeon RX 500 Series official press release
ready or not, here I scan