skysight-inc/HackerNews huggingface dataset:
For anyone reading this thread and thinking about server side rendering their single page app: do not go down that route unless you’re willing to also implement proper chunking! If you SSR your pages, but still need to load a giant bundle, you will get the worst of both worlds: a page that looks ready, but makes your users extremely frustrated because they can’t interact because your app isn’t booted yet.
“Workers say the warehouse jobs are grueling and high-stress”

It’s a warehouse job constantly on the move, stocking and filling orders. I’m not sure what expectations employers have or why they are surprised. I wish the article went into this a bit more to explain the disconnect between expectations and reality. It sort of touches on how it’s not information work, but do these areas think that fulfillment centers employee the same as engineering sites? Or if they did, they would hire unskilled labor?
I would hope in those situations it would just stop and not disengage.

It should remain in control until commanded to disengage. After all, blocked roads will be freed at some point and even if they don't it is the AI's problem to get itself out of any trouble that it got itself into. And even if a blocked road might seem to be free of safety risks that doesn't mean you can abandon the car there, you're supposed to stay in control of the vehicle until it is parked.

The only situation that I can compare disengaging with is when there is stopped traffic in the mountains and the snow moves in, that's one of those situations where you might be ordered by the authorities to abandon your vehicle and seek shelter (assuming this is possible and not less safe than staying with the car). Those situations can take many days to sort out afterwards. But in almost all other situations that normally would occur you should stay in and in control of your car, so I'd assume the same would go for an AI based system.
Sure, the world's resources are finite, and we will hit those limits "eventually".

But the burden of proof is on the doomsday predictors who claim that doomsday is right around the corner, when all actual evidence shows that things are going great right now.

China and India are NOT bursting at the seems. Quality of life is better there than they have ever been. Quality of life is still going up, and it is going up like crazy in those places.

You can look at any quality of life metric at all. Mortality rates. Access to fresh water. Diseases. Hunger levels. Life expectancy. They are ALL getting better. And they are getting better by leaps and bounds.

No, not just in the west. In poor countries and the third world.

Evidence that they are having problems, would look something like "hunger is going up, and quality of life is going down." but that isn't happening.
> Advanced meditators are able to be vividly conscious in dep sleep.

How can that be known except through self-reporting? At least with lucid dreaming, experiments have shown communication from the subject via eye signals[1]. Has a similar thing being done with meditators?

[1] http://www.historydisclosure.com/scientific-experiment-prove...
Github (and probably some other code hosting sites) should really more prominently display download (clone) stats like NPM does. Only seeing "last commit: 6 months ago" for a perfectly relevant library can make people think they should look for something more "active". I mean... probably :)
The all-time-high was December, so anything issued after that didn't help in reaching it.
The point is you probably could have said that on any date in the last thousand years! They have been fighting tides and subsidence the entire time... the time integrated wealth there is astounding. They have been "building" giant dynamic sea walls for decades although beimg Italy you never know when they'll finish.

https://en.wikipedia.org/wiki/History_of_the_Republic_of_Ven...
This isnt a problem with SPAs per se, just a problem with the app's design.

You can split SPAs into multiple apps that communicate. The main app would be loaded on open and the rest of the source could be pulled in when needed.

React is not the cause of slow loads, your architecture is.
>I can't tell you how depressing it was to see 20 and 30-something athletes living in the dorms there, striving for their moment of glory while everyone else was out having fun, working, starting families, etc.

It might be depressing to YOU because it's not what you'd like for yourself but that doesn't necessarily mean that it's depressing for the people living it, after all, it's what they have chosen. Not everyone is exactly like you and wants the same things in life. I see people living their lives in all sorts of ways I would consider absolutely awful and depressing, but I don't project my values and goals on them.
I still have to meet the user who will ever click “No” at one of those prompts.
No, I replied to a comment which might have been removed or downvoted from visibility.
When your territory is saturated with pollution, rainfall is not going to help.

Air is already a problem is some parts of China. So water ?

They will eventually need to choose between their industries and water. And they will choose their industries. Their gov knew this, and made a bet on Tibet.

Now, because India gets most of Tibet's water, they had to hide the plan behind something that made sense. And they did had a problem with part of the Buddhist community, so they killed 2 birds with one stone.
Yes, I can confirm that.
They probably can't afford the risks of a major commitment. And a major commitment may be required to succeed. Some things you can't pursue part-time or self-taught, and there may also be a critical time window to start if you want to succeed.

This is smart, because pursing some dreams could ruin you financially if it ultimately doesn't result in a paycheck. Your starting place in life has a big influence on how far your efforts will get you.

