skysight-inc/HackerNews huggingface dataset:
Sure. Let's look at alterF for the Map type in the containers library:

http://hackage.haskell.org/package/containers-0.6.2.1/docs/D...

It has the type:

alterF :: (Functor f, Ord k) => (Maybe a -> f (Maybe a)) -> k -> Map k a -> f (Map k a)

Note that it works for all instances of Functor. Trivial choices allow this to reduce to simple things like insert or lookup:

insert :: Ord k => k -> a -> Map k a -> Map k a
insert key val map = runIdentity (alterF (\_ -> Identity (Just val)) key map)

lookup :: Ord k => k -> Map k a -> Maybe a
lookup key map = getConst (alterF Const key map)

But those aren't really compelling examples because they just reproduce simpler functionality. It starts to pay off when you start compounding requirements, though. What if you need to insert a value and return the previous one, if it existed?

insertAndReturnOld :: Ord k => k -> a -> Map k a -> (Maybe c, Map k a)
insertAndReturnOld key val map = alterF (\old -> (old, Just val)) key map

OK, those are all fine and good, but they're still barely scratching the surface. What if you had problem where when you had a value to insert and there was a previous value at the same key, it was ambiguous which you should use? And let's say the structure of the problem provides interdepencies which restrict the options such that you can't just stack up a list of every possibility for each key. So ideally, you'd like a way to model "insert this value, but if something was already present at this key, give me both possible maps back". Turns out alterF can do that!

insertNonDet :: Ord k => k -> a -> Map k a -> [Map k a]
insertNonDet key val map = alterF (maybe [Just val] (\old -> [Just old, Just Val])) key map

Fun facts with that one - thanks to using Functor, it only traverses the tree once, whether it returns one or two results. And thanks to Map being a persistent data type, returning two results only takes O(log n) space more than returning one.

(note: this is all typed on my phone without a compiler to verify. There might be simple mistakes in the above, but it's all conceptually sound.)

That's all still just the start. You can insert an IO operation on the old value to calculate the new one, and it still only traverses the data structure once. Or a huge number of other things. Anything that can be made into a Functor can be used to augment the operation alterF does.

And you know the best part of all this? Despite all that freedom, the type of alterF tells you that you can't change the key associated with a value and even that you can't operate on more than one value in the map. It really is nice when simple things give you lots of options, but make it clear what they don't offer.
So because your little experience in a tiny state in the middle of nowhere on a planet of 7 billion people is good, it means the entire planet is good.

Got it.
Fair enough - sorry to be personal.

Personally I am very skeptical of the western media coverage of the Hong Kong demonstrations. I do not think for a minute that it has the popular support now that it had earlier (2 mios in the streets etc.).

And a lot of the pro-China support online gets categorised as bots or Chinese agents because it is in broken English and comes from the same few vpn ip-addresses.

But it is quite real.
> What you say has a real effect on others, and if that effect is bad, you should be held accountable.

Speech is just a tool to share a thought, if a thought effects some one it is for them to bare alone.

The idea that sharing thoughts should have consequences upsets me greatly, maybe it shouldn't but it does. Your speech has filled me with bad feelings and troubling thoughts is that burden mine to bare alone or should I hold you responsible?

The sword you are flailing is sharp at both ends.
Who should I believe?

a) The people on the LKML, with experience in both the kernel and userland side of the problem, trying to figure out the best way to manage userland expectations of RNG quality, in a context where entropy gathering is pretty much a glorified hack, of diminishing effectiveness

b) The security people on Twitter posting funny memes and simply stating that things should be "secure by default"

It would be trivial for the kernel developers to return a hash of whatever entropy they gathered so far, without ever blocking, and call that the "default secure mode", and implement a toy RNG for the non-secure, non-default mode, and call it a day. But they're trying to solve a more difficult and more important problem.
Kenya's Payments Silver Bullet
Highlights:

> After the group landed in Israel and left the plane, the flight crew found a sizable chunk of the drug stuffed in a cereal box for the return flight, according to people familiar with the incident. The jet’s owner, upset and fearing repercussions of trans-border marijuana transport, recalled the plane, leaving Mr. Neumann to find his own way back to New York, these people said.

> Many former employees said they didn’t always know how seriously to take some of Mr. Neumann’s pronouncements. Early on, he would throw out seemingly random ideas, like adding a pool in the basement of the company’s headquarters or starting an airline.

> He told at least one person directly that his ambitions included becoming Israel’s prime minister. More recently, he said that if he ran for anything, it would be president of the world, according to another person who spoke with him.

> One day, he proposed, the company could “solve the problem of children without parents,” and from there go onto other causes such as eradicating world hunger.

> In a 2015 investment round, Mr. Neumann sold tens of millions of dollars of shares. Soon after, the company launched a buyback program offering to purchase employees’ shares too. But the company gave employees a different arrangement, giving them a payout per share worth substantially less than what Mr. Neumann was paid

