skysight-inc/HackerNews huggingface dataset:
Sorry, php, not js the second time.

I'm not sure what you mean by read only closures, unless you mean a close which can later modify the enclosing scope, which python supports via the nonlocal keyword but also is decidedly bad, and not something I've ever before heard of as an fp concept.

And as far as I can tell, your entire argument reduces to better lambdas. Which is what you said it wouldn't be. I feel misled. Oh wait you're a different user. Still this point stands. I wouldn't have responded if the expected answer was "better lambdas". You can do better.

I guess the next important question is "what are the things you feel make a language functional, and why are those things valuable"?

There are lots of aspects of functional programming that are good, I personally agree that anonymous functions are not one of them, especially when you have no need for callbacks (python doesn't really).

And it's very possible to write functional code, imo, without anonymous functions. Why do you disagree.
The Frightening Link Between Beef Jerky and Bipolar Mania
Agreed.

Why clear-cut and destroy wilderness instead of building vertically? Expanding the metro region just increases commuting times and removes and recreational value the wilderness provides.

Not sure why people would want suburban waste lands instead of denser metro areas.
Inflation is a tax on savers, not the poor.
Trump and Putin: The worst case scenario (2016)
In terms of total power? Maybe.. Hitler was not the ultimate Dictator like he seem to many today, but in terms of genocide?
Not really. Even if the famine in the Ukraine, you are probably referring to, was a planned event and not just missmanagement and ignorance, it still would be no organized genocide to wipe out a whole race.
That's great feedback.
I'm working on vastly improving exception reporting for the next version of Graphene :)
The eighth moon sounds exciting... "it travels in the same region of space as the retrograde moons, but in the opposite direction... That means it could easily smash into the retrograde moons, pulverising itself into oblivion."

Setting up science nerds for thousands of years of suspense!
One might suggest that Greek/Argentinian/Venezuelan bonds aren't risk-free. :)

It's true that the US Govt could print its way out of nominal debt, but there are market constraints on how aggressively it may do so if we want the system to keep working, because stable inflation is a key component in the demand for government bonds. Once inflation stops being stable, your government's ability to issue new bonds is in trouble, because buyers demand higher yields to encapsulate the risk of that uncertainty.

I'm of the opinion that reality is somewhere in the middle - US government debt isn't the same as household debt, but it's not meaningless, either, and I think it does everyone a disservice when we discuss it as being characteristic of either extreme.
They sure did. But why should the rest of us be sympathetic to the aesthetic taste of people who own $1.5 million assets? This concession is not free. It comes at the expense of others’ access to community, jobs, and shelter.
Awelon, not Avelon.
In some situations. The examples in this article, I think, make it clear that for a lot of "broken code" these errors are caught. It's too bad that there are edge cases, but that is Java all over, in my opinion.
We could also decrease demand.
Hmm. If a composer can't personally play or direct his/her piece (e.g. a symphony), is it still composer's art?

The generally accepted answer is "yes, this is composer's art". But it's also generally accepted that those who render the piece also take part in the art, in a different way. The bigger the influence, the more noticeable part it is. You don't normally ask who plays particular violins in an orchestra string group, but you do notice the first violin, and the director; you say "Gould plays Bach", or you say "Band N covers band M's hit". The influence of the performer is very visible, and makes a lot of difference. Still, without the composer's art, their performance would not be possible.

I don't see why this parallel can't apply to other collectively performed art (or any activity).
Does it cleave a whole segment off (two point cut), or just a single cut?
They can land by themselves, but the safety envelope demanded by the FAA and industry just means that they don’t. The ability is there if needed in a pinch.
> The delivery, unboxing, etc, was all free (prime)

"Free" in that it came with your Prime membership which you paid for ;)
Tclook: TclOO-based object/class/namespace browser
https://distill.pub/2018/building-blocks/ This seems pretty good to me. And the nets are not exactly as small as I meant.

I work with random forests and build forest which have more than 80000 nodes per tree. Other than some basic computation of feature importance, it is a black box on the same scale as modern neural nets, maybe even worse.
when you talk about high density housing, the only people who then own land are billion dollar investment funds with robotic inhuman desire to maximize per square foot profit because fuck you thats why.

sure, we need more housing - but it also perpetuates another set of problem factors by having such.

as far as building and ciy planning, id look at singapore and other high density asian ities for lessons. heck, we cant even have good quality transportation. if you think bart and muni are good services, then you havent been to places like singapore, hong kong, tokyo or beijing.

singapore digs down for every floor it puts up.

sf will never solve true density problems. period.
Right? And even if I took the guy at his word that it's 100% the religion.. I happen to like the First Amendment. I think all of it's previsions are good in spirit and in practice.

