skysight-inc/HackerNews huggingface dataset:
> The majority of C code doesn't manipulate pointers either

But it's not just pointers. C is unsafe at every turn. Assignments can give undefined behaviour, as can the arithmetic operators, as can varargs... the list goes on.

int i;
int j = i; // undefined behavior

int m = 0;
int n = 42 / m; // undefined behavior

int x = INT_MIN;
int y = -1;
int z = x / y; // undefined behavior (assuming two's complement)

printf("%d"); // undefined behaviour

> Rust is not going to magically solve these problems for unsafe code...

It doesn't need to. By providing a language where only a tiny fraction of a well-designed codebase needs to use the unsafe features, the number of safety-related bugs can be vastly reduced.

Rust does not aim for perfection. If you want that, your best bet is formal methods.
he said he was sending the army to start shooting, not sending the police to stop violence.
Two dials. All you need are two dials. If you can’t find space for that on headphones then you should consult a physician.

My friend has a pair. On one can is the speaker volume, on the other is the noise cancelling. So effectively one volume knob for your music, and one for the outside world. It’s dead simple and sensible.
which again is used to refer to a violent response to a violent action.
Coffee fueled logic generators?
Same here. I'd love to hear more.
> Since America has no problem with authoritarian measures that are meant to 'protect' us from ourselves and each other.

What are you going on about? Every country in the world is enforcing social isolation now...
Is that also the reason they launched with a public mod log, tags, and downvote explanations?

The presence of a trivially bypassed invite tree completely invalidates the public, historical reasoning behind the founding from the founder themself in 2012?

Feel free to open those links I posted before replying.
Not immediately sure if you're talking about Trump or Dorsey here...
Part of the reason people hate FB and don't use it, is that their leadership is afraid to make risky decisions for the benefit of their users and the quality of their platform.
'safer' in this case means protection of their profits rather than protection of people.

well done FB /s
IMHO even HN is being astroturfed already...
They are favouring pages that weigh less. But they don't say they are putting pages that weigh less above pages that use AMP (if they weigh more). I'm guessing it's another point on their metrics. If it weighs < X MB it's one point, if they use AMP it's another point, so those would still appear first.
He could, but it would be a bit like Reddit/voat situation for an independent platform. Otherwise where can he go for remotely comparable publicity? IG/FB? I don't see FB working with his style of communication and it's not as easy to embed in news as Twitter. Ig would be closer.
I think because it just restates what's in the link being discussed, when the link is not inaccessible nor behind a paywall. There are a lot of people who think that's bad form on HN. That's my guess. People trying to force everyone to "read the articles" on HN.
I actually looked into code of your metronome to see how did you solve timing issues. I once tried to implement drum machine in JS and run into that setTimeout/setInterval are very very relaxed about precision.
I live in Romania, not Russia, and you're correct, the powers that we protested against also employed agent provocateurs. They were easy to spot though (youngish, like 17-18, looked like they belonged to some football ultra movements) and the other protesters took almost immediate action against them (isolating them, mostly).
Yeah, and I’m sure slaves got three meals a day, a job for life etc. etc.

Let’s agree that having different classes of citizenship is just a terrible idea for the precious values of freedom, justice, and democracy. No other argument really matters. Working backwards from that, we should eliminate any circumstance in our control that creates any special class of citizen, be they living in gilded cages or rusty iron ones.
At the same time the US may revoke HK's special status removing Hong Kongers access to visa free travel in the US.
you are correct, it's a majority of racists that got him elected.
It's already enabled and lots of people use it, although it's not compiled in on the mozilla-provided builds (but downstream builders enable it).
Very smart people might have been duped into investing alright, but it's not because they were duped to believe in the tech or the product, rather it was because they were duped to believe that a bigger sucker will come along as from their previous experience one usually did eventually.
Is there a version for literate people?
I've referred to this as hyperfragmentation, you see it everywhere. You can find your match on anything -- if you like green boots displayed in a slightly warm light under a palm tree, you can find other people who do.
I've mixed opinions over the recent breakages I've witnessed in OpenSSL.

