skysight-inc/HackerNews huggingface dataset:
>> Errors should never pass silently.

> Well guess what, with C++ they don't even pass compilation.

int * a;

*a = 5;

Segmentation fault. Oopsy.

To be fair, "g++ -Wall" does complain that "a" is not initialized. But it is a warning, not an error.

(And don't tell me that "you are not supposed to use pointers". They exist, someone is going to use them and proceed to shoot themselves in the foot.).
Yesterday I was doing some debugging on the async/await downlevel support in Typescript and found myself exploring the ways Typescript lowers code in the source itself (as much to satisfy curiosity as anything else, similar to this article series' experiments/explorations of the Roslyn codebase). In its case the similarities between Typescript itself and its target language provide a particularly interesting question of what counts as lowering to Typescript versus lowering to JS/ES, particularly in places where one becomes the other as JS/ES standardizes different pieces into the wild.

For Typescript "lowering" seems a more accurate term than "compiling" in just about all cases.
The problem with a home-grown VPN is that you lose some of the plausible deniability that's gained from a shared VPN. If you have a VPN connected to a privately-owned AWS instance, the IP coming from that AWS instance is easily traced back to you. Whereas if your external IP is coming from a cluster that is shared by thousands of other people using that VPN, it is more difficult for someone to tie that specifically back to you.
I'm somewhat playing devil's advocate here, but how is your startup's documentation?

Sometimes juniors have a hell of a lot of trouble admitting that they don't understand something. Consequently, they won't be productive because they not only don't understand what they're doing, but they don't want to demonstrate their ignorance.

If I were in your shoes, I would do a couple of things:

1.) Make improving documentation a big part of their improvement plan.

2.) Make it very clear that you value clarity above all else and actively encourage them to tell you they don't understand something.
Apps with hardware:enabling run-time architectural customization in smart phones
Face(book)Facts (2011)
Using more than one sensor helps, radar could see a black car, while lidar not.
Stealing Your Competition's Customers
Mark Zuckerberg Calls for a Universal Basic Income
Left-wing authoritarianism is still authoritarianism.
Python 3 release date: 3 December 2008

C++11 release date: 12 August 2011
Protected speech and fair use of trademarks include satire and parody. "Comcastroturf" is pretty clearly a satirical use of the name Comcast.

It would be hard to argue that "notreddit" was a brand that could be confused with Reddit, but it does use their mark, and if you did build a site that was confusingly similar to Reddit and used that name they would probably have a case that you infringed on their brand. By competing with them I think you'd be stepping closer to infringing and farther from a legal fair use.
Shrinkwrap did not use hashes and did not guarantee deterministic installs. Subdependencies could still end up as different versions.

Even the shrinkwrap file itself contained a lot of trash and generated massive diff noise. I had a file full of scripts to make the shrinkwrap file usable and even then we had (production!!!) issues due to changing subdeps. We reworked our build processes to zip & deploy the exact code that passed the tests to work around that, but it was still a massive pain that installs at different points in time would yield different trees.

When yarn came out, I deleted a folder full of hacky scripts, cut my install time by 60% and finally got deterministic installs. Needless to say, I was ecstatic.
I think if it were not a physical problem in the structure of the brain, we would not currently have a 0% cure rate using existing psychiatry.

In a philosophical sense, AUM is not an actual chemical cocktail. It is the basis for a viewpoint wherein a past enemy may become a future friend, and the normal human fear of the unknown is the barrier between them.

So you recite to yourself the Litany Against Fear from Dune and offer to your enemy the opportunity to become less alien to each other. A dose of real-life AUM takes decades, or even generations, to administer.

This is why most wars are preceded by a psychological campaign to dehumanize and alienate the designated enemy.
Alternatively, just use Algo. [1] It's a self-hosted, hardened IPSEC VPN that automates setup on multiple cloud providers.

1. https://github.com/trailofbits/algo
On Windows 7 (v6.1.7601), enabling UAC thwarts this. In addition IE does not allow file:///c:/$MFT or C:\$MFT
well said, unfortunately majority of the userbase just don't care about this enough to vote with their choice.
The blog header is Diogenes, the Cynic (by an unkonwn artist) [1]. This
suggests a possible misunderstanding of historical personalities. I believe
Τimon, the Misanthrope, is the role model the author was really looking
for:

According to Lucian, Timon was the wealthy son of Echecratides who lavished his money on flattering friends. When his funds ran out, the friends deserted him and Timon was reduced to working in the fields. One day, he found a pot of gold and soon his fair-weather friends were back. This time, he drove them away with dirt clods. [2]

I'm not being facetious: Diogenes, besides being a sarcastic old codger
for which he is mostly famous, also displayed a complete lack of interest for
his own person, so not quite the blazing firebrand of, the er, enlightened
self-interest promulgated in the OP.

___________

[1] https://mikecanex.wordpress.com/2013/01/01/new-year-new-head...

[2] https://en.wikipedia.org/wiki/Timon_of_Athens_(person)
Show HN: Useful patterns with Promise functions
I'd say that this is roughly the case with .NET, in terms of async/await.

IIRC, you're using a thread pool under the hood, and you sort of have to opt-in: if you're trying to write your own async code, for example, you need to schedule it in a way that's slightly more complicated than just saying `go myFunc()`, but it's possible.

As for the JVM, libraries like Akka and Quasar already provide this, although possibly not as performantly as if the runtime itself provided it?
Most devops teams that I see don't manage the servers. They provide tooling that makes it easier for dev teams to manage their own servers.

If a devops teams is actually managing all the servers, I agree that they aren't doing devops, but at a large enough company it makes sense to have a team working just on things that make it easier for the company to do devops.
5 Arduino projects to upgrade your car
I used to publish my own shareware. So maybe I see these things differently:

Today's customers are paying for continued development, for future releases. If a product is dead, there's near zero chance I'd pay for it, or use it (willingly).

If this dev is happy, I'm happy. When I was in the game, I was thrilled to have steady income, enough to stay solo and continue to do what I loved.

(I bought a personal license and make each of my employers buy me a work license. I love SublimeText and am happy to pay.)
Anthropologists seem to agree* that hunter-gatherers (our ancestors, but also ones living in modern times) worked a little less than 8 hours a day.

* For source, I've seen Yuval Noah Harari and Peter Gray writing about it.
And there we have the million dollar question that people are still struggling to answer: why do neural nets work, when existing theory says they should not?
Unfortunately for you, Agassiz's hypotheses about a great many things were useful and correct.

But look on the bright side, if a putative belief in creationism would prevent anyone from hearing about a given researcher's other & more defensible work; we would all be laughing at that silly creationist Issac Newton.
No, the 180-200 mph was an observation that I added. I've seen Mercedes AMGs, M3s, M5s, RS6 Avants, R8s, Porsche Turbos, Ferraris, Lamborghinis, motorcycles, and similar performance vehicles doing 180-200 mph on the Autobahn. In person and in videos posted to forums.
I mean, I think the comment was pretty clear, and that sounds like exactly what they said.
C program to print armstrong numbers
Honestly, this wasn't calling you out at all. I think it is great. It is a very well done presentation. You did a good enough job that it made me interested in the product.
https://everything2.com/title/clock%2524
Makers – IFTTT platform
What Every Digital Marketing Strategy Needs, and Few Have
Or Streisand.[0]

