skysight-inc/HackerNews huggingface dataset:
> the EU is the biggest economy in the world

Yes, the EU, or otherwise known as that giant land mass consisting of 28 different countries with unique economies.

Ironically, trying to treat each member state as some homogeneous member is what is leading to the fracturing and growing nationalism. UK won't be the last to try and break off.
Sounds like a "mud room". Or, is it something different? Wish I had one in my house.

So, if you have a mud room (or whatever), put a mini-fridge in it, and you're all set? (Well, added power consumption aside.)
Things I've learned transitioning from engineer to engineering manager
No, the function pointer is declared static. It cannot be referred to outside the current file.
> Shameless plug for my syntax highlighting library in Rust

was this really necessary?
From my own experience, the class scanning for finding all annotations is usually the bottleneck.

I believe that the last version of Spring (5) has a way to do the scanning at compile time now.
And tax deductible.
So how do you intentionally generate a core-dump these days?
Isn't that the pitch they make to the large contributors? That if they have $X of funds for operations they will be able to gather and deploy $Y funds for programs?

Surely the large contributors have some concern for that ratio.

Of course I think of matching campaigns the same way (as a gimmick). If you are willing to donate $10,000, why not blare out that you are matching $10,000 instead of just donating it.
What's stopping them, or anyone else, from trying this sort of thing again through an unidentified agent to circumvent the enhanced scrutiny that they would receive otherwise?

By making harder just for the NSA you achieve nothing but a false sense of security.

Instead the process needs to be more rigorous and scrutinized for everyone.
i wish i loved something or someone like this fella loves his guitar hero.
The proper place to put those checks is before the undefined behavior would be invoked, not after.
It's hard to trust that this is from a real "A-player" when it throws so many of my "not an A-Player but a genial bullshitter" flags.

- Poorly written and communicated, with faux-profound single word paragraphs

- 'Insights' that would look more at home on a wall decal ("It’s true that I resisted the negativity, escaped, and embraced the positivity and rode it to its potential.")

- "I used to think this way, before I became enlightened" style statements showing complete lack of self-awareness

- Article about a vague concept without defining any of the behaviours that go along with that concept

- Reference to 2x2 matrices (iron law of management theory: all of human behaviour can be collapsed into four quadrants)

- Sign up for my newsletter modal

- His own signature at the end of the post

Is there anything in his background that separates this from the low-grade shlock that pollutes my Medium feed on a daily basis?
Thanks for whoever down-voted but yes, I do.
rust programs have zero bugs, don't you know. and they practically write themselves in moments.
Ask HN: CS, Maths or some other degree for an experienced dev?
Yet about mermaid ...

As any tool it is good for its purpose. De facto it is a DSL (domain specific language) in the same way as Markdown or Emacs editing system in general.

It works if creation of graphs is what you do for living. But for occasional usage (say once in a quarter or year) people usually prefer Visio - you do not need to keep in mind (limited resource) mermaid syntax - just do drag and drop - actions common to all WYSYWYG systems.

Even with Markdown - each site has its own conventions - that's why occasional users prefer WYSIWYG if it is available.
> Would be nice if Google didn't limit the visibility of a book published in the 17th century.

This book was published in 1959. It is copyrighted by Cambridge University Press and is a translation by G. W. Sargent, with introduction and commentary.
It doesn't mean he should be cruel, it just means he is statistically more likely to be cruel.
As an example, I once reverse engineered encryption for data files in a game. Took me about three weeks to determine which encryption algorithm was being used, and what the key was (including learning some ARM along the way).

But I was fortunate in that I could run the game in the debugger and see what was happening, the path from reading the data to decrypting it was rather simple to figure out, and the algorithm was pretty easy to spot. If I were to reverse engineer the actual asset formats I'd imagine it would take months as you need to know how everything is tied together in order to make sense of what is happening. It looks like in the case of guitar hero, this guy has spent an extortionate amount of time reverse engineering everything.
> ...because more modern languages are doing this out of the gates and with far fewer hacks and more out-of-the-box tooling (e.g. Rust)

Haha...I love Rust, but you must not have been following the recent saga over modules in the community. Two things became abundantly clear:

1) There are definite issues with the current way that Rust does modules and they create problems for newcomers that don't know all the intricacies.

2) There's very little consensus in the community about the best way to fix those problems.

Initially, a couple of different, somewhat major proposals were made that would largely overhaul the system. Over the course of a few iterations, those were whittled down to a few, much smaller changes that mostly keep the current system but remove some of the stumbling blocks. It's a credit to the Rust team that they've handled it in such an open manner, but it's also creating a bit of a "design by committee" feel that's probably going to create something that everyone can live with and very few will think is close to perfect.
There's another thread about this where multiple replies say that the situation with SF is different now.
The source of that article - https://www.nakedcapitalism.com/2016/11/can-uber-ever-delive... - makes no sense to me.

