Live data from Hacker News

Notepad++ is 21 years old

learnhub.top

181–190 of 254 posts

Re: Notepad++ is 21 years old

#181

Earlier quoted context omitted.

I think I'm one of the last people using WSL1. I think everyone jumped to WSL2 because 2 is bigger than 1, but they're really different things. WSL1 lets me keep my files on the Windows side, let's my IDE (PHP storm) remain performant with no Linux to Windows file system overhead, but I still get to use all the Linux CLI tools. I still pay some overhead for that, but it's better than doing it the other way around and…

Wait what? I'm not a Windows user, so I haven't used any version of WSL, but WSL 2 doesn't store the files on the Windows side? It seems to me that the whole "easy access to your Windows files in a Linux environment" was the point of WSL.

WSL1 is really just a new system call interface for Windows.

WSL2 uses "disks" emulated via image files that are stored as ordinary Windows files (but in a secret place). This makes most file I/O from inside WSL2 faster than from inside WSL1.

WSL2 can use the Windows file system (and vice versa) via file servers.

When a Linux app inside WSL2 wants to use a Windows file, the Linux kernel (there is only ever one for all running WSL2 images!) talks to a Windows app that does the file serving.

When a Windows app wants to use a Linux file from a WSL2 image, the image first has to run (might take a little while for it to boot) and then a daemon there serves the file to the Windows app.

I think one of the file servers use a version of the 9P protocol. Maybe they both do.

https://en.wikipedia.org/wiki/9P_(protocol)

Things that do lots of file I/O (such as compiling) are way faster under WSL2 using local file systems than under WSL1.

Re: Notepad++ is 21 years old

#183

I continue to use Notepad++ despite having tried every other editor and IDE under the sun. This, of course, drives every person completely insane when I explain that my "IDE" is: - Notepad++ for editing, pretty much stock, no plugins - command line for git and grep (Console2 or Git Bash) - File Explorer alongside Everything [0] for navigating files - Beyond Compare [1] for visual diff/merge - WinSCP/PuTTY for SFTP/SS…

Wow, I use all those programs too!

Re: Notepad++ is 21 years old

#184
post #136

I haven't used Notepad++ since they were exposed for having a CIA backdoor, which they "fixed" after it came to light. https://notepad-plus-plus.org/news/v733-fix-cia-hacking-npp-...

It is not Notepad++ fault. Essentially, the CIA made a modified version of a DLL included with Notepad++ that contains a backdoor, but it is not in the official version of Notepad++ and you can't get it by normal means.

The fix is just an improved signature check, so that Notepad++ detects if that DLL has been tempered with, by the CIA or anyone else, or by a virus. But as Don Ho himself said, it is a rather weak protection, for that specific attack. Notepad++ is free software, the CIA (or any malware author) can make a version with Notepad++ with a backdoor and there is nothing the author can do, it is true for all free software, and most proprietary software too.

But Don Ho being Don Ho, and because it is the CIA, he had to make a rant about it. I don't like his attempts to push his political opinions with Notepad++, but that's his software, his rights.

Re: Notepad++ is 21 years old

#186
post #119

I continue to use Notepad++ despite having tried every other editor and IDE under the sun. This, of course, drives every person completely insane when I explain that my "IDE" is: - Notepad++ for editing, pretty much stock, no plugins - command line for git and grep (Console2 or Git Bash) - File Explorer alongside Everything [0] for navigating files - Beyond Compare [1] for visual diff/merge - WinSCP/PuTTY for SFTP/SS…

Check out MobaXterm, it has a phenomenal X implementation just built in.

NP++ and Mobaxterm are only two programs that I dearly miss after moving to mac.

Re: Notepad++ is 21 years old

#188

Earlier quoted context omitted.

I think I'm one of the last people using WSL1. I think everyone jumped to WSL2 because 2 is bigger than 1, but they're really different things. WSL1 lets me keep my files on the Windows side, let's my IDE (PHP storm) remain performant with no Linux to Windows file system overhead, but I still get to use all the Linux CLI tools. I still pay some overhead for that, but it's better than doing it the other way around and…

Remember Cygwin?

Yep, I used it a lot. Made Windows tolerable.

Re: Notepad++ is 21 years old

#189
post #77

Earlier quoted context omitted.

What is your pattern for navigating to a function definition (as an example of a basic IDE operation that doesn't seem supported)? Grep?

I can't live without ripgrep, it's so much faster than grep it's not even funny, especially if working with very large code bases with 100,000+ files

Why is that? Does it build an index so later searches are fast?

Re: Notepad++ is 21 years old

#190

I continue to use Notepad++ despite having tried every other editor and IDE under the sun. This, of course, drives every person completely insane when I explain that my "IDE" is: - Notepad++ for editing, pretty much stock, no plugins - command line for git and grep (Console2 or Git Bash) - File Explorer alongside Everything [0] for navigating files - Beyond Compare [1] for visual diff/merge - WinSCP/PuTTY for SFTP/SS…

I think I'm one of the last people using WSL1. I think everyone jumped to WSL2 because 2 is bigger than 1, but they're really different things. WSL1 lets me keep my files on the Windows side, let's my IDE (PHP storm) remain performant with no Linux to Windows file system overhead, but I still get to use all the Linux CLI tools. I still pay some overhead for that, but it's better than doing it the other way around and…

I still run one distro on WSL1 - the fact it shares network with "main" Windows helps me to do simpler TCP proxying when needed. So you are not alone ;) While WSL1 is nothing bad, the most of things I do involving WSL happens in WSL2.

Not to say you are doing something wrong - whatever suite your needs. For me, WSL2 provide Linux tooling, i.e. systemd, which WSL1 just cannot by design. The very same way managing system as I do on servers.

When it's possible/makes sense, I do run gitlab-runner in my WSL2 for easier builds debugging, when setting up new projects for programmers - comparing to 250-300+ ms latency working on remote hosts, it's often much more productive.

Basically stable Linux without fighting with Linux-on-desktop-year-to-come.

Post reply on HN