To try and win an election specifically by rallying people against a domestic populous as their enemy is an awful hitler-esque thing to do. Isn't that literally the same recipe?
Oh yes, lets turn one of the last Bay Area counties that isn't urban sprawl into another vast wasteland of concrete and strip malls. Redwoods are overrated. Wetlands are just swampy land that need an In-n-Out. Mt.Tam would be so much nicer if it had some restaurants and gift shops.
Every city has problems. That doesn’t mean SF has no character. It’s one of the biggest tourist attractions in the country for a reason.
Lol, NYC doesn't have enough housing either. Have you seen their rent prices?

It would be wonderful if there was an actual city out there where everyone decided "hey, let's drive rent prices in the freaking ground by actually allowing high density building EVERYWHERE".
The article seems less about the toxicity of the cesium levels, and more about their use as a signature in dating the wine, which I find is still interesting.
people wouldn't need so much darn parking if they could live near work. This idea that people must buy housing 50 miles a way and commute over 3 hours a day must end: it's terrible for the environment and terrible for people's lives, not to mention very expensive.

Sure, adding a little more supply only helps a little. But you gotta start somewhere. It's like trying to reverse CO2 polution, it takes time, but it's worth it and in the long term it is reversable. We need to keep adding more and more and more supply for the next 40 years until it gets back to a normal level. We owe this to future generations for screwing things up so terribly.
Out of curiosity, what does "tech them swagger" entail? I was under the impression that most of it was automated and that it's more of a standard than an implementation.
Justified.
That was my exact thought process. No examples, familiar terminology, or simple language: just architectural astronautery par excellence.

I always find myself sceptical of people who appear to hold an almost religious level of belief about some programming construct or protocol and yet are unable to express themselves plainly. It comes off like a developer-ish version of business speak and isn't generally useful for moving a discussion forward or solving any problems.
America’s Factory Towns, Once Solidly Blue, Are Now a GOP Haven
The moral arguments extend beyond "brick and mortar" vs online. I think the bigger issue is how they treat their employees. One company uses "third party contractors " to skirt labor laws and has their employees pissing in bottles to stay in good standing.
You could say the same thing about dictators. The problem is not the power structure, but whether they are meant to be benevolent or not.

