HNHacker News
TopNewBestAskShowJobs

8192kjshad09-

124 karma · joined February 4, 2020

submissionscomments
8192kjshad09-··on Exploring Clang/LLVM optimization on programming horror
I will nitpick your nitpick. In a language with arbitrary size integers you're right. This is a C++ int, therefore 32/64 bits (in all sane cases, ik the spec doesn't specify), so the maximum number of cycles is upper bounded. Therefore modulo on C++ ints is is O(1).
8192kjshad09-··on WD My Book users wake up to find their data deleted
Amazon just announced AWS Cult-As-A-Service. For the small fee of just $0.05 per Gigabyte per month they will store your data in three separate cults located in geographically distinct regions.

(Data transfer charges not included)

8192kjshad09-··on America has a drinking problem
There are lots of ways to measure the harm of drugs. But pretty much all of them result in cannabis being among the least harmful.

Another way to measure is the therapuetic index. It's the ratio of the lethal dose divided by the effective dose. It's about 10 for ethanol and 30,000 for cannabis. Larger is safer.

This means drinking ~10 times as much as your usual amount of alcohol has a 50% chance of killing you. For cannabis you would need to consume ~30,000 times as much (which is probably not even physically possible).

8192kjshad09-··on Collusion rings threaten the integrity of computer science research
Publicly tweet the hash of your PDF, email the hash of your PDF to yourself, upload your PDF to google drive, dropbox, github, and s3. Essentially the whole world would have to collude against you for someone to claim they wrote it before you.
8192kjshad09-··on The more complex crypto seems, the higher the pyramid schemes can go
But the share price going up enables the company to raise money easier by offering more shares.

See TSLA for example.

8192kjshad09-··on Psilocybin 'promising' for depression
Wouldn't the study design under exaggerate the effect of psilocybin, if anything?
8192kjshad09-··on How fighting games use delay-based and rollback netcode (2019)
I don't know anything about their net code, but I suspect this is more about the fact that the game is less dependent on precise timing then something like a shooter or Smash.
8192kjshad09-··on CDC website built by Deloitte at a cost of $44M is abandoned due to bugs
It seems to redirect to https://vams.cdc.gov/vaccineportal/ which redirects to https://vams.cdc.gov/vaccineportal/s/ which redirects back to https://vams.cdc.gov/vaccineportal/ for an infinite redirect loop.

Wonder if anyone will pay me $44M to set up a redirect loop?

8192kjshad09-··on Ask HN: How does onlyfans.com work around the “no porn” Stripe rule?
That can't be right. I entered my credit card information once into uber eats and I can buy food whenever without entering a CCV and my credit card is immediately charged.

If this were true 1000s of large companies would not be PCI compliant.

8192kjshad09-··on Go generics draft design: building a hashtable
Go developers like to claim that the reason the Go compiler is fast is because it's "simple to parse". Unfortunately this doesn't make a lot of sense as parsing is typically only 1-5% of the total compile time.
8192kjshad09-··on Play Counter-Strike 1.6 in your browser
There's nothing stopped anyone from using protobuf in the browser, it's just not that common since JSON is easier to work with. Not sure how the netcode on this game works though.
8192kjshad09-··on Spark joy by running fewer tests
Maybe I just don't get it, but this design seems impractical for systems that use the network alot.

I work on an app whose basic structure is

1. Receive data from a webhook (not controlled by me) 2. Make some HTTP requests based on data from 1 3. Send data to another HTTP API

The core of the logic is in step 2. How can I possibly have a functional core here? Step 2s behavior completely depends on the HTTP responses.

8192kjshad09-··on The Brave web browser is hijacking links, and inserting affiliate codes
How ironic
8192kjshad09-··on Just some red flags. No big deal. Just ignore them
I don't think so, there are no security concerns. Using curl is no more dangerous than downloading and executing an installer

https://security.stackexchange.com/questions/213401/is-curl-...

8192kjshad09-··on AWS services to avoid
This gives me an idea for a codegolf like challenge. Pick a random AWS service and try to implement X using it.

X could be:

List prime numbers, List fibbonaci numbers, Conway GOL, etc

8192kjshad09-··on Tmux for Mere Mortals

    bind-key -T copy-mode-vi 'v' send -X begin-selection
    bind-key -T copy-mode-vi 'y' send -X copy-pipe-and- 
    cancel 'xclip -in -selection clipboard'

Works just like vim. Press v to go into visual mode, then y to yank the selection
← PreviousPage 2 of 2