skysight-inc/HackerNews huggingface dataset:
Ask HN: What is your favorite reputable build system, and why?
With the ongoing discussions of polyrepo vs monorepo, I became curious as to how build systems of these repos are managed. It occurred to me that my project is still a bit in the stone age compared to work at FAANG type companies, as we use handwritten Makefiles across the entire repo. However, it is a very old source tree (15+ years), only worked on by very experienced developers (10+ years).

I found a simple overview of some current build systems here: https://medium.com/@julienjorge/an-overview-of-build-systems-mostly-for-c-projects-ac9931494444

and was reading up on bazel as well, though it seems to be still in beta.
https://docs.bazel.build/versions/master/bazel-overview.html

My experience so far has been:
1. Makefiles - yes, dependency management and listing dozens of files is a pain, but I like the syntax and the directness of the system. Scaling can be a bit hairy if not properly managed
2. CMake - dislike the syntax, love the templating ability of "configure_file" to inject paths into built files.
3. SCons - just too slow. Best syntax of the build systems I've experimented with so far though.

So HN, what are your favorite build systems?
> Surely a de facto dictatorship like this shouldn’t be so wealthy and successful[...]

It's also worth noting that the entirety of Singapore just barely exceeds the area enclosed by Washington DC's beltway.

Whatever their form of government, small city states are always going to be able to avoid many of the pitfalls of larger countries. There's effectively only one level of government to deal with, and the despot is always going to live down the road from you and need to use the same public services as you, so you don't get the sort of disconnect e.g. Rome or the British Empire had from its provinces or overseas holdings.
A Survival Guide to the Either Monad in Scala
It's interesting that you cite factory or construction workers. I'm a first-generation college graduate, who grew up around skilled (and unskilled) labor. I've never heard of this being prevalent, even from old-timers discussing how things used to be way back when. Quitting time is one thing... but the last environment on earth in which you'd want to drink alcohol is around power tools or heavy machinery!

My own first thought was "Mad Men"'s portrayal of privileged office workers in the mid-20th century.

Of course, my second thought was my own office in the present day. Has this culture ever really gone away? I work for a tech startup, and there's a fully-stocked beer fridge and cocktail bar setup at all times. They're one of the first things that recruiters show off when I go on interviews to other similar companies.

Every single company event, or small group outing, basically revolves around alcohol. I'm not a teetotaler, but I am a parent in my 40's who has kinda lost interest in drinking, and I'm starting to feel alienated by that part of the industry's culture. I don't want to feel like I have accept the beer you're offering me in order to fit in with a team, or give up my evening with my family to go watch you stand in a circle and get shit-faced in front of your co-workers.

This is 2019, in our own industry.
Having fun with your Twitter using Python
> Community funded. Pure mine. Rust, inflationary economics, cuckoo cycles. No governance, but that is debatable. Small team making decisions. What is that?

Somebody has to do the work to bootstrap and develop the network. Whom do you expect to govern the project? Governance meetings are public, bi-weekly, in the Gitter Lobby chat, you are free to join.

Also since I am into nitpicking, economics are inflationary for the first couple of decades gradually switching to deflationary (1 grin per second forever).
Are We Ready for the Future?
This is interesting to me because something like this only works if there are lots of tests and they can be run after every change. If you rewrite code constantly and potentially create new bugs by e.g. not understanding edge cases previous developers put in, then this isn't feasible. With a focus on testing this becomes practicable.
I really wish there was a platform to find top experts and ask them questions. Surprisingly enough, Twitch is one such channel. Jonathan Blow streams there some times, and I've asked him a lot of questions to which he gives detailed responses, because the question and answer is useful for all the viewers, and not a waste of his time, because it gives them a way to connect to their fans. Twitch is not meant for this though, and for instance, has no easy way to refer people to questions already answered, etc. But I think such a platform (video stream + text questions) with some modifications can provide this type of platform we're looking for.
The article focuses on GMO food production which is great. But since this process is said to be more efficient than the natural one, could this be also used for consuming the excess carbon dioxide in our air?
German politicians targeted in mass data attack
They change it because React add the new context API in 16.3. The legacy one was broken by design, so the React team introduce a new api.
Ah, Dwarf fortress. I loved hearing the stories generated from it and resolved to learn to play it, but that resolve quickly faltered in the face of the interface and learning curve. Sometimes I think to myself "I should try again", but I believe that it (along with Eve) is a game I truly enjoy reading about rather than playing myself.
Agrippa (A Book of the Dead)
Not worth a long discussion, but is the Blaze build system they are referring to in fact Bazel?
Called the wrong name at work? Awkward
Fotoquirk | Durham (UK) | On-site and remote | https://www.fotoquirk.com/jobs.html

