skysight-inc/HackerNews huggingface dataset:
> Because we don't know what goodness looks like.

You're writing the parser, so you define the set of acceptable input.

> The world can be separated into good, bad and unknown

The data your software receives as input can be separated into valid input that your software will correctly interpret, or invalid input that is either and error or an attack.

There shouldn't ever be any "unknown" input, as that would imply you don't know how your software parses its input. As the ccc talk in my previous [2] explains, this may be true if recognition of input is scattered across your software and thus hard to understand as a complete grammar. Thus the recommendation to put it all in one place using a parser generator (or whatever).

> If you classify anything unknown as bad then anything new is DOA.

Anything unknown is by definition not properly supported by the software you're writing.
Slightly nitpicky, but while lack of support for multithreading might make a particular app slow or unresponsive, I'd have thought it makes it less likely for that app to be able to bring the entire system to its knees.
I guess because it's not how I talk. I say "I'll print this document", not "I'll send this document to the printer".

I don't have a print queue because nobody has ever asked for one or shown the need for one.
It is true that many monkeys are tree dwellers and are heavy fruit eaters. Humans and other primates are neither. They will eat fruit as part of a mixed diet that is more omnivorous than anything. And wild fruit is not as rich in sugar as you imagine. It's mostly fibre. The stuff you buy in the supermarket is not a hallmark of a primate diet. Soft drinks are not a hallmark of a primate diet. Cakes and biscuits, they are not a hallmark of a primate diet. They are fake food.
I've thought about this a lot for India as well. To be realistic we would need unprecedented levels of transparency to get the amount of data needed to get usable results. With the amount of nepotism around even constructing a simple network of party heads of each state and related companies and contracts awarded for public work would be valuable.

At this stage we really should think of it more in terms of documenting corruption rather than stopping corruption. When (and if) the system is ready to change the data would be extremely useful to see why things are happening the way they are and work out if solutions would just move the corruption-bottleneck rather than eliminate it.
I wonder if there is any correlation between commit frequency and a person's tweet or FB post frequency. Are people more active on social networks more likely to carry that over and commit more often?
I think it helps to visualize a soda container as filled with M&Ms or some other candy. You'd feel like a disgusting lard-ass if you had a big cup full of M&Ms with your meal and kept getting refills on it, right? In fact it'd probably seem like such an obviously-bad idea that, even if you really liked cups full of M&Ms, you'd only have them occasionally, as a treat, and you'd still feel kinda guilty about it.

Look at soda that way, and it gets way easier to turn it down. It's basically candy. When you have three glasses of it with a meal (remember when US restaurants didn't do free refills? That was probably a good thing) that's gross and obviously terrible. When you even have a little with most meals it's still gross. A rare treat? Fine, go ahead.
> Use the right tool for the job

That's a funny argument in a thread about js. Js has started as a small language to do scripting on the pages, now they are sticking it everywhere.
It's only because of the heroic work of Carl Malamud that new services like up.codes is possible. This service will bring clarity to the insane complexity exhibited by construction regulation.

(Disclaimer: I have a personal interest in that startup)
What you just described is even debatable if it should be classified as porn and by what standards. Americans might be outraged, while you can visit any beach in EU and you'll see topless girls while no one giving a fuss. Not to mention Russia or Ukraine.
it reads some coproc regs, which are instructions that cannot be reordered. they slow down everything on an OOO core. after that just some bitmasking (not slow)
was just about to say: it's not damn javascript, it's the damn developers.

it's really becoming like java. pushed every, but the wrong choice on many occasions.
I'm a little disappointed in the US. We have the best case you could make for an ethical forced regime change by a foreign power, (can you consent to be governed when you are brainwashed and not consenting is punishable by imprisonment?) and we aren't on this? I'd love to get some alternate reality tv a la rick and morty to watch america world police kim jong un's face.
The paper[1] describes a distributed database that is shared between trusted partners

