JavaScript just got way faster
![*](https://i0.wp.com/allprowebdesigns.com/wp-content/uploads/2024/02/1707955012_maxresdefault.jpg?resize=840%2C430&ssl=1)
Video Title: JavaScript just got way faster
it is july 6 2022 and you’re watching the code report one of the most profound quotes about the javascript ecosystem comes from an old british guy who said out of intense complexities intense simplicities emerge at the time nobody knew what the hell he was talking about but in 2022 it’s clear he was prophesizing the rise of a new javascript runtime called bun that’s right you no longer need node.js or dino so go ahead and uninstall those from your system right now bun just announced its first beta release and makes the claim that it’s significantly faster than node or dino not just a little bit faster but orders of magnitude faster it’s always a good idea to be skeptical about benchmarks provided by the creator of a tool but as you can see here it’s about three times faster when server rendering react running database queries or executing native code with foreign functions impressive very nice but what i’m more excited about is what this tool can do to simplify your life as a developer we’ll get into that in just a minute but first i know my mom is going to ask me what a javascript runtime is in the first place you can think of javascript like gasoline it’s dangerous and bad for the environment and by itself isn’t very useful to make javascript or gasoline useful it needs to run through an engine to convert it into raw energy or machine code for a cpu the most popular javascript engine is google’s v8 which powers chrome node and dino and makes javascript execution extremely fast with just in time compilation now gasoline combined with an engine still isn’t very useful the average person wants that engine in a car with user-friendly apis like wheels file system access subwoofers websockets automatic transmission and so on a javascript runtime is a complete car all you have to do is put a little bit of javascript in the tank and it will take you anywhere you want to go now that we’re done with that ridiculous analogy let’s talk about what makes bun special a big one is obviously performance but how does it actually go so fast well first of all it doesn’t use the v8 engine but instead uses javascript core from webkit which is generally considered to be faster but more difficult to work with in addition it’s written in a low level programming language called zig this is a relatively new language that’s similar to c or rust and the creators of bun say the lack of hidden control flow makes it much simpler to write fast software it’s fun to go fast but more importantly bun is an all-in-one runtime it has a native bundler to replace tools like webpack and also has a native transpiler so you can write typescript code out of the box with cool features like top level await an idea that’s already been pioneered by dino but bun will also transpile your jsx files also like dino it prioritizes web apis like fetch while at the same time also supporting many node core modules as well as node api which will allow many npm packages to also work in bun in fact it implements node’s module resolution algorithm which means you can install packages from npm into bun and those packages install 20 times faster it feels like magic another nice ergonomic feature is that environment variables load automatically it’s not like node.js where you have to install env into every project it also comes with its own test runner similar to jess and as you might imagine it’s fast some might even call it blazingly fast sounds awesome but keep in mind this project is in its infancy there will be bugs if you’re on windows you’ll have to use wsl and even that gave me some issues but overall my final analysis on bun is that this thing is bussin no cap for real this has been the code report thanks for watching and i will see you in the next one
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
"gasoline runs through an engine to convert it into raw energy" — compscis when they try to talk about physics
I feel like there's a massive exploit here but I can't quite put my finger on it
2:15 Hi Mom!
Bun is a year old?!?!
I'm from the future. Bun is a worthy adversary. Bun just node-s better than node does.
you were ahead of time🔥
Who is here after Bun 1.0?
Now that bun is in 1.0 for IOS & Linux will you make a updated video?
1 year later, v1 is here and its actually looking hella promising!
And today they released the 1.0 version
Bun 1.0.0 is out, should make a vid on it
Anyone else here cringing at a comparison between versions "v0.1.0" and "v18.x"?
Lets NOT just disregard the ecosystem of building, testing, debugging, and monitoring tools that are used to support real applications.
If you want a blazingly fast app, write 100 lines of code of vanilla C. You'll get nothing faster than that!
Bun 1.0 is coming on September 7th!
I know it might be much of the same, but would you ever think about covering just-js? Seems like there is barely any material covering the runtime but it is still very intriguing.
Lol I don’t about JavaScript being bad for the environment…it’s def bad for my mental health…. Function Not Define…
Chrome also started out really fast. but look at it now, even Edge is faster.
Wow July 6th 2022? My life hadn’t fallen apart yet.
Is it usable now? Should I learn it?
hmm I like that it's making zig more popular, it's amazing. honestly the worst part of zig is c. So I don't feel like a weirdo programming in a language that noone has ever heard of.
hurry someone make a web browser that runs on Bun, call it Hotdog or Weiner or something cute with missing letters
jit trippin
we neeed more bunnnnnnnn
is not just using Zig.. Its harness SIMD features in Zig
why would someone use windows?
Fr Fr Fr
native bundler, typescript transpiler, test runner, can parse JSX and I get to use my npm packages ?
This feels too good to be true.
would be nice if it worked on windows, I was keen to try it out. Very interesting that its written in Zig, I think we need a fireship tutorial about Zig in 100 seconds?
Any drawbacks compared to nodejs?
im genuenly thinking about adding bun install to my Dockerfile but probably I'll continue with node.js for the rest of the application.. i dont think bun is ready for a production application yet.. as far as i see, it's installing the dependencies around 8 seconds for my particular project and this is almost 20 times faster than npm. it drops to half of a second when i have a bun lock file, amazing…
The dogo is best
But the name and the icon ain't that cool compared to node's.
The video covers the important parts without wasting the viewers time. Was it – by any chance – captured with bun?
Perfect
bussin, no cap, fr 👍
This is what Deno should’ve been
Ew another JavaScript framework
Awesome program
What about dapps , dose bun support them? Can I develop my NFT Application using Bun ??
Fuck he said "no cap" now I have to trust him.
If it works, can Bun make languages like Go less relevant?
Just tried it, keeps segfaulting 🤷♂
Looking forward to playing with this
Just gotta say it: Bum
Great learning video!
I use JavaScript all day, so will definitely be checking out Bun.js. Will be interesting to see if those speeds are for real 🤔
That moment when you start learning Deno and it’s obsolete 2 days later
😬😬😬😩😩😩🧠🍳
does it fix the need in JS altogether?
I'll never let anyone but you to treat my attention deficit this way, great content
It's not faster. 🤣 it's faster to start up
First
it's easy to be fast and incorrect