skysight-inc/HackerNews huggingface dataset:
It is always good to get to know your MCUs. When I first started using STM32s I would also scope the crystal and then toggle some pins as fast as possible to make sure.

Many gadgets later I trust the programmatic detection of external crystal use and appropriate PLL function. If you HAVE to know if the crystal fails you can use the CSS (Clock Security System) to generate interrupts in case you fall back to the internal oscillator.
What's the benefit over myBlock() and otherBlock()
While it may be correct as per the defneition of the word, it's usage in that manner is (as far as I can tell) extremely rare if not non existent in the industry (embedded systems, computer engineering, microcontroller work, etc). Therefore, even if it is correct in the literal sense, it's usage this way introduces so much confusion (due to it meaning something else in those fields), it's effectively incorrect.
In general you are right about U2F, it's really much better than e.g. TOTP. But even U2F can be phished: https://www.wired.com/story/chrome-yubikey-phishing-webusb/
Thirty years of edge case fixes are harder to re-write than anyone expects. Even harder is trusting the result. Did you get all the edge cases in the re-write? Will my code be inaccurate because of one you missed?
You are right, of course. I have corrected the parent comment.
ya but they could also teach us karate
I find it irritating how the tech world conversation about this seems to center around "proof". This is not a court of law, it's not innocent until proven guilty. The bar for decision making on this issue is not "beyond an unreasonable doubt".

We're talking about letting a company under the control of China, the country responsible for ongoing mass-scale industrial espionage at every level of our economy, build the core communications network for our country. It's insanity that it's even open for discussion.
All the watch companies that adopted anti-counterfeiting measures believe otherwise.

Edit: And the fake watch makers copy those anti-counterfeiting measures. That's how we know your story about buyers being aware of what they're buying falls apart.
Because just like almost all vitamins, more doesn't mean better, you only need to make sure you get a satisfactory level. If you eat fish regularly, if you drink a lot of milk, if you eat a lot of fortified foods, you already have enough vitamin D and more won't help you in any way.

If however you don't eat a lot of fish or dairy, and specifically avoid commercial fortified foods (like anyone on a 'natural' healthy diet prepared from scratch, doubly so for vegetarians), and live a modern life indoors without tons of sun exposure, you may have a deficiency and supplements could help.

It is far cheaper however to go to a doctor and get tested for vitamin deficiencies, and correct those specifically, rather than spend the rest of your life over consuming tons of vitamins you got sold on that aren't doing anything.
Correction: December 2018, not 2019.
Very nice writeup, those clock registers get so hairy and your notes are phenomenal!
They started giving education discounts and they provide really good customer service. I don't really have much of a problem with their closings other than I now keep a bit of a track of Jewish holidays. As long as you get your order in by early Friday, it tends to ship as fast as anyone. Plus, being assured the electronics I order is actually what makes it to my door makes it quite a bit nicer than Amazon.
In principle, it's a fine idea, if we started with something like wasm. But JS the language is already horribly bloated in many ways, so it's hard to justify avoiding new features on the basis of KISS - that ship has sailed a long time ago.

