Hacker Newsnew | past | comments | ask | show | jobs | submit | lightcatcher's commentslogin

I have no experience in PNG encoding, but found https://github.com/brion/mtpng The author mentions "It takes about 1.25s to save a 7680×2160 desktop screenshot PNG on this machine; 0.75s on my faster laptop." which makes me think your slower performance on smaller images either comes using the max compression setting or using hardware with worse single threaded performance.

Although these don't directly solve the PNG encoding performance problem, maybe some of these ideas could help?

* if users will be using the app in an environment with plenty of bandwidth and you don't mind paying for server bandwidth, could you serve up PNGs with less compression? Max compression takes 15s and saves 35MB's. If the users have 50mbit internet, then it only takes 5.6s to transmit the extra 35MB, so you could come out 10s ahead by not compressing. (yes, I see your comment about "don't say to use lower compression", but no reason to be killed by compression CPU cost if the bandwidth is available).

* initially show the user a lossy image (could be a downsized png) that can be quickly generated. You could then upgrade to a full quality once you finish encoding the PNG, or if server bandwidth/CPU usage is an issue then you could only upgrade if the user clicks a "high-quality" button or something. If server CPU usage is an issue, the low then high quality approach could let you turn down the compression setting and save some CPU at the cost of bandwidth and user latency.


I went to high school in a science magnet program in Texas. Students from 3 high schools were eligible for the magnet program, and the magnet program was housed in one of the 3 high schools. Our math+science classes were in the magnet program, but our English/history/PE/art/all other classes were in the host school. The program made up about 10% of the host high scool, and students in the program were counted as part of the host school for purposes of university admission.

This understandably made people unhappy at the host school - ~7% of the class is academic high achievers from out of the school zone who take most of the admission spots reserved for the top N%.

I don't know of any cases of parents moving to avoid the extra competition, but I probably wouldn't have heard of that if it happened. I do know of some people set on going to UT who did not apply to the magnet program so they could have less competition.

The point here is you don't need to move to a rural area to decrease school competition. There are plenty of cases where you can move a mile to get into the zone of a less competitive school.


Wow. These videos bring home how insane the rescue was. I could not imagine anyone going through those tunnels with zero visibility and diving equipment, let alone while moving a sedated person along as well.

Here the diver's blog post to accompany these videos: https://www.mikkopaasi.com/post/return-to-tham-luang-cave


Parallel prefix sum is the most underappreciated parallel algorithm in my opinion, and this paper is the best explanation and visualization of the concept I've seen.

A few years ago I worked on a deep learning project using parallel prefix sum as a new way to accelerate recurrent neural nets on GPUs[0]. The paper in this post was the most important reference and source of inspiration. I'm happy to see this paper shared on HN in hopes that it also sparks ideas in others.

[0] https://arxiv.org/abs/1709.04057


I used to program on the connection machine. I tried to do some work recently with the intel vector instructions and was quite frustrated by the lack of scans. we used them for _everything_


How much wealthier would you be if you paid no taxes at all in tax year 2020?

An example with some made-up numbers that could apply to some HN users:

Let's say your net worth was $500K at the start of the year, you earned $200K income in the year and spent $50K. Without taxes, your end of year net worth would be $650K. However, you pay $40K+ in taxes, which makes your net worth <=$610K. So effectively you paid $40K/$650K = 6.1% of your wealth in taxes.

"Regular" people build wealth through income, while wealthy build wealth through appreciating assets. The point I take from headlines like these are not "US executives illegally avoid taxes", it is "tax rules favor the wealthy". Increasing tax on appreciated assets by raising capital gains rates, removing step-up basis, or (maybe) taxing unrealized gains could shift some of the tax drag on wealth from income earners towards asset holders. All of these would need to be done very carefully to not overly hurt small business owners, perhaps through something like a lifetime capital gains exemption (similar to gift exemption, apparently existed in Canada in the 80s[0]).

[0]: https://static.twentyoverten.com/5b9280ab0420c067d6b36505/Wo...


I've found Walmart.com to be about as good as Amazon for my online shopping (in the US). I particularly find Walmart to be a lot better for some dry goods like cereal and Clif bars. They can mix delivery from their warehouses and from local stores.

This is not me shilling Walmart. I've been pleasantly surprised by it in the last year, and find it to be a real competitor to shopping at Amazon.


I'm a runner who never goes on an "exercise walk", but there are plenty of (non-injury) reasons someone might prefer walking:

- less strenuous

- much less fitness required to walk for an hour than to run for 30 minutes

- easier to avoid sweating while walking, which can be useful for some commutes

- easier to talk on the phone while walking

- easier to find someone to walk with you than it is to find someone who will run with you

