HNHacker News
TopNewBestAskShowJobs

rty32

812 karma · joined June 15, 2024

submissionscomments
rty32··on Goldman and Apple 'illegally sidestepped' obligations to credit-card customers
Not Apple's fines in Europe. And Tim Cook is vocal about that.

To me that says EU is doing the right thing.

rty32··on Everything I built with Claude Artifacts this week
I'm sure there are plenty of examples like this, but one thing that I find really hard to deal with is to integrate such tools into existing codebase -- you can make all these things as standalone pages, but for a professional developer, you have certain standards and conventions, and often it takes a lot of work to review/revise the code to make it work with existing codebase, so much that you end up using inline completion just to help with obvious stuff or boilerplate. I woule rather spend 20% extra amount of time to write the code myself yet have confidence, than spend time tweaking the prompt or giving follow up instructions.
rty32··on Civet: A Superset of TypeScript
What a mess.

    switch x
      0
        console.log("zero")
      /^\s+$/
        console.log("whitespace")
      [{type: "text", content}, ...rest]
        console.log("leading text", content)
Yes, looks very cool, but nobody should ever write code like this, especially not in strictly typed code. And it is extremely rare you need to do similar pattern matching. For the object case, you would want to define interfaces and type guards in TypeScript anyway. This feels like poor man's pattern matching compared to Python and Rust.

    items = for item of items
      if item.length
        item.toUpperCase()
      else
        "<empty>"
If JavaScript has always required statements to end in semicolon, I'm 100% for this. But it's not. So "standalone expression" as return value will only cause chaos.
rty32··on Microsoft is introducing hidden APIs to VS Code only enabled for Copilot?
Does throwaway account negates the arguments though?
rty32··on Microsoft is introducing hidden APIs to VS Code only enabled for Copilot?
Exactly. That's what Cursor did, and (I think) Microsoft will agree with that and maybe even welcome developers to do this.
rty32··on Microsoft is introducing hidden APIs to VS Code only enabled for Copilot?
I mean, Microsoft has been very clear about their business model of VSCode -- similar to Chromium, the base product is free and you can do whatever you want (and indeed there are lots of products reusing the core of VSCode), but extension marketplace/remote/GitHub Copilot are proprietary. It sounds like a fair deal to me -- Microsoft can't just do open source without expecting to get something in return.

Now, coming back to private APIs, it's hard to know whether this is because Microsoft intentionally wants to keep competition out, or it is just hard to standardize/finalize APIs. I do know that VSCode development team takes extreme care when it comes to their APIs -- new features can take years before they are ready (most recenly coverage APIs, for example), and they don't want to release something when it's not ready, and I respect that. And to be fair, they have a number of "inline completion" APIs standardized as both VSCode APIs and LSP protocol (upcoming). I'm sure there is a lot to be desired, but it should be a nuanced discussion instead of simply "Microsoft bad".

(I am a VSCode extension & LSP author, not affiliated with Microsoft at all)

rty32··on Microsoft is introducing hidden APIs to VS Code only enabled for Copilot?
Very interestingly, just yesterday I discovered that VSCode has a set of APIs for adding SSH tunneling, and under normal circumstances you must launch vscode with special flags to be able to use them. Somehow their built-in JavaScript debugging extension can use these APIs without any issues.

https://github.com/microsoft/vscode/blob/main/src/vscode-dts...

And you can hardly find any public information about these APIs. Well, unless someone asks -- As of 2 years ago, they didn't have any plans to "finalize" these APIs, i.e. make them public. You are advised to find other workarounds (which do work).

https://github.com/microsoft/vscode-discussions/discussions/...

This is much less "harmful" than Copilot though, I guess.

rty32··on The empire of C++ strikes back with Safe C++ blueprint
Reminds me of the trivia given by the instructor when we had a training on "C++ STL" -- guess which method will be called! (Yes, bringing in classes and virtual functions makes it extra fun)

Having learned Go and Rust in the last two years, it occurs to me that -- if this can be made into a trivia, and considering all the things in C++ like friend class, nested class, public/protected/private inheritance matrix and all the "possibilities" out there, it seems this language is seriously f*cked up.

rty32··on Microsoft asking us to buy new Windows 11 PCs is wasteful
How old are those older OSes? Probably not a decade though?
rty32··on Qualcomm cancels Snapdragon Dev Kit, refunds all orders
(not the person you replied to)

Window management is very weird: try running vscode in crostini. Title bar is empty. I think there is a workaround that ... shows two title bars. Here you are. I didn't want to waste time on that. And I don't remember exactly what happened, but I can never arrange the windows the way I want. I am not talking about something as good as Microsoft Windows with all the regions and snaps, just something at native MacOS or a desktop Linux distro level. No you can't. Especially if you have an Android app open as well.

