HNHacker News
TopNewBestAskShowJobs

ripley12

1,572 karma · joined April 24, 2015

reillywood.com
submissionscomments
ripley12··on Minimal APIs at a glance in .NET 6
NativeAOT is supported in more places in .NET 6, there has been a tremendous amount of work to ensure that libraries are trimmer and linker friendly. But I believe ASP.NET’s targeting .NET 7 for that.
ripley12··on Windows Subsystem for Linux GUI
This talk (from November last year) discusses a pretty detailed design for a zero-copy architecture. Sounds like it will be addressed soon. https://youtu.be/EkNBsBx501Q?t=1438
ripley12··on Performance Improvements in .NET 6
Y'know, I've been building up my own "regular 'ole JS/TS talking to a .NET backend" solution lately: https://github.com/rgwood/MinimalWebView

It's nice and lightweight but the friction of .NET-JS interop is constant. Blazor Server (hosted in-proc and served up to WebView2) is the nicest solution I've found so far but I'm very open to other suggestions.

ripley12··on Performance Improvements in .NET 6
I'm not a big fan of C# in Depth as a reference book. It follows a very chronological path (here's what was introduced in .NET Framework v1, here's what was introduced in version 2...), which can be interesting but I don't think it's a useful framing for most people.
ripley12··on Performance Improvements in .NET 6
A huge part of .NET's value proposition is that you can do things that aren't possible inside the browser sandbox, and it's nice to be able to build UIs on top of that.

I don't care if my UI ultimately gets rendered by a browser engine, but as things currently stand UIs that were relatively easy to build in WinForms/WPF/UWP are a bit of a pain with Blazor and friends.