The article was about making fitness easy and not about making fitness efficient. I 100% agree that running is more efficient, but I'd recommend walking to anyone who thinks "bleh/eww" at the thought of exertion.


Plus it's great for either recovery days or a supplemental activity to get blood flowing to promote healing. For example running in the morning and walking in the evening.


I also find the "or" wording of the law interesting.

I do think it's racist as it grants the privilege of abandoning the Jewish religion while remaining a legally privileged class (Jew) to people with some ancestries (Jewish) but not with others.


Parler is the right starting their own company in response to Twitter censoring/banning some of their discussions. Parler's current deplatforming indicates that "start your own company so you're the governor" is a borderline unrealistic point of view, since the internet and especially mobile phones are run by mega-corporations that don't support an open platform.

If we look at Parler being dependent on other companies, there are 3 dependencies that bit them in the last few days:

(A) running servers on AWS

(B) distributing Android app through Google Play Store

(C) distributing iPhone app through Apple Store

Parler could and should have avoided the dependency on AWS by hosting with a company more aligned with their views or outside of the US.

However, I cannot in good faith say "Parler should have written their own mobile OS if they want people to use their platform from their phones". I believe Android supports app installation without Google Play. It's a little inconvenient, but I think an extra minute or two of clicking around is an ok price to pay for access to unpopular speech.

However, as far as I know there's no way to have an app on iPhones without Apple's approval. This is a strong point for "even if you start your own company, you're not the governor - 45% of America's phone users can only access your service at the mercy of Apple".


It's not unrealistic. This is the point and value of having competition. If at each layer of the system they won't stand for your beliefs that violence is okay, for example, then you'll have to create the infrastructure at each layer if you meet resistance at each layer. If they're serious enough and organized enough and the rest of society isn't willing to budge, and if the "offenders" aren't willing to reason and adapt their ways to not be violent - and to have open critical thinking dialogue, if they can be un-brainwashed from Trump et al's lies and the lies perpetuated by the duopoly - both sides harmful but the treasonous Republicans (that's not all of them) who are willing to incite violence is obviously the worst of the two - then friction and physical conflict will occur. This will either turn into a civil war, where both sides will need to create the infrastructure including arms and readying defense, or if these people can be reached and government policy be put in place to break apart the duopoly, re-enact things like the Fairness Doctrine so news legally must present both sides of the story to their viewers, along with the core policy proposals of Andrew Yang - Democracy Dollars, Journalism Dollars, Ranked Choice Voting, Freedom Dividend/UBI, etc - then the quality of life of everyone will improve, stress will go down, and dialogue and conversation will become more nuanced and diverse again, not merely the echo chambers of the two narratives of the duopoly that's been captured by industrial complexes and bad actors for many decades extracting as much from society as they can, suffocating everyone slowly but surely.

If you want the convenience afforded by the technology of private companies then you will have to follow their rules; if you show that you're racist while a guest in my house, I'm going to ask you to leave and if you refuse I'm going to call the police to have you removed.

Android does allow side-loading of apps, and Apple has the ability to prevent already installed apps from working. I think ultimately this is a question of whether you want your opponents/"enemies" - those who aren't aligned with you - to have access to the same level of technology as you: is it a good idea to level the playing field or to have an advantage? Arguably it's only good if the owners/controllers of that technology are on a more right/good path than the "other."

I assume in part Parler expected or wanted this deplatforming to happen as free marketing and to rally individuals to the platform, rallying the energy of people feeling persecuted - because enough of them were openly calling for violence and moderators weren't removing those comments/users from the platforms - but they don't seem to be having that sane/reasonable conversation to calm and quell the angry mob - and any "outsider" who attempts to reason with them gets ban/blocked, so it's inevitable it will spillover into the physical world. I feel and think it's good to slow this mob down however possible, even if it angers some of them more - they were already substantial open calls for violence, so it's not like deplatforming was the cause, the cause is Trump et al's lies and propaganda to incite violence; where's Trump ingenuine call for "law and order" after the Capitol was stormed? Answer: Trump told people to go to the Capitol.


Fairness, Accountability, Transparency (aka FAT) is a real sub-field of machine learning, that is as technical as any other machine learning sub-field in my opinion. It is not a PR stunt. I've published at top ML conference a paper about some CUDA kernels I wrote to accelerate training a class of RNNs, so I feel have technical grounding to make these claims.

Here are some FAT papers I've enjoyed: https://arxiv.org/abs/1806.08010 https://arxiv.org/abs/1802.04023 https://arxiv.org/abs/1803.04383 (won best paper award at ICML 2018)

Many FAT papers are published at NeurIPS or ICML (generally considered top two machine learning conferences). There's also a conference just on the topic: https://facctconference.org/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: