skysight-inc/HackerNews huggingface dataset:
The fact that Thorsten manually synchronizes the snippets in the text and external source files seems like crazy talk to me. But the fact that he's cranked out two really good books on languages while I'm still slowly lumbering through my one [1] is proof that his system works for him.

Personally, I'm too error-prone to pull that off. I change the code snippets frequently after chapters are done (often in response to bug reports from readers) and having to manually update the snippets in the text would drive me bonkers.

Also, I want to rigorously, automatically validate that the code in the book is correct and contains everything you need.

To do that, I wrote a Python script [2] that weaves the code and the Markdown together. In the Markdown files, you use a marker like (here in the chapter "Strings"):

^code memory-include-object (2 before, 2 after)

This means "insert the code snippet labeled "memory-include-object" here. Include 2 lines of contextual code (which is shown grayed out) before, and 2 after. In the code, the marker looks like:

//> Strings memory-include-object
#include "object.h"

//< Strings memory-include-object

The "//>" begins the snippet and the "//<" ends it.

The build script reads the "^code" markers and finds the snippet of code in the sources that correspond to it, as well as any desired surrounding lines. But it can also do a lot of other useful things with the snippet markers:

* If some lines of code are marked as being part of a chapter, but that chapter doesn't have a "^code" marker to include them, it reports an error. This way I can't accidentally drop code on the floor.

* It can generate a separate copy of the entire codebase that only includes the snippets that are in a given chapter (and the preceding ones). In other words it can output "what does all the code look like by the time the reader reaches the end of chapter ___" for every chapter.

I output the code for each chapter and then compile that and run all of the tests. This way, I can ensure that by the end of each chapter, the program supports what it's supposed to support by then. I've found countless bugs doing this -- places where I inadvertently put code in a later chapter that is actually needed earlier.

However, this build script is not a generic "build a book" system. It's a bespoke program that only supports this one specific book. That helps keep the complexity down and makes it much easier to put little hacks in when I run into weird edge cases my specific book has. I think that's a reasonable trade-off to keep me producing a high-quality book without too much yak shaving.

One of the days, I'll write a full blog post going through this in more detail.

Of course, none of this is a criticism of Thorsten's system. The simple most important skill in writing a book is figuring how to get those pages done. It doesn't matter if that means waking up at three in the morning and writing on parchment with a red pencil. Whatever works for you, works.

[1]: http://www.craftinginterpreters.com/

[2]: https://github.com/munificent/craftinginterpreters/tree/mast...
Hmmm... Let's see more science around this before we jump to conclusions.
Yeah I have seen ecommerce sites that were using Symantec. Nobody cares about Firefox I guess but once Chrome starts enforcement shit will hit the fan.
Bromite – Submissions for new logo
Totally agree. The expectation should be clear from the beginning. Programming while important(actually an essential tool) is only a small part of CS curriculum. A little bit of discrete math, algorithms and overview of computer architecture/OS at higher level should lead to a well rounded program.
Nazi Punks F**k Off: How Punk Rock Took Back Their Scene from White Supremacists
That's actually a false dilemma. Both are compatible goals. The idea is that the more people with these skills, the more innovation can come from it.

On that note, I don't believe "sacrificed quality" can come from an influx of more engineers, junior or not. Rather, a larger base of junior engineers has the opportunity of increasing the capability of existing senior engineers due to the paradigm of mentoring.

Here is an article (posted to Hacker News some time ago) that I often reflect on: https://medium.com/@melissamcewen/who-killed-the-junior-deve...
Putting the cloud under the sea with Ben Cutler
Too many journos on this site. Where did all the actual developers go? SMH.
If they were trying to imply that eating candy causes kids to weigh less, then it would indeed seem to be prima facie absurd.

But if they are just claiming a correlation, that doesn't seem all that out of the question to me, because parents might include the weight and fitness of their kids as a factor when deciding how much, if any, candy to allow their kids.

Suppose a parent has two kids. One greatly prefers spending his time indoors reading or using the computer, and gets almost no exercise except when forced to do physical chores. He's not fat, but he's on the high end of normal weight for his age and build.

The other prefers to spend his time outside running around, climbing trees, playing basketball, and is pretty much constantly on the move except when sleeping.

Assume both kids like candy. I could see that parent allowing them to have it if they remain fit and not overweight, but restricting it if they start to become unfit or overweight. Under such a rule the result is going to be that the second kid is allowed to eat a lot more candy than the first kid.

That would result in a correlation between higher candy consumption and lower weight and better fitness.
Seattle is cloudy a lot of the year. I'd reconsider that.
There's been downvoted comments below that, to me, seem to complain of Mozilla unfairly blindsiding domain owners.

I disagree, based on my own personal experience. This has been coming for a while, with plenty of forewarning.

My employer uses certificates from one of Symantec's brands. Last year, we began to get notices that Chrome et. al. would be distrusting the certificates issued from the old Symantec root this year, and that we would need to claim our free replacements issued from the new trust root that is replacing Symantec's. And it's not been just one notice, we've been getting them regularly. And in addition to the automatic form emails, the sales rep assigned our account personally reached out to us to make sure we were getting this taken care of. We are not a large company, either; we have less than 100 employees. DigiCert is taking this transition seriously.

So IMO, if someone gets blindsided by their website breaking because of the Symantec root distrust, then they have only laziness and/or incompetence to blame, whether it's their own, or that of their website operator. Those who's job it is to make sure that doesn't happen have been warning about it for nearly a year now.
The same goes for Vista, I presume?
That's good advice that should be repeated over and over. I see it so often that people don't write clean code because that's considered not efficient but they don't have any real data.

Especially when you deal with optimizing compilers it's often totally counterintuitive where the real bottlenecks are.

Obviously you shouldn't be stupid and always shout "premature optimization" but make it a habit to profile from item and time and learn from it.
Denver/Boulder area gets 300!
I had a similar experience in High School late 80s (Jamaica HS, NY). We had Pascal, x86 Assembly, Some C. The computer teacher was also our physics teacher.

It was an excellent set of courses that taught some basics of programming and hardware architecture and we learned. There was a computer club where we interfaced with a laser disc player. Some really cool time back then. I was lucky to have my C=64/128 and Amiga 500 to extend my learning experience, with C.

Peace.
Did you click the "Article Continues" button?

"Fitbit’s data confirms a lot of what cardiologists already know. But because the Fitbit data set is ridiculously huge, it unearthed some surprises, too."

From there the article goes on to list a number of new insights and potential research areas to pursue.

From a screenshot at https://www.cnet.com/how-to/count-steps-with-apple-watch/ the Apple Watch privacy settings let you turn step count and heart rate tracking on and off, but don't let you choose whether or not to upload them.
Didn't someone at the Tor Project analyse these Blue Coat MiTM boxes and find a cross-signed intermediate signing certificate preloaded, with the option to load your own signing cert so one could MiTM with ease? This was more than a few years back...
>Wir Kinder Vom Bahnhof Zoo

You had to reach back 37 years to fill out your list of... five movies. That's a bit telling, no?
Looks interesting. Curious how the feedback has been on this app? Reminds me of tacoapp.com (not sure if its maintained anymore)
> Because this is MUCH better than sites loading megabytes worth of scripts to do nothing more than render text, have dozens of floating elements everywhere, auto playing videos that follow you, "use our app" buttons, etc...

False dilemma. Code can be concise and readable.

> JS is the assembly of the web

No. Assembly is supposed to have a virtually one-to-one correspondence with machine code. JavaScript is far from that. It is a higher-level language.

> do you also criticize games written in assembly?

I would indeed criticize someone writing a game in assembly if an alternative was available.
There's no economics without politics, and vice versa.

The EU as a single market has great potential. But that needs uniform and standardized access, which is politics.

