HNHacker News
TopNewBestAskShowJobs

moshegramovsky

399 karma · joined November 27, 2022

submissionscomments
moshegramovsky··on How might software development have unfolded if CPU speeds were 20x slower?
LOL, you just can't make all the people happy all of the time, right? I have done similar things with timers, for the same reasons.
moshegramovsky··on How might software development have unfolded if CPU speeds were 20x slower?
Desktop UI is painful. It doesn't help that Microsoft is seems to have quite a few competing UI frameworks and technologies these days.

1. What is your goal? Do you need to run on Windows and Linux? QT isn't bad, although I personally think the UI looks a little weird. It is definitely highly opinionated and parts of it are quite strange IMHO. There's probably lots of jobs writing with QT, which might be a nice side bonus from learning the framework.

2. Do you need a totally custom UI? If so, I would stay with ImGui. You might find Windows UI development extremely frustrating, especially that you have to owner draw a lot of stuff to get a really custom UI. That can be an extremely difficult and terrible experience, and I don't recommend it to anyone who isn't already an expert at it.

3. State management? You mean like the state of the UI? Is a button pressed? Could you be more specific?

4. User interaction? This is such a broad area. Could you be more specific? Like filtering mouse and keyboard messages? Windows has several APIs for this.

EDITED TO ADD: In my experience, which is significant, either use a GUI framework and operate within its capabilities, or draw everything yourself. In Windows, your life will become exceedingly difficult if you use a framework when you want to do a lot of custom components, or if you want a lot of custom look/feel. If it were me, I would draw everything myself. People don't need the consistency of the Windows UI anymore, provided you stick with common and well-known metaphors like text boxes and property editors, etc.

moshegramovsky··on How might software development have unfolded if CPU speeds were 20x slower?
I write C++ for high-performance Windows desktop applications that are used on a wide variety of form factors. This means that I still optimize a lot of things, such as what happens when a user edits a property in an edit box. How can that edit be minimized? How do I make sure that commands operate in less than a second? How can we hide latency when a long execution time can't be avoided? 99% of the time, optimizations are about doing less, not doing something faster or with lower-level code. You'll never write faster code than code that doesn't run.

I think the GPU would do a lot more work in most applications than it does today. If a process needs to be super fast, when applicable, I write a compute shader. I've written ridiculous compute shaders that do ridiculous things. They are stupidly fast. One time I reduced something from a 15 minute execution time to running hundreds of times per second. And I didn't even do that good of a job with the shader code.

moshegramovsky··on Seattle shuts down gifted program for having too many white and Asian students
How many Jews do you know?
moshegramovsky··on Seattle shuts down gifted program for having too many white and Asian students
In some people's eyes, there's a certain fairness to lowering outcomes for everyone. Racism IS bullying. You can have an individual racist who bullies you, or you can have society be the racist who bullies you. Unfortunately, you can also, and often do, have both. It's also unfortunate, but just a fact, that some people, usually privileged people, won't understand getting the short end of the stick until it happens to them.

While I might take issue with shutting down a program to make a point, I grew up as a Jewish guy in the 1980s and faced racism and bullying on the regular. It truly made my life a living hell sometimes. As an adult, I've had to deal with things like openly racist co-workers. Now of course there's all the recent suggestions that I'm enabling genocide somewhere just by _being_ Jewish and/or for supporting Israel. Whenever someone says something like "The Jews...", it's probably racism. It feels like it.

In my opinion, the root of all these problems is a small bunch of bad actors who think it's okay to engage in antisocial behavior. They then convince others that it's okay to do the same thing, whether actively or by example. Society would be so much better off if people with antisocial tendencies could somehow be convinced to be pro-social.

moshegramovsky··on Seattle shuts down gifted program for having too many white and Asian students
<< "Shut it down, the goyim know!")

Are you trying to say that Jewish people are behind this? Naked antisemitism much?

moshegramovsky··on Amazon joins companies arguing US labor board is unconstitutional
You're absolutely right.

