HNHacker News
TopNewBestAskShowJobs

rty32

812 karma · joined June 15, 2024

submissionscomments
rty32··on Proposal: JavaScript Structs
Exactly. Without new features and syntaxes people would still be doing MyClass.prototype.method = function () { } like idiots. Such a meaningless argument for preventing progress.
rty32··on Miqt: MIT-licensed Qt bindings for Go
That's your definition of "useful", not mine. "political aversion"? We are talking about money and business here.

If a commercial company wants to ship a product without reinventing all the wheels, they are going to use code with permissive licenses, and skip projects with GPL license or similar in a heartbeat.

You could even argue quite the contrary -- when you make your project GPL/AGPL etc, and if it is big/impactful enough, people will inevitably create alternative projects with permissive licenses that tried to match the feature set, and it is you that is the cause of all this "waste of time". Not necessarily a good argument, but there is some truth there.

And thank god a lot of goodness actually comes out of it other than just reinventing the wheels. Apple "bought" LLVM due to gcc's copyleft license, and now we have a family new compilers based on LLVM for different languages and targets. Kudos to Apple.

rty32··on A popular but wrong way to convert a string to uppercase or lowercase
And web development is not game development? And chances are that games don't ship chromium with them?
rty32··on Nobel Prize in Physics Awarded for Machine Learning and Neural Networks
Nobel prize was awarded to theoretical work in 2021: https://www.nobelprize.org/prizes/physics/2021/popular-infor...

"theoretical physics" is such a big and ambiguous concept that physicists tend not to use the word in discussions. Thereotical work often involves a lot of numerical simulation on super computers these days which are kind of their own "experiments". And it is usually more productive to just mention the specific field, e.g. astronomy, condensed matter, AMO etc, and you can be sure there is always a lot of discoveries in each area.

rty32··on How were 70s versions of games like Pong built without a programmable computer?
Yeah, other than students who get interested in all the hardware stuff (for whom there would likely be dedicated courses), I don't see how general EE courses help computer science study or career. If anyone really needs that later in the career, it won't be hard to pick it up.
rty32··on Do AI companies work?
If drivers are actually driving people around and earning money, potentially getting more income in the end, with a trade-off of inconvenience for riders to wait a few minutes for the next ride to arrive, do you consider that positive or negative? Sounds like a much more efficient model to me.
rty32··on Canvas is a new way to write and code with ChatGPT
Curious -- does this happen to you often? Do you do that for your work (what pays your salary) or personal projects? Do you find it stressful to think about coding all the time?
rty32··on Canvas is a new way to write and code with ChatGPT
It is a cool concept, but anyone who listens to enough podcasts know that hosts have personalities and interests, and productions usually have their styles, focus and quality. These features make podcast channels unique and make you want to come back. That's why you may want to listen to podcast A instead of B even though they discuss the same topics. I doubt the Google thing will ever give us that -- likely just one hour of generic rambling that gets boring.
rty32··on Canvas is a new way to write and code with ChatGPT
How many people use Pages these days? I don't think Apple even mentions the product in their WWDC these days. My guess is that most people either use Microsoft suite as required by their employer or use cloud based knowledge base/notes tools like Notion/Quip/Obsidian/Confluence etc. I doubt Apple thinks it worthwhile to invest in these products.
rty32··on Canvas is a new way to write and code with ChatGPT
Eh, GitHub CoPilot? Microsoft is literally THE company that understands developers' workflows and creates good IDEs.
rty32··on Pledging $300k to the Zig Software Foundation
Definitely good news, but to put it in perspective, that's about 0.75x - 1x annual salary for an experienced developer that works on compilers. My *guess* is that Microsoft spends at least 10-20x that amount of money on TypeScript annually, and much more on C++/C# etc.
rty32··on We need more zero config tools
When I develop tools/real products for others, I try to come up with the best defaults and provide the best experience out of the box, because most people don't ever touch settings. On the other hand, I think it is important to have almost as many settings as technical possible/feasible and try to make them discoverable, and encourage people to customize -- although maybe not spend too much time on that.

One setting that completely changed how I use vim: relative line number (and the "smart" version). I learned about it recently and realized I had wasted a stupid amount of time in the past decade since I used vim. Should that be the default? Probably not. But people do need to customize the editor to make it the most efficient and productive for themselves. I just wish relative line numbers are marketed more, and there is a way to gradually discover settings that people may want to tweak.

rty32··on Do AI companies work?
"walk out to the taxi rank"

I assume you are talking about airports. Guess what, they still exist in many places. And on the other hand, for US, other than a few big cities, the "normal" taxi experience is that you call a number and maybe a taxi shows up in half an hour. With Uber, that becomes 10 minutes or less, with live map updates. Give me that and I'll be happy to forget about Uber.