And no, it wouldn't work without the political overlay (or foundations), because member states are already each in a non pure market state, and it would take a very long time for those politically disjoint markets to standarize and uniformize.

And there is power in numbers. The EU is relevant. England will soon find out how irrelevant it is alone.
Introduction to Java Programming:
http://www.ntu.edu.sg/home/ehchua/programming/java/J1a_Intro...

There are more materials.
Unfortunately, we live in a world where everyone is judged by these factors, and so in order to achieve your ideal world, we must actively encourage participation from people of marginalized demographics.
For a good history to see how we got to the state we are at is to have a read of "The Big Fat Surprise" by Nina Teicholz. Here is an article with a summarized version https://www.independent.co.uk/life-style/health-and-families...

Basically was due to a force of charisma, presidents getting heart attacks and industry funding.
When optimizing, don't forget to consider the byte code. Without looking, I'd guess the first one has 1 less assignment operation.
This seems more a way to organize a personal Wiki. I am concerned with day to day management of personal ToDo's/tasks/reminders etc.
On the Nature of OAuth2’s Scopes
Those forgotten Wordpress installs may not even have https support.
Who are you kidding? They aren't hungry. There is lots of propaganda flying around, but they aren't really even looking hard.

HR games the system.
You're so far away from the hardware when you're in an interpreted environment, reasoning about performance is fraught with danger. Happy paths could be an order of magnitude faster than very similar but just different enough code.

Usually, in an interpreted environment, I reason about other things: number of database calls, HTTP fetches, that kind of thing. If I need CPU performance, I'll fire up something faster.

Finding the meatiest primitive that does the job in one go is often best - batching, where the batch operation is implemented in native code - but not always, you're at the mercy of the implementer.
Firefox 55 working great, most extensions supported and containers working
>This is a pretty ridiculous and off-the-mark assertion about both the nature of Bollywood cinema and its popularity within India.

I welcome a fact-based counter-argument.

What is exactly ridiculous? That India had many illiterate people in the past? India is at 72%, below Bangladesh, and slightly above Rwanda and Yemen, far below all western countries. And that's the median, there are provinces like Bihar with sub 65% literacy (of ~100 million people). And that's today. In decades past it was worse.

Or that most Bollywood movies are song-and-dance simplistic affairs? Let me quote Wikipedia on the lemma Bollywood:

"Bollywood films are mostly musicals and are expected to contain catchy music in the form of song-and-dance numbers woven into the script. A film's success often depends on the quality of such musical numbers. (...)
Indian audiences expect full value for their money, with a good entertainer generally referred to as paisa vasool, (literally, "money's worth"). Songs and dances, love triangles, comedy and dare-devil thrills are all mixed up in a three-hour extravaganza with an intermission. "

>Also completely wrong. Corporations retain the rights of the persons that comprise them, both in the US and in Europe. In some European countries, this is literally written into the constitution.

This is not about retaining some rights. This is about having the rights of natural persons. Referring to this:

