Posts

Posts

3306 bookmarks
Custom sorting
Ask HN: How can I learn about performance optimization? | Hacker News
Ask HN: How can I learn about performance optimization? | Hacker News
1. First and foremost: measure early, measure often. It's been said so often and it still needs repeating. In fact, the more you know about performance the easier it can be to fall into the trap of not measuring enough. Measuring will show exactly where you need to focus your efforts. It will also tell you without question whether your work has actually lead to an improvement, and to what degree.2. The easiest way to make things go faster is to do less work. Use a more efficient algorithm, refactor code to eliminate unnecessary operations, move repeated work outside of loops. There are many flavours, but very often the biggest performance boosts are gained by simply solving the same problem through fewer instructions.3. Understand the performance characteristics of your system. Is your application CPU bound, GPU compute bound, memory bound? If you don't know this you could make the code ten times as fast without gaining a single ms because the system is still stuck waiting for a memory transfer. On the flip side, if you know your system is busy waiting for memory, perhaps you can move computations to this spot to leverage this free work? This is particularly important in shader optimizations (latency hiding).4. Solve a different problem! You can very often optimize your program by redefining your problem. Perhaps you are using the optimal algorithm for the problem as defined. But what does the end user really need? Often there are very similar but much easier problems which are equivalent for all practical purposes. Sometimes because the complexity lies in special cases which can be avoided or because there's a cheap approximation which gives sufficient accuracy. This happens especially often in graphics programming where the end goal is often to give an impression that you've calculated something.
Things that eat CPU: iterations, string operations. Things that waste CPU: lock contentions in multi-threaded environments, wait states.
·news.ycombinator.com·
Ask HN: How can I learn about performance optimization? | Hacker News
Demystifying burnout – A deep dive into its symptoms and remedies | Hacker News
Demystifying burnout – A deep dive into its symptoms and remedies | Hacker News
depending on your long term objectives taking a sabbatical might have been the worst thing to recover from burnout. You want to reassociate effort with reward, and the best way to do that is to work on small things related to what caused your burnout that will "guarantee wins with low expectations".
1. I am not my thoughts or feelings. It’s surprising how far this one will take you2. If work is your support system, your life exists on shaky ground3. Personal struggles become work struggles and vice versa. You can’t draw a clean box around grief and loss, or pretend that work stress can stay at work4. There were major gaps in my life in terms of social connections, time spent in nature, finding artistic outlets, etc.5. Focusing on real self-care/improvement as one’s primary purpose in life open doors internally and externally
·news.ycombinator.com·
Demystifying burnout – A deep dive into its symptoms and remedies | Hacker News
Meanwhile, over in Androidtown | Hacker News
Meanwhile, over in Androidtown | Hacker News
Why should developing the feel of an app be any different than the feel of a game. That’s what good apps are like. It’s like you can play a good app as much as you use it. All good tools and instruments in history have been crafted like this.
What does it even mean for an app to "feel" like something? How do you quantify that so you can do a proper comparison with other apps, or (from the app author's side, take corrective action)?Author calls these apps "brutalist" and leaves it at that. To his credit, he does list three features that he's like to see: fluid scrolling, swipe gestures, and tap-and-hold contextual menus. Fine. But then goes on to describe his feelings "inert and rigid". Then "comfort, fun, and panache". What on earth is he asking for out of these apps? How do you objectively compare one app's "panache" with another? If I was a developer, what are the steps I can follow to program some "comfort" into my app? These complaints seem so wishy-washy and underspecified.Then he leaves with the Kubrick quote: “Sometimes the truth of a thing isn’t in the think of it, but in the feel of it.” We're fully in the realm of mysticism now, this is not an attempt to fairly compare or measure anything.
> If I released a utility application and a reviewer told me [not your words, but for example] it felt cold and without pizazz, and it didn't zing and pop and it wasn't sleek enough, I wouldn't know what to do to fix this.The point of the piece is that there are developers that would know what to do with that feedback, and for whatever reason more of those developers develop for iOS than Android.
If you owned a restaurant and got a Yelp review like “the food was great but the ambiance was a turn-off” what would you do? IndigoPrime 3 months ago | root | parent | next [–] Yes. Or: “The hammer technically works when it comes to getting nails into walls, but it’s uncomfortable to hold.”
·news.ycombinator.com·
Meanwhile, over in Androidtown | Hacker News
I’m a student you have no idea how much we are using ChatGPT | Hacker News
I’m a student you have no idea how much we are using ChatGPT | Hacker News
We need separate systems, one for actually learning without financial pressure, and one for joining the workforce - before anyone brings up College/Uni as the solution, they can be if transformed but as of right now there are too many in Uni doing so to get a job.
When you have a system organized around the morality of work and not working ostracizes you from society, health care, shelter, food security, etc, what do you expect?My wish is the next 20 years brings a post scarcity society where wage slaving for a corporation so your family doesn’t die if they get cancer isn’t so much a moral imperative.
We should also dramatically realign the education system to value real learning, personal and community growth, and a culture of learning rather than just daycare (not that childcare for parents isn’t tremendously important, believe me), funding zillions of BS college admin positions, job training for corporations that are to cheap to train their own employees, and grades (as we know them. Grades have so much nonsense loaded on top of them
·news.ycombinator.com·
I’m a student you have no idea how much we are using ChatGPT | Hacker News
this is true across all of society btw. Someone was posting about Theranos's fraud on reddit YEARS before the right people noticed. Increasing communication across society is going to solve so many of our problems
this is true across all of society btw. Someone was posting about Theranos's fraud on reddit YEARS before the right people noticed. Increasing communication across society is going to solve so many of our problems
— Defender (@DefenderOfBasic)
·x.com·
this is true across all of society btw. Someone was posting about Theranos's fraud on reddit YEARS before the right people noticed. Increasing communication across society is going to solve so many of our problems
Appearing on a Christian nationalist podcast last night, Pete Hegseth said he's creating a system of "classical Christian schools" to provide recruits for an underground army that will eventually launch an "educational insurgency" across the nation.
Appearing on a Christian nationalist podcast last night, Pete Hegseth said he's creating a system of "classical Christian schools" to provide recruits for an underground army that will eventually launch an "educational insurgency" across the nation.
— Right Wing Watch (@RightWingWatch)
·x.com·
Appearing on a Christian nationalist podcast last night, Pete Hegseth said he's creating a system of "classical Christian schools" to provide recruits for an underground army that will eventually launch an "educational insurgency" across the nation.
Everyone thinks this is an exaggeration but there are so many software engineers, not just at FAANG, who I know personally who literally make ~2 code changes a month, few emails, few meetings, remote work, 5 hours/ week, for ~$200-300k.
Everyone thinks this is an exaggeration but there are so many software engineers, not just at FAANG, who I know personally who literally make ~2 code changes a month, few emails, few meetings, remote work, 5 hours/ week, for ~$200-300k.
Here are some of those companies: — Deedy (@deedydas)
·x.com·
Everyone thinks this is an exaggeration but there are so many software engineers, not just at FAANG, who I know personally who literally make ~2 code changes a month, few emails, few meetings, remote work, 5 hours/ week, for ~$200-300k.
Alice on X: ""Absolutely incredible"-- In 2020, Trump talked half his supporters and much of the GOP elite into maintaining that he won the election, despite losing it with room to spare. He maintained the position even after losing every court challenge he launched. None of the "psychic" / X
Alice on X: ""Absolutely incredible"-- In 2020, Trump talked half his supporters and much of the GOP elite into maintaining that he won the election, despite losing it with room to spare. He maintained the position even after losing every court challenge he launched. None of the "psychic" / X
In 2020, Trump talked half his supporters and much of the GOP elite into maintaining that he won the election, despite losing it with room to spare. He maintained the position even after losing every court challenge he launched. None of the "psychic… — Alice (@AliceFromQueens)
·x.com·
Alice on X: ""Absolutely incredible"-- In 2020, Trump talked half his supporters and much of the GOP elite into maintaining that he won the election, despite losing it with room to spare. He maintained the position even after losing every court challenge he launched. None of the "psychic" / X
Isaac Saul on X: "From today's issue of @TangleNews, here are 9 pre-election narratives I think we can now put to bed: 1. Trump is winning because the country is racist. Again: Trump has lost white voters since bursting onto the political scene while gaining voters of color. This isn't proof of" / X
Isaac Saul on X: "From today's issue of @TangleNews, here are 9 pre-election narratives I think we can now put to bed: 1. Trump is winning because the country is racist. Again: Trump has lost white voters since bursting onto the political scene while gaining voters of color. This isn't proof of" / X
1. Trump is winning because the country is racist. Again: Trump has lost white voters since bursting onto the political scene while gaining voters of color. This isn't proof of… — Isaac Saul (@Ike_Saul)
·x.com·
Isaac Saul on X: "From today's issue of @TangleNews, here are 9 pre-election narratives I think we can now put to bed: 1. Trump is winning because the country is racist. Again: Trump has lost white voters since bursting onto the political scene while gaining voters of color. This isn't proof of" / X
Angry Staffer 🌻 on X: "Marco Rubio, Trump’s Secretary of State pick, explicitly said yesterday that he would NOT call for a ceasefire in Gaza. Great job to all the protest voters who snubbed Harris over Israel - you guys are really playing 6D chess here." / X
Angry Staffer 🌻 on X: "Marco Rubio, Trump’s Secretary of State pick, explicitly said yesterday that he would NOT call for a ceasefire in Gaza. Great job to all the protest voters who snubbed Harris over Israel - you guys are really playing 6D chess here." / X
Great job to all the protest voters who snubbed Harris over Israel - you guys are really playing 6D chess here. — Angry Staffer 🌻 (@Angry_Staffer)
·x.com·
Angry Staffer 🌻 on X: "Marco Rubio, Trump’s Secretary of State pick, explicitly said yesterday that he would NOT call for a ceasefire in Gaza. Great job to all the protest voters who snubbed Harris over Israel - you guys are really playing 6D chess here." / X
Trump has installed Mike Huckabee as US Ambassador to Israel. Huckabee, currently an Evangelical Christian preacher and broadcaster, subscribes to "End Times" theology and proclaims Israel a fulfillment of biblical prophecy. There has never before been such a person in this role
Trump has installed Mike Huckabee as US Ambassador to Israel. Huckabee, currently an Evangelical Christian preacher and broadcaster, subscribes to "End Times" theology and proclaims Israel a fulfillment of biblical prophecy. There has never before been such a person in this role
— Michael Tracey (@mtracey)
·x.com·
Trump has installed Mike Huckabee as US Ambassador to Israel. Huckabee, currently an Evangelical Christian preacher and broadcaster, subscribes to "End Times" theology and proclaims Israel a fulfillment of biblical prophecy. There has never before been such a person in this role
It is a really jarring moment to be a historian. To know what might be coming is alarming. To realize that no one around you sees it or acknowledges it is a weird place to be in. Its like time traveling without time traveling. 1/8
It is a really jarring moment to be a historian. To know what might be coming is alarming. To realize that no one around you sees it or acknowledges it is a weird place to be in. Its like time traveling without time traveling. 1/8
— Nicole Lee Schroeder, PhD (@Nicole_Lee_Sch)
·x.com·
It is a really jarring moment to be a historian. To know what might be coming is alarming. To realize that no one around you sees it or acknowledges it is a weird place to be in. Its like time traveling without time traveling. 1/8
Listen, I'm all in for the messaging/strategy biopsy. Need to build a bigger tent; use economic populism as the tentpole; be less judgmental and exclusionary.
Listen, I'm all in for the messaging/strategy biopsy. Need to build a bigger tent; use economic populism as the tentpole; be less judgmental and exclusionary.
But folks, he might not be lying about the round ups and political prosecutions. Job one is to get ready for that. — Chris Murphy 🟧 (@ChrisMurphyCT)
·x.com·
Listen, I'm all in for the messaging/strategy biopsy. Need to build a bigger tent; use economic populism as the tentpole; be less judgmental and exclusionary.
Paul McCallion on X: "sorry to be a buzzkill but by owning a firearm you become about 4-5x more likely to be shot by a firearm and it’s extremely unlikely that you will ever use it in self defense (let alone successfully). It is not worth it." / X
Paul McCallion on X: "sorry to be a buzzkill but by owning a firearm you become about 4-5x more likely to be shot by a firearm and it’s extremely unlikely that you will ever use it in self defense (let alone successfully). It is not worth it." / X
— Paul McCallion (@OrangePaulp)
·x.com·
Paul McCallion on X: "sorry to be a buzzkill but by owning a firearm you become about 4-5x more likely to be shot by a firearm and it’s extremely unlikely that you will ever use it in self defense (let alone successfully). It is not worth it." / X
Kamala and her entire team never used pronouns, she never mentioned her race or gender, never engaged in cancel culture, she highlighted freedom & patriotism, would deflect when asked about race or gender and say "I'm gonna represent all Americans". Stop watching these idiotic…
Kamala and her entire team never used pronouns, she never mentioned her race or gender, never engaged in cancel culture, she highlighted freedom & patriotism, would deflect when asked about race or gender and say "I'm gonna represent all Americans". Stop watching these idiotic…
— Secular Talk🎙 (@KyleKulinski)
·x.com·
Kamala and her entire team never used pronouns, she never mentioned her race or gender, never engaged in cancel culture, she highlighted freedom & patriotism, would deflect when asked about race or gender and say "I'm gonna represent all Americans". Stop watching these idiotic…
This... is a *problem* for the Democratic Party, because what we're selling most often is harm mitigation. It's been that way since Reagan. There's an old joke: "Republicans are pissing you, Democrats are offering an umbrella."
This... is a *problem* for the Democratic Party, because what we're selling most often is harm mitigation. It's been that way since Reagan. There's an old joke: "Republicans are pissing you, Democrats are offering an umbrella."
— Elie Mystal (@ElieNYC)
·x.com·
This... is a *problem* for the Democratic Party, because what we're selling most often is harm mitigation. It's been that way since Reagan. There's an old joke: "Republicans are pissing you, Democrats are offering an umbrella."
This is bullshit. Biden saved the Teamsters' pensions. He walked a picket line. He revived American manufacturing. He passed a historic infrastructure bill & loaded it up with buy-American provisions. Same for the IRA. Now the labor market is the best we've had in 55 years.
This is bullshit. Biden saved the Teamsters' pensions. He walked a picket line. He revived American manufacturing. He passed a historic infrastructure bill & loaded it up with buy-American provisions. Same for the IRA. Now the labor market is the best we've had in 55 years.
— Omari Hardy (@OmariJHardy)
·x.com·
This is bullshit. Biden saved the Teamsters' pensions. He walked a picket line. He revived American manufacturing. He passed a historic infrastructure bill & loaded it up with buy-American provisions. Same for the IRA. Now the labor market is the best we've had in 55 years.