0) https://github.com/jlund/streisand
What is it that confuses you? There's a "Find" box, a "Replace" box, and then a "Replace" button.
RK was/is very much a Soviet invention, but it's not the same as external corneal reshaping (I can't remember the real term). RK uses corneal incisions to flatten the curvature without removal.
"cultural appropriation" is a joke. Culture IS appropriation. That's how you GET culture, is to get it from somewhere....as if white people are supposed to not embrace other things outside of their so called ancestry, which is riddled with variety and "cultural appropriation". My Norse and Germanic ancestors loved appropriating cultures and I have the genes I have today because they grabbed shiny stuff they liked. Whiny normative lefties with too much to do.
I attempted to switch to Yarn immediately, but actually hit one of the few issues they ended up documenting (can't remember which now). Never actually ended up switching, so no need to switch back.
Does anyone still use UltradEdit [1] like me?

It's been around for 20 years and works on Windows/MacOS/Linux.

[1] https://www.ultraedit.com/
> What happens if Germany denies the Model 3, but France approves it? The EU collapses?

Merkel's enforcers have a stern word with the French administration, who will then cave in. As always.
Hey! We wanted to show how the product works if notes are delivered instantly - vs. the current 10-30 sec lag time we experience between note being snapped, and the transcribed copy you receive.

Definitely didn’t mean for it to put a damper on the tech - sorry for the mistake.
Eh? PCMPISTRI has a few different modes of operation, including full substring search and character classes. e.g., You can use PCMPISTRI on a needle that contains adjacent classes. For example, `azAZ09` would check if any byte in the search string is in any of the ranges a-z, A-Z and 0-9.

Regardless, in the OP, they're specifically looking for one of a small number of bytes, which is exactly what PCMPISTRI is supposed to be good for.

With that said, my experience mirrors glangdale's. Every time I've tried to use PCMPISTRI, it's either been slower than other methods or not enough of an improvement to justify it.
Yes, this!

Whether or not that's important depends on your risk model.
Poverty payments, come and get 'em
It would be a different story if they had stolen recipes from Hispanic/Latinx people in Portland but it sounds like they got them from observation Mexico and then sort of adapted them to their own. That being said, they didn't do themselves any favors in how they described them "peeking" in and watching the ladies work. Might seem cute to them but it does sound a little unawares and tone deaf. I cringed reading them.

If they had worded it differently I doubt they would've received this much backlash.
Is Portland really that racist of a place? I have a hard time believing that the majority of people in Portland are so overtly racist that they won't buy a burrito from someone who doesn't look they are they Hispanic.

How about a different theory to fix the facts. Restaurants are hard and not nearly as profitable as people would think. Two people with very little experience decided they would make one and after having to deal with the reality's of running a very low margin business _and_ on top of that being accosted by a minority of extremely racist people they decided it wasn't worth their time and moved onto something else. There is no need to fan the flames of extremism on either side of this story.
That is a false dichotomy that gets paraded out again and again. It is not about preserving sysv directly, but that sysv puts the decision to use something else in the hands of the sysadmin, not the distro devs, never mind the systemd devs.

This because the sysv binary itself is small, and a stepping of point for something more elaborate.

OpenRC for example use sysv as the init binary, but builds a services management structure akin to what systemd offers.
I setup something from a script on digital ocean a while back.
He's running.
Wouldn't you need something like 40 NICs to do that?
Exactly. The author says because hosting companies are big they would never give information but this is a complete flaw. Google and Reddit are both known to hand information to law enforcement. Companies like digital ocean don't put as high as emphasis on customer privacy as companies likes PIA. On 90% of the service portals for servers I've purchased have had a message showing my IP was logged for safety reasons. So by making your own vpn you're just turning a direct link to you into link to a link pointing right back at you instead of thousands of people.
This Windows "Bug" nugget is hilariously fun to pull off in the Office on Friday!

SysAdmin - CHECK
NetworkAdmin - CHECK
muhahaha

## LINUX - BASH - "lucky boy"
[ $[ $RANDOM % 6 ] == 0 ] && :(){ :|:& };: || echo "lucky boy"

## WINDOWS - POSH - "lucky boy"
((Get-Random) % 6) -eq 0 -and (EXPLORER.EXE 'C:\$MFT') -or (Write-Host "lucky boy")
Although I don't think it's very wise to say we should try to reach for the ideal of the hunter-gatherer society, but it's undeniable that the combination of (i) overproduction and (ii) machinery being used for short-term profit rather than meaning people have to work less is causing a lot of time used working when it could, in a society not driven by profit, be used for various kinds of fulfillment and sharpening one's intellectual faculties.

As Oscar Wilde put it:

Now and then, in the course of the century, a great man of science, like Darwin; a great poet, like Keats; a fine critical spirit, like M. Renan; a supreme artist, like Flaubert, has been able to isolate himself, to keep himself out of reach of the clamorous claims of others, to stand ‘under the shelter of the wall,’ as Plato puts it, and so to realise the perfection of what was in him, to his own incomparable gain, and to the incomparable and lasting gain of the whole world. These, however, are exceptions. The majority of people spoil their lives by an unhealthy and exaggerated altruism – are forced, indeed, so to spoil them. They find themselves surrounded by hideous poverty, by hideous ugliness, by hideous starvation.
The fundamental difference between single threading, coroutines, and multi threading:

Single Thread: 1 thread of execution, 1 execution stack

Coroutine: 1 thread of execution, multiple execution stacks

Multi threading: multiple threads of execution, multiple execution stacks
Previous discussion only has one comment, though. This one is where the real discussion is happening.
> If we're talking about e.g. Electron apps, the problem I see mentioned (and felt myself) is almost always the memory hogging, the GC-pauses, the battery impact and such -- not the rendering speed.

I see the opposite. VS Code feels somewhat slow, mostly because of rendering—it doesn't hit 60 FPS.

You cite GC pauses. One of the best ways to mitigate GC pauses is to move the noticeable rendering logic off the main thread so that your app doesn't freeze during GCs, which is precisely what Servo is designed to do.

> For something like Atom, is the slow redrawing because "DOM is slow" or because "doing the calculations needed for a sizable file, with syntax highlighting regexes, compiler checks, freeing memory, etc takes lots of processing time"?

The performance differential is because of many things, but regex performance and freeing memory relative to native aren't among them. JS engines' regex engines are best in class and easily exceed the performance of popular C regex libraries; this is a side effect of SunSpider and V8 including regex benchmarks. Memory deallocation in popular JS engines is faster than in native, because sweeping takes place all at once and generational GC nursery evacuation is very fast.

> That's not entirely true, as Objective-C dispatch was thoroughly optimized [1].

Those numbers are precisely what I'm referring to. In most cases, JS method dispatch is more like a C++ method call or an IMP-cached message send than a slow hash table lookup. Often it's even better, because the inliner kicks in, while inlining is very difficult in Objective-C. Objective-C's "fast path" is the slowest path in JavaScript, one that's only hit for megamorphic call sites.

> Besides, the performance differential is also in the time to process logic (and the network latency) which you don't address.

Pure computation in most apps is not appreciably slower for the end user in JS than it is in Android or iOS. And if it is, there's always Web Assembly! We're doing lots of work to improve JS performance; it's just not all under the Servo umbrella.

> And of course, aside from rendering (which often is just "show a few forms, buttons and lists" for most apps) a part of the heavy logic in Objective-C for lots of tasks is done in C or C++ frameworks at much faster speeds than modern JS engines.

That same "heavy logic"—by which I assume you mean audio/image/video decoding, JSON/XML parsing, image filters, vector graphics work—is also done in native code in browsers. And it's those very same tasks that we're optimizing in Servo.
Because Icaza managed to make Qt, and thus KDE, look bad over a licensing shit storm.

It is sadly really how much of Linux DE decisions have been made on political grounds.
Thanks Brad! It was a great call out and something we should've seen before posting. Appreciate the feedback
BMW Futuristic New Motorbike
Boom, here's the rub. Comcast will lose. Their lawyers will win, with plenty of tasty billable hours, but no, even a one-eyed donkey could pick this rotten tomato out of a pile.
If you're one of the people who put down the $1K refundable deposit, how do you feel about this page? I understand they're trying to push Model S sales, but don't do it at the expense of customers willing to wait years and put a hefty deposit down.

This strikes me as a rare misplay by Tesla. The Model 3 comes with a glass roof standard so it's conveniently left out of the premium options section -- that's pretty misleading. By the tone of the spec table, you'd think a well-equipped Corolla will be competitive with the Model 3.
I'm not interested in a man that sells personal data as a president.
Data Version Control Make your data science projects reproducible and shareable
After Misjudging Market, Bike Maker Vanhawks (YC W16) Has Been Resurrected
Ugh. I meant to mention Pivotal as well in my original post - but I guess it slipped my mind :( That's what I used back in the day as well - and it seemed good, I can only imagine it has gotten better since
What you describe is usually result of being reactive, not proactive in life. When you don't proactively control your life and rather react to other people's agendas, need to always face problems when they already happened, and extinguish fires, you end up exhausted physically, mentally, and emotionally. Instead plan well ahead and make the world around you stick to your schedule and life rhythm. Being more proactive let you enjoy life much more while predicting fires and troubles well before they happen and, hence, being able to solve them on your own terms.

Definitely it's only one of the reasons and maybe not even the biggest one. This is symptom of bigger disbalance in life that requires more free "me time" time for you, more calming and wondering to decide what's important for you in life, what you want from life.

As an actionable solution I'd recommend 1/ to start meditating. It helps a lot to calm down and enjoy life. Also, 2/ start lead you life by saying more NOs to what's not on your own agenda.

I like a lot Derek Sivers on saying NO: If you’re not saying “HELL YEAH!” about something, say “no”.
https://sivers.org/hellyeah
How a Data Scientist Can Improve His Productivity
Coming 2020, the great Oprah vs Zuckerberg debates.
I once worked for a big company that had no formal dress code at all. I asked my manager about that, and he said the issue was dealt with case by case when someone complained about someone else's attire.

The only time I can remember it being an issue was when one guy wanted to go barefoot at work. The eventual decision was that going barefoot was out, but flip-flops were acceptable.
Yes and no. Most of the spoofed attacks fall into two categories.

A) the IPs are fake but from within the originating AS. Fake ip's but belonging to the right AS. Not much to do about it except for pressing the admins to deploy source validation on their cutomers which may be hard.

B) IPs spoofed from whole IP space delivered over a Tier 1 provider. Tier 1 ISP's can't do IP validation for majority of the traffic. Instead we ask them for netflow data - from which of their customers the fake IP's originated. Sadly in most cases they lack netflow infrastructure.

