skysight-inc/HackerNews huggingface dataset:
> Traps don't quite work the way you'd want in C [1]; there's no way to catch a trap that occurs in a specific region of code.

Ah, unless you're in NT land, which makes lexical scoping of traps very easy: https://github.com/tpn/tracer/blob/0224d94b8d17fe74c39cec285...

//
// Verify the guard page is working properly by wrapping an attempt to
// write to it in a structured exception handler that will catch the
// access violation trap.
//
// N.B. We only do this if we're not actively being debugged, as the
// traps get dispatched to the debugger engine first as part of
// the "first-pass" handling logic of the kernel.
//

if (!IsDebuggerPresent()) {

CaughtException = FALSE;

TRY_PROBE_MEMORY{

*Unusable = 1;

} CATCH_EXCEPTION_ACCESS_VIOLATION{

CaughtException = TRUE;

}

ASSERT(CaughtException);
}

The helper #defines: https://github.com/tpn/tracer/blob/0224d94b8d17fe74c39cec285..., e.g.

#define TRY_TSX __try
#define TRY_AVX __try
#define TRY_AVX512 __try
#define TRY_AVX_ALIGNED __try
#define TRY_AVX_UNALIGNED __try

#define TRY_SSE42 __try
#define TRY_SSE42_ALIGNED __try
#define TRY_SSE42_UNALIGNED __try

#define TRY_PROBE_MEMORY __try
#define TRY_MAPPED_MEMORY_OP __try

#define CATCH_EXCEPTION_ILLEGAL_INSTRUCTION __except( \
GetExceptionCode() == EXCEPTION_ILLEGAL_INSTRUCTION ? \
EXCEPTION_EXECUTE_HANDLER : \
EXCEPTION_CONTINUE_SEARCH \
)

#define CATCH_EXCEPTION_ACCESS_VIOLATION __except( \
GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION ? \
EXCEPTION_EXECUTE_HANDLER : \
EXCEPTION_CONTINUE_SEARCH \
)

#define CATCH_STATUS_IN_PAGE_ERROR __except( \
GetExceptionCode() == STATUS_IN_PAGE_ERROR ? \
EXCEPTION_EXECUTE_HANDLER : \
EXCEPTION_CONTINUE_SEARCH \
)

#define CATCH_STATUS_IN_PAGE_ERROR_OR_ACCESS_VIOLATION __except( \
GetExceptionCode() == STATUS_IN_PAGE_ERROR || \
GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION ? \
EXCEPTION_EXECUTE_HANDLER : \
EXCEPTION_CONTINUE_SEARCH \
)

Also allows you to do fun things like this for testing if you can do an AVX512 op (although this is not the supported way of doing things):

#pragma optimize("", off)
static
NOINLINE
VOID
CanWeUseAvx512(PBOOLEAN UseAvx512Pointer)
{
BOOLEAN UseAvx512 = TRUE;
TRY_AVX512 {
ZMMWORD Test1 = _mm512_set1_epi64(1);
ZMMWORD Test2 = _mm512_add_epi64(Test1, Test1);
UNREFERENCED_PARAMETER(Test2);
} CATCH_EXCEPTION_ILLEGAL_INSTRUCTION{
UseAvx512 = FALSE;
}
*UseAvx512Pointer = UseAvx512;
}
#pragma optimize("", on)

https://github.com/tpn/tracer/blob/0224d94b8d17fe74c39cec285...

The structured exception handling protocol used by NT is really quite elegant.
Toxic Masculinity and Toxic Femininity – What the media doesn't talk about
The Lighthouse Keeper, the Wave and Photographer Jean Guichard’s Iconic Image
Business interests are non partisan? This is close to claiming national interests are non partisan. Which just feels laughable.

Political parties are made up of members. Some members will benefit from some policies. Many because their business interests will benefit from said policies. To claim they are unrelated seems fishy, at best.

Now, you are probably right that nobody cares at high level whether it is a Democrat or a Republican policy that is benefiting them. I would wager the odds are good that businesses frequently get benefits from one more than the other, though.
Thank you for this link. Works
Please don't turn uncivil, even if someone is wrong about homelessness. It helps nothing to damage the site you're contributing to.

