HNHacker News
TopNewBestAskShowJobs

ripley12

1,572 karma · joined April 24, 2015

reillywood.com
submissionscomments
ripley12··on Nushell 0.60 Released
This is a massive release; congratulations to the Nu team for replacing the engine, line editor, and more.

Nu isn't quite 1.0 yet but this is the first release I can see using as my daily driver. There are a few rough edges and things aren't 100% stable yet, but I'm really impressed by the overall level of polish. Using Nu is like a glimpse into a future where string parsing is largely a thing of the past.

I've been helping out a bit with the documentation; if you have questions about getting started with Nu or if anything in the docs is unclear, let me know! https://www.nushell.sh/book/

ripley12··on Windows needs a change in priorities
OK, no evidence. Got it.
ripley12··on Windows needs a change in priorities
I don't think the (not very good) PowerShell extension is a great basis for judging VS Code as a whole.

I've spent most of my career in Visual Studio, I have a great deal of respect for how it just works, nobody's forcing me to leave it and yet... I'm mostly done with it. I'd rather use VS Code for C# development these days; it nails a lot of speed+UX things that Visual Studio doesn't.

ripley12··on Windows needs a change in priorities
> when so much focus is assigned to those instead of the core pieces of the OS

Do you have any evidence that Notepad and Task Manager required "so much focus"?

The new Notepad's about as bare-bones as the old Notepad, it just happens to use XAML Islands for the UI. It would be surprising if it significantly detracted from other efforts.

ripley12··on Windows needs a change in priorities
> stuff like tasks on startup should be managed in one location that is easy to find

Task Manager's Startup tab?

ripley12··on Windows needs a change in priorities
> What little new stuff they're putting out (e.g.: Visual Studio Code) is a tyre fire of low quality tools

I have no idea why you would say this. VS Code is an incredibly popular and well-liked product.

ripley12··on Windows needs a change in priorities
"Microsoft Teams" is present for in Settings -> Apps -> Apps & Features on Win11 for me. But given how they're integrating Teams into the OS, I wouldn't be surprised if I lose the ability to uninstall it soon.
ripley12··on Windows needs a change in priorities
> ...which is very strange that MS seems to be continuing to rewrite stuff in it

From what I understand, the thinking is something like:

- There currently aren't any great alternatives for an attractive, touch-friendly, modern-looking UI framework. UWP applications generally feel pretty good to use despite UWP's problems.

- MS already has to support UWP apps forever (once something ships with Windows it's immortal), so they might as well take advantage of that support guarantee.

The Windows team is currently investing heavily in Chromium/Edge/WebView2, but it's still fairly early days. I'd bet good money that within the next 5 years, web UI in some form will fully replace UWP for new first-party development.

ripley12··on Windows needs a change in priorities
It's complicated, but the short answer is that the Windows team messed up and there isn't really a good new native UI framework to migrate Regedit to.

UWP was burdened with sandboxing+packaging requirements that made it very difficult to use, even for first-party software. They eventually figured that out and have made some attempts to lift UI stuff out of UWP (XAML Islands and WinUI 3), but they're both train wrecks (and not staffed with nearly enough people to put up a fight against Chromium).

ripley12··on Fish 3.4.0
Switched and came back after about 3 years (to zsh).

Fish is nice in many ways, but it kinda lives up to its "A command line for the 90's" slogan. It's better than what came before it, but I'm not sure it's better enough. Using a non-POSIX shell can feel like death by 1000 cuts sometimes, and I wasn't sure the benefits of Fish were worth the cost. Also, scripting feels like a bit of an afterthought in Fish and that's a very important part of a shell to me.

These days I'm feeling optimistic about Nushell; it's not quite ready for most people to use as a daily driver, but it's getting there and it has a much stronger value proposition than Fish.

ripley12··on Fish 3.4.0 Released
Nice!

I recently gave up on Fish after 3 years of using it as my primary shell. It was nice, but not nice enough to make up for all the pains of being different from POSIX shells. Glad to see Fish improving on that in a small but concrete way.

ripley12··on .NET Myths Dispelled
> Omnisharp craps the bed way too often.

FWIW I've had a much better experience with OmniSharp since they shipped a version running on .NET 6 (opt-in with the "omnisharp.useModernNet" setting). YMMV but I need to restart it much less now. https://www.strathweb.com/2022/01/hello-omnisharp-on-net-6-0...

ripley12··on Carieer path advice: .NET vs. iOS
MAUI isn’t ready yet (it’s behind schedule), and it’s the new version of Xamarin Forms which nobody really likes. I think it’s a bit too early to say if it’s a great option.
ripley12··on Apple M1 Ultra
> now I see it's rust: how parallel is your build, really?

Not the OP but I install a lot of Rust projects with Cargo and recently did some benchmarking on DigitalOcean's compute-optimized VMs. Going from 8 cores to 32 cores was a little disappointing:

Bat (~40 crates): 68s -> 61s

Nushell (486 crates): 157s -> 106s

Compilation starts out highly parallel and then quickly drops down to a small number of cores.

ripley12··on Single binary executable packages
> An Arch user wants (and gets) the latest versions of all upstream software.

My understanding was Arch versions often lag behind that of the latest binaries published on GitHub (based on only mucking around with Arch once); however when I checked the AUR just now everything I use was up to date. Cool.

> A Debian user does not want this or see constant updating to the latest version as an advantage, so that's not what they get.

I'm not sure I agree. You can value Debian's stability and also want to install the latest versions of some tools; that's where I'm at, and package managers that just download statically linked binaries work for me nicely.

ripley12··on Single binary executable packages
> Attempts to create modes of distribution that are even slightly different from maintainer-distribution (think Google Play) suck ass.

I'm not sure Google Play is a great comparison here. Package managers like Homebrew and Scoop are probably better ones; when I just want the latest version of a CLI tool, they make that experience much better on macOS and Windows than on Linux (I know Homebrew sorta supports Linux, but it's still early days).

