Better HN
topnewbestaskshowjobs
Log inSign up

drones

1,046 karma · joined Sep 8, 2022 (4y ago) · 128 submissions

Submissions

comment 2y ago · link · parent

I only use the [x] * n form of array initialization for primitive types (int,float,bool,string). So

  #good
  a = [True] * 8 # bool is primitive
  b = [[True] * 8 for i in range(8)] # range creates new lists each time

  #bad
  a = [{}] * 8 # dict is not a primitive
  b = [[True] * 8] * 8 # list is not a primitive

comment 2y ago · link · parent

If I ever met you in real life I think you would be the coolest person I've ever met.

comment 2y ago · link · parent

OMG I had one of the 160-in-one kits when I was very young ~(mid 2000's) but never learned what it was called! I remember my mom buying it for me from this mysterious shop which had exotic toys (that I never actually visited myself). It was a second-hand one and most of the resistors/components had already broke, But the radio feature still somehow worked! I thought it was magic, just as magic as that strange, foreign shop. Kinda want to buy one now....

comment 2y ago · link · parent

> Well-meaning friends had already suggested it might be kinder to have her put down, because she was often visibly distressed.

I've always found it interesting how little we regard other forms of life out of our warped ideas of "compassion" - it would be unthinkable to suggest this to parents of an actual child, for such an easily treatable condition.

35.

Where is the lead in Stanley Cups?(twitter.com ↗)

1 points · by drones · 2y ago · discuss

36.

Sonoluminescence(en.wikipedia.org ↗)

3 points · by drones · 2y ago · discuss

comment 2y ago · link · parent

What "Bad Incentives" are unique to China, distinct from those in the West?

comment 2y ago · link · parent

I think you'll find a lot of girls will remember "that guy with the unicycle" for a long time ;)

comment 2y ago · link · parent

With our archaic use of Von-Neumann architecture, bacteriophages must think so little of us.

comment 2y ago · link · parent

(Drawing from 1-semester CCNA course in uni) Since DNS operates over UDP, isn't the amount of data that can be safely transferred effectively bottlenecked by the smallest page size between the routers that reach your device? DNS is served in one chunk, right?

comment 2y ago · link · parent

Seems like most are bringing up the issue of spam filter bypassing as the real business value, I'm very curious if any "email 2.0" systems have been devised to combat the spam issues of SMTP?

comment 2y ago · link · parent

Link has an affiliate code attached to the URL. Flagged.

43.

Origami-like paper used as packing material [video](youtube.com ↗)

1 points · by drones · 2y ago · discuss

comment 3y ago · link · parent

All this anthropomorphizing of humans strikes me as very odd. None of these humans "want" to do anything. They respond to specific input. Maybe artificial neural networks are the same, but in the case of humans we at least know it's a simple reaction to neurotransmitter signals.

comment 3y ago · link · parent

Are there any good resources for learning graphics programming for the first time with WebGPU? I have heard mixed opinions about WGSL.

comment 3y ago · link · parent

Makes sense to me. Google clearly has a culture/reputation where projects are routinely killed off because they aren't deemed "successful" by some arbitrary metric. This fosters a "failure/success" mentality among employees, which influences what types of projects they take (obvious, immediately profitable) and how long it takes to develop them (as quick as possible). While they have a lot of smart people working there, I think big G has some organisational problems which prevents them from completing large scale experimental projects like this.

comment 3y ago · link · parent

Seven signs of ethical collapse:

1. Pressure to maintain numbers 2. Fear and silence 3. Young ‘uns and a bigger-than-life CEO 4. Weak board of directors 5. Conflicts of interest overlooked or unaddressed 6. Innovation like no other company 7. Goodness in some areas atones for evil in others

Umberto Eco's 14 signs of fascism:

1. The cult of tradition. 2. The rejection of modernism. 3. The cult of action for action's sake. 4. Disagreement is treason. 5. Fear of difference. 6. Appeal to social frustration. 7. The obsession with a plot. 8. The humiliation by the wealth and force of their enemies. 9. Pacifism is trafficking with the enemy. 10. Contempt for the weak. 11. Everybody is educated to become a hero. 12. Machismo and weaponry. 13. Selective populism. 14. Ur-Fascism speaks Newspeak.

Each list contains symptoms of some degenerating organisation. However, I can easily find counterexamples of successful organisations which demonstrate one or more of these qualities. In fact, these organisations may be successful because they exhibit one or more of these qualities. This way of understanding the world is entirely juvenile and unfit as an evaluative framework.

comment 3y ago · link · parent

I see this "screen-time" issue pop up over and over again, but who is to blame? Parents make a stink about kids' screen time ALL THE TIME, yet almost never go outside themselves. Children emulate their parents. Go set an example instead of blaming the child you are responsible for.

comment 3y ago · link · parent

Women - they often have experiences and perspectives different from mine, which makes for interesting conversation.

50.

Changing User-Agent to Google Chrome drastically improves YouTube load times(twitter.com ↗)

66 points · by drones · 3y ago · 2 comments

51.

Solving Rush Hour, the Puzzle(michaelfogleman.com ↗)

3 points · by drones · 3y ago · 1 comment

comment 3y ago · link · parent

I think the culture is changing a little bit, though. It's interesting to see the rise of zoomer gym culture in the past couple of years, primarily driven through TikTok.

Granted, this has caused a huge surge in body dysmorphia in teenagers and a rise in use of performance-enhancing drugs, but regardless I think this might be an indication of future change to come.

comment 3y ago · link · parent

I think that mass availability of weight loss drugs like Ozempic could be the single biggest transformation of public health in the first world in the last 50 years, on par with the contraceptive pill. I don't think it's possible to tackle this problem from the supply side, previous attempts have failed miserably. Normally I'm not one to have such a cavalier attitude towards this type of intervention, but this is a crisis that warrants an immediate solution. The healthcare savings from this alone could easily be in the billions.

I'm 21 with a BMI of 28, 6'4". I'm pretty sure I have some sort of eating disorder. It is so f*cking hard not to overreat. Ozempic would really help me out here, because willpower alone is not enough for me to fight a billion dollar industry trying its damndest to make me addicted.

54.

Things you can't do in WGSL(twitter.com ↗)

2 points · by drones · 3y ago · discuss

comment 3y ago · link · parent

First chapter questions:

(a) Identify (or write) a song that requires Θ(n3) time to sing the first n verses.

(b) Identify (or write) a song that requires Θ(nlog n) time to sing the first n verses.

(c) Identify (or write) a song that requires some other weird amount of time to sing the first n verses.

Any ideas?

comment 3y ago · link · parent

I've seen quite a few articles on HN relating to free speech issues, both domestic stories in the US and abroad. I made one such submission about my home state South Australia and it was fine.

I feel like freedom and self-autonomy form part of the ethos of a hacker, but hell I might be wrong.

comment 3y ago · link · parent

I think it's antithetical to the philosophy of arxiv in the first place. It's a preprint service. Adding a review process would make it... a journal. Arxiv being impartial to the content it publishes is one of its' greatest strengths.

comment 3y ago · link · parent

I have not slept well since I was 12 years old. I fear I have permanently damaged my cognitive abilities because of this.
12345