So I'm glad they don't recklessly try, because trying to accomplish a dream and failing doesn't keep you fed or warm or dry.
My main memory is one of the animations in the 2D version looked vaguely like he's giving the finger, and we'd right click -> animate to cycle through looking for it.
Graham Hutton, one of the authors of the original paper, also wrote a wonderful book "Programming in Haskell". I would wholeheartedly recommend it to both the programming novice and the experienced programmer trying to learn Haskell and monadic programming.

Chapter 13 of (the second edition of) that book also revisits the original paper from a modern viewpoint and overlaps with the current article. For example, both the book and the article mention the similarity with the state transformer, introduce instances of 'functor' and 'applicative' before the 'monad' instance, and discuss the 'alternative' instance.
Negative generalizations are, at best, tangentially related to racism. Racism is most fundamentally, "I think blue people are better than green people, because they're blue." Speaking negatively, or positively, of blue or green people would not be racist. Refusing to associate with any green person, because they're green, would be racist. Considering a specific blue Nobel prize winning nuclear scientist to be dumb, because blue people have a statistically lower IQ on average, would also be racist. Observing that mentioned IQ difference and considering that it would be expected to result in a lower than average distribution of aforementioned Nobel prize winning nuclear scientists, would not be racist.
Agreed. People already live quite long, so immortality would take a very long time to make a difference with how things already are. If the first person to live 150 years is twenty years old today, he will reach that age in 130 years, that is in 2148.

I believe that in 2148, the world will be vastly different than it currently is, and to a degree we can't even imagine. So to me the desire to be still alive then sounds naive, even futile.

I understand that from a subjective point of view, and especially to people who fear death, immortality is of prime importance, but in the grand scheme of things, it's just a detail : paradoxically it does not matter in the long term because its effects take too long a time to manifest.
The queue is given the command. The command has the functions I want to run, including the context and what I want done with the result. It can be a closure right up to a full class.

Using a framework like Laravel I can even "chain" queued commands - so CommandA will queued, then call CommandB when it is done etc.

I've never run into a situation that wasnt easily solved by this.
What is a more libertarian solution than a tax? It's a price signal to the market to reduce consumption. I can't think of a more hands off approach. Everything else I can think of involves expanding beurocratic oversight and allowing the political class to choose winners and losers. To me the knee jerk anti-tax attitude of many people is a mental shortcut for people who don't have the attention span to actually think through ideology and economics.
Nope, never had WP on my machine.
Generic automatic vectorization remains very much an unsolved problem. Outside of very specific cases, even modern compilers very much suck at it. That's why most vectorizable libraries have hand-coded SSE/NEON assembly blocks. I would not expect a JIT, which has to be fast, to have time to auto-vectorize anything at all, much less to do it well.
The problem is even content is becoming functional with interactive charts, infographics and figures, videos, media, filtering, sorting - then the site will eventually need comments, ads, subscribing, favoriting, upvoting, login, lazy load next article, infinite scroll, etc. Yes, a pure content site shouldn't be an spa, but how long can you survive running a pure content site? Information is complex and the web allows us to communicate it more richly than the static 2d representations of old.
Surely if you can't produce an SPA with equivalent or better performance than a more traditional architecture then - don't build an SPA.

Or even better use a simpler solution that gives me 80% of the benefits of an SPA: Turbolinks, PJAX, intercooler.js or even a light sprinkling of good old AJAX.

Does anyone remember "progressive enhancement"?
Do this at the LLVM level and you get way more languages for free.
> In 2018, companies are expected to do the right thing.

What? They're only expected to make money.
The jargon file describes the different usage of daemon, demon , and dragon: http://www.catb.org/jargon/html/D/daemon.html as it pertains to computing.
>I always wished js was sync by default

I am confused by this. JavaScript is synchronous and blocking by default due to its single-threaded nature as far as I know?

Sure, async will yield different behaviors for functions than without that decoration but that's a very new language feature.
What if the choice as a consumer is between two products, one of which costs 20% more than the other but gives employees a better life?

It's a somewhat hypothetical question because markets will usually push the more expensive manufacturer into a market niche with fairly heavy marketing costs to sell their ethical USP. The trouble is that prices don't necessarily price everything in; you don't know how much misery you're buying when you hand over your cash. Child labour, sweatshops, corrupt resource extraction in despotic regimes - real externalities disappear when you only compare on price.

People agitate to change the game, since the market is inefficient at solving this problem. Either they lobby to pass labour standards laws, or they unionize. The trouble then becomes arbitrage: unscrupulous employers don't want their negative externalities priced in, so they switch to labour elsewhere, taking advantage of beggar-thy-neighbour strategies employed by other regions and countries.

As long as there is free trade to anywhere with lower standards of life and labour, work will tend to migrate towards it. The risk is that competitive regional strategies will keep labour oppressed. The alternative is regional and international pacts, much like the EU, that try to prevent this kind of arbitrage and "regulatory dumping".