Fotoquirk Ltd, based in Durham (UK), creates innovative visualisation and augmented reality software for mobile devices and the web. We are a small, dynamic and international team aiming to strike the right balance between graphically advanced products and practical solutions which solve actual business problems. We provide visualisation tools for various leading window decorating businesses in the UK, and are currently expanding internationally.

We are looking for an enthusiastic software developer to work on improvements of our backend software, initially on project basis but possibly extending to a permanent contract. This software is responsible for tracking, synchronisation and monitoring of thousands of mobile devices in real time. It also provides a web-based user interface for our customers.

This is a remote working job, but you should be prepared to meet with our team in Durham (UK) on a roughly bi-weekly basis. We offer very competitive hourly rates, depending on qualifications.
Is it newer cars or newer US cars?
I've driven a fair amount of rentals in both US and Europe and I'm always amazed at how big the blind spot is in the US.

In Europe the smallest car typically does not fit in the blind spot, in the US a pick up truck fits in there.
(I'm a lawyer licensed in 3 states, previously 4 :P)

It is definitely illegal in various jurisdictions, and even criminal in many.
It's also generally viewed to be no longer federally constitutional since the late 60's due to various supreme court decisions. As a result, most states have struck the laws down over time or repealed them (wikipedia has a map somewhere of this), so you generally only see it as a plea bargaining anymore. IE people will plead to adultery instead of a greater crime.

(Yes, it's as weird as it sounds)
In the other commenter's defence, HSV is not life-altering for most people. IIRC, most people who carry HSV experience no symptoms (although that may not take into account the potential risk for Alzheimers later).

For a not-insignificant minority, HSV is life-altering. Both for the reasons you've mentioned, and also for increased instance of suicide, and increased risk of infant mortality if the mother is experiencing an outbreak during birth.
I've got nice analytical solution for the quadratic bezier:
https://astiopin.github.io/2019/01/04/qbez-parabola.html
Blaze is the internal version, such as borg vs kubernetes
> Bikes are vehicles and have as much of a right to be on the road as cars do.

Only vehicles that have been built to safety and performance standards, checked for roadworthiness, been registered and insured, and are under the control of licensed operators are allowed on the road.

When bicycles accept the same responsibilities they can enjoy the right to be be on the road.
I lived in Singapore for 2.5 years. I mostly remembered him for his psychomumbling of later part of his life.

Calling him "doing all things right" is a big stretch. The biggest error of him was to cling to power long after his mind went going.

Singapore's economic success was pretty much a meme too. The median income is only ~20000 USD a year, less than half of the economic product per capita.

There were three epochs in Singapore's economy:

First - everybody sat in their campungs and chewed paan. Pretty much nothing was happening till seventies. The only exception to that was that there was pretty much a small scale communist insurgency going on.

Second - reformation and industrialisation. This is the fabled Singaporean miracle. They built MDB flats, and everybody got so happy. A small industrial sector appeared, but it was quickly overshadowed by another kind of activity.

Singapore exploited Western reprehension dealing with Asia, and marketed itself as a "Western outpost" in the middle of barbarian lands. Singaporean companies used Singapore's GATT membership to run trade agencies that bought cheap goods from Asia, and stamp "made in Singapore" on them. That brought the country a big part of its current wealth.

Third - wind down and stagnation. China accessed to WTO, and Singapore's WTO membership no longer meant anything anymore. Singapore got into the middle income trap. People began to feel that Sing's economy was a one trick pony. It tried, but failed to upgrade its economy towards advanced economic activities. From that era, we got the fabulous Nanyang University, excellent primary education, and, back then, liberal immigration policy.

But there was blessing in a curse - China's WTO accession brought tons of money from China's first generation of billionaires to the country. From then on, Singapore fully took on its current identity of the "Luxembourg of Asia."
Thank you, i think using go was a good option (at least for me), it makes the book very readable and can apply and code with confidence
More like field-lines or flow lines that trace out the trajectory of a "particle" obeying the given dynamical laws.
Isn't the idea with full stack devs that you might have an organisation that isn't large enough to have fully specialised staff? Or that some part of the code needs some special skill eg SQL but not enough for a full time specialist?

Also it's useful to have utility players who can fill in gaps in any position.
> Full-stack development and architect are roles, not skill sets.

That's the thing the article seems to be glossing over categorically. I kept looking for the distinction between skill sets/productivity thing and what I'll just call jobtitle capitalism. You can't cash in on being master of none, but being a Jack-of-all-trades doesn't make you look competent either.
I have a shared calendar with just my wife that has reasonably detailed schedule.

With rest of my friends we just send each other a doodle [1] once every 3 weeks or so, so that we go for a beer or something. Using doodle solved the "texting everybody every update until we agree on time" problem :-)

Going for lunches with my friends turned out fairly well, because most people need to lunch during the day somewhere, so we might as well lunch together :) This of course requires you to work reasonably close together.

