What is Vs code
- Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).
- Making changes and pushing to remote Git Repo made easier -> Demo Personal website
- Can track Changes to the code by multiple team members. (GitLens) Read more , Microsoft Live Share , Chat , audio
- Easy Debugging Java, C++, Python, etc -> Demo
- Code Editing And Refactoring made more simple using customizable Shortcuts Read More
- Using data bases -> MongoDB demo
- Accessing a remote repo using github repo
- Github Codespaces
- We can Collaborate, Customize & Personalize according to work flow, more Efficiently.
What is WSL and Windows Terminal
- Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10, Windows 11, and Windows Server 2019. (Almost native linux Speeds)
- In May 2019, WSL 2 was announced,introducing important changes such as a real Linux kernel, through a subset of Hyper-V features. (Using this made it 20 times faster)
- Small problem i faced was that i was not able to change the pre-compiled kernel, i.e couldn’t load kernel modules -> Link to said project
- Basically, The Windows Subsystem for Linux (WSL) lets developers run a Linux environment directly on Windows 10. It’s an unmodified OS, but highly integrated into Windows and without the overhead of a virtual machine.
- WSL1 was groundbreaking and translated Linux system calls to Windows equivalents. This could be slow and several features weren’t available.
- WSL2 uses Hyper-V virtual machine technology so Linux compatibility is excellent and file access is up to 20x faster than before.
- Windows Terminal is a modern terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and Windows Subsystem for Linux (WSL). Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and the ability to create your own themes and customize text, colors, backgrounds, and shortcuts.
- Win Term , Read more
- Integration of WSL with Windows, windows terminal, Vs code -> demo
- Running Redis -> demo
- Running same C++ code on both Windows and Linux -> demo Probably if the code should act differently according to the OS.
- Windows commands run on Linux ! ; Better than Dual booting in some workflows.
- Running Linux Native apps using WSLg -> Midori , Foliate Read More
- Historically, Microsoft Did not have a good relationship with linux and open source devs.
- With the release of Wsl and Vscode , integration with docker and all related products there is very less incentive to actually use a linux system.
- Microsoft buying Github, OpenAI; due to Heavy integration by them; Enormous amount of data sets on all the public code in github (Billions of lines); AI trained on them.
Why?
- ![[Pasted image 20210901082721.png]]