The cost of sales and operating expenses seem non-sensical. What are Uber's cost of sale? What are it's operating expenses? How are they different?

If Uber takes a 20% cut, the only cost of sale I can't see is credit card costs. Everything else - including servers - is just an operating expense.

More than likely the lifetime value of a ride sharing customer is huge, so rather than subsidising riders, they are likely front loading acquisition costs, and hoping to make it back in lifetime value. That seems to me a pretty darned solid strategy.
Our El Dotart, and his old fat friends, probably won't be alive long enough to realize any long term economic damage due to these types of decisions. What motivation do the self-centered have to think beyond their lifetimes?
Well why stop there? How about we combine the Anglosphere and call that an economy? What about NATO?

Furthermore 320mm people in the US versus 600mm in Europe? I mean, if you want to do that comparison I’d take the US economy all day.
Companies like Uber and Deliveroo have become a full-time job of last resort for many people, even though they may have been intended only as part-time gigs. Isn't it technically society's fault, and not Deliveroo's or Uber's, that no other full-time employment exists?

People working in the gig economy deserve a safety net and also deserve better pay, but you can't solely blame Taskrabbit, Uber or Deliveroo for these issues.
Awesome material, thanks!
The US has the biggest national economy in the world. It has a central government than can wield that economic power for its own purposes.

The EU as a singular entity can do relatively little with its members' wealth, which is why measures of that wealth aren't very meaningful.

It's like saying that Asia has the biggest economy in the world. Well yeah, but large chunks of that economy are segregated from one another along national boundaries.
The story is of course about anything but laundry but I would have imagined industrial cleaners to not just stack more or less normal volume washing machines.
why did you do that?
Realtime AI Is No Longer a Myth
Because, after inlining and macro expansion and other passes, you'd get warnings about everything under the sun and they would be useless.
What's wrong with academic economics?
Nothing, they just managed to convince more investors to continue pouring tens and hundreds of millions in the hole of their losses, while others were rightfully let to die.
I guess the distinction is that the US is a single country?

Also, it seems there is a notable body of work out detailing the shortcomings of the US economy. At least in the US, it is thoroughly documented.

Maybe, because the general consensus is that the US is doing so poorly, this piece meant as a simple reminder to Americans that we are not completely doomed.
They serve 10% of the internet traffic and have over 1 billion users. They receive more than 5 million requests per second in average.
It is awesome that a paralyzed GNOME developer was able to submit a patch. However, GNOME was not accessible from the first commit, or even the first major version. GNOME is not yet %100 accessible, and if it was illegal for GNOME to be published before it was ADA compliant, than GNOME would not exist at all.
The plantation economy developed in the southern states, and the initial political dominance of Virginia (which provided four of America’s first five presidents) ensured the continued survival of slavery in the newly independent country. By 1860 auction prices suggested that the collective value of American slaves was $4bn at a time when the federal government’s annual budget was around $69m. That explains both why southern slaveowners, many of whom had borrowed against their slaves as collateral, would never give up the practice, and why a financial settlement of the issue was out of the question.

I guess this too would be an example of the 'banality of evil'.