Of course nothing is perfect. Unions can themselves be corrupt, politicians can be captured by labour action groups, and consumers can suffer. Regional and international pacts can use their mechanisms that enforce fair competition to favour local businesses over remote businesses, or entrench monopolies. There's no panacea.
It seems like the smartest way to prep for these demographic shifts is to buy renewable natural resources- timber, real estate, etc.

Just get lots of money that keeps getting bigger and outrace demographics. This has worked for family wealth for thousands of years.
That's a very interesting perspective! Any particular reads inspired it?

Though I think "imminent mortality" is not the only thing at the foundation of age-driven conservatism. I think there is also tendency to follow paths of least resistance (energy conservatism): learning/discovering new ways of doing things comes with more friction (if one does not enjoy the learning/wandering process).

EDIT: I just realized that the two points are really intertwined. Time conservatism is closely related to energy conservatism and cannot be regarded in isolation. (forgive the awkward terms)
[SHOW HN] New ethereum dapp Blocklord just launched, thoughts?
"Sure, in a modern office you won't come across many such people (amongst other esoteric examples). But there's a counter argument here - forcefully introducing additional bureaucracy by proxies is just as hurtful, if not more."

Who said anything about bureaucracy? It all could be lean and agile - but with tasks such that people could concentrate on the value adding tasks. It seems more efficient to hire less people to do n amount of tasks but what happens when the productivity of those people plunge?

As an extreme example, we in finland use the public health services a lot. Every time I go there, the doctor fiddles about on his computer doing this adminsterial task and that. It would be much more efficient if the doctor had some secretary who could manage the bureaucratic fiddly bits and let the doctor focus on medicine.
So you start with PHP, and you keep adding hacks on top of hacks, until you realise it's hopeless. But you're too invested, so you create a new language that is kind of compatible, and a JIT for good measure. Of course, I hope you got really successful, because you'll need serious engineering talent and money.

No language/tech stack is going to ensure success, or have no challenges. But learning from the past is not a weakness.
Do you really think a reasonable solution for deep space travel is to spend centuries in a spaceship? Don't you think some kind of suspended animation would be preferable?
What's chunking in this context?
It really would be nice if Apple had some rack-mount servers again for all the companies needing build farms for iOS apps.
Like anything else it depends. JWTs are still great. Just don’t treat it like a classical session and dump important information in it.

You could also use session like you always have if the SPA is being served by the same server.
Signed Malware
>no native type hinting

True, but you can use TypeScript, which I expect is more advanced than PHP's typing.

>no native filter map reduce on hash table

What do you mean by that? There is Object.keys/Object.values/Object.entries.

>no explicit variable import into scope

What do you mean by this? You can import a variable from a module.
Use typescript or flow if you want types.
From the reddit launch post:

Blocklord is Ethereum's 1st Decentralized Planet Earth where every corner of the planet has been tokenised on the Ethereum Blockchain, and can be customised and traded.

ABOUT BLOCKLORD Blocklord subdivides and tokenises every corner of planet Earth. You can own, customise and trade blocks of land on the blockchain.

Each token, or block, can be personalised with image, text, a link to your personal or commercial website an so on.

You could own Times Square, the Tour Eiffel, your office or the place where you met your significant other, and customise each block to your liking, leaving your mark forever on the blockchain.

Blocks can be re-sold or rented out to tenants who might want to temporarily advertise on your blocks, generating real world income.

You can earn value in 4 different ways. 1) You can decide to resell a block for a price of your choice (e.g. you buy for 0.1 ETH and can sell it for 0.12ETH for 20% profit) 2) Other players can decide to buy you out without your consent, they would need to pay at least double what you paid for, this is to retain liquidity in case somebody bought, say the White House, and then decided not to play the game anymore. 3) You can rent your block, for a daily fee another player can decide to put their data on the block. Imagine a coffee chain would want to advertise a campaign on the blocks where their premises are.

What do you guys think? How would you use it? Any feedback would be great!
Well please let me introduce you to some of our clients that click "no" to the "[b2b app] is requesting permission to use your camera to scan barcodes" about 40% of the time according to our analytics...

But in all seriousness, I agree that it's far from perfect, however I still think there is a way to allow the possibility without almost completely giving up on security.
It isn't binary. I like my work, work long hours, don't own the company, and am treated well. I'm lucky, of course. But not every such situation is exploitative.

I watched a talk recently where Ivan Sutherland approvingly quotes Fred Brooks as saying "I don't plan to retire, I plan not to retire."

