News for hackers. Stuff that matters.
Re:Will Bun JavaScript Take Node's Crown by rwalle on Sunday August 14, 2022 @07:30AM (#32458386)
"No native Windows support" should be written in all caps at the beginning of the article. This is a dealbreaker for most developers working on Windows, and this project will never take off until it treats Windows as a first-class citizen. WSL helps but not everyone uses it (probably most people don't use it for regular development environment).

Don't believe me? Just wait and see how this turns out in three years.

Re:Will Bun JavaScript Take Node's Crown by flohofwoe on Sunday August 14, 2022 @07:35AM (#32458416)
Fair point, but I sometimes wonder if there are even any web developers left who use Windows as their main platform. The one thing that has probably changed most in the last 15 years is that Windows isn't the center of the (coding) universe anymore. And (from what I can tell), Windows support with node.js isn't perfect either, otherwise tools like rimraf wouldn't be needed.
Re:Will Bun JavaScript Take Node's Crown by tyingq on Sunday August 14, 2022 @10:16AM (#32459422)
>if there are even any web developers left who use Windows as their main platform

There's quite a lot of developers at stodgy Fortune 500 non-tech companies that are sort of forced to use Windows for development. Either explicitly, or though poor enterprise support (vpn connectivity, local admin restrictions, difficult path to purchase a Mac, etc).

It's one reason things like Gitbash, WSL, Docker Desktop, etc, are very popular.

Re:Will Bun JavaScript Take Node's Crown by rr808 on Sunday August 14, 2022 @03:44PM (#32462276)
> There's quite a lot of developers at stodgy Fortune 500 non-tech companies

"Quite a lot"? There are more developers at Fortune 500 than FAANG for sure.

Re:Will Bun JavaScript Take Node's Crown by mr_toad on Sunday August 14, 2022 @07:37PM (#32464208)
> There's quite a lot of developers at stodgy Fortune 500 non-tech companies that are sort of forced to use Windows for development.

In that sort of company it’d take 2 years to get approval to install it anyway. If you submit the paperwork now there’ll probably be a windows port by the time it’s approved.

Re:Will Bun JavaScript Take Node's Crown by mastazi on Sunday August 14, 2022 @08:56AM (#32458863)
This might be the case in your specific social circle, but it doesn't seem to be generally true https://survey.stackoverflow.co/2022/#section-most-popular-t...
Re:Will Bun JavaScript Take Node's Crown by infamia on Sunday August 14, 2022 @02:16PM (#32461516)
Those numbers are all developers overall. In the Django developers survey (i.e. web only), Windows is just above 10%. The most used platform is Linux (42%), Mac 32%, Windows with WSL (i.e. Linux in a VM) 17%, and straight up Windows is a paltry 12%. In other web frameworks the numbers are likely worse, since Django has a pretty good Windows support.

https://medium.com/codex/jetbrains-django-developer-survey-r...

Re:Will Bun JavaScript Take Node's Crown by mastazi on Sunday August 14, 2022 @05:59PM (#32463381)
Actually, they are mostly web developers https://survey.stackoverflow.co/2022/#developer-roles-dev-ty...

In case you are seeking anecdotal evidence: does your company employ offshore devs? Try and ask them what do they use. Outside of the few countries where most people can afford Macs, things are different.

Re:Will Bun JavaScript Take Node's Crown by infamia on Sunday August 14, 2022 @09:54PM (#32465037)
I wonder if respondents were allowed to check more than one item on that list when answering the question? If so, there is likely a lot of double counting. Large, overarching surveys are quite difficult to create and interpret. The Django survey I quoted earlier was a worldwide survey for what it's worth.
Re:Will Bun JavaScript Take Node's Crown by mastazi on Sunday August 14, 2022 @10:26PM (#32465214)
> I wonder if respondents were allowed to check more than one item

yes, you are right, they definitely were allowed to check more than one item, we can see that the total sum of all options gives us a total of more than 100%, so that must have been the case.

But even then, it's hard to overlook the fact that the first three options in the list are related to web development, and with quite high percentages.

Re:Will Bun JavaScript Take Node's Crown by flohofwoe on Sunday August 14, 2022 @10:21AM (#32459475)
I'm coming out of the game development 'social circle' which is still a Windows fortress, but even there the wall is slowly cracking ;) In general I notice more and more that 'new peeps' are not automatically familiar with Windows, but instead started to tinker with programming on Linux.
Re:Will Bun JavaScript Take Node's Crown by M4v3R on Sunday August 14, 2022 @09:16AM (#32458997)
We are talking about web development, while the survey you linked is about all software developers. No one argues that Windows is king in software development world in general, but for web development I would argue Linux/Mac duo is way more popular.
Re:Will Bun JavaScript Take Node's Crown by mark_and_sweep on Sunday August 14, 2022 @10:16AM (#32459432)
Any data to support this claim? I'd argue the opposite: Especially in web dev, Windows is king since most people, including semi-professionals, do some sort of web dev.
Re:Will Bun JavaScript Take Node's Crown by mastazi on Sunday August 14, 2022 @06:12PM (#32463494)
> No one argues that Windows is king in software development world in general, but for web development

But given that the majority of developers are web developers[1], how can that be the case?

[1] including, unsurprisingly, the respondents to that survey https://survey.stackoverflow.co/2022/#developer-roles-dev-ty...

Re:Will Bun JavaScript Take Node's Crown by andrew_ on Sunday August 14, 2022 @09:48AM (#32459219)
Health care, logistics, law, finance, retail - there are a number of major industries that all still use Windows as primary. I have a good friend working in tech for Walmart, and another for a major hedge fund; both are Windows shops.

It's naive to assume that Windows isn't prolific. There's probably no good way to quantify numbers, but it's a major player still and likely always will be. WSL certainly helped keep that a reality.

Re:Will Bun JavaScript Take Node's Crown by paavohtl on Sunday August 14, 2022 @10:19AM (#32459445)
> And (from what I can tell), Windows support with node.js isn't perfect either, otherwise tools like rimraf wouldn't be needed.

I don't see how rimraf is related in any way. If you want to remove folders by calling a shell command (with full knowledge of all potential security and portability risks), your code is going to be platform dependent - it's not Node's responsibility to reimplement bash and/or GNU coreutils to make it magically work. Therefore, you need a Node re-implementation of the same functionality, either in the standard library or as a package.

And besides, rimraf has been unnecessary for a couple of years now, as Node's standard library includes a direct replacement: https://nodejs.org/docs/latest/api/fs.html#fsrmsyncpath-opti....

Re:Will Bun JavaScript Take Node's Crown by ledgerdev on Sunday August 14, 2022 @11:51AM (#32460245)
It might not seem like it but a vast majority of developers exist outside of hacker news sphere and have no doubt that windows is by far the most popular dev platform. WSL2 is making this a lot easier to use linux though.
Re:Will Bun JavaScript Take Node's Crown by Tade0 on Sunday August 14, 2022 @08:19AM (#32458641)
> Fair point, but I sometimes wonder if there are even any web developers left who use Windows as their main platform.

I kind of have to as of late, because due to corporate security policy I get around a minute of internet access from WSL and then the antivirus steps in and blocks it.

Re:Will Bun JavaScript Take Node's Crown by tyingq on Sunday August 14, 2022 @11:12AM (#32459914)
If that's because you're using wsl-vpnkit, you might want to see this commit:

https://github.com/sakai135/wsl-vpnkit/commit/94a85aaf4db365...

Re:Will Bun JavaScript Take Node's Crown by AlfeG on Sunday August 14, 2022 @12:30PM (#32460555)
I'm working in web Dev for a decade. Yet have to see at least single Dev using linux. Have seen several working on Mac, both designers to QA. Strictly speaking I'm a bit biased, cause work in . net stack. But still.
Re:Will Bun JavaScript Take Node's Crown by Huppie on Monday August 15, 2022 @01:52AM (#32466290)
Same here. Lots of .NET software around in my country, and most of it isn't on .NET Core yet (and having done it once, migrating away from .NET Framework isn't always easy... though it did get easier with .NET 5)
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.
Re:Will Bun JavaScript Take Node's Crown by sanitycheck on Sunday August 14, 2022 @09:42AM (#32459164)
I swapped between Windows and Linux (Mint/Pop) for a while because quite a lot of JS ecosystem things were problematic on Windows. WSL2 has solved most of those problems though.