You could also say that a triumvirate is better than a dictatorship since there would be a small system of checks in place (not saying that Guido was being pushy with his position of BDFL, but it would be nice to see other ideas having as much ground as one person's ideas).
Artist here. An anecdotal example of what the article discusses: an acquaintance of mine works for arguably the most commercially successful sculptor/Contemporary Artist in the world. Get him drunk at a dinner party and he'll talk about his job, which consists of working to create new "forms", by which he means 3-dimensional shapes, entirely on his own. Once in a while his employer pops into the studio and says the equivalent of "that one", and then it gets enlarged, painted, and sold as the exclusive creation of his boss for millions of pounds. He'll gripe privately about what HN'ers would call "IP", but he's also got a stable job, definitely at the upper end of what technicians get paid, and at this point in his life it would be a huge risk to his family's welfare try to make it on his own as an 'Artist'.

The analogies to a CEO, coach, architect etc will fall down because in none of those jobs does she, at the end, singularly own the entire physical and intellectual property of the object created when collaboration is involved...and of course in many cases there isn't a physical 'object' but rather a performance, a set of instructions, etc. While that is the point of the article, I think it's worth highlighting because it changes how an artist behaves and works with their 'team', hidden or not. It's also representative of how unusual a field art is. Another example is simply what happens in the buying and selling of Contemporary Art...investment funds secretly colluding with galleries to prop up auction prices which they then use as new (inflated) baselines to sell work to their own clients, members of museum acquisition boards arranging for their institution to buy works of artists that they personally own, tax evasion on a massive scale, etc. Conflicts of interest that might put people in prison in other fields can sometimes be part of my normal business day.

I like reading HN discussions about art because there are always attempts to think through an issue from first principles, where those first principles are some commenter's personal definition of what art 'is'. Artists don't do that. Trying to argue about what art 'is', amongst artists, generally stops after your first year in art school because the most popular definitions of art are self-reflexive (Dickie's "Institutional Definition" is the classic one). This self-reflexivity of Art implies that the definition of an Artist is also circular...which I'd suggest makes any sort of 'standard model' of the accepted behaviour of Artists difficult to pin down. To put it another way: in my experience, Art tends to be anything on the spectrum between “What Happens” and "What Someone Will Pay For". How to codify that as a field is nebulous enough. Now imagine creating, much less enforcing, a set of ethical labour practices specific to this field. And again, instead of these circularities being immediately thrown out as they would be in many other disciplines, they are seen as a part of Art's unique character as a field itself.
SF is in a similar situation as Barcelona, kind of. SF is 121.4 km2 while BCN is 101.9 km². SF is sea-locked on three sides while BCN is sea-locked on one side and on the other has mountains. As per the map, SF is mainly single-family housing while BCN is mostly multi-family housing (average is 12 homes per building). Population (in 2016) is 870k vs 1.6m.

If all those low density areas in SF were converted to high density, SF could grow a lot and housing issues could be plaited temporally (years?) but after a while it be the same thing, where there's more demand than supply.

Personally, I think having single-family housing inside a city is a waste of space but a city full of 30 story buildings usually is not very pretty. I like the Eixample, were streets are wide and buildings just the right size so there is plenty of sunlight, airflow and all that. Obviously if I were an owner of a single-family home in SF I would be against of converting my quiet, low-density neighborhood into all high-rise.

Tricky problem to solve.
Adobe to Launch Photoshop for iPad in Strategy Shift
interesting. which app stores are typically installed?
Can you explain why that would make a difference in the effectiveness of the policies?
It is also really easy to look over flaws when you work around them everyday. I used to be on the java hate train but now after using it daily I can barely remember why I used t take issue with it
If it's put in a message queue, use a 202 Accepted somewhere, if it's added with HTTP requests ? 201 Deleted only if deleted in real-time. Then check later for proper deletion on or push status of the job to the consumer. 404 as a success condition does not seem to be reliable to me
Dies that work offline or would I inadvertently feed someone's creepy database?
That is an interesting site. It made me think that the best way to avoid this tracking is to have the most common OS with the most common Browser and all default settings.

I am a linux and firefox user in Brazil. I am probably very easy to track combining this information with my geolocation and ISP.
Show HN: Alphanym, the API That Knows Your Name
That seems like a bug with the external system. 4xx means the request needs to be corrected to achieve success. 2xx means success, even if success means "deleted".

If a system treated 5xx responses as successful, you'd consider that a problem with the system's response handling, not a problem with your own communication of state. So why consider abuse of 4xx to be a problem with the communication protocol?
> Unrestricted RPC libraries then let you "solve" these problems in myriad incompatible ways each with their own problems.

I mean, this is exactly the state of REST today. It's not specified well enough to admit general purpose clients (like, for example, GraphQL does) because it's just a "pattern" not a specification.

Because every API has its own way of doing paging, subresource expansion, expressing side-effectful operations, etc it means every API has a corresponding custom-built client.

> Caching

Do these custom clients implement http caching? Not usually.

> Scaling

Arguably, REST is responsible for bringing about the rise of stateless API servers. We should be grateful for the good idea, and not feel compelled to adhere to the other aspects of REST if they don't suit our purposes.

> adaptability

Claims of additional adaptability in REST are usually talking about HATEOAS where each resource defines how it can be interacted with by providing links and semantic metadata etc. I will flat out say it: this doesn't work. Short of building some intelligent agent into your API client, hypertext will never be the engine of application state in any meaningful way. You can't just change the links and have the client magically discover the right thing. Fielding's thesis was talking about the web, where humans are the ones deciding which links to follow. It's a useless concept in API design, and it adds tremendous overhead for zero benefit.
What is your definition of a "cell-block apartment"?
I've been a long time fan of what this article is saying - but I didn't know it was a thing. Now if I ever run into CRUDdy teams, I have something to share with them :)
Wow great news! That makes Flutter even more exciting.
Many plans now have a co-insurance percent, so something like 20-80% is billable back to the patient after the deductible up to the out of pocket maximum (or Really Real Deductable as I call it)
> but they didn't tackle the root problem of GC latency

But they did. The new low-latency Java GCs are more sophisticated than Go's, and deliver pauses that are on the order of OS-caused pauses. The reason Go was able to achieve low latency with a relatively simple design is because 1. it suffers a hit to throughput and 2. that throughput hit, while significant, is not catastrophic because Go relies heavily on value types.
> Who are all these ComSci researchers who are most comfortable with these concepts and distinctions, anyway, and who are also designing web APIs?

More than you realize, I'm sure. There are plenty of industry people who can understand theses and other research publications. You can find them here, on reddit, on stackoverflow, and on lambda-the-ultimate.

> At some point, if you wish any real system to use your ideas, you need to communicate it in some way that explains it for a typical software developer.

That's what books and blogs are supposed to be for, but how many of these people do you think spoke with Fielding before writing about REST to ensure they got it right?

Fielding's emphasis on abstract concepts are because REST isn't tied to HTTP, or HTML, or XML, or JSON. He's trying to explain calculus to you so you can solve many problems, and you keep focusing only on how to calculate velocity given acceleration just because that's the problem in front of you right now.
> The grad student should be sole author because they're the one with the idea and the one who did the work but profs expect credit because they read a draft and offered some minor feedback.

> For some reason we're uncomfortable with the messy reality that almost every innovation or product is the result of some distributed, collaborative effort, and often really involves many people making small contributions.

These two points seem at odds to each other, why should the professor be given no credit?
What is HN's obsession with disclaimers? People are free to have their opinions for whatever reason they want and aren't beholden to explain why.
Thanks, that's a much improved way of expressing my point.
Course Review: The Complete Java Masterclass
Despite the architectural principals, it's named REST--REpresentational State Transfer. It's really hard to twist and contrive a situation in which "REpresentational State" is not CRUD. It can be done, but it's awkward. As soon as you're doing non-CRUD operations, it's really hard to model them as representations of state, and it's sometimes very unpleasant to use APIs where the designers tried too hard to make the peg fit.
This idea that are large and influential project like Python is just the same as a hobby project I put on github and do in my spare time is ridculous. I am pretty sure most of the core contributors of Python are doing it as part of their 9-5 job.

Then there is the implication that because they are doing it for pleasure, they don't owe anything to anyone. It's ridculous. This software affects millions of people and it's not a dumb hobby project.
The problem with "just build more" is that eventually you run out of space the same as now, only you get to do it with a worse quality of light / space / light / traffic / noise / etc. I wish more cities fought to maintain true pristine open space.

There is no housing crises. There is a concentration of jobs problem and a wealth inequality problem. The internet's winner-take-all nature has created a world where one office in one city can do what used to require more sprinkled out offices of different businesses. Couple that with too many rich people, who will always have more money to park in desirable places than we have time to out build, and you get people priced out of the "one place" they can get a job.

It's not housing. It's the structure of our economy. If you don't believe me, notice how every city in America right now talks about its "housing crisis". It's wealth inequality and job monopolies.
My mother is an excellent cook, but to be honest it took me until my 20's to prefer homemade mac and cheese over the boxed kind, simply because I had developed a taste for it as a child. And my mother, ever the pragmatic one, wasn't gonna waste her time making something from scratch when her worthless children preferred the cardboard crap.

I've done a full 180, and now I'm the pretentious hipster who refers to it as "Elbow macaroni with bechamel sauce".
Sleeping on my side kills my shoulders.
>>"Sleeping on your side with a small pillow between your legs is considered the ideal sleeping position."

What is the rationale behind the pillow between the legs?
This is exactly right and something that my fellow American Millennials can't seem to grasp. I do business in many different developing countries where a good wage even for skilled programmers is less than 10% of a normal silicon valley wage.

It really is the whole world competing for information jobs these days and while it will eventually level out, it's bound to cause wage depression in already developed countries.
Anecdata: I work within a large Scandinavian bank. I've met a lot of people (maybe 20?) from our Copenhagen office, but I've yet to met a single Dane among them. It's a mix of Eastern Europeans, Western Europeans, Southern Europeans, other Scandinavians Indians, Chinese, UK, US etc.
Yes, our team has migrated to GraphQL and it has been great, both on the front and backend.

We have a Django app on the backend and have used Django REST Framework for our REST API. That was a great experience, but had some limitations. We've written our new GraphQL API with the help of Graphene and it has been awesome. Everything is very declarative and exploring the API schema couldn't be easier using GraphiQL.

Implementing it on the frontend has been great too. Yes, you do have to specify what fields you want, but having complete control is worth the extra boilerplate. I'd recommend it heartily.
1 in 4 Tesla Model 3 orders has been canceled, analyst says
This can be done differently. In Madison, WI you cannot build above the capital building, but there is still lots of apartments.
Move Mirror: Pose Estimation in the Browser Using TensorFlow.js
I don't think this is an interesting thought experiment. You need not fully create a work of art to be an artist. Do you care that a photographer used a Canon DSLR, translated the sensor data to a JPEG using Adobe RAW, and printed using an Epson printer? No. The art is the photograph and the non-artistic tasks were farmed out to Canon, Adobe, and Epson.
Funny, I just implemented wkhtmltopdf yesterday (via ruby's PDFKit) for invoice generation. None of the issues listed are a big deal for our very simple use case, but I did have to rebuild docker images a bunch of times in order to figure out the right dependencies on debian. I couldn't find a canonical list of these anywhere. The binaries installed through apt-get are also outdated and didn't work for me, so I ended up using the wkhtmltopdf-binary gem.

These are the os dependencies I ended up needing: libxrender1, libxext6, and libfontconfig.

So yeah - the library is fine, but installation ux/docs could use work.
The last line of the article is "We'll be keeping an eye on weasyprint." I'm pretty sure that means they don't think it's ready yet, and aren't using it yet. It looks promising but they don't directly test it against any of their complaints!

I, like many people in this thread, have used wkhtmltopdf for years and it works pretty well.