https://news.ycombinator.com/newsguidelines.html
Or maybe more plausibly, they do have export code in there for any number of reasons including debugging, and they left it in there and are triggering it by accident. GP is likely just suggesting that it's quite amazing that a single little bug can do all of these steps as opposed to intentional code executed unintentionally.
I agree this is great and I use it on Android, but it is not a good solution to the spammy notification problem.

Apps get one chance. One instance of spam and they are banned from ever notifying again.
> YCombinator has a near-blanket policy of only accepting co-founder teams (ie- no solo founders), because the data shows that solo founders rarely succeed. The emotional burden is just too high.

But YC application FAQ states that this is not true. Although practically speaking from speaking to other startups, I have noticed that only startups with co-founders made it to the final round. This is just based off my experience and talking to other startups
Only when there’s a profit motive - which admittedly most do, although some are principled and independent.
Interesting, I thought SUSE was king in Germany.
When I've scrolled down for a while and realized I haven't reached the end of the page I kind of get disgusted then close the site.
Mozilla | Vancouver, Toronto, Portland, Mountain View, San Francisco | ONSITE | Full-time | Senior Experiments Software Engineer | https://www.mozilla.org/

Mozilla is the not-for-profit behind the Firefox browser. We are committed to the free and open web.

Android Engineer (Various)

Qualifications

Come work on the future of Firefox for Android

* Advanced coding skills in at least one of the following: Java, Kotlin, or C/C++

* Experience building and shipping Java/Kotlin-based Android applications

* Exposure to web technologies (JS, CSS, DOM, HTML)

See the full job description and apply now: https://grnh.se/dpug2p1s1
There is, but this captures a whole large class of software work - including pretty much the entirety of web development, probably most of mobile development, and also some desktop development.
I've been wondering the same thing. For me, I think the new site feels slightly sluggish and the design and/or implementation feels clunky. I switched back to classic though so no productivity gains for me.
Not OP / GP; from what I understand, this isn't an API generated by ML, it's a cache manager. "Computing correct responses to requests" refers to deciding whether or not it should read it from some caching layer and whether or not it should be cached in the future, and it does this by optimizing some parameters. The difference is something like it decides whether or not to use the API or the cache to load an image or some content, rather than saying "this request should return a response with these properties". Hopefully I'm right and this makes sense.
In my batch, there were definitely a bunch of solo founders. However, they (almost) all had something special about them: a strong existing team, a strong background, or a strong previous startup success.
Perhaps, but please don't make this site worse by fulminating. It's enough to flag a bad article and move on.

Edit: it looks like you've posted a lot of unsubstantive comments to HN. Could you please not? We're trying for somewhat better than that here.

https://news.ycombinator.com/newsguidelines.html
Primarily the feedback loop of cable companies "having to" carry ESPN/ESPN2/etc at vastly higher rates than any other network on television, resulting in the ability to bid up TV rights for all major sporting events. As long as the rights are expensive, the network will be expensive, and vice versa.

I generally enjoy sports, but don't care about the endless commentary and talk shows that populate ESPN 24/7, nor do I like the fact that their properties drive up everyone's cable bill by $20-$30 per month, an order of magnitude more than any other network.

It's one of the primary reasons I don't have pay TV; I wish I could allocate my pay TV dollars to the programming I find more valuable.
India mystery over Delhi's 'house of mass hangings'
l0de doesnt actually do anything except smoke meth and live off donations from his sycophant army on Efnet. It was probably one of his followers/listeners though because this had been announced weeks before on his radio show
Or just the fact there is no caching involved in a lot of cases, so you end up just banging the db so hard it just ends up with 5 minute response times.
Using a cache as an example feels off. I mean, yes. To a large degree, machine learning is fancy statistics done by the computer. And, to a large degree, caching is keeping the data that is statistically most likely to be accessed again.

However, my understanding is the classic algorithms for caching have yet to lose to the new machine learning ones. Has that changed?
Excellent opportunities for API Developers
Privacy risks with Facebook’s PII-based targeting: auditing a data broker
Three Reasons Why the “Nothing to Hide” Argument Is Flawed
Try this link to copy it to your drive so you can read or format it any way you like:

https://docs.google.com/document/d/1ZJZbv4J6FZ8Dnb0JuMhJxTnw...
Patents are absolutely not just about business interests. Patents affect individuals and open source projects just as much as they affect commercial businesses.

Take for example the Makerbot patent on the Thing-O-Matic, a conveyor belt add on for 3D printers. Makerbot patented the concept, then discontinued the product. Hobbyists who designed upgrades to share freely openly expressed frustration for years about this. Many people wanted the device but community members regularly expressed in online communities that they feared legal action if they designed an open source replacement for the defunct patented product.

Finally recently some hobbyists have found a way to work around the patent by designing a printer where the print head is not parallel to the build plate (a key claim of the patent in question). However printing this way has some major limitations, and the original process would be simpler. The 3D printing community was held back for 5-10 years in sequential printing technology because of this patent.

When a free group of people are prohibited from sharing ideas with each other due to fear from state intervention, it absolutely becomes a civil rights issue. Is it fair for the government to prevent individuals from freely exchanging information because a third party has laid claim to that idea? Is it even a legitimate claim that one entity can own an idea that they formed through the integration of preexisting ideas? From a practical perspective does the legal artifice of intellectual property even serve the oft-cited purpose of improving the general welfare? Should we continue to support this notion?

These are questions we all should ask ourselves and debate amongst each other. We invented intellectual property and created laws that enforce it. We must continue to discuss if such an extreme limit on human behavior is rational or fair in the modern world. Billions of people are prohibited from accessing information that could help them thrive. We can now copy information at almost no cost, but our legal system prevents us from doing so for the bulk of the world’s knowledge. Is this just? Is it sensible?
Reminds me a little of this scene from Seinfeld: https://www.youtube.com/watch?v=iq8gfaFqFpI

In fact, I think of that whenever I hear 'statute of limitations'.
One post per hiring organization please. (See text at top.)
>All kids in public schools deserve that.

Teachers and students find it easier to teach and learn in an environment where most of the children score higher on standardized tests and are also generally more compliant. All kids in public schools deserve an environment where they can develop their full potential, but "the system" seems to have a harder time fulfilling that purpose for students who don't score well on tests or who aren't as compliant.

>It just takes more resources than we as a society are willing to spend, especially when it comes to schools serving mostly poor brown kids in poor neighborhoods.

Evidently, NYC spends the most per student than any other city or state in the country[1]. Also, schools that serve mostly poor students in poor neighborhoods are more likely to be eligible to receive additional funds via Title I, although to your point some people believe that the extra $500-$600 per student for Title I schools (i.e. schools where free or reduced-lunch criteria exceeds 40%) is still insufficient to counteract the effects of poverty on student achievement[2].

[1] https://nypost.com/2017/06/14/ny-spends-more-money-per-stude...

[2] https://www.brookings.edu/research/why-federal-spending-on-d...
Not that ironic, since opening in apps is a user setting. You, at one point, said "yes" to opening reddit links in their associated app.
Yup, I'm sure there's a bit of licence exercised with some of those requirements.

For example, making quite a small pizza would make it easier to get sufficient heat / rise in under 90s -- this is what we were doing on our bread-making course. The wood oven had been heating up all morning, I think reaching more than 500, but we were cooking with the fire completely removed, and the thermal mass holding the temperature around 350 ish from memory. More than sufficient.
This is incredibly insightful and well-written.
Yeah, because IBM would have been so much better.
Quite personal opinions there. For anyone reading the thread, I definitely would not call neither of them crooks.
>I can't think of anyone I know that could do well in the Google interview process but could not get good grades.

To get good grades, you must be able to do rote work on time. I did really poorly in high school, because if you don't do one thing, and you do brilliantly on the next thing? That averages to a failure. Doesn't matter how brilliant that next thing was. For me? This means I barely cleared 2.0 in high school, and didn't seriously pursue college. But in industry, I seem to do pretty okay. My experience is that if I finish between 2/3 and 3/4 of what I start? I get a positive performance review and a raise. They even talk about it; like "if you are accomplishing all of your goals, you probably aren't being ambitious enough when setting those goals."