[1] https://doodle.com/
Fabulous photographs. Please pass on my appreciation.
I don't understand this.

Why not base it on what is legal by law in your country? Require a court order to have things removed.

Take Paypal and who ever to court in your country if they deny you service because of this and threaten to have their permits to do business in your country removed.
Those are fair points. However, also missing in these discussions is the fact that oftentimes throwing more people at a software problem is known to not necessarily increase output, and can sometimes have the reverse effect. Depending on the situation, having specialists on the front-end and back-end may not improve things unless there is a specific goal/problem in mind that a specialist in one area can solve.
very nice, reminds me of those wordpress templates with built-in customizers.

just one concern is that I want to download the source html file not the pug template one.
Unfortunately, yes (and I'm a very strong Linux proponent these days), in terms of what it can display and work out in terms of locals and watches automatically. It's the one thing I miss from Windows (and I haven't used it really in 10 years).

I'm also of the opinion that GDB is getting worse in terms of what it shows (or more often won't) these days, especially with regards to >= C++11 - maybe it's just out-of-date python pretty-printers, but on multiple recent linux distro machines, it won't even show the contents of std::string these days without diving inside the structure or using expressions.
Somebody launch the Journal of Low Hanging Fruits: an interdisciplinary journal where people from the research field A pick the low hang hanging fruits from research field B, using knowledge from A. And, conversely, people from B reply by showing those from A that their most cherished result should have been discovered earlier, because is a trivial application of an old technique from B.

In mathematics this happens all the time, but there is no dedicated place for this show.
I had this when I worked at a large enterprise several years ago.

If I recall correctly we had to state goals for each of 5 major categories and another set of 5 supplementary categories. The categories were things like - deliver customer value, enhance team work, collaborate well across teams and various other enterprise buzz words, I forget exactly..

As a coder, my goal was pretty much to write good code and avoid sitting through pointless meetings as much as possible (a very hard task in that place). I would basically have to spend half a day coming up with various different ways to word this so that it would fit each of the five goals.

Every six months (one mid year review, and then the final review) I would have to meet with my manager to provide evidence that I was achieving my goals. That would be another half a day twisting words around to try to fit what I had done to the goals. My manager would have to do the same for me. I was then scored on each of the goals. Then the score was totalled up and was used to determine the salary increase that I would get at the end of the year.

We all despised the system. A collective groan would go around the meeting room when it was announced that it was review time again.
Indeed, as a once-heavy Warcraft and WoW player I can confirm that Blizzards story writing is to be actively ignored, even mocked. Great games, terrible writing.
The better comparison for the nation should be Luxembourg, and Andorra, not other Asian countries.

> Whatever their form of government, small city states are always going to be able to avoid many of the pitfalls of larger countries. There's effectively only one level of government to deal with, and the despot is always going to live down the road from you and need to use the same public services as you, so you don't get the sort of disconnect e.g. Rome or the British Empire had from its provinces or overseas holdings.

Recently, I also heard the opinion that another country that can be compared to Sing is Kazakhstan... wait?

The comparison is not so ridiculous if you go through with it:

... it is not a city state, but you can say that it is a "two city state." Besides Astana, and Almaty, the nation is effectively a post-soviet wasteland.

... LKY, just as Kazakh president was a socialist and nationalist early on, and of a very radical kind.

... LKY, just as Kazakh president purged every socialist and nationalist the moment he got a nation for himself.

... aside from elites living in ghettos for the rich, the ordinary population is pressed against the wall by low median income.

... to a very big extend, the state gives just enough of handouts to the masses to prevent them from rioting. This way, both Kazakhstan and Singapore can be called a de-facto, but not de-jure socialist states.

... both countries' economies are one trick ponies, despite of decades of dramatic efforts to change that.

... both countries spend lavishly on clearing up their image abroad, but the general populace of both countries can't disagree more with their respective countries popular image.

The biggest noticeable difference is of course that Singapore is cosy with the West, and Kazakhstan isn't.
You seem to have cut out the actual argument i made, which you are in fact proving:
1. The law in the US definitely does not change quickly, and you've cited nothing to say it does.

2. I cited these very statistics and explicitly said they are not the kind of level of social consensus that tends to change the law.

You have provided nothing to argue otherwise.
I can't tell whether you claim it is not becoming legal where there is large enough local consensus (which is definitely true, and supports my larger point).
Lost, stolen, blown up and fed to pigs: the greatest missing masterpieces (2018)
This makes sure there is never 1.0 ever. I think this is one of the biggest mistake in software. We just keep rewriting things that are already doing what they supposed to. Like the Gmail UI. It got rewritten 3 times already and every iteration it gets shittier.
Quoted from the article:

> We need to address the undervaluing of HTML and CSS for what it is: gender bias.

I find it baffling how some people can make such ridiculous statements to fit their narrative and insecurities.
I haven't done web payments for quite a while, but the way it was done 12 or so years ago was, that you generated some signed data for inserting into a hidden input inside a <form action=https://payment-processor.com/...>, and put that into a page server side. This would include all the order and merchant info. You'd also add a submit button with a "Pay now" text.

User would then submit the form and that would take him to the payment processor. The rest was payment processor calling some webhooks on your server with payment verification/other status. You wouldn't see/handle any ccard info at all.

No iframe trickery, no javascript necessary at all.
Bazel started from open sourced parts of Blaze but also added its own features. What I understand from public sources is that Blaze doesn't support external dependencies which Bazel does.
How is this news? Thought it was always a known fact they manipulate reviews to drive sales. So does Glassdoor (seen it in person).
Found the anal retentives.
Why is alienation a problem?
As far as every part of the system is being worked upon by somebody who specializes in that part, the system should do well.
And while it isn't anywhere near as deep as DF, the mass attraction of Minecraft shows that procedural generated worlds where there are no real goals can be very attractive and approachable, even to children.
On an individual level, this feels like a box-ticking exercise at the company I work at. Project goals are hard to set out a year in advance as a developer as there's a good chance that within 6 months the direction is changed yet again from product. Personal career development goals are not really considered.

When it gets tied into career progression, you end up with not very productive goals (but easily measurable!) like "Reduce eslint warnings in legacy project X by 50%", because business value are either not easily measurable (how do you quantify better knowledge of the overall system architecture? Bugs not caused? But how do you know the developer didn't just stay in their comfort area/have easy projects this quarter/year? I saved Joe 4 hours on Friday since he didn't have to investigate what the system does with foobars as I had the answer? That just sounds petty. ), or not directly under the developers control (revenue).
Sure, but at least it's only tied up temporarily, rather than permanently if you buy a new device.

I wonder if it's possible to rent a decent Macbook though?
The results could have been skewed by people clicking through intentionally to experience the redirect.
Even git or hg branches are horrible. Once you have multiple people working on the same codebase and touching the same files it is pretty horrid to manage. I know several companies not using branches because the merge conflict resolution takes too much time.

The PDF explicitly calls out the time consuming part:

"Almost all development occurs at the “head” of the repository​, not on branches. This helps identify integration problems early and minimizes the amount of merging work needed. It also makes it much easier and faster to push out security fixes."
[paper summary] Information Leaks in Structured P2P Anonymous Comm. Systems
MimbleWimble is a protocol, not a coin. Grin, though I'd still say it's a bit funny sounding, is acceptable. The backstory of how it was released and why it's called MimbleWimble is pretty cool.
React is very stable, component back before react use class still works today (before 2016). I consider that's a pretty stable core API.
What do you mean? Branching is not a solved problem once people are editing the same files.
Common knowledge and from what I've read about batteries the last two decades. And from using AccuBattery.
Please do state why it is wrong, so we can sort it out :)