> A few weeks after Mr. Neumann fired 7% of the staff in 2016, he somberly addressed the issue at an evening all-hands meeting at headquarters, telling attendees the move was tough but necessary to cut costs, and the company would be better because of it. Then employees carrying trays of plastic shot glasses filled with tequila came into the room, followed by toasts and drinks.

> Both Neumanns could be impulsive at times, former executives say. Ms. Neumann has ordered multiple employees fired after meeting them for just minutes, telling staff she didn’t like their energy.
Very cool, but super slow, especially for an API point, which I would expect you could use directly from a front end.

Tested on a site I regularly visit

dashblock (3 selectors, ~20 items): 16.911 seconds
curl (no scraping): 60 ms
chrome: 987 ms

edit: added chrome
Great Scott, it's a Back to the Future reference, not a serious question.
Interesting experiment, and some of the pictures are indeed weird feeling. But I don't know that they wouldn't be weird with the devices in.

Also, for the ones with folks lying in bed or sitting on a couch it's pretty easy to imagine they were reading books together. Which is neither "new" nor generally considered "lonely".
> Linked Data tends to live in a semantic web world that has a lot of open world assumptions. While there are a few systems like this out there, there aren't many. More practically focused systems collapse this worldview down into a much simpler model, and property graphs suit just fine.

Data integration is cost prohibitive. In n years time, the task is "Let's move all of these data silos into a data lake housed in our singular data warehouse; and then synchronize and also copy data around to efficiently query it in one form or another"

Linked data enables data integration from day one: enables the linking of tragically-silo'd records within disparate databases

There are very very many systems that share linked data. Some only label some of the properties with URIs in templates. Some enable federated online querying.

When you develop a schema for only one application implementation, you're tragically limiting the future value of the data.

> There's nothing wrong with enabling linked data use cases, but you don't need RDF+SPARQL+OWL and the like to do that.

Can you name a property graph use case that cannot be solved with RDFS and SPARQL?

> The "semantic web stack" I think has been shown by time and implementation experience to be an elegant set of standards and solutions for problems that very few real world systems want to tackle.

TBH, I think the problem is that people don't understand the value in linking our data silos through URIs; and so they don't take the time to learn RDFS or JSON-LD (which is pretty simple and useful for very important things like SEO: search engine result cards come from linked data embedded in HTML attributes (RDFa, Microdata) or JSON-LD)

The action buttons to 'RSVP', 'Track Package', anf 'View Issue' on Gmail emails are schema.org JSON-LD.

Applications can use linked data in any part of the stack: the database, the messages on the message queue, in the UI.

You might take a look at all of the use cases that SOLID solves for and realize how much unnecessary re-work has gone into indexing structs and forms validation. These are all the same app with UIs for interlinked subclasses of https://schema.org/Thing with unique inferred properties and aggregations thereof.

> In the intervening 2 full generations of tech development that have happened since a lot of those standards were born, some of the underlying stuff too (most particularly XML and XML-NS) went from indispensable to just plain irritating.

Without XSD, for example, we have no portable way to share complex fractions.

There's a compact representation of JSON-LD that minimizes record schema overhead (which gzip or lzma generally handle anyway)

https://lod-cloud.net is not a trivial or insignificant amount of linked data: there's real value in structuring property graphs with standard semantics.

Are our brains URI-labeled graphs? Nope, and we spend a ton of time talking to share data. Eventually, it's "well let's just get a spreadsheet and define some columns" for these property graph objects. And then, the other teams' spreadsheets have very similar columns with different labels and no portable datatypes (instead of URIs)
>Since this is a relatively new vehicle in delivery of an addictive substance it would seem prudent to ban it while possible before wide spread adoption.

Nicotine, without the array of other chemicals present in tobacco, isn't very addictive. There's a fundamental misunderstanding of the role of MAO inhibitors going around, they potentiate nicotine's addictiveness and without them nicotine is less addictive than table sugar.
School (the institution) is not about learning. School (the institution) is about conformity. And finding exploits is anything BUT conformity.
Nice work. Do you have an admin API for creating or managing the APIs you generate? Asking in the case of integrating into another app.

Also, how well does it handle JavaScript apps? Can you specify different engines to parse a site with or specify JS disabled/enabled etc?
Wikimedia Foundation Welcomes Grant Ingersoll as Chief Technology Officer
Let's be honest, everyone huffs and puffs around this but don't have a handle on the facts. Look here[0]. The US is by far the one of the largest GHG producer per capita, and this is not a pinko anti-American bit, it's solely the US, not Europe when taking to account total emissions and emissions per capita. The US is second on the total scale of emissions per year, and not shown here (can't find the link) but first in terms of cumulative positions over the years, but it's a good thing to remember that China expends a lot of their emissions to produce things we consume.