(I mean, I've been in industry since 1997, and my impression is that breaking in was a lot easier then than it is now... and it did take me a long time to work up to the point where I could get a job at a top-tier tech company, and even now, I'm a SysAdmin and not a SWE, (I have worked SWE type jobs at less prestigious companies... but here? I'm a SysAdmin.) I would be a better employee, with better job prospects if I had the personality and follow through to get a degree, no question.)

My experience with those interviews (at least for a more senior position) is that they test knowledge of whatever specialty you are dealing with and to a lesser extent, intelligence and problem solving ability. The former, of course, can (and should be) studied for; the latter, less so.

I'm sure intelligence and problem solving ability also help (and to some extent, are required) in academia, but if you aren't the sort of person who does 'good enough' work every time on time, you aren't going to get good grades, as far as I can tell, even if you are brilliant. That sort of plodding follow-through is not tested at all in interviews, and while it's a positive attribute to have as an employee, from experience, it won't kill your career if you are lacking it.
Is it ok if other animals do it?
Yes! Very much this. This is a lesson that, for example, Apple learned the hard way with Tiger. They now have dedicated performance teams that look at everything throughout the release cycle.

I'd like to refine the advice given a little bit, an approach I like to call "mature optimization". What you need to do ahead of time is primarily to make sure your code is optimizable, which is largely an architectural affair. If you've done that, you will be able to (a) identify bottlenecks and (b) do something about them when the time comes.

Coming back to the Knuth quote for a second, not only does he go on to stress the importance of optimizing that 3% when found, he also specifies that "We should forget about small efficiencies, say about 97% of the time". He is speaking specifically about micro-optimizations, those are the ones that we should delay.

In fact the entire paper Structured Programming with goto Statements[1] is an ode to optimization in general and micro-optimization in particular. Here is another quote from that same paper:

“The conventional wisdom [..] calls for ignoring efficiency in the small; but I believe this is simply an overreaction [..] In established engineering disciplines a 12% improvement, easily obtained, is never considered marginal; and I believe the same viewpoint should prevail in software engineering."

That said, modern hardware is fast. Really fast. And the problems we try to solve with it tend towards the simple (JSON viewers come to mind). You can typically get away with layering several stupid things on top of each other, and the hardware will still bail you out. So most of the performance work I do for clients is removing 3 of the 6 layers of stupid things and they're good to go. It's rare that I have to go to the metal.

Anyway, if you're interested in this stuff, I've given talks[2] and written a book[3] about it.

[1] http://sbel.wisc.edu/Courses/ME964/Literature/knuthProgrammi...

[2] https://www.youtube.com/watch?v=kHG_zw75SjE&feature=youtu.be

[3] https://www.amazon.com/iOS-macOS-Performance-Tuning-Objectiv...
Virgin Atlantic has high hopes on ecommerce for its new Sydney-HongKong services
If aspects of it have the same addictive effects as cocaine, why not tax it like other vices but in this case use the revenue to address the problems which surface.

I’m saying if they are going to do this, let’s do it again n a fashion such that we might glean useful information which could benefit all users.
> As a parent I decided that they would only consume non-English media, since we live in an English speaking country.

Do you fear the cultural repercussions of this stance just to increase fluency? For its faults, media and culture are closely aligned and I would be worried that this is then artificially removing local culture by requiring only media from other languages.
A fair point. So either a feeling of a lack of self worth resulting in reduced assertiveness, or just being rebuffed a bunch.
Robinhood | Engineering & Non-Engineering Roles | Menlo Park, CA | Full-Time | Onsite | robinhood.com

Robinhood is democratizing access to America’s financial system. Since our public launch in 2015, we’ve cemented our position as the fastest-growing brokerage with over two million users and billions of dollars in transaction volume. Robinhood received recognition with the Apple Design Award, the Google Material Design Award, and named Fast Company’s 11th Most Innovative Company in the World.

We’re backed by top-tier investors such as DST Global, NEA, Index Ventures, Thrive Capital, Ribbit Capital, a16z, and GV, as well as individuals such as Jared Leto, Ashton Kutcher, John Legend, Snoop Dogg, and Nas.

We're always hiring software engineers for different teams across different stacks. Our engineers work with cutting-edge technologies like Django, Python, Go, Kafka, React, Redux. Check out our priority roles below:

* Senior Web Engineer
https://boards.greenhouse.io/robinhood/jobs/221794

Below are a few notable roles too:

*HR Manager
https://boards.greenhouse.io/robinhood/jobs/722573

Interested? Check out the job descriptions and apply directly at robinhood.com/jobs
A Bug That Makes Facebook Page Insights Tab Disappear Keeps Affecting More Pages
convince Dell's customer service in my country to let me exchange my 5 month old U3415W monitor

What country do you live where you don't have consumer protection laws for this kind of thing?
Smalltalk, CLU, Modula-3, Oberon, Eiffel, C++, Java, Delphi already had the streams concept.

Plenty of stuff for inspiration for.NET devs.
I'm using cloudflare workers to "polyfill" client hints if they're missing with cookie logic. With their addition of being able to mutate cache keys via edge workers I find it to be a extremely powerful way of everything from per-device image optimization (or google data saver or hidpi support) to serving different pages for the same uri based on your requirements (and storing this in cache).
A language for machine-readable, human-friendly structured application logs
redesign in terms of looks or tech wise? I like the new design
Interestingly enough, IQs are now decreasing in the western world and have been since around the mid 90s. There were numerous studies showing this quite clearly in 2013 (when that talk was given) but now it seems every study is corroborating it. Perhaps we can assume he simply felt it required more research as an explanation for why he would give such an ostensibly misleading talk.

Linking to another comment chain here [1] on this topic as this is something multiple people have also brought up as an argument against grade inflation. Unfortunately, it makes the inflation look even more absurd.

https://news.ycombinator.com/item?id=17447692
I don't know what research you are pointing to.

But I am pretty sure that if, say, a student can't pass a multiplication test, but you give that student an A+ anyways, and then let that student into a "top calculus class", that's going to hurt the student more than it helps.

Ya sure the student gets to mingle with better students. But what you would usually get is, the student would end up being someone who mentions a lot of buzz words like "fractal integrals" just to fit in, but have zero idea what is going on, or what is being taught in class.
Yesterday Internet Explorer is today's Chrome. I moved to firefox few months ago and never looked back at Chrome.
The only yardstick of teaching that means anything is to look at what people go and do with what you taught them.

I spent a big chunk of my early career doing performance analysis work in a language stereotyped as being slow. My thesis was that it was down to developer skill and not the language. By the time someone spoke Knuth's aphorism at me it was people who were standing between me and the strategic goals of the company. Using it as a shield to get out of doing the hard work to match a competitor or customer expectations.

As I quickly discovered, there are a whole set of performance optimizations that also improve readability, and that got around the friction with the foot dragging Knuth quoters. There's a host of other things never show up in the literature. It's a shame, really.
OpenDeck: Software and hardware platform to simplify building MIDI controllers
We detached this comment from https://news.ycombinator.com/item?id=17444508 and marked it off-topic.
I think it's because in the new design, you do not get to choose which content to view or click on. All images are auto-expanded, leaving you with a fb-like feed rather than suggested content you can choose to dive into.
The new design made me leave as well, it had been s long time coming though. Most discussions are dumb, I can’t remember the last time I had a conversation on reddit where I wasn’t the most knowledgeable person in the thread, and that’s just a waste of time.

It’s not that people are stupid, sometimes you’re simply talking to a teenager with no life experience. Often it is because people are kind of stupid. My national (r/Denmark) subreddit has devolved into a vile place for instance, I’d compare it to t_d, it’s the best “quick” comparison there is, but it’s obviously not as bad, at least not yet.

I think /r/space is the only major subreddit that I don’t dislike, and most of the smaller ones have been abandoned.

The new design being horrible was just what tipped the iceberg.
I've sent you an email with my resume and you never replied back.
> Chrome's PDF printing function gives you an image PDF, even if the content is entirely text.

That's not true.
Side tangent, if you’re looking to share a draft book like this with a bunch of people, https://betabooks.co is a good option. Specifically designed to handle heavy load of readers and look great on mobile, etc.
3. When [not] to use a database.

4. When [not] to use the network

A lot of the performance wins I have been able to pull off (1000x) were from removing unnecessary distribution and unnecessary databases.
Please don't post multiple times in this thread. (This is in the rules at the top.)