rty32··on Web components are okay
The comment could be so much more helpful if it just casually mentioned what people hate web components about. Sigh.
rty32··on Web components are okay
It is not a choice in many situations. For a large company that has many different teams that own many different parts of a product, even though teams adhere to the same "UI standards", things get complicated quickly. For example, CSS classes that have name conflict can cause UI to break (which happens more often than you think, and strictly adhering to naming rules is just hard for humans). That's just one example. Custom elements with shadow DOM is a simple and straightforward solution to this, and it makes sense -- JavaScript code are scoped to modules and use imports/exports to define interfaces, and it is just natural to do that for UI instead of putting every class that other people don't care about in the global CSS space.
rty32··on Web components are okay
One aspect of this is how you think about UI. The underlying pattern of jQuery is fully side-effects -- you select an element and make some changes to it. Frameworks like React and Vue.js allows to create UI components whose states are completely determined by data, i.e. what the UI looks like is the value of a pure function, mathematically speaking. It also updates the UI with minimum DOM changes when the data changes. (Although you don't have to make them pure, and arguably you can achieve the same thing with jQuery.) Depending on where you are, it makes UI widgets much more readable and maintainable. These frameworks are innovative in terms of state management compared to "old approaches" (of course, with additional benefits like reusability etc)

Bear in mind that today's websites and web based desktop applications are much, much more complicated than two decades ago, and has a much higher requirement for scalability and maintainability. If you just want to create simple UI, indeed they may not be your best choice.

rty32··on Refactoring Python with Tree-sitter and Jedi
In the JavaScript world, jscodeshift and its upstream tool recast are frequently used. I believe you could do the same thing with esbuild and some Rust based tools, but these two are probably the most popular.
rty32··on TSMC execs allegedly dismissed OpenAI CEO Sam Altman as 'podcasting bro'
Well, that probably happens to some extent, but I am quite confident that some smaller shops will just say "Hey make an app that works 50% of the time and that's good enough." then fire half of the staff.

Oh, not just smaller shops, I have many issues with Android and other Google products -- from bugs to things that just don't work that have existed for decades, and there is no action on those over the years. Surely Google has the resources? Right? riiight?

This is a human problem, not a technology problem.

rty32··on Legalizing sports gambling was a mistake
If I understand your comment correctly, you are saying laws are bad, and decriminalization/deregulation is good

I would very much like to believe that. But see what happened in Oregon after decriminalizing drugs.

rty32··on Legalizing Sports Gambling Was a Mistake
Indeed, you can't argue state lotteries aren't gambling. But hey, there is a wide spectrum of how bad each form of gambling is, and lottery is very much on the lower end of it.

Very, very few people spend $200 a week on lottery tickets -- they spend a few dollars here and there a week. (Spending $200 is just silly and barely increases the chance of winning or return -- if someone can't see that, well, can't stop them from wasting money) Of course, I would like state lotteries to be further restricted, but that's still much much better than online sports betting -- people can lose six digits of wealth quickly, and that has a much bigger and immediate impact on lives than state lotteries.

rty32··on Legalizing sports gambling was a mistake
Silly take: humans are really bad at controlling themselves and stick to doing the correct things, that's why newer languages like Go and Rust force you to check errors in return values, among many other additional checks/guardrails that didn't exist or weren't common in older languages. It is just easier to have the compiler checks these things for you instead of manually making sure things are correct. Same for sports gambling. Human nature is really bad, and it is really hard to control yourself. See that wsj reporting. Even someone as rich and educated as a psychiatrist can sink 6 digit amount of money into gambling. When the law allowed gambling, especially online gambling, it opened a can of worms.
rty32··on WordPress.org bans WP Engine
*CMS -- I don't know what I was thinking
rty32··on WordPress.org bans WP Engine
Somewhat off-topic: WordPress has proven that there is still a market for WordPress-style CRM and managed solution even in 2024. Why hasn't a strong, open source competitor emerged over the years? Because if there is an alternative, this article would be much less relevant, and the events may not have happened in the first place. Is it because CRM, especially the dynamic kind, is no longer cool, and developers are not interested in this area any more?
rty32··on Timeshare owner? The Mexican drug cartels want you
Sounds like your family is much, much richer than the general population, so your experience probably isn't super meaningful to other people.
rty32··on Timeshare owner? The Mexican drug cartels want you
Even from the west coast it's a 6 hr flight. Combined with time difference, it often means 2 days on travelling alone. Even worse for people in mid west or near west coast, which is the majority of where the population is [0]. For most people I know, Hawaii is a trip once every few years, and definitely not twice a year.

[0] http://dhmontgomery.com/2018/02/population-latitude/

rty32··on Orion, our first true augmented reality glasses
Guess what? Most people who end up buying this product won't care about any of these.

(P.S. Apple is much worse than you think. Look up Apple's first party tracking.)

rty32··on Two new Gemini models, reduced 1.5 Pro pricing, increased rate limits, and more
People have said that for many years. Very few companies are choosing Google's TPUs. Everyone wants H100s.
rty32··on Halide rejected from App Store because it doesn't explain why it takes photos
And I suppose CPA exists to help understand tax laws, and there is always a possibility to sue the government if you don't agree with them on how the law works.

Whereas with app store reviews, it's a black box with no option other than trial and error to figure out what to do.

rty32··on Desktop Windowing on Android Tablets
Definitely not "regardless of socioeconomics situations". I don't know which bubble you are living in.
rty32··on Sanding UI
I don't know if it's a Windows/Mac thing, click/touch thing, or Apple vs others thing. I do notice that on Chrome/Firefox/Edge on Windows, when you click away from address bar after modifying the URL, it does not revert the value. Actually same on Android.
← PreviousPage 5 of 12Next →