A carbon tax would be regressive for the American middle class. On the other hand, it would in fact be beneficial for the global south/poor. That is one of the difficult things about this, because a carbon tax would hit the middle class (note I didn't say working class) in the US which has quite a bit of power globally through their ability to elect the US president, so implementing any sort of carbon tax without giving them some deal will be moot politically. It would hit the working poor in the US pretty hard as well, although a good fraction of them don't own a car[1], so they wouldn't face a tax on the largest source of GHG's in the US.

[0] https://www.ucsusa.org/global-warming/science-and-impacts/sc...

[1] About 19% of people who earn less than 25K per year (yes! very poor) don't own a personal vehicle.
https://www.bts.gov/sites/bts.dot.gov/files/legacy/publicati...
Regulatory differences are a flaw unique to paid services, though. Piracy has no such flaw.
I know, I wanted to train a neural-network piloted killer robot car too.
Don’t Let Metrics Undermine Your Business
Obviously not every detail is included here but I did find it odd that, although he mentions a focus on outcomes, the change he talks about is entirely about shifting from one process to another, both of which by themselves might be pretty arbitrary.

> reviews would be about frequent delivery, incremental development and how leadership could remove obstacle

I would think that in a Lean process that outcomes and therefore reports would be focused on performance of North Star Metrics, KPIs, comparing those against goals, analytics/research to help understand that performance, and hypotheses/strategies for how to improve.

I'm a big fan of Lean/BML approach and I'm assuming this is what is happening but the article doesn't really send that message. Because of that omission, after reading but before seeing the author my first thought was this was consultant blather.
I dunno, a lot of the mechanisms mentioned in thread sound pretty socialistic, and at any rate dispenses with advocacy for free markets fairly completely.

Maybe it's time for the system to admit this, it can't be worse than universal health care.
From the article: "I no longer think about code lines as an asset to be accumulated, but rather as an expenditure to be avoided."

The obvious Edsger Djikstra reference:

[I]f we wish to count lines of code, we should not regard them as “lines produced” but as “lines spent”: the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger.

http://plasmasturm.org/log/linesspent/
Like a lot of people who have given interviews, I have my own set of very odd stories.

I interviewed a developer and asked him to explain how the system he was currently working on worked on the whiteboard. As he talked he drew two boxes. He drew a line between those boxes. Then as he talked he kept drawing over the line between the boxes. (Now, he was jr to mid-career so I didn't expect a magnum Opus but we value people who can explain themselves because at least if they're wrong we find out before the mess gets too big. But I digress.)

Your analysis reminded me of that interaction. What kind of information architecture do you have if you're building objects that big?

I mean, as others have said, if this is the main payload being transferred from client to server, it's probably going to arrive as JSON and you're going to turn it into Objects.

If it's not that data (they're talking about cold loads) how many other categories do you have that can approach 10k?

Configuration? We have libraries for that and they often read a JSON file.

Lookup tables for fixed relationships of data in the system? Maybe, but that complicates your testing situation.

How many of those categories get loaded more than once per session? Are these really such large startup bottlenecks that we tackle this instead of other problems? GP implied incompetence but I get more of a whiff of desperation here.
Who creates value in today's society?
Can someone who downvoted this comment please explain why they did so?

Passive smoking is indeed harmful for everyone in a few meters radius of the smoker, and they smell awful. Both these statements are known facts.
I don't understand this comment. Blackboard has headquarters in Washington D.C.
Wells Fargo to Pilot Dollar-Linked Stablecoin
The whole point of my comment is to encourage people to who don't exactly meet the requirements to apply.

I might attempt to make that more explicit next time but it's a slow process.
SELinux + ansible.
Thanks for the reply, it does indeed make it a lot more attractive.

The main issue I have with B2 is that I'll be using some client where the API transaction costs are a complete unknown, at least to me. I have no idea how many API calls of the various sorts the different clients will use, and how they scale with my data.

I have a almost two million files, if a client uses one or two B or C API calls per file when processing the backup set, then that's 5-10 bucks right there.
As leading scholars in the field have noted (such as Amy Adler), this happens on a larger level in society, too; the desire to protect the "innocence" of children has become a goal in itself, fueled through moral panics based on narratives which frame children as helpless creatures who barely know what they're doing. The final point of this is what Zanghinelli called a "gothic narrative" - you're either for any and all laws to protect the children, or you're against them and might as well be a pedophile yourself. Adler asserts further (citing various examples) that child pornography law has conditioned the general public to adopt the pedophilic gaze in which even artwork from the 18th c. depicting a nude child can be removed from a gallery because it might "titillate" the viewer. She says that while such laws are better than nothing, they also do some amount harm in sexualizing children.
> ...not saying it's a good way to do this