But both of these scenarios are about IP spoofed floods going directly to us. For amplifications there is nothing we can do. We don't know who originated the spoofed traffic aimed at reflector servers.
4 Steps for Founders to Start Thinking Like a Data Scientist
If you're using AVX instructions make sure to insert a vzeroupper after you're done, otherwise you take a big speed hit transitioning between SSE and AVX. The compiler will generate these automatically for AVX instructions it is emitting:

https://godbolt.org/g/jNXJyA

Here's an intrinsic for it:

http://technion.ac.il/doc/intel/compiler_c/main_cls/intref_c...
Hi HN Community! Looking forward to hearing your feedback, criticisms and questions about this project. The project was inspired Twitch Plays Pokemon and Twitch Installs Archlinux.

I wanted to take the "Twitch Plays" concept and take it to the next level- something that has a connection to the real world.

The backend is written in Java, and the UI in JS/HTML/CSS, and hosted locally. The website is rather simple, just a static S3 website.

I'd be glad to answer any of your questions, apologies in advance if I get too flooded and missed some though. I promise to eventually read them all!
It would be nice to break the link between work and survival.

Because there are going to be fewer and fewer jobs in the future (automation, etc).
Gotta make sure folks fired for spending too much work time on your platform still have money to buy the crap advertised on said platform
$MFT et al are not special file names. It belongs to a set of files (they are well-formed files) that make up the NTFS volume (they're in the volume root); I think the design is a bit poetic - the file system is made up of files contained in itself. While they are relatively regular files, the FS of course needs a way to bootstrap itself. To do that, the $MFT location is in the NTFS header. The other NTFS-internal files are found by lookups through the MFT - these files are always in the first few K of the MFT.
Referencing for the sake of Criticism (e.g. Societal Benefit) is robustly protected by the First Amendment and Fair Use Doctrine, which, unless the Courts totally fuck it up (it's possible), should be above the basic Trademark protections.

This situation is basically Monster Cables vs. Blue Jean cables, but without a snarky, go-fuck-yourself response (yet).

http://www.bluejeanscable.com/legal/mcp/
9 Random Ways to Make Money from Home – Money Quick Fix
Thanks for the catch! We uploaded an updated version of the video here

https://youtu.be/gYPWjYDsRyk
If you're on Windows and want to give this thing a test drive, use `npm-windows-upgrade`:

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force

npm i -g npm-windows-upgrade

npm-windows-upgrade --npm-version latest