And yet some people are still surprised by the political climate in America that is being created as a result. I keep saying that someone (I don't care who) needs to do something about housing, healthcare, and wages before there's even bigger trouble.

Dumb move by Amazon. First time after hearing criticism of them for over 20 years that I actually felt like I was wrong about them.

moshegramovsky··on To be great, be good, repeatably (2019)
One of my favorite quotes, but I have no idea who said it.

"A series of small steps, faithfully completed, does great things".

It's influenced so much of my life. Especially in the small, quiet hours when I think about cutting corners.

moshegramovsky··on A guide to technical report writing [pdf]
My ultimate technical writing tip is to be like Mike and "just do it". The more you write, the easier it gets. If you write enough to reframe your perspective around the user's problems, and come to a point where you question your technical decisions as a result, then you're definitely headed in the right direction. Documenting something is simply the best way to put yourself in your user's shoes.
moshegramovsky··on Home schooling's rise from fringe to fastest-growing form of education
You don't need any ethical framework, religion or otherwise, to allow people to make their own medical decisions. Not to give a hungry person food, nor to do anything to improve anyone's life.

I do understand your argument, and I definitely agree that some set of non-self "objective higher-power" can be very helpful. Like a personal or societal code of ethics. Bodies of law are an attempt at that.

I simply don't agree that our society will become worse the more we "move away from God". It's totally fine if "God" is how you want to do it. But not everyone wants this, and the development of secular philosophy, laws, professional ethics, and personal ethics are excellent substitutes for people who don't believe.

Not to mention, secular alternatives still allow people to practice their religious-based ethical framework without forcing others to do so.

moshegramovsky··on Home schooling's rise from fringe to fastest-growing form of education
But it's okay for society to destigmatize sexual and gender minorities, right?
moshegramovsky··on Home schooling's rise from fringe to fastest-growing form of education
Well said!
moshegramovsky··on Home schooling's rise from fringe to fastest-growing form of education
You're exactly right.
moshegramovsky··on Home schooling's rise from fringe to fastest-growing form of education
Was society better in the past when it was more religious? If you think so, maybe you could give a hint about how far back we might look. 50 years? 100 years? 250 years?

Is there a threshold for belief in God that you think is necessary for a healthy society? 50%? 75%?

It's not true at all to state that morality has no grounding without a "higher power". (See also: https://en.wikipedia.org/wiki/Ethics)

For example: belief in a higher power simply isn't required to allow people to make their own medical decisions. Belief in a higher power isn't required to give someone food.

It's absolutely fine to propose religion as an ethical framework, but I don't think it can possibly make sense to propose it as the only ethical framework, or to propose that society will become worse if humans "move away from God".

There are plenty of good alternatives.

moshegramovsky··on Home schooling's rise from fringe to fastest-growing form of education
Would you feel comfortable saying that a human who isn't bipedal is unnatural and abnormal? What if it there were such a person in your family?

Words matter.

moshegramovsky··on Home schooling's rise from fringe to fastest-growing form of education
Are you saying that a penis is what makes you a male? That a vagina is what makes you a female?

What about a man who loses his penis in an accident? Is he no longer a man? Would he still be allowed to identify as a man? Would a woman born without a vagina still be allowed to identify as a woman?

moshegramovsky··on Ketamine's effect on depression may hinge on hope
This doesn't get said nearly enough. Social media is also to blame. I know one person who got upset about his credit score (low 700s) from watching videos about it and then kept consuming information until he was seriously depressed about his (good) finances.

When I was in my twenties and early thirties, I never worried about any of this at all.

moshegramovsky··on You (maybe?) have thousands of ancestors from the 1600s
When I had 23 & Me, it told me that I am 95% Ashkenazi Jewish. I already knew this. What I didn't know is that I am 5% Gentile. This made me very happy, and I wish the percentage were much higher. Some people in the more conservative parts of the Jewish community are dismayed by intermarriage. I say, please more intermarriage. A lot more. Two thousand years of endogamy didn't do us any favors at all.
moshegramovsky··on Be sceptical of your own work (2009)
I think it's also not important to fall in love with your own work. I spent a few years working on a system. It was so much fun. Very technically rewarding. Then one day it needed to go, and I killed it without a second thought.
moshegramovsky··on Be sceptical of your own work (2009)
That's me all day.
moshegramovsky··on Google Deprecates Google Domains, Sells It to Squarespace
Been very happy with Amazon. They also make it very easy to get an SSL certificate.
moshegramovsky··on Seattle becomes first in U.S. to protect gig workers from sudden 'deactivation'
It could be like this if we lived in a society where labor and capital had equal footing.
moshegramovsky··on Google Maps has become an eyesore
I really want to know why Google maps is slow on a $3500 laptop with a huge Nvidia card.
moshegramovsky··on I went to 50 different dentists: almost all gave a different diagnosis (1997)
Note that I am not religious. The last religious thing I did was my bar mitzvah, which was like 35 years ago.

I felt like my dentist was morally upstanding.

moshegramovsky··on I went to 50 different dentists: almost all gave a different diagnosis (1997)
I eventually found a great dentist. The first time I went to his office, it was extremely obvious that he was a Christian. Did that make me trust him more? Yes it sure did, but only because he was young. I would also trust an Orthodox Jewish dentist, but there aren't any here in Seattle that I can find. If I needed a lot of really expensive work, I would probably just go to a high end place in Mexico.
moshegramovsky··on Man spoofs threatening texts from ex-gf, gets her jailed multiple times (2020)
My sister went through a lot of stuff like this with her ex-husband. For example, he waited until she went out for an evening and then brought the kids by at 11pm and said he was called into work. 30 minutes later the police show up and start asking her if she had been drinking. She had to go to family court and try to clear her name. The judge asked her why she said yes to taking care of the children when she knew she had alcohol. The whole thing was horrendous. Honestly, abusive men (and some women of course too) know that even a little lawfare goes a long way toward destroying people's lives. It's sick and wrong.
moshegramovsky··on My Beautiful Friend
I look a little white, I look a little Middle Eastern. When I was young, I absolutely hated how I looked. I was bullied. Taunted. Tormented. I wanted a nose job. I wanted different hair. I wanted a different build. But as I got into my late 20s, I started to get a lot more attention, and I realized that a lot of people found me attractive. For reference, I look a lot more like Yehuda Amar (an Israeli chef) than Michael Aloni (Akiva on Schtisel).

It's true that being conventionally attractive made my life 1000x easier - it's almost like the trees lowered their branches to make the fruit easier to pick. I'm pretty sure it made it easier to get a mortgage and a job and definitely a partner. But I still think about what my life would be like if I had a different nose, different hair, different build.

Even in my late 40s, I still get a lot of attention from much younger women. A few weeks ago, a woman, maybe 25, openly flirted with me while she made my cappuccino. This has happened many times before, but I never make a move.

All I could think was how repulsed she would feel if she ever saw me naked. Or how fast she would disappear if she saw my crooked upper teeth. Or all my gray chest hair. Or my hairy back. Even if I played ball and gave her my number, even if she thinks I'm handsome, older-and-wiser, I just could never get past how I feel about myself, and see myself, relative to her.

moshegramovsky··on Over 70% of US household Covid spread started with a child
But the vaccines have almost certainly prevented, at minimum, hundreds of thousands more deaths.

https://www.cidrap.umn.edu/covid-19/report-covid-19-vaccines...

moshegramovsky··on Over 70% of US household Covid spread started with a child
Last I checked, covid has killed over 1,000,000 Americans, even though pretty strong measures were taken.

Your characterization of this as "hypochondriac" fear is almost unconscionable.

moshegramovsky··on Microsoft's Software Is Malware
Microsoft doesn't appear to care anymore.
← PreviousPage 6 of 7Next →