(btw to get around the paywall just clink on 'web' to find it through google; it'll let you read it if google is the referrer)
abort();

https://linux.die.net/man/3/abort
I don't understand how it can possibly be the case that google doesn't have to produce data under a valid court order because, well, they don't feel like it. If the data is in google's possession -- which it is -- then google needs to produce it. I understand this is not necessarily great for google's businesses abroad... but it remains ludicrous for a US corp to tell a US court to piss off.
Depends what you think the lifetime value of a customer is, plus what the ongoing cost to retain them is.

I ordered off Deliveroo in Sydney Australia, and they advertise on AdWords against individual restaurant names. If the Diliveroo brand is strong, and that AdWords click made me a Deliveroo customer, that is a win. If I always search and they always pay, this may prove problematic long term.

That's the equation - if $X upfront + $y ongoing < lifetime value then you have a chance at profitability, assuming you can get overheads under control / can scale up the offering with minimal growth in overheads (the classic 2X revenue, 1.5X costs model).
The EU in many ways acts like one big economy due to its customs union, freedom of movement of workers, capital, goods and services, extensive harmonised regulations, partially harmonised taxation, wealth transfers between members, a common currency to a substantial part of it, etc. It is a lot more tightly integrated than some mere 28 member free trade area would be, although still not as tightly integrated as say the 50 states of the US are. (And the 50 US states all have distinct economies from each other, with sectors that are big in one state being small or even non-existent in another.)
We are both describing the same thing, you end up with "agents" spread on various systems to collect the metrics you are interested in, which is the point I wanted to outline.

They can be called agents, exporters, collectors, whatever, the name is not important, the design pattern is.

A system that would be exclusively pull-based from the prometheus server does not work practically.
In this context, it's the network-wide version of a stack trace.

Instead of just method calls in a process, you take a top-level (HTTP) request and see all the various upstream service calls and their internal logic involved in completing that request. Useful for micro/multi-service based architectures but you can trace anything because it's a standard output format.
That's great. Looks like a good alternative to http://lanyrd.com/ Lanyrd got acquired by eventbrite and is stagnating. Last week the site was down for a half a day.
الربح من الأنترنت , أربح $30 من هذا الموقع
What it’s like to compete on – and win–Food Network’s “Chopped”
Yes, that's why I said usually. It's also why I said, you can take it slow if you're concerned. And something that would possibly cause data corruption is a good thing to take more time with.
What’s new in Whitestorm.js V2
What you just described sounds a lot like Peter Drucker's description of management:

"Management is about human beings. Its task is to make people capable of joint performance, to make their strengths effective and their weaknesses irrelevant."
No mention of an incredibly wealthy continent, both in mineral and agricultural terms (and a temperate climate), that was largely seized by killing the people who owned it and taking their stuff. No mention of the Louisiana Purchase. without which 'Manifest Destiny' would never have occurred, nor the Mexican-American war which added Texas and California, two of the engine-rooms of American wealth today. No mention of the point that once 'manifest destiny' was complete, the US was safe on all sides - much weaker countries to the north and south, and giant ocean-sized moats to the east and west; rather than deploy military in defense, it could be used to project power in support of the economy.

All of these things are pretty major additions to why the US is such an economic powerhouse today.

Edit: wow, I've really touched a nerve with this one. Enough to get some revenge downmodding on past comments of mine. Wow.
> ...the first example "encapsulation" demonstrates exactly no encapsulation.

It demonstrates a kind of getter, but a weird one since it returns a mutable field. These are not the most encapsulated thing.
Emoji for recycling
I turned down a graduate contract in London for £30k, going up to £40k after two years, to be at the BBC. If you want to work at BBC D&E, you accept that you're not going to get a competitive salary. But in return, you get very relaxed and laid back working conditions. (Or so people tell me. I haven't worked at any other large software org to compare.)

Someone I know, who is now a principal dev, was previously a contractor for the BBC. He decided to leave contracting and join the corporation permanently. He's one of the most amazingly clever developers I have ever met.

