News for hackers. Stuff that matters.
Re:Will Bun JavaScript Take Node's Crown by throwaway0asd on Sunday August 14, 2022 @08:15AM (#32458617)
If you are developing for the web what difference does the OS make? Web technologies work the same on any OS
Re:Will Bun JavaScript Take Node's Crown by flohofwoe on Sunday August 14, 2022 @10:15AM (#32459409)
Mainly subtle differences around command line tools and the file system. There are UNIX cmdline tools collections for Windows (like busybox) running in the vanilla cmd.exe or Powershell, but they don't quite fit in (for instance the way how string escaping and cmdline argument parsing works). You can use bash in a mingw 'UNIX emulator', but then you can just as well switch to WSL. And those little things propagate and amplify upward into toolchains and workflows.

It's possible to create command line tools that work across Windows and UNIX-oids, and I appreciate this, but it's a lot of additional work (even 'cross-platform' solutions like Python don't fully wrap this stuff, even though they do their best).

Re:Will Bun JavaScript Take Node's Crown by ripley12 on Sunday August 14, 2022 @07:20PM (#32464105)
> it's a lot of additional work

FWIW, I have been remarkably impressed with Rust for this. The stdlib and package ecosystem are unusually good at building abstractions that work across *nix and Windows, and so the average command line tool written in Rust usually has good Windows support.

Of course, the additional work hasn't really gone away - it's just been relegated to libraries unusually effectively :)

Re:Will Bun JavaScript Take Node's Crown by pmontra on Sunday August 14, 2022 @08:22AM (#32458654)
Sometimes the target OS for deployment matters. Obvious case I run into: a deploy broke because a developer using Windows didn't realize he had some MiXeD case file name with the wrong capital letter. The Linux OS on the production system noticed. Sometimes it's the availability of native modules. They tend to exist for Linux, because it's the target for deployment, and sometimes not for Windows.
Re:Will Bun JavaScript Take Node's Crown by davidmurdoch on Sunday August 14, 2022 @09:34AM (#32459111)
Basic CI tests should catch those cases.
Re:Will Bun JavaScript Take Node's Crown by pmontra on Sunday August 14, 2022 @02:59PM (#32461892)
The file names yes, modules are catched at development time. "We can't use PackageX because it doesn't exist for Windows and Joe won't be able to run the project anymore." A VM first and WSL2 now solved much of those problems, which leaves us at why bothering with Windows in this kind of business tough.
Re:Will Bun JavaScript Take Node's Crown by 542458 on Sunday August 14, 2022 @08:23AM (#32458657)
As a web dev, my choice of OS influences:

* What IDEs/editors I have access to

* What image editing tools I have access to

* How easy it is to get my server’s backend running on my local machineas a dev environment

The last one is most relevant to this conversation. If I’m working on a bun-based project, not being able to run a local dev copy on Windows easily is a nontrivial obstacle.

Re:Will Bun JavaScript Take Node's Crown by CapsAdmin on Sunday August 14, 2022 @08:44AM (#32458797)
While the final output should be the same, the development tools are not and that's really where all the subtle problems are.

One of the reason WSL exists is to solve this problem.

(assuming bun doesn't work on native windows but works under wsl)

Re:Will Bun JavaScript Take Node's Crown by vips7L on Monday August 15, 2022 @07:20AM (#32468270)
WSL has its own pain points. It’s not the catch all solution everyone claims it to be.
Re:Will Bun JavaScript Take Node's Crown by searchableguy on Sunday August 14, 2022 @10:40AM (#32459623)
You cannot install safari on Windows and Linux. If you want to support apple users, you need to get a mac.

Safari often has bugs and rendering issue which aren't present on Chromium or Firefox and need fallback.

Re:Will Bun JavaScript Take Node's Crown by password4321 on Wednesday August 24, 2022 @10:01PM (#32588506)
Not Safari, but WebKit: https://build.webkit.org/
Re:Will Bun JavaScript Take Node's Crown by tyingq on Sunday August 14, 2022 @10:20AM (#32459457)
Lots of little gotchas if you don't at least do a fair amount of testing on Windows, since that's what most of your end users (usually) will be on.

Things like "www-authenticate: Negotiate" in an SSO environment, people pasting rich text into web forms, handling environments with private certificate authorities, and so on.

Re:Will Bun JavaScript Take Node's Crown by Zardoz84 on Sunday August 14, 2022 @12:17PM (#32460438)
Windows it's painful slow to do anything.