If you want to connect to VPN, you may need to go to play store and use an Android app for it, which probably doesn't support keyboard very well. I am talking about something as basic as using tabs.

I vaguely remember Firefox on crostini was not a great experience but I don't remember why. Firefox in Android is a big no-no for Chrome OS. Horrible tab management and there is no keyboard shortcut support.

You regular linux command may or may not work.

That's just some of the issues I had.

My experience with WSL isn't great, having spent many hours on it, mostly due to poor IO performance and weird bugs. But I would love to hear more about others' experience.

rty32··on Microsoft asking us to buy new Windows 11 PCs is wasteful
Very weird article.

First sentence: Despite Microsoft trying hard to get people to upgrade to Windows 11... Title: buy new Windows 11 PC

I mean, there is a clearly a difference, and XDA knows that.

So it brings up TPM 2.0 and says Microsoft "sends a signal" "old CPUs are useless". I don't think anybody, Microsoft or others, ever said or hinted anything like that. The "useless" thing is just completely made up. If we are talking about security updates etc, sure, that's a real issue, let's discuss that, but "useless" is just a meaningless yet very misleading word to tack on here.

Then, "big push for Copilot+". Sorry to point out that "Copilot+" as a concept has only existed for a few months, but things in the rest of the content were already happening long before this year.

I can't see how any of this is different from macOS Sequoia only supports MacBook Air 2020 or later, or MacBook Pro 2018 or later. A company only has the resources to support old hardware for that many years, after that it's all on your own. That's just how things have worked for a very long time.

But this is XDA, and I don't think people ever take XDA's "news" articles seriously. So never mind.

rty32··on US probes Tesla's Full Self-Driving software after fatal crash
Come on, you know it's an oxymoron. "full" and "supervised" don't belong to the same sentence. Ask any 10 year old or a non native English speaker who only learned the language from textbooks for 5 years can tell you that. Just... stop defending Tesla.
rty32··on US probes Tesla's Full Self-Driving software after fatal crash
Do they have warnings as big as "full self driving" texts in advertisements? And if it is NOT actually full self driving, why call it full self driving?

That's just false advertising. You can't get around that.

I can't believe our current laws let Tesla get away like that.

rty32··on Qualcomm cancels Snapdragon Dev Kit, refunds all orders
Now that you are interested, I'm happy to share more.

For context, I got this exact machine https://www.ebay.com/itm/134571642124 at $174, and did it because I wanted a cheap, 15.6" laptop with an accurate & high resolution screen that is more useful than an iPad Pro. A refurbished machine of this model almost perfectly fits those requirements. I installed Linux (Mint) because lots of things like window management and VPN are cumbersome on ChromeOS, and I want very little to do with Google. I didn't install Windows because memory is limited (8GB) and the experience wouldn't be good, but if it had 16GB I would have done that instead.

Issues I have run into:

* Keyboard layout

   * Apparently Caps Lock and Esc keys are going to be a problem. And if you have a remote session where the remote machine has Caps Lock and Esc swapped, it would be a mess. As a (vscode) vim user, I ended up doing Ctrl+[ for Esc. (If I spent more time on it I probably would have figured it out)

    * Also apparently, F11 and F12 keys don't exist, and it can be painful for debugging.

    * You need to properly map F1-F10 as well.
* Audio issues -- there is a chromebook-linux-audio project that enables audio on chromebooks, and I know other people have successfully used it for this model but on a different distro. The project clearly says it does not support Ubuntu, and it indeed didn't work for me. Not that I need or care about audio on this machine dedicated to programming, but missing audio can be annoying at times when you need it.

* Power management. I don't know if it's bad for this model, for Mint or bad for Linux in general, but it's annoying. I think I have properly throttled the CPU via auto-cpufreq, but sometimes the fan runs crazy when nothing is happening. (Granted, that happens on well-supported Windows laptops as well, and I don't know why.) Then something is weird with suspend ("sleep") -- even after setting things up so that closing lid = suspend, after doing it, the laptop goes out of battery within a few hours. I have to manually suspend every time I am done to preserve battery.

Basically, I am seeing a number of issues with using the machines, some specific to Chromebooks, and some that may or may not be associated with Chromebooks specifically. I know it is always a bumpy road to use Linux on laptops, but this is rougher. It's probably not worth the effort, unless you really want to do that, like in my case. Or to put it this way -- if I didn't intend the machine to do lots of development work and I want to be in the Google ecosystem, it would have been a perfect machine otherwise.

rty32··on Qualcomm cancels Snapdragon Dev Kit, refunds all orders
This is probably a money losing business for the unit. Qualcomm needs to pay manufacturers a lot of money to get it going. I am not sure Qualcomm cares enough about that.
rty32··on Qualcomm cancels Snapdragon Dev Kit, refunds all orders
I think Chromebook throttle the CPU frequency to a low level to make it run at a sweet spot where there is enough performance but not much heat.

