Better HN
topnewbestaskshowjobs
Log inSign up

RandomInteger4

573 karma · joined Sep 15, 2016 (10y ago) · 651 submissions

Learning and desperately trying not to forget much of it ...
Submissions

comment 8y ago · link · parent

Why does a programmer need to know an index counter exists if the index counter isn't used inside the for loop?

comment 8y ago · link · parent

Not my area of expertise, so I want to ask this question: Do compiler optimizations exist to automatically parallelize a for loop, which can be parallelized, no matter how to programmer wrote their for loop?

If not, then map / reduce offers non-trivial performance benefits over a for loop. Mapping, as far as I'm aware, is "embarrassingly parallel", assuming the function that's mapped is pure? I think?

comment 8y ago · link · parent

Might look nicer to write the first version as:

  let square = (n)   => n*n
  let sum    = (s,n) => s+n
  
  let r = array.map (square).reduce (sum,0)

comment 8y ago · link · parent

This seems like a dark marketing pattern:

Pay $7.50 normally or experience the deluxe super duper savers package for $8.99! WOOOO!!!

comment 8y ago · link · parent

Just speculating, but I'd have to assume it has to do with VLSI design and reducing complexity of how wires are laid out on the die in order to increase efficiency.

comment 8y ago · link · parent

Concerning your last paragraph, this article is from 2004, so technically we can examine the efficacy of this approach right now if it were utilized.

comment 8y ago · link · parent

It seems to me like a lot of the apathy comes from the hopelessness people feel concerning their own situation in life. People don't see anything changing for themselves in the near or distant future, so that carries over into something they feel even more powerless about.

comment 8y ago · link · parent

Seems like it's animation related, meaning they intended it to animate like that.

comment 8y ago · link · parent

Given how well that works for YouTube at the moment, I'm not so sure that's a good idea.

comment 8y ago · link · parent

You can either have regional monopolies or the ground constantly being torn up by companies wanting to lay their own cables, resulting in a clusterfuck for any other construction effort, and there's only so much space in the ground for cables anyways, not to mention that it's not practical for new players to enter the market given the costs of laying cables, putting them at a competitive disadvantage.

Sure, only 21 states codify telecom monopolies into law, but in the rest without those laws, how much more choice is there? Let's not count the states where the government paid for dark fiber which is leased to the corporations to provide service for customers, because that seems to be taking the correct route. If that were to happen in other states, it would necessarily require either (1) taking over the telecom infrastructure and leasing it back to them, or (2) expensive buyouts of the telecom's infrastructure. It seems simpler and cheaper to regulate a monopoly in this case.

EDIT: Correction: the laws in these 21 states don't codify monopolies per se, but they make it impossible for cities to build their own infrastructure on some absurd basis that the cities are anti-competitive with respect to corporations:

https://motherboard.vice.com/en_us/article/qkvn4x/the-21-law...

EDIT2: Ignore any argument I was trying to make, as I may or may not have contradicted myself based on my mental shortcomings with regard to concentration and lack of medication.

comment 9y ago · link · parent

Correct, but they can see that you're using a VPN, which they can throttle if net neutrality rules are taken away by the current FCC.

comment 9y ago · link · parent

Try ublock origin. I didn't get either a paywall or scroll-blocking. Must be one of the ads?

comment 9y ago · link · parent

There's a problem with that idea, which is that then the internet is at the mercy of those in congress who want to shut down the government all the time, because they won't pass a budget unless we go on a governmental starvation diet, while at the same time giving tax breaks to the rich.

comment 9y ago · link · parent

Not only that, but I'm seeing a lot of people mentioning VPNs as a solution when they're really not. Sure VPNs obfuscate your destination, but not the fact that you're connecting to a VPN, and without net neutrality, what's stopping them from seriously deteriorating the quality of VPN traffic unless the VPNs cough up some dough?

comment 9y ago · link · parent

Snapchat always seemed like a one trick pony that anyone could easily replicate, which Instagram went and did. Not sure how this wasn't obvious to people.

comment 9y ago · link · parent

Impostor syndrome is mostly marked by the feeling of being a fraud which can run in parallel to feelings of "I know I'm smart, but I feel so dumb compared to everyone else."

It's a constant self-doubt in spite of knowledge of what one is capable of; self doubt that one should be in a particular position, because while one knows what they're capable of, they think they should be capable of more when comparing oneself to one's peers.

One doesn't need accomplishments to feel like an impostor and a lack of notable accomplishments doesn't mean that one shouldn't be in a particular position.

comment 9y ago · link · parent

I don't think you should be surprised that people view debt collectors with massive disdain.

comment 9y ago · link · parent

Why not?

comment 9y ago · link · parent

This is a random tangent, but I've been meaning to build my first PC and was thinking of going with Ryzen.

Do you by any chance run Linux or Linux dev tools on it and if so have you experienced hard crashing issues that I've been reading about?

comment 9y ago · link · parent

Not sure why I was downvoted for pointing out that parasitic infections are one more negative aspect of not living in civilized society where we have the knowledge and understanding to know how important clean feet and shoes are.

comment 9y ago · link · parent

Don't forget the hook worms and other things that don't kill you fast, but still degrade life's experience.

comment 9y ago · link · parent

Why have you disabled javascript?

comment 9y ago · link · parent

I clicked on your forum link half expecting a ye olde marquee and blink tags.

comment 9y ago · link · parent

Numerous people eligible for medicaid don't sign up because they try to and get turned away with some bullshit excuse about not filing the paperwork properly or whatever, either due to innocent bureaucratic bullshit or because the state is explicitly hostile towards government assistance.

With single payer, people wouldn't have to sign up; they would be signed up and have to opt out of they so chose. That's how it should work and it's not hand-wavy in the least.

comment 9y ago · link · parent

Sounds more like an argument for why we should move to single payer, because then the idea of random expenses from sick people signing up goes away, as we'll all have health coverage anyways.

comment 9y ago · link · parent

Why is there an enrollment period at all? Why can't you enroll any time during the year? This limitation makes no sense.

comment 9y ago · link · parent

Why would you need a text editor to come with the language when you could have Vim and the rest of the command line. The problem newcomers have with programming is that educators think they're too stupid to use the command line and in the process they shield them from important details about the build process by obfuscating them under the veil of an IDE.
1
161718
22