On one hand, I absolutely hate a library which breaks its API (I think lack of stability in interfaces is one of the bigger bane of the software industry and causes numerous issues down the line).

But in the specific case with OpenSSL, the breakages are legitimate imho. Most of the breakages I have seen are to clean-up interfaces and have a clear boundary between OpenSSL internals and items controlled by third party apps.

Concretely, they are switching from an API which exposed the internal structures directly to a getter/setter pattern.

Example in from one of my project:

old:

ts_response->tst_info->serial

new:

TS_TST_INFO_get_serial(TS_RESP_get_tst_info(ts_response))

Breaking APIs is always a balancing act, it's not something which must happen willy-nilly, but it's sometimes a necessary evil, and in the specific case of OpenSSL, if the project wants to go forward and improve in quality and stability, they are kind of forced to do it, it's just a bit regrettable that better design decisions had not be made from the start.
Isn’t one of the rights of states to get two senators and some votes in the electoral college?
"people earned their salary" and "learned something" aren't great arguments.

Building a bridge that collapses minutes after construction also entails workers earning salaries, and perhaps learning something. that still doesn't mean it's a good use of funds, it's waste. you want the investment to create actual value for someone.
WSL1 was a translation layer. WSL2 is a VM.
One angle I don't see discussed: I wonder if Trump commits to more risky/bombastic/divisive plans as president because he feels confident that he can directly frame them and control the narrative by using his audience on Twitter, and he feels emboldened by how immediately Twitter is able to deliver the reactions. If there's a chance this is true, I can especially understand Twitter wanting to have no part in this. It would be fucked up to force anyone like Twitter to be the ones working to support this if they didn't want to be the ones doing it and associated with it.
I wonder how important keeping data local versus in the cloud is for users? Does encryption affect that?
I don't think things should be open source just for the sake of it. Because open source means different challenges:
- who work on it?
- on which time? Personal free time?
- will it be sustainable in the long term?
- is a company supporting it?
- will the company support it in the long term?
And so on...

We can see many open source successful projects supported by a community of volunteers. But also lots of open source projects which were supported by companies but are nearly abandoned.

My opinion is that companies should open source most of their software and dedicate employees time to open source projects. There are multiple benefits:
- employees learn to work in public, and reach high level of code and documentation quality
- employees improve their soft skills
- company get free developer relations marketing (something like this)
...

So I wish all products were open sourced :)