Samsung recommmends not going under 20% charge, but nothing about going over 80%
https://www.samsung.com/uk/support/mobile-devices/how-can-i-...

gadgethacks thinks that we should avoid going over 80% https://android.gadgethacks.com/how-to/set-charging-limit-yo...

Apple has fantastic information:
Don't charge past 80%, if it's too hot!
https://www.apple.com/batteries/maximizing-performance/
The expected battery cycles are around 500 and then you have at least 80% capacity left on the battery. https://support.apple.com/en-gb/HT208387

Both samsung and apple says that you should have at least 50% charge if you store the device long term and also avoid going too low and leave it empty.

I get that apple/samsung will not recommend not charging 100%, from using accubattery (play store) they say that a full charge uses about one charge cycle, but charging to 82% does not take any charge cycle.

From what I've read the best thing for the longevity of the battery would then be to have it between 20 and 80%. But if you will replace the battery or phone after 500 charging cycles you could just charge it to 100% as much as you like. But never go below 20%.

AccuBattery should really add a warning about the battery health when going under 20%.

I did not know that it's possible to monitor battery health in iphone settings nowadays, that's great!
Users dislike that because it bounces them to a different site.
I really, really hate such things: they’re no longer at all necessary (see referrer-policy), and they clutter up browser history with an extraneous entry every time.
In the UK we do policing by consent. We aren't interested in attacking our own people. Some other countries could learn by our example.

The reason he "selfishly" sold them, by the way, was because they were in poor condition, cost more to keep than to sell, and were actually illegal to use.

It is clear to me where you get your news from, based on what you say. It is not encouraging.