p.s. Please don't use allcaps for empahsis on HN: https://news.ycombinator.com/newsguidelines.html
Breaking down your JavaScript bundles into smaller files that contain the code necessary for the route you’re actually going to be viewing once the page is loaded. For other routes, you fetch the necessary code on-demand.

This lessens the CPU power and bandwidth needed to initially load the page.
Thanks a lot for sharing. I personally don't use Snapchat but I would love to see what this is about.

Can you post some screenshots or a video?
Competent staff for our non core product lines, or kill them off.
Do credits have a good track record anywhere? My assumption is that the system will develop leaks and exceptions.

Taxes do have a track record of being applied successfully.

If regressivensss is a concern, you can either cut another regressive tax, or implement some kind of carbon dividend.
I'm not sure which society you are from, but it's pretty clear that we here do not have a healthy society.
>I'd about say the opposite.

>Organizing...into meaningful classes and keeping the whole thing...orchestrated is very much the essence of programming

>Filling in some templates causing magic to happen behind the scenes on the other hand, not so much.

I'd agree and add that the different perspectives might be in large part due to the shift in programming away from procedural/code to declarative over the last decade or so. That is, if you started in coding over the last ten--and especially five years--you're much more likely to think of programming as declarative as much as code-oriented.

And, the shift towards frameworks is probably the biggest driver of the declarative trend itself.
10x faster in, say, Go? Are you sure? Have you benchmarked it? You might be surprised.

Lets pick a weakness of Ruby: tight loops and lots of math. Take 16,000 GPS points and calculate the geographical distance to another point.

On my machine it takes 12-14ms in Ruby and 4-6ms in Go. That's only a little bit more than twice as fast! Almost certainy not worth re-writing your entire app for.

I've worked with a bunch of large, legacy Rails apps. In between a couple of Rails jobs, I worked on a large .NET app, which didn't have much better performance. One service I helped migrate from Rails to Spring/Java for an enterprisey client actually got slower overall, despite moving to the JVM.
> But learning from the past is not a weakness.

What's the lesson you are learning from?

The lesson I see is that any language, even PHP, will give you success if you "build something people want".

I read lots of startup "shutdown" stories - and I've not read one that mentioned the choice of "PHP" (or any language) as the reason for shutting down.

So if your comfortable with PHP - punch out what you need to get started...
I’m not convinced. It does that for a high percentage of the population. However, after a period, the smaller percentage of the population that don’t reduce their birth rate will become increasingly dominant.

Current examples are the rapid growth of Orthodox Jews as a percentage of Israel’s population, and evangelical birth rates in the US.

My bet is that given technology to allow massive extension of fertility into older age, the fertility differences between religious groups that believe in a religious duty to procreate, and everyone else, will increase even more.
A laptop with powerful external GPU is also a nice way to have quite portable VR setup
New to snapchat, how does one see the QR code, I've opened snapchat and put my camera near code but doesn't do anything.
It's a good idea, but I don't think that it will stop being influenced by ads.

Human behavior is contagious, and advertisers know that. That's why actors in commercials pretend to be just another person like the viewer while lying about performing some action or behavior that the advertisers want the viewer to copy. I don't think that it's possible to suppress that behavior-imitating instinct completely. Humans are generally not very rational creatures -- not even the self-proclaimed rational ones.

Many ads are not just about some product that one might really need, like a keyboard or other equipment that is essential for a person's work. Many ads I see are about junk food, bad lifestyle choices, and trying to convince the public that bad entities are actually good entities (example: greenwashing).
I think this article is a bit pretentious. The authors far flung similies create an air of moral smugness. Not a fan.
> For the majority of us, there's absolutely no value in ads

They do give value, they allow sites to operate without some subscription or entrance fee.
Top down management. People who have no understanding of the process dictating how many people are supposed to do it. And adding useless tasks that secretaries could handle to the professionals task list, because "computers can now do it". Which, what anyone who has worked with computers, can tell that is horseshit. A menial task is a menial task and will cause interruption of flow no matter what. And, since the expert is not so good at the typist thing, it will actually take a lot more time for him to do the typing.

So, we have, the time the expert uses t_e, the time of the secretary t_s, and the multiple of time that the expert will spend on the secretaries task. At high enough multiple of cost it would always be cheaper to have a secretary to do the typing. And, it's not only the wage difference. There is also the cost to the organization for not implementing all of the workload that they could implement, if all of the experts were firing on all cylinders. Especially in public health care these negative externalities can be considerable (I imagine).
Depending on the type of work, setting (office, remote) and circumstances, tools like Slack become necessary. And when collectively used well with agreements, it becomes valuable. The tool is not the cause, I agree.

Getting off Slack was an experiment to surface its benefits and drawbacks. Although I am content with being offline that does not preclude a scenario where I check Slack once or twice a day, as I do with email. The onus is on the user to manage their tools.