Saying that as someone who installed Linux on a Chromebook with 1215u. (Don't do that)

I do that with other AMD machines as well. I always throttle CPU to base frequency unless I really need max performance, which has not happened yet.

I think that's just what I Intel or AMD should have done in the first place -- lower both the base frequency and max turbo frequency to the point that the fan does not even turn on in most workflows.

I suspect that they want to look good in benchmarks, so they set max turbo frequency very high. But that doesn't matter in 90% of the workflows.

rty32··on Qualcomm cancels Snapdragon Dev Kit, refunds all orders
There is some truth in that -- if x86 can achieve the same battery life and heat management as Apple silicon, barely anyone would care about ARM for Windows/Linux. AMD has made leaps in CPU efficiency in recent years, but that was still not enough. Your uncle probably couldn't understand or care about x86 or ARM. They want a performant, fanless laptop with long battery life, and it seems that such a (mainstream) laptop still does not exist in the Windows world.
rty32··on Qualcomm cancels Snapdragon Dev Kit, refunds all orders
Well, to me application crashes are way better than car crashes. Provided that they are used by average consumers, not on servers
rty32··on Qualcomm cancels Snapdragon Dev Kit, refunds all orders
My theory -- linux arm is a real alternative to linux x86 and everyone involved knows that they are doing. Windows in Arm, at this moment, only causes confusion to product lines and branding, for both device manufacturers and consumers. By comparison, it is a hard switch for MacBooks (not releasing new x86 and arm computers at the same time), and I don't think Apple even mentions ARM that much -- they just keep saying "Apple silicon", which sounds stupid to developers but is good marketing.
rty32··on C++ proposal: There are exactly 8 bits in a byte
One obvious example is auto_ptr. And from what I can see it is quite successful -- in a well maintained C++ codebase using C++ 11 or later, you just don't see auto_ptr in the code.
rty32··on Apple introduces iPad mini built for Apple Intelligence
I don't know which bubble you are in, but $499 + $129 for devices at MSRP is not going to revolutionize anything, especially just for maths.

A $200 Chromebook can do 10x. Guess what, that's exactly why schools buy Chromebooks.

rty32··on Embedded Rust in Production?
Chances are that recruiters just ignore your resume without even thinking about it.

Especially if there are other candidates who do have that much experience in a specific language. Even if you are a better candidate overall (whatever that means), you need to pass the resume screening first.

rty32··on Show HN: A VSCode Extension to edit HTML visually in real-time
This. A not so great analogy is you can always drop a single php file into your /var/www/ (or even do cgi) and get your "dynamic" website running like decades ago, but people don't do that any more for any website that is not a tiny one with just a few pages (barring famous exceptions like WordPress). People realize there are good reasons to use frameworks, and often, use other languages for website backend.
rty32··on Huly – Open-source project management platform
I mean, locking users into your platform is one of the most common ways companies make money and keep making money. And that works.

If you want an obvious example, look at Apple.

rty32··on Miqt: MIT-licensed Qt bindings for Go
I doubt licensing is a "detail" -- various comments say it matters a lot, e.g. https://stackoverflow.com/a/14488011/3831197

> The GPLv3 was the final straw that ended Apple's interest in contributing to GCC which is the reason Apple ended it at GCC 4.2.x.

I guess GPLv2 is still GPL, but here we end up talking about copyleft licenses (GPLv3) affecting business decisions anyway.

rty32··on Google is preparing to let you run Linux apps on Android, just like Chrome OS
Looks like this is still terminal application (is that vim?)? I was thinking about full desktop applications like vscode
rty32··on Proposal: JavaScript Structs
IDE support is often hit or miss with these, I have seen too much of it.

Don't use vscode or never bother to write jsdoc/do any strict typing? Never mind. Good luck with your codebase.

rty32··on Google is preparing to let you run Linux apps on Android, just like Chrome OS
I haven't seen any updates than those first screenshots, almost making me wonder if this is real. I do a search every few months to see if someone created a tool that allows anyone to run Windows/Linux on Android. Nope. Because I really want to do something really meaningful on my Galaxy Tab other than just watching YouTube or web browsing.
rty32··on My WordPress Slack Ban
You might want to actually understand what's happening instead of simplifying the whole thing as tldr.
rty32··on My WordPress Slack Ban
This is stunning.

Once a dedicated user of WordPress, I never thought I would ever say this, but here it is -- I hope WordPress dies as soon as possible and gets replaced by something else. Well, a better outcome would be Matt goes away, but I don't see that happening.

← PreviousPage 4 of 12Next →