I have bad luck with Macs, getting dev tools properly installed seems as hard as on Windows and everything falls apart a few times a year. The OS also seems to break itself and crawl to a halt sometimes (>1 minute to open settings). Linux distros were stable only if I can stayed on the happy path (single monitor, integrated graphics, don't try to sleep/hibernate) with close to default config. Windows can seemingly tolerate a lot more fiddling, at least since 7.

Re:Will Bun JavaScript Take Node's Crown by jpambrun on Sunday August 14, 2022 @12:26PM (#32460527)
I hate it but where I work WSL is not allowed and Docker requires continuously renewed exceptions.. InfoSec/IT says they can't see what we (or malware..) are doing within..
Re:Will Bun JavaScript Take Node's Crown by CryptoBanker on Monday August 15, 2022 @08:30AM (#32468822)
There are two developers on my team who have the option of using the latest Mac laptops but still insist on using Windows Think Pads
Re:Will Bun JavaScript Take Node's Crown by MBCook on Sunday August 14, 2022 @04:19PM (#32462568)
Yes. My entire company. And it’s not some little 5 person shop. They starred that way long ago and continue to this day.
Re:Will Bun JavaScript Take Node's Crown by madeofpalk on Sunday August 14, 2022 @10:47AM (#32459689)
I think "WSL is our Windows strategy" is perfectly acceptable for "bleeding edge"/modern things like this. I've been using WSL as my full time web development environment for years now. Thanks to VSCode's great remote support for it I don't notice any downsides to it.
Re:Will Bun JavaScript Take Node's Crown by mderazon on Sunday August 14, 2022 @11:17AM (#32459941)
I don't like WSL, it magically works with VScode until it doesn't and some extension breaks or it runs super slow or git commit takes 10 seconds.
Re:Will Bun JavaScript Take Node's Crown by WorldMaker on Monday August 15, 2022 @01:15PM (#32472449)
VS Code remoting is great and magic when it works well (which in my experience has indeed been most of the time), but it's still so much overhead versus native builds and native support. I use WSL for the rare times I need to use Ruby, but Node has been mostly good enough in Windows for years at this point and it is nice to have native builds with no remoting overhead.
Re:Will Bun JavaScript Take Node's Crown by mytydev on Sunday August 14, 2022 @09:20AM (#32459019)
We should also talk about why this is the case. JavascriptCore. The reason Bun is so fast is mostly due to the fact that it is using Apple's JavascriptCore and what all of the benchmark comparisons are really doing are comparing Google's V8 engine to Apple's JavascriptCore engine.

So basically, there will never be Windows support until JavascriptCore is able to be used on Windows and I'm not entirely sure on the state of that. My guess is that it has limited to no support for that scenario.

Re:Will Bun JavaScript Take Node's Crown by Hamcha on Sunday August 14, 2022 @10:05AM (#32459345)
Zig, the programming language Bun is written on, is currently having some Windows headaches of its own: https://github.com/ziglang/zig/issues/12420

I wonder how much of Bun's immaturity is due to Zig's own immaturity.

Re:Will Bun JavaScript Take Node's Crown by dimgl on Sunday August 14, 2022 @12:26PM (#32460520)
Why not point the finger at Windows? Development on Windows is archaic.
Re:Will Bun JavaScript Take Node's Crown by _gabe_ on Sunday August 14, 2022 @05:20PM (#32463031)
> Why not point the finger at Windows? Development on Windows is archaic.

How so? Zig is a programming language, so I'm guessing the main interactions it needs with the OS are file IO. It shouldn't need to do any GUI work as long as it provides proper bindings to the C functions. And file IO is essentially cross platform in C++ as long as you use the stdlib. Threads are also essentially multiplatform if you're using the stdlib. I also don't know if Zig is written in C, C++, or Zig so it may differ.

Generating binaries is different, but I wouldn't consider windows binaries any more archaic than Mac or Linux binaries, and I'm not sure if zig already uses LLVM backend or something anyways.

But given all that, writing basic Win32 code to do file IO or any sort of OS level interactions isn't any less archaic than what I've had to do in Linux. It's an API, and it's got a lot of cruft built up over the years, but so does any sort of Linux OS API.

Here's the Linux API for creating a file[0] and here's windows[1]. There's more parameters for the Win32 version, but the documentation is solid and gives a lot of tangential information. I actually prefer the Win32 docs to a lot of the Linux docs that I've used because they describe all the details very explicitly. So I wouldn't call Windows any more archaic then any other OS.

Basically what I'm saying is, it takes like 2-3 hours at most to add Windows support to a programming language unless you've architected your code in a way that tangles OS operations with regular operations. It's really not that hard to keep OS code separate from the apps logic to make porting the app to different operating systems trivial.

[0]: https://linux.die.net/man/3/creat

[1]: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/n...

Re:Will Bun JavaScript Take Node's Crown by ripley12 on Sunday August 14, 2022 @06:48PM (#32463827)
I was with you until "it takes like 2-3 hours at most to add Windows support to a programming language..."

C'mon.

Re:Will Bun JavaScript Take Node's Crown by _gabe_ on Sunday August 14, 2022 @07:45PM (#32464266)
This is all that it took me to port a fairly sizeable code base to Linux[0]. This commit allowed me to run the app with the only problem being some font issues that I needed to fix by modifying how I used a library.

The total:

> Showing 26 changed files with 255 additions and 90 deletions.

If you architect your code well, porting between different systems shouldn't take anymore than a few hours ;)

Edit: I just looked through the diff and remembered that the bulk of these changes was fixing warnings that surfaced from using a different compiler.

The actual code that I changed necessary to get this running on Linux was in File.cpp and consisted of 124 lines of code. Going the other way (from Linux to windows) would have been just as simple, I just would have added the code in the __WIN32__ macro block instead of the code in the __linux__ macro block.

[0]: https://github.com/codingminecraft/StreamMinecraftClone/comm...

Re:Will Bun JavaScript Take Node's Crown by ripley12 on Sunday August 14, 2022 @10:59PM (#32465386)
A small game is not even remotely comparable to an average programming language.
Re:Will Bun JavaScript Take Node's Crown by _gabe_ on Monday August 15, 2022 @08:48AM (#32468988)
It really isn't that much different though. After skimming through the source code of Zig, you can see that well over 90% of the code is OS independent.

Not only that, it looks like they do have windows support and it's just failing atm. It also looks like they have cleanly separated all OS functionality from the logic. This is where it looks like the majority of the OS dependent code lives[0], and the implementation for this is 1000 lines of code. So clearly, it looks like it shouldn't take more than a few hours to get even a programming language up and running when porting it.

Further, it looks like they're using the cpp stdlib to assist with some OS dependent functions[1]. They're clearly using at least:

* std filesystem

* std future

* std iostream

* std mutex

* std thread

* std atomic

And more. So if you're being smart about things, which it looks like the developers most certainly are, then you don't need to reinvent 90% of the OS dependent code and can instead use the stdlib that already exists to automagically get that functionality.

[0]: https://github.com/ziglang/zig/blob/master/src/stage1/os.hpp

[1]: https://github.com/ziglang/zig/blob/a9c4dc84f487c4764c578743...

Re:Will Bun JavaScript Take Node's Crown by mwcampbell on Wednesday August 17, 2022 @05:36AM (#32494122)
Windows isn't archaic; it's just not Unix. So blame the Unix monoculture.
Re:Will Bun JavaScript Take Node's Crown by wffurr on Sunday August 14, 2022 @09:25AM (#32459052)
You can use JavaScriptCore on Windows right now: https://github.com/Lichtso/JSC-Standalone
Re:Will Bun JavaScript Take Node's Crown by JoyrexJ9 on Sunday August 14, 2022 @07:33AM (#32458403)
Not saying you're wrong about the windows support but when it comes to WSL, my entire department uses WSL for their primary development environment
Re:Will Bun JavaScript Take Node's Crown by quickthrower2 on Sunday August 14, 2022 @07:58AM (#32458522)
Ooh. I find it a bit painful. Stuff like watching for file changes if you mount C:/ don’t work. Adds friction to web dev for sure.
Re:Will Bun JavaScript Take Node's Crown by isbvhodnvemrwvn on Sunday August 14, 2022 @08:28AM (#32458692)
Dogshit IO performance when accessing native files makes it unusable for me.
Re:Will Bun JavaScript Take Node's Crown by JoyrexJ9 on Sunday August 14, 2022 @08:35AM (#32458742)
I suggest never access native files, if you are still keeping your code in C:\ somewhere I think you're approaching WSL the wrong way. Go all in and I've never looked back
Re:Will Bun JavaScript Take Node's Crown by sanitycheck on Sunday August 14, 2022 @09:49AM (#32459223)
I'll second this. I treat WSL (2) as a Linux box I'm working on, which I can access via a terminal and \\wsl$ (and VS Code, crucially.)
Re:Will Bun JavaScript Take Node's Crown by dom96 on Sunday August 14, 2022 @10:45AM (#32459671)
This is why I don't use WSL 2. WSL 1 has much better performance when used on C:\
Re:Will Bun JavaScript Take Node's Crown by jeswin on Sunday August 14, 2022 @07:42AM (#32458446)
> Don't believe me? Just wait and see how this turns out in three years.

There are so many projects which do well without a native Windows port. It may fade away in three years, but lack of Windows support will not be the primary reason for it.

Re:Will Bun JavaScript Take Node's Crown by quickthrower2 on Sunday August 14, 2022 @07:54AM (#32458506)
It is the other way round: Windows support usually comes because something is popular (and therefore has the funding, resources or help to do so from keen Windows users).
Re:Will Bun JavaScript Take Node's Crown by qbasic_forever on Sunday August 14, 2022 @01:03PM (#32460870)
I am genuinely curious who is using production node.js web apps on Windows server OS. I'm sure there are niche things like a massive legacy Windows shop that's slowly moving off, or trivial load internal applications where it doesn't matter. But it would really surprise me to see someone take a major bet on running large public, internet facing load on node + Windows server.

ASP.NET + Windows, sure that makes total sense. Even C++ + Windows is solid and very performant. But node.js has always been a second class citizen with Windows support (it wasn't until Microsoft themselves put fulltime devs working on node that it supported Windows) and it's a huge bet to take with very little benefit and tons of potential failures.

Re:Will Bun JavaScript Take Node's Crown by realusername on Sunday August 14, 2022 @07:49AM (#32458488)
WSL is there for a reason though, it's that Windows is severely underused in some development areas and web is one of them.

Not having windows compatibility is not uncommon working on the web.

As an example, out of 100 developers of my company working on a web product, zero are using windows in my knowledge.

Re:Will Bun JavaScript Take Node's Crown by mastazi on Sunday August 14, 2022 @08:58AM (#32458875)
that might be the case in your company, maybe in your state or even in your country, but not outside of it https://survey.stackoverflow.co/2022/#section-most-popular-t...
Re:Will Bun JavaScript Take Node's Crown by hu3 on Sunday August 14, 2022 @09:17AM (#32459000)
It's kind of amazing how our beliefs are still mostly formed by our surroundings. Even in the age of internet where information is plenty and free.

I still read often in HN that "most people use iPhones" and "almost no dev uses Windows".

Makes me question if my own beliefs have these enormous misconceptions too.

Re:Will Bun JavaScript Take Node's Crown by davidmurdoch on Sunday August 14, 2022 @09:40AM (#32459148)
Someone on Twitter was upset that people they follow were following someone they disagree with. I pointed out that it's healthy to make yourself aware of dissenting opinions, and that following someone doesn't mean you align with every one of their beliefs and opinions.

They seriously couldn't fathom the idea of intentionally following someone they didn't agree with.

So not only are people aware of their filter bubbles, they guard them like it's the responsible thing to do.

Re:Will Bun JavaScript Take Node's Crown by kevin_thibedeau on Sunday August 14, 2022 @02:03PM (#32461401)
Cult members need something to hate to reinforce their identity.
Re:Will Bun JavaScript Take Node's Crown by beebeepka on Sunday August 14, 2022 @09:47AM (#32459202)
Question you should. For decades I've been trying very hard to avoid such statements because what do I know about "errybody" or "most people". I find it very off-putting when someone uses these levers in a conversation
Re:Will Bun JavaScript Take Node's Crown by realusername on Sunday August 14, 2022 @10:42AM (#32459638)
Stackoverflow isn't only for web development though, they are areas were Windows is still popular, I 100% agree on that.

Even Microsoft themselves recognise it indirectly, that's the whole reason why they built WSL.

Re:Will Bun JavaScript Take Node's Crown by mastazi on Sunday August 14, 2022 @08:24PM (#32464476)
> they are areas were Windows is still popular

those areas where Windows is still popular account for a tiny percentage of the devs who responded to that survey. The majority of responders define themselves as backend, frontend or fullstack developers - which are web development roles https://survey.stackoverflow.co/2022/#developer-roles-dev-ty...

TL;DR nowadays, most developers are web developers.

PS the reason why the total of all responses is more than 100%, is that this was a multiple selections response.

Re:Will Bun JavaScript Take Node's Crown by hajile on Monday August 15, 2022 @09:00AM (#32469129)
That "over 100%" is more significant than you think.

If you use windows primarily, there's a very big chance it's the ONLY operating system you use.

If you use MacOS or Linux, there are most likely windows machines sitting around too.

In my case, I have a windows laptop from work in addition to a macbook. I'd check both boxes, but I've only opened that windows machine a handful of times for esoteric windows issues.

If this idea held true just 50% of the time, then real use of windows would actually be somewhere around 25% and that's assuming a 100% overlap between the Linux and MacOS people (a bad assumption).

Another telling point is the tiny sliver of WSL responses. MS Server is so incredibly unpopular that even the majority of Azure instances have run on Linux for years now. Writing on Windows without WSL then deploying to Linux is a recipe for disaster.

A question where the reader has to infer a lot is a bad question. They should have asked about how much a particular OS is used.

Re:Will Bun JavaScript Take Node's Crown by mastazi on Sunday August 14, 2022 @10:46PM (#32465321)
> WSL is there for a reason though

to be clear, I'm not disputing that in some areas of web dev, Windows is less supported than Linux, I'm just saying that a significant percentage of web devs use Windows, whether or not an open source project decides to keep this into account is obviously not up to me to decide, and I can understand why some projects, especially smaller one, might decide to focus on Unix/Linux in the initial periods.

Re:Will Bun JavaScript Take Node's Crown by o_m on Sunday August 14, 2022 @08:03AM (#32458542)
Windows users are fairly conservative and won't be looking at the latest tech that isn't established yet
Re:Will Bun JavaScript Take Node's Crown by teaearlgraycold on Sunday August 14, 2022 @02:35PM (#32461682)
> This is a dealbreaker for most developers working on Windows

Yes but how many JS developers use Windows?

Re:Will Bun JavaScript Take Node's Crown by skrebbel on Sunday August 14, 2022 @04:24PM (#32462610)
Lots
Re:Will Bun JavaScript Take Node's Crown by chrisseaton on Sunday August 14, 2022 @07:42AM (#32458453)
> This is a dealbreaker for most developers working on Windows

How many developers are really working on Windows? That's got to be a rounding-error of zero.

There are so many programming tools with basic or non-existent support for Windows and nobody notices.

Re:Will Bun JavaScript Take Node's Crown by sdflhasjd on Sunday August 14, 2022 @08:13AM (#32458599)
HN bubble alert!

I think most programmers are actually using Windows as their development environment.

https://insights.stackoverflow.com/survey/2020#technology-de...

Re:Will Bun JavaScript Take Node's Crown by chrisseaton on Sunday August 14, 2022 @08:17AM (#32458625)
Even the developers I know at Microsoft use Linux or macOS!
Re:Will Bun JavaScript Take Node's Crown by throw5653 on Sunday August 14, 2022 @08:31AM (#32458708)
You were just shown statistics that disprove your idea that almost nobody codes using Windows... over half of the developers who answered StackOverflow's survey are using Windows. Pointing at more anecdotes around you does not change this fact.
Re:Will Bun JavaScript Take Node's Crown by chrisseaton on Sunday August 14, 2022 @08:37AM (#32458751)
Maybe Stack Overflow skews to Windows developers? I don't know how good their data is.

It's hard not to look around with your own eyes and notice that you never see anyone using Windows - like I say, even the Microsoft ones!

Do you meet a lot of developers using Windows? What kind of circles is that in?

Re:Will Bun JavaScript Take Node's Crown by towawy on Sunday August 14, 2022 @09:15AM (#32458987)
"The survey must be bad because it doesn't fit my optics" is an awful take.
Re:Will Bun JavaScript Take Node's Crown by chrisseaton on Sunday August 14, 2022 @10:15AM (#32459411)
Most surveys are skewed to a particular set of users who choose to fill it in! SO is one of the few examples of a major developer site that runs on Windows, for example.
Re:Will Bun JavaScript Take Node's Crown by vips7L on Sunday August 14, 2022 @04:38PM (#32462730)
The Jetbrains survey also shows majority of developers working on Windows.
Re:Will Bun JavaScript Take Node's Crown by majou on Wednesday August 24, 2022 @03:13AM (#32575870)
9 days late, wanted to point out that mac and linux have vim and emacs :p
Re:Will Bun JavaScript Take Node's Crown by ripley12 on Sunday August 14, 2022 @07:02PM (#32463941)
Games, security, finance, and a mindboggling number of companies writing line-of-business software. "Dark matter developers" is a term I've heard used for some of the latter: https://www.hanselman.com/blog/dark-matter-developers-the-un...

I would generally say that native Windows development is in decline, but it's a long slow decline and it's starting from an incredibly high base.

"a rounding-error of zero" is so wildly incorrect that it is very clear you are in a bubble of sorts.

Re:Will Bun JavaScript Take Node's Crown by kroltan on Sunday August 14, 2022 @08:59AM (#32458883)
In game development, it's all almost exclusively Windows, and Mac if developing mobile games.
Re:Will Bun JavaScript Take Node's Crown by kcbanner on Sunday August 14, 2022 @09:00AM (#32458889)
I think you may have quite a large blind spot here.

The games industry is primarily Windows based.

Re:Will Bun JavaScript Take Node's Crown by int_19h on Sunday August 14, 2022 @06:12PM (#32463491)
I work at Microsoft, and the majority of people I know use Windows for development. Macs are around, but they seem to be more popular with the managers than with the devs.

(It can be different in some teams - e.g. lots of Macs in VSCode - but company-wide that's an exception rather than a rule.)

Re:Will Bun JavaScript Take Node's Crown by hajile on Monday August 15, 2022 @09:08AM (#32469186)
Bad statistics alert!

If you use windows, you are VERY unlikely to use Linux and OSX. Conversely, almost EVERYONE who uses Linux or OSX will still have to use Windows. If even just half of the Linux users checked Windows, but rarely used it, then Windows would drop to 3rd place.

The overwhelming majority of servers are Linux (even Azure was announced to be majority Linux a few years ago). Despite this, only a fraction of "windows users" also used WSL. Trying to build UNIX software on Windows is fraught with difficulty. The fact that this number is so low either indicates a sampling bias for Stackoverflow or a lot of people checking the Windows box despite not using it a lot.

Re:Will Bun JavaScript Take Node's Crown by dahauns on Tuesday August 16, 2022 @02:19PM (#32486661)
Why should half of the Linux users check Windows when asked "What is the primary operating system in which you work?"?
Re:Will Bun JavaScript Take Node's Crown by izolate on Sunday August 14, 2022 @03:51PM (#32462333)
That looks like global statistics. Of course most developers in the developing world aren't using MacOS. I'd be interesting to see the OS breakdown when selecting for just the developed world. I'd imagine Windows percentage is much lower.

Also, looking at some strictly web development surveys, Windows is behind Mac/Linux: https://medium.com/codex/jetbrains-django-developer-survey-r...

Re:Will Bun JavaScript Take Node's Crown by 255kb on Sunday August 14, 2022 @08:37AM (#32458756)
Definitely. I created a popular dev tool, and more than half of the users are using Windows.

I'm also a front-end dev using Windows since decades, and I had like 0 problem using this OS.

Re:Will Bun JavaScript Take Node's Crown by arrow7000 on Sunday August 14, 2022 @07:58AM (#32458521)
lol this is a ridiculous take
Re:Will Bun JavaScript Take Node's Crown by quickthrower2 on Sunday August 14, 2022 @07:52AM (#32458498)
I do professionally but I prefer Linux for coding at home, mainly because it needs less RAM, runs quicker and stuff just works.

If we move to .NET5 or higher I might use linux at work too.

Re:Will Bun JavaScript Take Node's Crown by 9935c101ab17a66 on Monday August 15, 2022 @02:21AM (#32466449)
Apparently windows support is planned.

This is still a new project — anyone interested in using a new, cutting-edge beta JavaScript runtime is certainly capable of using bun through WSL.

Your comment is unnecessarily antagonistic. It comes across as if you’re personally offended that bun wasn’t launched with native windows support.

Also, this made me laugh:

> …this project will never takeoff until it treats windows as a first-class citizen.

Re:Will Bun JavaScript Take Node's Crown by thrown_22 on Sunday August 14, 2022 @08:14AM (#32458614)
>Just wait and see how this turns out in three years.

I think you seriously over estimate the number of developers still on windows.

Re:Will Bun JavaScript Take Node's Crown by geuis on Sunday August 14, 2022 @11:33AM (#32460082)
On a lark recently, I tried to get node setup on my Win10 gaming box so I could try out a basic workflow and see how I liked it. My normal environment is using MacOS and Linux.

I don't remember any specific "wtf" details, but generally it was kind of a non-starter. I got node installed, but then there were issues with using that runtime for my simple server demo. The whole attempt was frustrating. Tried installing the pseudo Linux shell thing for the command prompt and I gave up trying to use that pretty quickly.

Obviously I'm not a native Windows developer. This was just me experimenting. I'm not sure how Win devs actually work these days on non-Win applications in any productive capacity.

I can easily get stuff done on MacOS and Linux but Windows is just this multi-decade old black box of cruft.

Re:Will Bun JavaScript Take Node's Crown by ripley12 on Sunday August 14, 2022 @06:52PM (#32463861)
> I'm not sure how Win devs actually work these days on non-Win applications in any productive capacity.

WSL. It's trivial to drop into Linux for development these days.

That said, I generally haven't had issues with Node on native Windows.

Re:Will Bun JavaScript Take Node's Crown by t_mann on Sunday August 14, 2022 @02:56PM (#32461845)
> probably most people don't use [WSL] for regular development environment

I know quite a few people who do, I actually wouldn't be surprised if their number was higher than pure Windows users for web dev.

Re:Will Bun JavaScript Take Node's Crown by Siilwyn on Sunday August 14, 2022 @07:32AM (#32458400)
Are you sure? From let's say the 100 web devs I encountered the past years I remember 3 using Windows, and they all used the Linux environment for development.
Re:Will Bun JavaScript Take Node's Crown by cr3ative on Sunday August 14, 2022 @07:42AM (#32458447)
Web development is predominantly macOS and Linux; node servers generally run in Linux containers. Your claim that this won't take off until Windows is at parity just doesn't ring true.
Re:Will Bun JavaScript Take Node's Crown by andrew_ on Sunday August 14, 2022 @09:52AM (#32459250)
several folks in the threads here have posted references to the contrary. perhaps you have data which disagrees, or you may be operating on observations from your own circles.
Re:Will Bun JavaScript Take Node's Crown by infamia on Sunday August 14, 2022 @02:10PM (#32461478)
Those numbers were all developers overall. In the Django developers survey, which is web only, the most used platform is Linux (42%), Mac 32%, Windows with WSL 17%, and straight up Windows is a paltry 12%. In other web frameworks the numbers are likely worse, since Django has a pretty good Windows experience.

https://medium.com/codex/jetbrains-django-developer-survey-r...