(But yes, we'd all still appreciate it if we could be paid more.)
I mean the core delivery service assuming 0 marketing, tech, customer service costs is not really profitable according to their last accounts.
so you are comparing a country to a union of countries to demonstrate that one country is not equal to 28... Here is the funny thing: depending on how you look at it, the US is still bigger than all those 28 combined. So no it's not a myth, it's just you conflating two different things!
Ask HN: Coffee table books
I was wondering what coffee table books people could recommend that would be relevant to the HN community? Aside from the obvious "Designed by Apple"
It's pretty normal when you consider that google is 10 years ahead of almost every other company when it comes to infrastructure.
Honest question: How much of it is thanks to the US being far away and largely untouched by all the wars in Europe, especially WW2, while still ostensibly profiting from them?

And then being the ones to end it with the strongest display of force?
Bases on Apple's track record, and the rumors that X was rushed, I expect X to have its fair share of "first generation problems".

Hence, if money is not an issue, my recommendation is to get X with Apples upgrade program; you get apple care+ and in one year you can return your phone and get the Xs.
Wide open, indeed. For those who don’t know:

- no memory protection.
- system support for patching OS calls.
- no distinction in privileges between application and OS code.
- when mounting any disk, the OS opened a resource file on it
and kept it open. Side effect was that the OS would look for
code fragments defining windows, menus, and controls in that
file. That file normally didn’t contain any, but adding a
malevolent one to that file would mean the OS would run your
code as soon as any program created a standard window, menu
or control.

(That last part was fixed after a virus exploiting it was found)
Which isn't too different from the US. There is California, then... not much more. East coast and west coast is basically a different country.
We're trying out Medium as a blogging platform because it was seeming like the BBC Internet Blog wasn't reaching our intended target audience any more. Better to go where your readers are than expect them to come to you.
The simple way to do this can apply if you're mostly doing things in the context of a user. Write the change to check if a hash of the user identifier is less than a target; increase the target over time.
I agree. Although we like to think of them as psychopaths, people who do evil are mostly pretty normal people.
I don't think something needs to be common in order to be protected against.
The improvement is good, of course, but isn't the whole thing a bit of a straw man? The previous version taking 55 seconds on a Pi 3 seems utterly unacceptable to me, it's actually a pretty capable processor, and even a 15 second startup is pretty slow. Why put up with that when there are modern options (Go and Rust spring to mind) which would do so much better?
While everything you said is true, I think the gap in homogeny of economies between the EU and the states of the US is much much larger than you make it sound.
It's a book review, not the book itself.
I think in the encapsulation / content example they missed the possibility of creating an explicit block on your own. I believe something like this would solve it:

let new_sum = { calculate it from self.content() }
self.sum = new_sum;

Since the sum value itself doesn't borrow anymore.
I would guess and hope that the book covers those topics. Very good points.
Well, this is a one column review of a book that's 576 pages. :)
It could happen, it just couldn't come out of the blue. Someone would probably need to pay for a nation-wide awareness campaign (the irony) about the evils of corrupt charities such as The Red Cross or Susan G Komen.
When I write Rust I tend to do so using functional/procedural patterns instead of object-oriented ones, and it doesn't seem like I run into issues like the ones described here very often.

Much of this write-up seems to cover things that were/are complicated because of OOP's tight coupling of state and actions on that state & the intersection of that with the additional constraints and controls Rust places on state management.

I'm not entirely sure which style/patterns are more idiomatic. I just know which ones keep me out of trouble.
Very good point. I added a whole section to the article, implementing the counting lines example with `make -j`,
which performs just as well as `xargs -P`
An infrastructure for charging electric vehicles takes shape
>> It seems only last week it was called Ethereal and only last month when there was nothing really available to do packet capture and analysis that didn't cost a kidney.

Ethereal was released in 1998, and changed the name to wireshark in 2006 or 2007. Doesn't feel like last week to me, but then again different people, so different perceptions.
I went to a state school and worked, epecially in the summer when I would pull OT every week it kinda covered rent for the most part and that was it. If I had worked enough to pay for tuition as well it would have gone past inconvenience and become close to impossible to accomplish while also maintaining grades. Going to community college first was a smart idea and I recommend it to anyone thinking about college, but at least when I was in the school system we were actively told not to endager our future and go to "real" school instead. We can't expect children, in significant numbers, to be able to see past the advice being given to them by their elders.

Ah you graduated in 2007, it did indeed change drastically after that. The next year the recession hit and schools everywhere had massive price hikes. My school saw a 12% hike in one year and the price went up almost as much every year after that. IIRC some state schools in California saw hikes near 30%. None of these hikes have been reversed and the price has just gotten worse and worse every year.
Inertia. It's very hard to replace infrastructure.
I don't know if it's still a problem with Spring, but at a previous job about 8 years ago I was able to cut our application's start time from about 80 seconds to ~12 by writing a custom implementation of the logic that Spring used to find bridge methods to determine the proper annotations. We profiled the startup and found that over 80% of the time was being spent in reflection to resolve those bridge methods and that could be done significantly faster by using asm to load the classfile bytes and resolve the bridge method by looking directly at the invokevirtual call. Spring avoided this approach because it could fail in situations where the SecurityManager prevented filesystem access.

I don't know if that's still the case, but it always bugged me that Spring would slow down the >99% case by so much just to accommodate the <1% case.
Given that 400+ years of growth has got us into a position where the likelihood is that the planet will be unable to sustain human life within a few hundred years, I'd be curious to find out what future historians will make of the West's supposedly proud story of progress.

In the end, would we all have been better sticking with the Native American way of life? Benjamin Franklin: “When white persons of either sex have been taken prisoners young by the Indians, and lived a while among them, tho’ ransomed by their friends, and treated with all imaginable tenderness to prevail with them to stay among the English, yet in a short time they become disgusted with our manner of life, and the care and pains that are necessary to support it, and take the first good opportunity of escaping again into the woods, from whence there is no reclaiming them.”

Perhaps some kind of voluntary winding down is necessary. "It was good while it lasted. For some people."
No Clojure?
It's (probably) true that it's a bug in the program, but the sane behavior would be for the program to signal an error resulting from an attempt to dereference the null pointer.
The function called at program startup is named main, which this translation unit defines. No other may therefore define it. Binaries that don't run main are out of the scope of the standard, and so irrelevant to the discussion.

Anyway, as a more general point: your argument is, basically, "the customer is wrong". But the customer is never wrong! Therefore your argument is invalid.