[1] https://arxiv.org/ftp/arxiv/papers/1404/1404.4275.pdf
Does this not include sugar found in foods? Are those considered complex?

Is eating natural sugar found in fruits as bad as eating refined/processed sugar?
Sometimes remedies are imperfect. If someone is willing to spend the rest of their life in jail for contempt of court, that's not a reason to start looking for other methods of enforcement, that's a reason to be glad they're out of your life.
Fructose is bad for you. A couple pieces of fruit every day is generally fine, because fruits are packed with fiber, but if you e.g. drink 3 glasses of fruit juice per day, that’s terrible for you.

Even eating fruits isn’t the best though. Modern fruits are bred to be as large and sweet as possible.
Sorry I interpreted the idea of "private" in this sense in comparison to governmental - not publicly traded - given the context of "censorship" and other comparisons to government type services.
That would create a race condition addressed at the bottom of the article: the process can get switched onto another CPU between the invocation of get_current_cpu_cache_line_size() and the invalidation.

An astute reader might realize that computing the cache line on every
invocation is not enough for user space code: It can happen that a process
gets scheduled on a different CPU while executing the __clear_cache
function with a certain cache line size, where it might not be valid
anymore.
nvi definitely provides more features than the original vi, just not nearly as much as vim. And it doesn't have a comparable ecosystem of plugin/package developers around it, either.
Anyone can create a similar typeface from scans of Doves Press books, as Green originally did.
But what leverage does it give them to create propaganda if we deny them aid that they can't just falsify if we do give them aid?
You're in denial. Javascript is everywhere nowadays. It has become the English of languages. It's not my favorite language but it has improved extensively.

No one wants to maintain a web app, mobile app, and desktop app separately.
Kivy.
Looks like he nailed it.

Im curious about his "running unapposed" theory. If Hillary has to drop one of the debates or has another "episode" it may be the case.

Exciting times.
Things in Snapchat that aren't intuitive, off the top of my head:

1. Why are my snaps significantly blurrier than the pictures from the normal camera app? (a: you have to explicitly tap the main part of the screen to get it to focus, then take the snap. Why does it not focus automatically when taking the snap?)