ripley12··on Building data-centric apps with a reactive relational database
How is DataTable an example of that? It’’s a class that’s usually used to hold the contents of a relational database table, nothing to do with UI.
ripley12··on Single binary executable packages
I enjoyed the article, thanks.

I think you could add an entry to the "Languages suitable for single binary executables" section; these days, .NET (C#, F#) single-file applications work very well. This is a fairly recent development (single-file support has been good for ~1.5 years now) but I've been very satisfied. https://docs.microsoft.com/en-us/dotnet/core/deploying/singl...

ripley12··on Single binary executable packages
> There is a "PublishSingleFile" option, but that is just a zip file in disguise.

I don't quite agree. These days (as of .NET 5), if you publish a single-file app all .NET libraries live in the executable and do not need to be unpacked at runtime. Native libraries still need to get unpacked at runtime (if your application uses any; many don't) but I haven't found that to be a big deal in practice.

ripley12··on Single binary executable packages
There's something nice about the ergonomics of a single file compared to a single folder though. A single file is trivial to distribute as-is; you don't even need to put it in an archive. You can put multiple single-file apps in a directory on your PATH, no futzing with symlinks etc.

There are certainly tradeoffs involved and it's not always the right decision, but these days I usually try to publish software as a single file until I can't.

ripley12··on Single binary executable packages
This is a little out of date; the .NET single-file situation is pretty good as of .NET 5 (which came out in 2020).

These days, if you publish a single-file app all .NET libraries live in the executable and do not need to be unpacked at runtime. Native libraries still need to get unpacked at runtime (if your application uses any; many don't), but you just set the IncludeNativeLibrariesForSelfExtract build property and everything else happens automatically for you.

I'm working on getting IncludeNativeLibrariesForSelfExtract set by default, upvote here if you think that's a good idea: https://github.com/dotnet/sdk/issues/24181

ripley12··on AWS Lambda adds supports for .NET 6
Ah, I think I see what's going on. It's trivial to precompile .NET code with ReadyToRun today, but the Thundra post was written before that was possible. And it looks like the post above forgot to enable ReadyToRun (see the comments - not sure why it wouldn't be on by default).

That said, in everyday console apps on modern hardware the JIT is super quick at startup. I guess Lambdas are running in more constrained environments...

ripley12··on Win32 is the stable Linux userland ABI (and the consequences)
I got started with Win32 programming 2 years ago using the 5th edition of Programming Windows. It's great, but it did feel like it was missing a few things. For example, it doesn't cover disk I/O at all.

I found that Pavel Yosifovich's "Windows 10 System Programming" was an excellent complement to Petzold; it fills in a lot of gaps, and it's quite recent which is nice (there were some bits in Programming Windows that would be dropped if it were rewritten today).

ripley12··on J. Kenji López-Alt says you’re cooking just fine
I use his Food Lab book a lot, and I think most of the recipes are very practical. There are a few over-the-top recipes but they're usually paired with easy versions.

Like, you could make his bolognese recipe that takes a bajillion ingredients, or you could make the quick+easy bolognese recipe on a weeknight. Same with French onion soup, or chili...

ripley12··on AWS Lambda adds supports for .NET 6
I'm curious why that is. I've spent a bit of time benchmarking startup for plain old executables, and .NET does OK there (even without AOT compilation). Not sure what would make it slower than other languages on Lambda. https://twitter.com/reillywood/status/1459332721205936128
ripley12··on Win32 is the stable Linux userland ABI (and the consequences)
There's been a lot of work happening to make WinForms trimmable. I think it will land in the upcoming .NET release (7) or the next one, I'm looking forward to being able to ship small WinForms apps with zero dependencies. https://github.com/dotnet/winforms/issues/4649
ripley12··on Win32 is the stable Linux userland ABI (and the consequences)
Yeah, I'm fond of the AppContainer sandbox in a way; I think most consumer applications can get by in a sandbox (my UWP app could), and sandboxing applications can be empowering for users since it lets them run more code without worrying about trust.

Unfortunately, the execution was a mess. Not having any way to opt out of the sandbox was an insane decision and it led to crazy workarounds; even first-party Windows software has to do things like ship a sidecar exe to bypass the sandbox (the Store does). And troubleshooting issues with the sandbox was a pain, configuring capabilities was a pain, and there was very little in the way of iOS-style user-facing permission controls.

And don't get me started on the marketing; MS flacks kept telling devs how sandboxing benefits users while doing virtually nothing to convey those benefits to users.

ripley12··on Win32 is the stable Linux userland ABI (and the consequences)
Yeah, it’s a mess. It seems like eventually they figured out that UWP’s sandbox+packaging requirements were a huge mistake (see Project Reunion/Windows App SDK), but that realization came much too late.
ripley12··on Win32 is the stable Linux userland ABI (and the consequences)
UWP has been unofficially done for a few years now (no official statements, but you could tell from the lack of updates) and they officially shut the door on future updates 4 months ago.

https://www.theregister.com/2021/10/26/microsofts_uwp_unwant...

ripley12··on Explain the first 10 lines of Twitter's source code to me
> What if that C++ dev primarily uses visual C++ and Visual studios projects? What if the C++ dev primarily used Cmake, ninja, or scion (or any of the other thousands of C++ build tools).

Then it's an opportunity for the candidate to explain the tools they do use.

There are certainly bad interviewers out there who misuse these kinds of questions, but I think they're fine if used as conversation starters.

← PreviousPage 10 of 17Next →