https://en.wikipedia.org/wiki/Corporate_personhood
Sadly, I am mostly monolingual :(

One neat aspect of "noisy" text is that deviations from prescribed grammar conveys so much personality and tone and all that good stuff. If I write "Ummmmmmmm, dude, that's like totally cray (IMO)" a strictly correct english to english translation could be "That is totally crazy in my opinion, my friend" but there's so much lost in translation.

Can anyone multilingual comment on whether the examples listed keep that kind of nuance in translation?
Unless you know something I don't, this is when they sell a position. If you tax the delta in wealth on the way up (absent an exit that creates a taxable gain), what do you do if wealth decreases? I.e. If I hold 100 shares of AMZN at $1,000 and it doubles to $2000 without me selling, and I owe taxes on the increase in net wealth from $100k to $200k.. what happens if AMZN drops by 25% the next year. Also, what does this do to the predictability of tax receipts for federal budgeting?
Mastodon 2.5 released
What is going to happen is reverse of what you say you want. The big Hollywood blockbusters will be just as available as before, what you are losing is the long tail of smaller independent films that may be more thought provoking or diverse.

If some streaming service has to cut 80% of its offerings, they will keep the Transformers and Marvel movies and cut the smaller ones.

Even if they made more specific regulation to remove those blockbusters, which will annoy the general population, almost all regulation benefits the large incumbents in the long run. They have the resources to figure out how to game the system.
Point being. Chrome already started enforcement in April.
> better salaries by cutting labor costs

Wait, what?
Yeah, OK: not loving the lace-up aspect.
Asking people to view food as fuel is akin to asking people to view sex as for procreation. Seems very Puritanical to view the pleasure we receive from food as a problem or distraction.

People like to eat. It feels good. There is of course a lot of ignorance about food (and even if you aren’t ignorant it’s still easy to willfully make bad choices) but that doesn’t mean we should dehumanize it. Just like with sex, we should study it and develop a healthy culture for it that balances pleasure and what’s good for us.

Also, I’m somewhat convinced myself that the reason poor people tend to be very fat is that food for them provides way more bang-per-buck than anything else at certain income levels. Yeah you may not be able to afford a car or a nice place to live, or healthcare, or education for your kids, but goddamn you can eat some delicious food for relatively cheap. It sucks that poor people get hit hardest by obesity and almost nobody wants to be fat... but at the same time, I feel like trying to decouple food from pleasure would mean depriving poor people of one of the few joys they can afford
Also remember that the maximum speedup your program can get from a particular optimization is related to the total time your program spends executing that part.

You can speed up an algorithm 1000 fold but if it only accounts for 1% of your total execution time you've only gained a 1% speedup.
Amazing. I'm going to make it my mission in life to get exactly that wording into the HR handbook where I work now.
Ironically, apple trees don't grow all that well near Apple. What they cut down were 80 year old redwoods.
My understanding of a bundler is someone who delivers high-dollar donations aggregated from a bloc of wealthy donors.

I tweet about campaigns and people I don't know give or not based on that. The modal donation is something like $50.

If that's "bundling", I'm fine with the term. But in my eyes bundling is showing up at a campaign office knowing how much you can deliver, and from whom.
California sets its boldest energy target yet: 100% clean electricity
Seattle will get you SAD during winter. The summers are great, but winters for the past few years have been unrelentingly overcast. I was also heavily warned to buy those bulbs to put in the office by a coworker who suffered from it.
Conversely, if you want people to be susceptible to mustache-twirling villains offer as little money as possible with no job security what so ever.

Modern hard sciences academia is a horrible place and the problem is economic: there are too many scientists and too few jobs for them.

To quote Stephenson's Cryptonomicon:

>Three years later, he left the Astronomy Department without a degree,and with nothing to show for his labors except six hundred dollars in his bank account and a staggeringly comprehensive knowledge of UNIX. Later, he was to calculate that, at the going rates for programmers, the department had extracted about a quarter of a million dollars' worth of work from him, in return for an outlay of less than twenty thousand.
The entire idea of a constitution is that policy is sometimes more important than democracy.

The people of the city of Boise decided to discriminate against the most vulnerable members of society. That is a failure of democracy, and it's why we have things like the constitutional prohibition against cruel and unusual punishment.
The fact that no provider will serve this neighborhood without exclusivity is contingent upon the woeful state of telecom competition in USA. If it were regulated like e.g. automobiles (basic requirements, but nothing about a particular vendor "owning" some portion of the market or the road), then you'd have a choice of WISPs. You might not get a wired connection, depending on density etc. As you can see from the European contributions to this thread, wireless can actually be very good. If the neighbors wanted to go in together for a really big fat wireless connection in higher portions of the spectrum, the "last block" could still be wired. That would be an easy upgrade to fiber once that made sense. Market forces would still govern that deal, because of those WISPs.
> It's crazy to me how hard it is to switch to a view of food as fuel instead of as a reward. People who readily eat the worst foods on earth would never think of putting bad fuel in their car.

But that's the problem. Sugar hijacks the body's receptors making it think that it tastes delicious and is healthy and yummy. Because why would something yummy be so bad for you?

Im also a type 2 diabetic. After cutting sugar out of my diet (damn, its hard AF to avoid sugar everywhere), sugar tastes bitter and leaves a weird aftertaste. Of course, unlike what many say is polemic, sugar absolutely is poison to me.

Yet, I find more and more foods that have sugar crammed in for no good reason. After seeing product after product with artificially added sugar, I can only assume that this is a conspiracy of some sort. Why? To make food addicting? Cheap and easy? No clue. I just know I end up paying more for unadultered products - where this should be the default.
“Otherwise-do-something-else”
Wireless towers are fixed to the ground just like the fiber they rely on for internet connectivity.

Google and Netflix peering boxes mean that ISPs with peering boxes at the same peering point can download as much as they want, within reason, for free from that peering box.

You might be confusing CDNs with peering boxes. As might I.
Am I reading that right? There is a whole article about how long JIT compilers take to settle, but the actual performance changes by just a few percent tops? (for example, first graph has 0.571 for cold JIT, and 0.568 for warm JIT, a 0.5% difference)

I think for me, the main takeaway from article is startup time for JITs is irrelevant, since it does not affect performance much.
Is there a single example in business of someone taking a huge amount of money, and plopping a famous CEO in charge of a dozen people and saying "go" and generating a successful business? (Let's set aside investment funds, obviously. I guess Meg Whitman could just hire some iconoclastic traders and tell them to manage the $2B while her 10 staff clone YouTube.)

There are quasi-legendary cases in history (think Spartan and Byzantine super-soldiers) of a tiny band with no resources executing ludicrously successful military campaigns, so I guess it's not completely impossible.
If they cannot determine where a child is from, I am sure that the US government will take care of the child.

If they can, and the asylum request is approved, then the child stays in the US.

If they can, but the request is denied, then their home country is not an unsafe place, and surely the home country will want their citizen back.

I feel like talking about asylum is an edge case in its self. Surely not the majority of immigrants are not legitimate asylm seekers. For most, they may not like their home countries (perhaps due to the low wages, or opportunity) but home is not a place of abuse where we must morally rescue them from.
Bromite [1] is promising, especially if someone begin to build it for desktop platforms.

[1] https://www.bromite.org/
When designing for performance, never stop measuring.

Establish time budgets for high-level operations. Measure performance continuously as part of integration testing to catch regressions.
Seems to be the last 52 esr for Vista as well as XP. Is it a bit sneaky to just announce the older OS?

When I click on the download for firefox 62 on this old Vista laptop, I just get sent the install file 52.9.0 esr with no warning or explanation.

52 works nice for now for you know, old dog tricks.
Apparently a majority of HN doesn't know what CS is.

Computer science isn't software engineering.

Computer science isn't coding.
> He didn't use that momentum to make a real impact.

Sanders has used his platform to continue to advocate for Medicare For All, for a $15/hr minimum wage (a concession he was able to get for Disneyland employees), for renewable energy, for justice reform, for immigration reform. What else would you suggest he do? He has been more positively impactful than any politician currently in office except perhaps Senator Warren.

> Now the democrats look as clueless as they looked in 2016. They still don't have a real value proposition other than not being Trump.

Medicare For All, a $15 hour minimum wage, fully funded public schools and universities, justice reform, immigration reform, paid family and sick leave (not an exhaustive list) is not a value proposition?

Democrats clueless? Progressive candidates continue to win in elections at every level. Alexandria Ocasio-Cortez is crushing it. As long as the Clintons, Biden, and other moderates keep to themselves, we'll be fine.
When you look at broad measures of national productivity, German labor is very competitive with other nations (including Americans who on average spend hundreds of hours more at the office then Germans do in a given year).