It really depends. If you do these kinds of queries all the time, it's a good idea to use a graph DB, but if these queries are rare, it often doesn't make sense to add a new technology to your project.
Or what? The US will send him to jail?
Yeah the trick is knowing what the performance of the as-built vehicle will be before building it. You can to some extent marginalize over this by running randomized trials with different parameters for your mechanisms so that you verify that you're not too sensitive to the exact setup. The control system needs to be fairly robust to such variations. But you still don't know that you've modeled all the physics correctly until it's actually flight-proven. Picking the correct degree of fidelity in a simulation model isn't super straightforward.
This hack is supposed to be for huge data: 10kb or more, thus comfortably more than a page. If the >10kb wall o' code was wrapped in a parse-as-JSON-at-runtime function call which was was preceded by a three-line comment describing a quick and dirty benchmark showing that it saves a useful number of milliseconds on page load in a fairly typical use case, and if the web resource was intended to be loaded many millions of times, I would nod and approve when reviewing the code. The way the original objector writes, it sounds as though nothing would suffice to justify this hack, and certainly not a mere benchmark and 3 lines of comments preceding it. That attitude seems like unreasonable blinkered zealotry, or some other kind of tunnel vision, e.g. someone who has just never thought seriously about the appropriate tradeoffs in maintaining a web resource which gets loaded millions of times a month.
Ludwig: A type-based declarative deep learning toolbox
They mention archiving a bunch of Trump stuff, but are they just focusing on conservatives? There's a bunch of misinformation on both sides, and if they're really after the truth, they should be paying the same amount of time and attention to both right and left.

Somewhat related: it's sad but perhaps not inevitable that everyone basically has to do their own research to find out what's actually going on. These days, I don't trust any one source; I find out what that source used as their source, and go read that. And if that source has a source, I look at that. This means I oftentimes find myself looking at the raw numbers of, say, gun deaths or immigration numbers, etc. It's extremely time consuming, but immensely illuminating.

If only there were some organizations that would do this for me, without adding in some bias or interpretation. We could call them "news organizations."
Smart TVs Sending Private Data to Netflix, Facebook
Eh, depends on the reasons for firing people easily.

Firing easily for honest errors is moronic, fully agreed, especially if the person is learning from them. My code changes caused more than one sev0 before, but never was I personally blamed for them, as it was always some bigger underlying system issue that wouldn't have allowed me to make those mistakes, if the systems were more robust (and I was a little bit more wise and not pushed "seemingly safe" changes outside of business hours). I learned a lot from those mistakes.

Firing easily for a long history of non-improvement and not meshing well with the team (underperforming, causing a lack of cohesion within the team, etc.) is good for the team, but in principle it is similar to the "good king" kind of approach, so it all relies on the "king" having a straight head.

P.S. My last paragraph does not imply "culture fit" or any superficial stuff like that as a good reason for firing, I meant more fundamental sort of issues, like refusing to listen to people, never even attempting to improve (given you have some hiccups, just like most of us), etc.
That's why they call it the free market.
The same is true with software, unless you suggest that Agile will change the implementation language with every sprint...
There is no technical reason to prefer one or the other; they are both declaration specifiers which can occur in any order. long const int is valid, even.

The const qualification is in the type; it is not a direct attribute of foo, so putting the const closer to foo means nothing.
Lynching has a specific context in the United States; it has the history and connotation of racist terrorism.

No one dislikes Stallman on the basis of the color of his skin, and no one is murdering him. The use is a grossly inappropriate metaphor that diminishes the real meaning of the word.
The IA actually has a DMCA exemption for the pirated games: https://archive.org/about/dmca.php
We cannot even eradicate botnets operated by individual criminals.
anyone else want to use this but can't because they use a mac?
I have a degree in computer science and still think degree screening is bullshit.

Ironically, it probably hurts companies more than candidates.

If you really look into it there are some good ideas out there on how to do better.

One big problem seems to be that alternate approaches break down when scaling up. For example they can't be easily automated, or cant be easily handed to human recruiters with little tech understanding than are culling tons of candidates each day.

Screening based on college reminds me of screening based on an "IQ test", it may have some correlation to good candidates so people think it's good. However the correlation is weak and highly inefficient. Hard to imagine the productivity and opportunities lost compared to a high-correlation more fair process.
Python Alternative to Docker
The FBI Tried to Plant a Backdoor in an Encrypted Phone Network
1999 in Pentium Pro.
As the other guy says the real special part is that writes zero to ax without reading ax. So it breaks a dependency chain if you do this in a loop.

The important tuning piece for OOO processors is removing dependencies between calculations.
Yeah, there's actually quite a few different cross platform projects that support basic to more complex forms. As a fan of Material Design and "The UI formerly known as Metro" I wish more of them would adopt one or the other as a baseline though.

I just am most familiar with Eto off the top of my head... mostly because of PabloDraw.
Yeah, spot on. Thanks for providing the link.