(and yes, I'm aware of F# and SAFE but every time I try to get started with F# I run into too many tooling issues)

ripley12··on Performance Improvements in .NET 6
It's somewhat early days, but workable. The search term you probably want is "Blazor Desktop". It's basically Blazor Server but served to a local webview instead of a remote client.

.NET 6 will have some convenient ways to do this in WinForms, WPF, and MAUI. But if you're willing to go off the beaten path a bit, it's not too hard to assemble the bits on your own (serve up Blazor on a background thread, consume it in your web view control of choice).

ripley12··on Performance Improvements in .NET 6
Agreed that OmniSharp is inexplicably terrible. But Rider is a very good cross-platform alternative.
ripley12··on Performance Improvements in .NET 6
That’s on the Windows team, not the .NET team.
ripley12··on Performance Improvements in .NET 6
For what it’s worth, WPF and WinUI are owned by the Windows team not .NET.

I suspect it’s less “not a priority” and more “building a good cross-platform UI framework is a colossal amount of work”.

ripley12··on Performance Improvements in .NET 6
Blazor Desktop makes a lot of sense to me. Basically: Blazor Server is getting pretty good and it’s easy to serve it up to a local webview so why not make that an officially supported use case?
ripley12··on Performance Improvements in .NET 6
It will be interesting to see how well trimming and AOT (closely related technologies) turn out. I’ve already been able to build useful trimmed self-contained CLI apps with .NET 5 and 6, and based on what I’ve seen of NativeAOT I think it’d work for those.

OTOH things get dicier the further you get away from the core .NET libraries, and some of the enabling technologies are so new that they haven’t seen much adoption yet (example: the venerable COM interop system vs the new ComWrappers).

If you’d like to keep up to date on NativeAOT, Andrey Kurdyumov is doing some top-notch work in the area: https://codevision.medium.com/

ripley12··on Performance Improvements in .NET 6
There has been more churn than usual during+following the .NET Framework -> .NET Core migration. Some of it was necessary due to the migration, some of it is making up for lost time after being tied to Windows (and very constrained in their ability to make changes) for so long.

I understand your pain but I think most of the recent changes are necessary for the long-term health of the ecosystem, and I would not expect the breakneck pace of the last 5 years to continue forever.

ripley12··on Performance Improvements in .NET 6
Yes, it's a truly fantastic book for beginners and veterans alike. It's too big for most people to read cover to cover, but as a reference book it's invaluable (and much better than C# in Depth IMO). It covers just about everything in C# and is remarkably up-to-date.

Joe Albahari has had to work with just about every feature in C# (he's the author of LINQPad) and it really shows in the book.

ripley12··on Performance Improvements in .NET 6
I will, thanks!

Am I correct in thinking that PGO documentation will be coming later as part of the official release? Searching for DOTNET_TieredPGO (mentioned in Stephen's post) doesn't turn up much.

Might give it a spin on Preview 7 this week regardless, Stephen's post has more than enough to get started :)

ripley12··on Performance Improvements in .NET 6
These posts are a big highlight of every .NET release, you can tell Stephen Toub puts a ton of work into them. Can't wait to give the profile-guided optimization a try.
ripley12··on Ask HN: What has improved You as a Developer?
I spent a year working on GUI applications. It forced me to learn much more about threading+asynchrony+concurrency (stay off the UI thread!) than 8 years of working on back-end services did, and now a lot of concepts that were previously intimidating are easy.
ripley12··on Ask HN: What has improved You as a Developer?
I spent a year working on GUI applications. It forced me to learn more about threading, asynchrony, and concurrency than I had in 8 years of working on back-end services.

after a long time mostly working on back-end code. It forced me to grapple with threading, concurrency, and asynchrony every day (stay off the UI thread!); I learned more

ripley12··on Finding Windows HANDLE leaks, in Chromium and others
I think that’s an unfair characterization of the Terminal issue you linked, and the Terminal developers in general. If you follow the Terminal repo it is clear that the devs are not fans of the “modern” Windows technologies they are forced to work with.
ripley12··on Finding Windows HANDLE leaks, in Chromium and others
There’s a real problem here: those are still the books to read if you really want to understand Windows. They’re great books but they’re old, often out of print, and the onus is on the reader to distinguish outdated info from still-relevant info. Yet as far as I can tell, nobody’s publishing better books about Windows programming today.

It’s remarkably hard in 2021 for a newbie to start learning Windows programming “properly”.

ripley12··on Emulator dev who was bullied online dies by suicide. 'This stuff really hurts.'
Have you ever visited Kiwi Farms? The first thing you’ll notice is all the threads and subforums dedicated to harassing specific individuals - many with tens of thousands of messages.

I can’t imagine what it’s like to be targeted by a horde of deranged anonymous 4channers, and I don’t think ignoring it would be much of a solution.

ripley12··on Canonical turned a profit, back above 500 employees
Not yet. WebView2 is not available on Mac+Linux yet (but that’s coming).
ripley12··on The case for banning non-competes
Perhaps “people need a place to live” would have been a better way to phrase that.

Any solutions to North America’s urban planning woes will take decades, if they happen at all. I don’t fault anyone who can’t wait that long.

ripley12··on The case for banning non-competes
That doesn’t seem odd to me. People do what’s best for them, and even if they underatand the dysfunction of North American urban planning well they’re not in a position to fix it.
ripley12··on Gitlab 14
Oh, that's helpful thanks. I found that post earlier but didn't realize it lists new features (the "Key features" section is 3 pages down for me, I didn't even realize it was there).
ripley12··on Gitlab 14
This feels like it was written by marketing, for marketing.

I just want to know what's new, but I have to wade through a bunch of prose about how "GitLab has placed strongly in several market reports" and "The DevOps Research and Assessment (DORA) firm’s industry-defining research..." etc.

ripley12··on ARM64EC: Building Native and Interoperable Apps for Windows 11 on ARM
Yeah, MSIX is a mess and I'm not surprised by the low uptake. It's evolved from the ultra-locked-down AppX days slowly and in a very messy way; documentation is often out of date/incomplete, VS tooling is buggy, and the kicker is that App Installer (required to install an MSIX package with a double-click) doesn't even ship on all versions of Windows.

I have mostly learned to live with it, but I certainly do not like it.

ripley12··on ARM64EC: Building Native and Interoperable Apps for Windows 11 on ARM
VS doesn't currently run on ARM (which sucks, but that's definitely a very high priority for the team; I suspect the recent 64-bit migration is setting the stage for ARM support), so there isn't much point in speccing it to run VS. Agreed that remote development/debugging is not ideal.
ripley12··on ARM64EC: Building Native and Interoperable Apps for Windows 11 on ARM
I mostly agree that that's the current state of things, but I'm a little more optimistic about the future.

The software support for ARM in Windows has taken big leaps and bounds in the last ~6 months; this, the more general x64 emulation, Office, WPF, and probably many others that I'm forgetting. Hardware-wise, we're finally getting a cheap ARM developer kit and we're seeing some very cheap ARM laptops like the Galaxy Book Go.

The whole thing's frustratingly slow compared to Apple's transition, but I would not be surprised if ARM is a sizeable chunk of new Windows machines a few years from now.

ripley12··on Factory OS
I spent some time setting this up yesterday. Seems like an updated version of Windows IoT Core (based off Windows 11) that can be customized for OEM use. It looks like the built images can only run UWP apps, Edge, and Win32 apps in a Hyper-V container: https://docs.microsoft.com/en-us/windows-hardware/manufactur...

There’s some potential for uses outside of OEM scenarios, but it’s understandably not very polished for general use.

Still, now that the upgrade work has been been done… feels like they could release a new Windows IoT Core version based on this pretty easily.

ripley12··on Microsoft Teams 2 will use half the memory, dropping Electron for Edge Webview2
Outlook is switching to WebView2-based UI like this soon. As for Excel, here's its PM saying "When you look at the overall allocation of resources on the team, a huge percentage is working on web app improvements" https://twitter.com/jones206/status/1388162347059978243?s=20
← PreviousPage 13 of 17Next →