(By the way I open sourced my API mocking tool some years ago (https://mockoon.com) and it has been the best decision of my developer life)
Pagemaker was the first killer app for the Mac

https://www.britannica.com/topic/Apple-Inc/Desktop-publishin...
I would suggest that maybe Hillary Clinton's campaign and candidacy alienated many people in the center. In my mind, that seems to be the simplest explanation for the existence of Obama-Trump voters.
100% agree with you. I recently sort of "launched". Product is still in development but I wanted to start getting the word out. I posted on ProductHunt, shared on Facebook and was waiting to blow up... nothing happened.

I got more visitors from briefly mentioning my site on a comment here on HN than from ads and PH.

Anyway, after a week of sulking that I wasn't the next Facebook overnight I buckled down and continued working with more long term vision. Growing a userbase takes time, 99% of the time.
Everything sucks, 2020 edition:

If you use any complex system enough, whether that’s hardware based, software based, or people based, you’ll eventually get come up against all the pain-points.

Especially if you’re tired and / or under time constraints.
Hong Kong people once had full British nationality, including a British passport with the right of abode in Britain. But that right of abode was removed in 1962. [0]

The history is more complicated than most people think. As a child (early 90's) I had two friends from Hong Kong after a wave of immigration that started after Tiananmen.

[0] https://web.archive.org/web/20160424062259/http://www.taiwan...
I so think KMT prefers it to be named "China" than Taiwan. Though they are a bit down on electoral fortune, they may get into power in the future too.
Grim Lessons in Customer Validation
Hrm, you identified your target market within the first tens of words: freelancers working on UpWork.

But you launched on HackerNews. Why didn’t you seek out communities that freelance, especially on UpWork? That’s where you plug your product, after becoming a valuable member of the community.

And becoming a valuable member of that community IS something you can do: you can give free advice on winning UpWork jobs, how to increase chances, etc.
Did they label them as being for NAS? This is the issue. They are unsuitable for use in a NAS.
In fairness, Trump's tweets are not about actually doing anything, they are more about getting votes. So arguing the feasibility of suggestions outlined in a Trump tweet kind of misses the point.
I have the blue 6TB, but am not in the US. I've emailed the lawyers to see if I'm eligible to be part of the class action (I'm guessing not)
Side topic: Should government control looting when it comes to violent protests?
Lambdas are assigned to function arguments/parameters. Pretty sure assigning a lambda to a variable is an anti-pattern.
I love PA, but I wouldn't say that using them is "being done with it". Containers are pretty useful for all sorts.
You say this as if racism and economics aren't directly linked. Think about it for a moment. Racism has always served economic purposes in slavery, cololization, resource extraction and poverty. It's quite obviously in the self-interest of the dominating party.
Does SRI allow signatures? I want to have a policy where any script signed by my Ed25519 key is valid, I don't want to have to hardcode the hash everywhere.
But they aren't offering citizenship. They're simply considering offering a route to citizenship - which would typically take 10 years.

High quality sources of immigrants are hard to come by - the UK is right to extend a hand - particularly considering their strong historical ties to the region.
Property Based Testing with TypeScript
Well sure, but when people are sufficiently annoyed they tend to change the offending facts.
While the demographics non-overlap is true, it's not an insignificant number listening to him either. But he gets something else from Twitter: famous (verified) people involvement which amplifies what he's saying, and the profile being public to the world in a trivially news-embeddable form. I believe it matters and if he got a separate blog-like site where he can post, the reach and reuse of his posts would not be even close to what it is now. (and he'd possibly be less motivated without seeing the number of likes)
Modern Cloud-Based Solutions for Employee Monitoring
> I always look at that like a soldier jacked up on adrenaline wearing an arsenal of ammunition ready to destroy the enemy having forgotten to ask who the enemy is or where they are. Lost. Maybe if they just start spraying ammo at everybody the enemy will suddenly make themselves known and something will stick.

That is about the most American way of putting it.

It also describes America in the middle East and lots of Africa. Weapons had to be sold and/or money had to be made. So people were attacked and when people started shooting back, suddenly there was a reason to invade.
There's a case before the Supreme Court about this right now, and I can't really guess what the outcome will be.
Also geographically the major portion of HK, the New Territories has gone back to China in 1997 because the British had lease of it only till that time. Only the HK Island and Kowloon areas are the territories British yeilded to China under agreement. So post 1997 Britain had a claim only to a small part of the geographical area of HK.
> How on earth would a 4-6 digit PIN be more secure than my 20+ character password ?

Because a 4 - 6 digit PIN you can remember, while a 20+ character password you write down and in many cases store insecurely. Some even store it on a post-it note next to the keyboard.
It makes perfect sense. No one of any importance wants to be the first to piss off mainland China.
It does indeed. If you check out the advanced tutorial on the site you'll see it's in TypeScript.
I'm not even talking about clear cut API breakage. I'm talking about that if I do #include <openssl.h> and build against the 1.2.x system installed OpenSSL I will get thousands of errors from headers internal to OpenSSL.
Welcome to the Zoomer Age
Shooting looters?!

Can't he drone strike middle eastern people or start another war, like decent American politicians do?
Removing Trump would not remove entire half. (Assuming there's even a half) Some would move, majority would be just fine with occasional screenshots from another source, and lots would find a different celebrity to follow.
I think people view political asylum as a last resort, though, and it's generally not all that easy to get, at least in the "more desirable" countries.
TBH I kind-of self sabotaged my Amazon interviews as I was terrified by what I was reading about working conditions there in Glassdoor. Half of my brain was pulling me out the whole time.
I cringe whenever I have to use a language accelerator.
Looks like if they did do this in the past they are now attempting to move away from it:

https://arstechnica.com/information-technology/2020/04/seaga...
Predicting the future is notoriously hard.

I think plenty of successful products were once in a shaky/buggy/bulky state.
The hype was high on AR and only a few experts had a good understanding of the constraints, especially about optics, physics, and sensors.
I have never used Laravel, but I am an avid user of Flask. In fact my current project is built in it. Do you mind expanding on why you're transitioning?

I hope you don't mind me saying, but it sounds like you didn't have the best setup (i.e.: > raw SQL queries with psycopg2). With a couple of packages your environment and dev process would be a lot smoother.
everytime i hear about nativescript i get back to their homepage and wonder why it's not more popular. It seems to be working pretty much the same way as react native, except with a more beginner-friendly documentation and onboarding, and support all the major GUI frameworks.

What are the downsides that holds back on the adoption ?
Yes, there's nothing wrong with SMR at all, if it's not your primary storage device (though I doubt anyone reading this is in danger of making that choice in 2020).

It's roughly a 25% boost from the same physical platters. If you're storing large files with a primarily read workload, it's almost certainly the right choice.
I felt similarly but I recently tried it again after about 10 years with a very small amount and had a really positive and fun experience.
Twitter should have suspended the account of a repeated rule breaker a long time ago.

If I threatened to shoot the president, I would be in jail already, not to mention my twitter account would be suspended.
The 2012 referendum had a 78% turnout of registered voters, and still had a majority for statehood.
One of my favorite examples of this is Dreams by Fleetwood Mac, but that may be because I've been practicing it on harmonica.

The song begins (with note names and relative major scale numbers):

Now here you go again
A C D E D C
6 1 2 3 2 1
(low)

But that's not how Stevie Nicks sings it. She starts the word "go" very flat, not quite all the way down to the Eb, but maybe 70 cents down from the E? And then she slides up to the E from there. Listen to her sing it and you will know what I'm talking about.

If you have an instrument where you can play either the straight notes or the notes with that slide, play it both ways and you will hear the difference.

This song is fun and easy to play on harmonica, including the pitch bends, if you get or make the right harp. You need a High C Melody Maker, which you can order from Seydel or you can take a Lee Oskar F Major and retune it into a C Melody Maker: raise the blow 3 from C to D, and raise the draw 5 and draw 9 from Bb to B.

How do you retune a harmonica? You file the reeds! Take off some weight near the free end of a reed and it will vibrate faster, giving it a higher pitch. More strangely, you can also lower the pitch a little by thinning the reed near the fixed end.
I get the sentiment, but this was the first project of this kind for the author. I think "just ship it" sometimes means "get it done despite all the doubts".
Isn't this how empires always have been run? In the Roman Empire the percentage of population that were citizens ranged from 1% to 55% depending on the province. The rest were non-citizens and slaves.
Not true. I am pretty sure I was the first sperm to fertilize the egg, and that was a pretty important competition!

You can make arguments about ad spend and somebody can come here to correct me but I am fairly confident in the assertion that worrying about idea stealing and competition at the idea stage means you’re almost definitely indexing on the wrong things.
Wow, that's some hustle:

- wrap your car and park it outside pizzeria prospect locations

- then do a sales pitch in person

- then change your system flow to support existing fax numbers.
A) the two countries have signed a defense pact.

B) the two countries were conducting joint war games as late as last year. In fact, the US performs military exercises with India more than any other non-NATO partner.

C) since the sixties the US has provided billions in military equipment, economic aid and loans to India (US is heavily invested in their success and stability), to say nothing of remittances.

D) a strong ex-pat community in the US, one of the fastest growing, makes for political influence (did you see/watch the “Howdy Modi” rally in Texas?).

I could go on if those don’t make a compelling enough case, but I would like to address your prediction about China and India coming to blows.

I agree, until the conflict starts to threaten India existentially. I think current US policy is bending towards a preference for letting partners deal with their own regional issues to the extent they can. Witness the call for Europe to clean up its own backyard to their East and in Africa, the endorsement to Israel and Saudi Arabia for managing the Middle East, the slow unwinding if restrictions on Japan. I think this endorsement comes with a promise of air cover (literal and figurative) if things start to go sideways.
How can a combination of ComputerVision and ML help businesses/customer service?
It is the diet. It is genetic. You don't brush long enough. You time your brushing wrong. You use a too soft/too hard brush. Electric brush is needed. It is your toothpaste, too much/too little fluoride. All problems are caused/prevented by flossing. Mouth wash is the one true answer.

Dental care feels like oncology, everything treats and causes problems at the same time.
No opportunities arose plus office-politics make my stomach turn. Perhaps it is my long stint in a Byzantine multinational that spoiled that path for me.
Quite honestly the level of logical consistency in this generated text doesn't differ that much, I feel, from a huge swath of the kind of comments that I see on the internet. It may well be that there are already too many bots on the net to really understand what typical humans would be saying anyway, but I feel like this is already good enough for short form trickery.

I was so wrong about the internet. It is just going to become a landscape of garbage opinions and commentary on a larger and larger basis.
I thing there were large scale protests in the 60s, may be 1962 against British rule in HK.

Also did Britain do enough to protect and to take back HK during WW2.

If I remember correctly, HK was only given back to Britain after the final surrender of Japan in WW2. Japan had taken HK following the attack on the same day as Pearl Harbour attack.
The raid rebuild speed with SMR drivers is scary long, see
https://www.servethehome.com/wd-red-smr-vs-cmr-tested-avoid-...
He mentioned shooting at looters, not protesters.

Maybe you didn't see that part because Twitter has hidden the tweet?
Algorithm Journey from PC to IoT – A Signal Processing Pipeline on a Smartwatch
Seems odd that they don't support an equivalent of the integrity attribute.
There's lots of countries you maybe should vent your anger on before Britain, one of the most multicultural countries in the world. Maybe India with its racist caste system. Maybe any number of countries in Asia or Africa which have modern day slavery and racist policies.
Yes, also:
https://www.youtube.com/channel/UCx74vAHCehhLOeQNwbJcGyQ
I don’t see why it would ever disappear. It’s essentially a device that transforms your vocal chord into an instrument. So you can sing roughly the tone you have in mind. That’s huge. I often think of melodies that I have no ability to reproduce on any instrument — but I can roughly hit the notes with my voice.
I don't have much familiarity with OpenSSL and crypto scares me away from reading the sources. I wish someone could give a full run-down of everything that is in OpenSSL, an overview. You hear all the time about it being bloated and supporting too many things. I wish I better understood that. It's why people turn to wolfssl and mbedtls, right?

Smaller projects that aim for minimalism and robustness probably suffer from a lack of peer review with a more niche community backing them. Trade-offs trade-offs. I also wish I understood where they compete:

OpenSSL <-> WolfSSL <-> mbedtls
Wow, what a waste. Here in the UK at the moment it's difficult to get hold of "cheap" bikes, and even worse for ebikes. They could be selling those on rather than destroying them
You may find this thread interesting, as it concerns the allegation that the property destruction taking place yesterday (edit: Wednesday - I just remembered it's already Friday) was initiated by a police officer. https://twitter.com/AricToler/status/1266196890649088000

The looting in Minneapolis is a) rather ancillary to the larger protests against the police, b) an American tradition going back to colonial times, and c) a mix of opportunism and antipathy to US hypercapitalism. A few small stores have been damaged but the destruction has mainly been targeted against corporate retail outlets.