2. Why does it do significantly worse in low-light than the normal camera app? (Is it just a problem with Snapchat, or do I need to manually do something that the machine should do, like in #1?)

3. What do the emojis next to names in the friends list mean? (I found a table with the meanings on some spammy website.)

4. What do the smileys that sometimes pop up in chat mean?

5. Why does the menu button not work like it does in every single other app? Sure, "swipe down, then tap the gear" isn't hard, but they removed the mechanism that I'm conditioned to expect to work.
I really enjoy reading these ithare articles. They are so packed with information!
Stupid question but does that work in a virtualised environment where your program can be live-migrated to another physical machine with a different CPU?
From Chariot CEO & Co-founder:

Hi All, Thanks to those who have wished us well on this thread. Keeping everyone happy is tough, if not impossible, and it's even harder for them to swallow when they depart ahead of a very successful exit. Nevertheless, we wish everyone who spent time with us only the best since they contributed to our success.

We're really proud to be Ford Smart Mobility's first acquisition and become a building block in their strategy. Our mandate is to scale the effort with the considerable resources we can leverage from Ford.

If you're interested in learning more, check out opportunities to join us at chariot.com/careers. Hope to hear from you!

Ali Vahabzadeh
It's going to be smartphone usage itself, especially among children. We are going to look back and cringe at kids screen-holing (this is the term me and my girlfriend use to describe it, similar to k-holing, and in social settings, assholing) at will. A whole generation's minds unprotected from the screen! It's gross.
I love the stackoverflow model of up and down voting and how it is moderated so well. It is apples and oranges to a large degree but I wonder if there was a way to introduce up and down voting, then having things show up based on that, rather than having some moral authority taking things down. For example, if enough people down vote something, it has the effect of disappearing from the public stream but of course you can still see your friends posts. Maybe this is just a software problem given the right setup.
Hi there. Would you mind dropping me an email? (In profile - I checked yours but didn't see a way to reach you.)

I run a company that actually is innovating in printing, and I'd like to ask you a few questions if you could spare a few minutes... Thanks in advance.
>According to the Project Management Institute (PMI), the term project stakeholder refers to, ‘an individual, group, or organization, who may affect, be affected by, or perceive itself to be affected by a decision, activity, or outcome of a project’ (Project Management Institute, 2013).

As a PM, I usually refer to the stakeholders as the people that requested the project, the people that pay for the project, and the people that need to be informed about any changes related to schedule, scope, cost, impediments, etc.

>What's the difference?
A Project Manager is rarely a stakeholder, though it could happen if the stakeholder is actually managing all aspects of the project.

It may benefit you to read the PMBOK and read some books on Agile and Scrum techniques. There are still many projects that use waterfall methodologies and are successfully on-time and on-budget. I was once a Portfolio Manager for a large insurance company in charge of data migrations from acquired insurers...there is nothing that stand-ups and scrum could have done to make the migration process any faster or better. Point: learn the basic methodologies first, then build on your knowledge. Agile and Scrum in the wrong hands can be terribly destructive. Knowing which methodologies may work best for different teams/projects/situations is key. Sometimes the overhead and bloat of Agile isn't necessary for simple projects. I once briefly worked as a subcontracted developer for a crappy consulting/recruiting company. The company wanted to "provide value" to the client by mandating that the client's IT Director and I had daily conference calls with the company's scrum master who only had 6 months of PM experience (I had 8 years of exp at the time). Which wouldn't have been unusual except I was the only developer, the IT Director wasn't involved other than "get it done" and gave two shits less about the daily stand-ups and agile process to design a 3-page site and a couple of forms, all of which had excellent requirements docs. I ripped through the work and got out of there in a week. Why apply such a ridiculous process/methodology to something so simple?
Different cacheline sizes for the different cores seems like an absurdly bad idea. One because it opens one up to bugs like these, but also because it makes optimization a lot harder. I have a hard time believing the savings due to a larger line size are worth it.
> We hired a new grad last year [...] Now, I have no idea how this is possible, but he has deeper knowledge of Hg and Git than anyone I've ever met (If your experience is limited to school and solo personal projects, how in the world do you develop advanced knowledge of version control?

I learned Linux in the '90s, when it came on a stack of floppies, long before anyone else would have thought to use it in production. It was never more than a pet project, but I kept hammering it because it was so cool. Unlimited size matrices. Compile the kernel any way I want. A real multi-user OS? Holy smokes, this is a very cool hobby.

Eventually I got a job at a startup that was running all their stuff on Linux. Lo and behold, I was the local "Linux expert", blowing everyone else out of the water with my knowledge of, well, everything needed to make that thing work.

So that's how it happens. If you like something, and you're passionate about it, and you have an obsessive streak, you'll jump lightyears ahead in a very short time.

The Git guy probably spent countless hours figuring out obscure aspects of the tool's workflow, just for the heck of it. Deep interest + focus + long practice = mastery.

> On my personal projects, I rarely need anything more than git add/commit/push/pull and basic branching)

Neither did he, strictly speaking, but the difference is that he kept hammering it.

So you see, this is not about generational differences. This is good old fashion geeks doing what geeks do best.
Looks like many others aren't interested in easier solutions.
I'm not familiar with the Python ecosystem but I imagine there are bidings for GTK, QT, or other UI toolkits. The same applies to most (popular) languages. The claim that HTML/CSS/JS is the "only" truly cross platform stack is simply not true.

The main hurdle that other languages faced was not having a native UI. For example, GTK on OSX or Windows did not feel native. Key bindings were often not native. Similar story with Java (was it Swing?).

The HTML/JS/CSS combo has exactly the same issue (it's not comparable to a native GUI - Cocoa or whatever it is.
I don't think syscalls are strictly part of Computer Science. They're an implementation detail of how we have collectively decided to write operating systems. As such, they're far more relevant to software engineering or computer engineering than computer science.

As Dijkstra once (supposedly) said, Computer Science is no more about computers than astronomy is about telescopes. You can be a computer scientist without ever even touching a computer (although I imagine these days most of us do anyway as a hobby). For example, my Computer Science PhD dissertation involves precisely zero lines of code. Following the astronomy analogy, I would place syscalls firmly within the telescope operating manual.

That said, almost every undergraduate CS program that I've seen contains a dose or two of software engineering. I learned about syscalls in my OS undergrad class, which was an elective to the major. I also learned about how to use version control such as GIT and Subversion in a non-elective CS class... also not CS in the strict sense, but hard to avoid I guess?
ah! amazing, can i try it ?
Memory isn't the issue to me. Latency is.

Most of the applications I work with today do a lot, that's true, but their UI latency is often worse than it was on my 7.16Mz M68000 Amiga 500, and other things as well are just slow.

I've mentioned here several times in the past that on my laptop I can "boot" Linux-hosted AROS (so the problem is not the Linux kernel, nor X) with a custom startup script to boot it straight into a full featured, scriptable text editor in less time than it takes to start Emacs.

I'm sure it's possible to tune my Emacs setup (for example, I found out by a fluke, that the default Emacs setup on debian will wait for a DNS request to complete or time out before it starts - break your DNS setup and Emacs will hang for ages) or pick another editor (many of the other ones I've tried are either just as slow or feature-limited compared to the Amiga editor in question - FrexxEd, co-written by the same guy that started curl), but the point is that we've come to accept the kind of slow startup and UI latency that was unacceptable back then.

E.g. people spent weeks tuning and trimming AmigaOS commands to make them the smallest possible so we could make as many of them as possible RAM resident to avoid the tiny fractions of a second it'd take the load-time linker to load them.

I'm happy we don't need to think that much about the RAM any more. But we do need to think about the latency.

There's the attitude that we should just throw servers at this instead of developer time. That's fine when you can compensate by e.g. throwing more RAM in and/or a program is run relatively rarely or where paying for a beefier server in some data centre can achieve the same performance. But it's not true when latency grows into user noticeable levels because you can't get high enough single-core performance, and that program is run a lot.
And don't forget JavaFX
http://codepen.io/dredmorbius/pen/KpMqqB
I use Green beaver toothpaste
http://greenbeaver.com

Calcium Carbonate, Aqua/Water/Eau, Sorbitol, Glycerin, Hydrated Silica, Mentha Piperita (Peppermint) leaf Oil, Menthol, Xylitol, Citrus Medica Limonum (Lemon) Extract, Xanthan Gum, Coco-Glucoside, Calcium Ascorbate, Melaleuca Alternifolia (Tea Tree) Leaf Oil.
Money.

That is the only reason you should consider a career in tech.
Also, don't forget: The non-talented, non-hardworking individuals who luck into succeeding tend to never shut up about how it was all about talent and hard work.
Show HN: Frank – A Platform to lend and borrow money between friends and family
Carbs are very popular in the lifting community. And for good reason. Ultimately, one needs ATP in order to exert movements and the ATP generated from carb sources is the most efficient for anything physically intensive. Protein has to go through gluconeogensis to get converted to carbs and lipids require double the oxygen to be converted to ATP.

I think the religion of food would be much better understood if food was approached as workloads. CPU bound, memory bound, IO bound, etc. But in general, carbs for physical activity and fats for mental activity.
As this quick comment has attracted a few downvotes I think I shall elaborate:

Back in the days of my grandmother large organisations had typing pools. When trying to progress a career many found themselves stuck in the pool, or remaining as generic, exchangeable, secretaries.

It was well known that to progress onto the better compensated, less intense, more fulfilling jobs (personal secretary, group secretary, all kinds of travelling roles) you had to show you were capable.

The trick to this was, as it is with any career, identifying which projects will develop the right skills and expose you to the right people.

This is a soft skill, and befriending an older woman who would help you choose projects was recognised as a way to get out quickly.

There are many parallels between this and any career, however I see a very literal one for programmers.

Consulting someone twice my age (in my case friends from traditional engineering disciplines) about the opportunities I have had available has helped me immensely.
Look at how successful we've been at regime change in the last 15 years! Do you really want a war with Russia and China?
Nope. There's not really any alternative other than "Don't do that", or limit migration to machines that have a superset of the instructions on the original machine.
They'd still have to hold the country, but actually that happened to a city in the next country north, when a William Walker decided to be president of Nicaragua:

https://en.wikipedia.org/wiki/William_Walker_(filibuster)
Particulates are easy to deal with using current technology--burn lean, burn hot (and inject lots of urea to get rid of all the NOx that this regime creates), and stick on a filter on the tailpipe to get rid of the stuff that does get created. The main problem is that diesel engines last forever, and a lot of old engines that don't meet requirements are still on the road.
We extract natural gas as part of the Haber process to provide nitrogen.

We mine phosphate rock for fertilizer, since P is one of those elements plants need.

Mined potash provides the K.

We can do without them, but we'll take a huge hit in food crop yield.
Right, just like how accepting the world has been of Syrian refugees?
I would thing that to be illegal. Destruction of property, breaking into a computer system, etc. Anybody deciding to do that should be brought to court.

Yes, you'll get a better one in return, but what if I want to keep mine, for whatever reason (for its low serial number, because I spent lots of time and money to decorate the casing), or I it's impractible or impossible to return it now (say I'm on a long trip in the wilderness, and want to use it as a GPS to prevent getting lost)?

Even if they promise to bring a replacement anywhere in the universe for free, they have no business destroying it if a customer refuses that offer.
> What's the difference between a (building) code and a law? (Asking genuinely, since you are in a position to possibly answer authoritatively).

Building codes are laws, but they may reference external standards which are not laws. Say Congress passed a law requiring all medical device software to meet certain requirements, with one of those requirements being that it is written in conforming C99. You can't follow the law without following the standard, but the standard is not itself a law.

I actually agree with you that we should find a way to fund development of building codes that allows for them to be freely-accessible. I think the ABA proposal, which requires a readable copy of the standard to be posted publicly, is not a bad approach. My point is that the existing system isn't some "sad" subversion of democracy. It's not the solution you'd pick if you value transparency above all else, but it's also not the product of some shady cabal.
The first time I heard Carl was in the early 90's on his audio program "Geek of the Week". He had all the top dogs on at the time. Mike O'Dell from UUnet, etc It was a fantastic show!
I think you can find copies on the Internet Archive now. I go back and listen to them frequently. GREAT little gems packed here and there in those shows.

Glad to see him getting some press!
Yes it is, but with some other challenges.

Redstar OS is a linux distribution which is distributed by the North Korean government. It has a system built in pretty deep which watermarks files. https://youtu.be/KTBemKiSgWI?t=1737

If the government gets a copy of the file from someone, they can to some degree trace back where else the file has been.
Ask HN: Any nicer alternatives to Mint for personal budgeting?
Your whole OS already lost the fight -- polkit config is raw javascript.
Samsung has/had a printer business???
Properly configured big.LITTLE clusters should be set up so that all CPUs report the same cache line size (which might be smaller than the true cache line size for some of the CPUs), to avoid exactly this kind of problem. The libgcc code assumes the hardware is correctly put together.

There is a Linux kernel patchset currently going through review which provides a workaround for this kind of erratum by trapping the CTR_EL0 accesses to the kernel so they can be emulated with the safe correct value:
http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg...
and it seems to me that that's really the right way to deal with this.
*javascript

Ftfy