Краткое резюме
В этом видео автор рассказывает о новом релизе Dino 2, который является JavaScript-рантаймом, конкурирующим с Node.js и Bun. Dino 2 предлагает полную обратную совместимость с Node.js и npm, а также множество новых функций, таких как встроенная поддержка TypeScript, расширенная стандартная библиотека и интеграция с Jupyter Notebook. Автор также обсуждает преимущества и недостатки перехода с Node.js на Dino 2.
- Dino 2 предлагает полную обратную совместимость с Node.js и npm.
- Dino 2 имеет встроенную поддержку TypeScript, расширенную стандартную библиотеку и интеграцию с Jupyter Notebook.
- Dino 2 является бесплатным и открытым исходным кодом, но поддерживается коммерческой компанией, которая продает хостинг и другие услуги.
Автор начинает с обсуждения истории JavaScript-рантаймов, таких как Node.js, Dino и Bun. Он объясняет, что Dino 2 является последней версией Dino, которая решает проблему неполной совместимости с Node.js и npm, которая была у предыдущих версий. Автор демонстрирует, как Dino 2 может использоваться для запуска JavaScript-кода, написанного с использованием Express.js, а также как он может быть использован для запуска TypeScript-кода без необходимости настройки конфигурации.
Автор подчеркивает, что Dino 2 полностью совместим с Node.js и npm, что означает, что разработчики могут использовать свои существующие пакеты и мета-фреймворки без каких-либо проблем. Он также упоминает, что Dino 2 имеет свой собственный репозиторий пакетов, который называется jsr, где все пакеты поддерживают TypeScript.
Автор объясняет, что Dino 2 имеет расширенную стандартную библиотеку, которая устраняет необходимость в использовании сторонних пакетов для таких задач, как тестирование, форматирование CLI и утилиты. Он также упоминает, что Dino 2 имеет некоторые более экзотические команды, такие как Dino compile, которая может преобразовать JavaScript-код в двоичный файл, который может быть запущен на Mac OS, Windows или Linux.
Автор рассказывает о том, что Dino 2 интегрирован с ядром Jupyter из экосистемы Python, что позволяет разработчикам создавать интерактивные блокноты, где они могут выполнять код по блокам. Он считает, что эта функция может стать популярной в мире JavaScript.
Автор обсуждает преимущества и недостатки перехода с Node.js на Dino 2. Он отмечает, что Dino 2 является бесплатным и открытым исходным кодом, но поддерживается коммерческой компанией, которая продает хостинг и другие услуги. Он также упоминает, что Dino 2 только начал внедрять свою собственную программу долгосрочной поддержки.
Краткое содержание любого видео YouTube за секунды
Получайте такие пересказы для любого видео на своём языке в бесплатном приложении Summ.
Расшифровка
Полная расшифровка видео «Deno 2 is here… will it actually kill Node.js this time?». Нажмите на таймкод, чтобы открыть видео с этого момента. Нужно другое видео? Воспользуйтесь генератором расшифровки YouTube.
0:00 all the best programmers in the world love JavaScript while all the worst programmers in the world love to hate JavaScript I don't understand why that is because I'm a hater myself but today the JavaScript world just leveled up big time with the release of Dino 2 many people thought Dino was about to go extinct after it was hit by an asteroid named bun but now it's back with a vengeance and provides the most polished back-end JavaScript experience in the world not only is it now backwards compatible with no JS and npm but most importantly it's got a new logo that can dramatically improve the quality of your code in today's video will break down all of its new features and find out if it's finally time to take node.js behind the barn it is September 24th 2024 and you're watching the code report a lot of people make fun of JavaScript because it has multiple competi and server run times like node Dino and Bun when really it should have zero run times and only
0:46 ever be used in the browser to trigger popup ads but competition is good and even languages like python have cpython piie and Russ Python and C++ has multiple compilers like GCC and clang for over a decade nodejs was the only game in town but then one day its original Creator Ryan do realized that it was alled up and decided to ship the letters around to create a new runtime called Dino the killer feature on the first iteration was typescript support out of the box you could create a TS file and run it with no TS config or compile step required but nowadays you can even do that in node.js so why didn't everybody just drop nodejs and switch to dino four years ago the problem is that it wasn't fully compatible with node.js and npm many of your favorite packages just wouldn't work that motivated a new runtime called bun to come out of nowhere and sees the
1:32 opportunity to not only provide typescript support but also npm compatibility well now doo2 is thrown The Gauntlet down yet again by providing full backwards compatibility with node and npm like check this out I have a basic API written in expressjs in plain JavaScript one easy way to take advantage of Dino right away is to run lint which will have it scan my code and tell me what sucks about it you can forget about es lint or run Dino format and forget about prettier or better yet I can start writing better code by switching to typescript by simply changing in the file extension tots then instead of npm run I use Dino Run and the code runs perfectly without having to mess around with a TS config and Dino also forces us to give the script proper permissions to access the network that's pretty cool but Doo 2 now also fully understands the package Json file and it can even work with monor repos using npm
2:19 workspaces and that's huge if you're someone who wants to use Dino but you'll never escape the technical debt of your existing project because now you can run Dino install and it works with every package and meta framework like nextjs spelled and so on but you should also know that Dino has its own package registry called jsr where every package on there natively supports typescript but one of the main goals of the runtime is for you to install fewer packages because you don't need any more packages in your node modules folder mining Bitcoin or holding your machine for ransom in Doo 2 the standard library is fully stable and eliminates the need for tools like just for testing chalk for CLI formatting or low Das for utilities just to name a few of the STDs you can get here the amount of mental boiler plate you end up for moving with Dino is pretty staggering but it also has some more exotic commands that you'll want to know about like Dino compile can take
3:06 your JavaScript code and turn it into a binary that runs on Mac OS windows or Linux allowing you to lar as a compiled language programmer what's even cooler though is that Dino has integrated the Jupiter kernel from the python ecosystem a tool that allows developers to create interactive notebooks where you execute code block by block that's never really caught on in the JavaScript world but now that you can just run Dino Jupiter that might change in the future now I know I've been doing a lot of shilling and this video is not sponsored but what are the actual drawbacks of switching from node to dino well prior to version two its number one weakness was the node npm compatibility but now that that's a thing of the past I'm having a hard time coming up with bad things to say about it it's free and open source although it's maintained by a for-profit company that wants to sell you hosting and things like that in contrast node is part of the openjs foundation and
3:51 supported by tons of big companies which is essential if you're an Enterprise but Dino is just now rolling out its own long-term support schedule but if you guys don't buy their hosting the company might run out of money and Ryan do will have to move on to his next project Odin the nodejs dino killer and then on to Endo after that and he'll keep doing that until he reaches the final anagram of done this has been the code report thanks for watching and I will see you in the next one