(OTOH, note that nobody is proposing to add this sort of high-level stuff to wasm. That's because it's designed to be a compilation target, and it's actually good at it.)
Ask HN: Should I learn ReasonML, ClojureScript or Fable?
I want to bring powerful features of functional programming into web development. I am not big on the maturity of tooling and support if others( among these three) have better intrinsic features because of which we can conclude it to be more promising and needful in the future.
The majority of people running jails & mental hospitals in the States are people who enjoy power over the unfortunate. The jobs aren’t attractive, they don’t pay well and thus an unattractive crowd you will find. Humanity isn’t pleasant just because we desire it. People are capable of never wanting a person to succeed and will do deliberate actions to make it be a reality. That’s the unpleasant truth of the legal & mental system in the United States.
O wad some Pow'r the giftie gie us
To see oursels as ithers see us!
It wad frae mony a blunder free us,
An' foolish notion:
What airs in dress an' gait wad lea'e us,
An' ev'n devotion!
I found tutorials like this [0] one to be pretty useful, since they show how to actually use frameworks like LLVM, and lex/yacc/etc. practically. Note that this one is from 2009, and uses an outdated version of LLVM. Actually following along requires some debugging and digging through documentation, which is also helpful in its own way.

[0] https://gnuu.org/2009/09/18/writing-your-own-toy-compiler/
> Obviously the tech crowd has known for a long time

Who else but the "tech crowd" implements SMS 2FA on these websites? What does it say about our industry if we're pushing solutions we know to be flawed?
That's a cost-benefit equation that every country needs to make for itself, but it's one that you see frequently in defense contracting - a country will be perfectly happy to buy e.g. a tank design (and several hundred examples) from a foreign country, as long as it includes the know-how to manufacture them locally.

For example, in the rather interesting Israeli case, purchase of the F-35 was conditioned on Israel being able to replace the avionics, which are probably the part most vulnerable to unnoticeable tampering.
The media today has descended into opinion, disinformation, fud, fakery, outrage and whatever it takes to get clicks today with no regard to reputation and viability tomorrow. It’s a race to the bottom for ad dollars. It’s such a shame it’s come to this.

I don’t think we can even question journalistic rigor since it’s hard to believe their editors care.

Imagine your mother in a dispute with a neighbor, and you question your mother right in front of the neighbor. No, not all competitors are equal. The consequences of choosing one over the other is more than who will do the dishes tonight.
How can you say they're no worse nor better? That's a loaded statement without qualification. It is entirely possible (if not highly likely) that one approach is better (for all or most use cases)
I would love some of the syntactic sugar from Swift. Swift's `guard` and `if let`, along with the nil coalescing mentioned in another comment make Swift a joy to write.
I remember reading this article back when it came out, and it made me think a lot about software licenses.

I encourage everyone here to invest some time to read the different libre and open source licenses out there and decide which one would be the best for the software they produce.

The choice of a software license is important and is a political choice.
Types are a subset of contracts. Contracts are plenty useful at runtime, as evidenced by the fact that every language that offers design-by-contract (most of which are statically typed) still provides runtime checking facilities. Furthermore, they're usually enabled by default for preconditions, which is what argument types are.

Nobody will handle such errors - contract violations are not supposed to be handled, they're a coding bug. You "handle" them by fixing the caller such that it never violates the contract. The benefit of having a runtime check is that it can detect the error instead of silent wrong behavior potentially followed by state corruption and further bugs. Most of the time, these will fire in automated tests, anyway.
Thank you makes sense
>not huawei itself.

But how would you prove that huawei (the corporation) was spying? I'd imagine that you would need proof that it was officially sanctioned within the organization, at multiple levels. Since spying is illegal, you'd expect that if they were spying, that they'd be doing it in a way that generates plausible deniability for the higher ups. So it's not surprising at all that all the criminal charges so far are for employees acting on their own accord (or at least appear to be).
Constants are not deeply immutable in other languages either.
Crop breeding is completely different from GM. The first GM products had fish DNA... in 1995? You can't do that with 1800s science.

There's a lot happening in this sector, some of it good and some of it bad. GM isn't necessarily bad, but it might be pandora's box. Monocultures are definitely bad even if they are pest resistant. We don't know how this will play yet. Some apprehension is normal.
LaTeX template for a developer CV
That used to actually be the running joke in the various laptop repair departments at this one repair depot I worked at.
The OP’s conplaint is actually that paypal sides with the consumer too much, enabling fraud. If I wanted it’s fairly easy to do since paypal pretty much refunds on request if you show you return something, and by something it literally means anything, including an empty box.

The disputes system is horribly inefficient. Reqarding fraudsters is worse than simply losing the money to mitigation efforts, as reqarding them incentivizes them too!

Right now payment processors are fairly detached from the negative repercussions, so they basically encourage customers to do chargebacks or disputes.
The course is available here: http://academictorrents.com/details/54cd86f3038dfd446b037891...

It is legal, not a pirated version.
Eliminate error handling by eliminating errors
Making Ultima Underworld, Part 1
You realise that’s how the rest of the world views the US? The US spies on the rest of the world; Cisco etc install back doors. The US was spying on Angela Merkel. For the emerging world, this is good, there’s finally a counterbalance to the NSA and US tech companies mass surveillance. The US isn’t the world’s largest economy anymore (PPP adjusted, soon to be in nominal terms as well.) so this idea that the rules of the game don’t apply to the US is past it’s sell by date. To someone with privilege, equality seems like oppression.
>That’s the crux of the argument: nobody thinks Huawei is spying now. To get caught would be too dangerous. But nobody knows that it won’t spy in the future.

Huawei was implicated in the hack on the African Union. [1,2] Now, that hasn't been proven anywhere, nor have they been formally accused, but it came up when Australia dropped them for 5G.

1. https://outline.com/WfCzFe (same as [2], outlined)
2. https://www.theaustralian.com.au/national-affairs/national-s...
BestBuy is a step down from frys, which is itself a depressing experience.

Poor inventory, mislabeled items, disinterested staff.

I happily shop with New Egg simply because of they stood up to patent trolls: https://arstechnica.com/tech-policy/2017/07/newegg-fought-it...
Managing Azure Subscriptions and Resources (Part 1)
Can anyone explain why this comment is being downvoted? Is it a matter of "yeah but Amazon does it too/is worse"?
I tend to take the a .gitignore for C# and merge the Node baseline together, add in test* and .* roughly speaking [1]

For that matter, anything using node/npm on anything but SSD/NVME is VERY slow (HDD, even enterprise drives)... local builds for me are in a couple seconds for a large complex project, on the servers it's minutes. So, YMMV.

The API layer I'm working against is .Net core, local build is under 3 seconds, building/deploying 12 seconds on my desktop (kills existing container, builds in one container, deploys to another and starts) docker for Mac, probably faster on linux... NVME drive on i7-4790K, 32GB RAM.

[1] https://gist.github.com/tracker1/8cd6309ecc3e480616f79e83712...
>there’s finally a counterbalance to the NSA and US tech companies mass surveillance.

Pardon my analogy, but that sounds like one kick in the shins being counterbalanced by a second kick in the shins.
For value equality, I feel like the whole value/reference type distinction is an unnecessary distraction. What we really need is different operators to handle object identity comparisons and value comparisons. Whether an object can be meaningfully compared by value to another object is orthogonal to whether it's a value type or not - e.g. arrays are reference types, but there's no reason why any two arrays can't be compared element-by-element.

One language that gets it mostly right is Python, where "==" always compares values, and "is" always compares references. Thus, you can use either for e.g. lists and sets, depending on what you actually need at any given time. However, Python fails in that it doesn't give the same flexibility in many contexts where the comparisons are implicit - e.g. in dicts and sets (it always uses ==, instead of letting the user specify an equality function).

Ironically, a language that gets it fully right - including the standard library - is VB.NET.

I'm not even sure that value types themselves are such a useful concept. A value type can be thought of as an immutable reference type, where any mutations done via the reference simply cause a new object to be created and the reference changed (semantically; under the hood, it can be easily optimized down to in-place update).
Whether or not other countries should US suppliers isn’t relevant to our own decision making process.
wouldn't it be a fairer comparison screws to transistors?
> linear functions from 2^n to 3^n

Say what?
I wouldn't say this is really a u2f problem. It's a "you mounted your secure lock with screws accessible from outside, so your lock security is irrelevant" situation.
You may mean partial classes or generics... it's had static classes since the beginning IIRC.
Same. Best Buy also price matched me on a new Macbook Pro, for up to a year. So when Amazon dropped the price by $200 later on, I showed my receipt and that to Best Buy, and they matched it. That's how you get me coming back.
Pictures of Singapore from the same spots, 30 years apart
Huh, what is the point you're trying to make by bringing up proof that companies can and have been influence by their host governments to spy and steal on their behalf?

China would be crazy to let US controlled companies access to their critical infrastructural. US would be crazy to let Chinese controlled companies access to their critical infrastructural.

Welcome to geopolitics.
It's not about who implements it, it's about who pays to implement it and gives the orders.

The tech crowd isn't implementing SMS 2FA for fun. They're doing so because the manager is like "wait what! they'd need to install an app? but we can just use SMS! I don't care what you say about it being insecure, it's still more secure than not having it!"

What's the fix? I mean for fucks sake, naming & shaming companies doesn't ever work for security stuff. It doesn't even work for getting https on login forms; it's not like it's easy to push through the nuances of SMS 2FA's security issues.

Or even tech stuff in general. I just moved to Belgium and half the national services here don't know how to dial an international phone number, don't support + or 00 at the beginning of phone number inputs, etc. There is no end to how technologically illiterate services can be. And yet, it's still "the tech crowd" implementing all these things.

We need to find a way to push these obvious fixes through, but as far as I know, short of reporting the issue and crossing your fingers someone relevant hears it, it's not possible.
From the article:

>Only this week, the U.S. said it doesn’t need to show proof, citing the company’s ability to be "leveraged by the Chinese government."

This is actually a valid argument. The leverage is all that is needed for there to be a real threat.

However, it is also another reason responsible countries, which could include the US if it wants to be one <cough>, should not allow the creation of laws that would give them analogous leverage over equipment makers in their own countries.

In other words, no back doors, and no "it's not a back door because we call it something different" back doors either, or else the US does not get to make this argument against Huawei.
Oh, since you put it that way... We should just invite all the world's spies right into the country unimpeeded.
Load Any HTML with Self-Closing Tags and Convert It to Excel File in Android App
How does that have anything to do with how the US decides to deal with Huawei or China for that matter?
I love this book. It's on my retirement pile! (Hopefully mazes will still be relevant by then.)
> It's no surprise NATO allies would not want to cede their comms infrastructure to a power which continually has engaged in cyberespionage/warfare against industrial and geopolitical rivals.

It's long been rumored that the US does this in spades (and is quite ahead of everyone else in doing so).

It's less about ceding power, and instead ceding power to the devil you know vs the devil you don't.
There's a lot happening in this industry and even I group "GM" in with unripe hemp-thistle-core "ripen on the shelf" tomatoes. GM wasn't introduced for better tasting healthier produce. GM is used to product more resilient longer shelf live produce.

Don't be surprised when pseudoscience believing corporate-cynical customers don't trust the newest food tech, when it was only developed to increase corporate profits in the first place.

Maybe people just want what they think is 'natural' with the understanding that breeding is different than Genetic Modification. One works with the tools nature created the other is playing God.
The Nera E-Bike Is the Electric, 3D-Printed Motorcycle of the Future
It's funny, post 9-11 I was pretty down and out for a year or so post-dot-com etc. I learned C# using the command line compiler and the complete reference book in 2001-2002. No IDE at all, and building with BAT/CMD files.

I don't think the tooling caught up to the ease of not using the built in tooling until VS 2005 for me. Of course by VS2012, it felt like such a bloated slow mess, I don't think I've looked back much until relatively recently. Been doing a lot of Node work, which I tend to think of as very low friction.

These days, I absolutely love VS Code which tends to strike the balance of more than an editor, but not slow and bloated like a typical IDE. Integrated file tree + terminal are the best UX to me.
Consumption also turns into a way to show status to attract mates, and one of the most resource consuming activities, traveling, is currently in vogue for those who have attained housing and food security.
But but everybody says "you cannot roll out your own crypto" so we should just stop trying anything new I think /s
I had one interview derailed when I did this (earnestly answering, not name-dropping).
It is active and worked for me just now.

Make sure to use 'curl -L' to follow the redirect from http to https. 'curl -v' might help you debug.
It seems you’re going on the assumption only the US spies and no one including its allies spies on the US back. The rules of the game have always applied to the US. You just only hear about what the US is doing.
I haven't really used R# or Rider so cannot comment there. Will say I love VS Code and the progress it's made. Though once they had a file tree and an integrated terminal (bash on win/lin/mac) I've been very happy.
Who is Nokia?
This false equivalence is just ridiculous.

The US may spy on other countries. Sure. Every country does. But it's what they do with the data that is important. Does the US have a social credit system ? Do they have a mass "re-education" program for people who have said anything critical of the government ? Do they do what they want without any checks and balances (journalism, courts, laws) etc ?

China, I would remind you, is a dictatorship not a democracy. And the only way it remains that way is by using data to stamp out dissension. It's a completely differently situation to the US or frankly every other Western country.

For example look at what happens to Australian citizens in China based on what they say about the government:

https://www.smh.com.au/world/asia/detention-of-an-australian...
I've heard someone make the opinion that the only main US is so worked up about Huawei is the nsa can't get they're own backdoor in the equipment
Organic is a controlled term when it comes to food. One cannot w/o penalty of jailtime just put "Organic" on a food label.

Natural has no such protection or meaning. When you see it on a label, just photoshop it out in your mind.
San Diego next month! Thanks for posting this, I might check it out.
The only thing I have ever found really objectionable about GMOs is the so-called Terminator Gene, a way to prevent plant reproduction by making seeds sterile. Monsanto has promised not to use the technique, but its existence is still frightening; not merely from an "IP-protection" perspective, but from possible military or terroristic use as well.
Nice... thanks for posting this, will try to remember next time I touch the build server(s).
The algorithm is applicable to video games. As you yourself point out it'd not be a lot of effort to rewrite. I suggest you read the very next paragraph, which ends:

> I do not pursue speed/optimization at all, my goal is to show the underlying principles.

...

> Just target Windows and use Direct3D, 99% of PC game developers do just that.

Misses the point of the series. From the introduction (linked at the top of the page):

> I do not want to show how to write applications for OpenGL. I want to show how OpenGL works. I am deeply convinced that it is impossible to write efficient applications using 3D libraries without understanding this.

The exact same could be said for Direct3D. He gives his students a class to read/write TGA images and set pixels for that article, which should make it exceedingly clear that the point is to ensure the focus is the algorithm and no irrelevant details to teach the principles without people being sidelined by worrying about libraries, and differences between platforms and the like.

And in any case, I explained to you what the appeal of this to people here is. That you think it could be done differently does not change that the appeal to people is exactly that there are no dependencies like Direct3D or Windows or anything else (I don't have Windows anywhere, so for me that would have made it relatively uninteresting; as it would for a lot of other people here). I don't care about the performance; I care about the concepts.
Perhaps we've banned Huawei because they don't allow their phones to be hacked by the US? Nothing the US claims can be relied on, so we should continue looking critically at why the US government wants to block their use rather than take the US' claims at face value.
You know in China they're saying about Apple, "we're talking about letting a company under the control of The United States, the country responsible for ongoing mass-scale industrial espionage at every level of our economy, build the core communications network for our country. It's insanity that it's even open for discussion."

It's all about perspective. There is no vendor free of government influence. You just have to pick the least bad.
True, but it seems to me like a difference in scale rather than kind.
Let's be clear. The US isn't the only one getting worked up here.

It's the Five Eyes alliance countries as well as the EU and handfuls of other countries. Even if the NSA had backdoors in all of the equipment I would be much happier it be the US using the data than China.

At least in US you have courts and journalists which will hold the government to account.