Bytes.dev - Bytes: Sun's Out Bun's Out

Bytes banner (Turn on images 😘)

As a reminder for all our cultured readers, today is National Slurpee Day so make sure you take advantage.

This week, we’ve got hot cross buns, a new Shrek getting chosen, and how to apply The Secret’s Law of Attraction to your CSS. Welcome to #108.


Sir Mix A Lot

My runtime don’t want none unless you got Bun, hun.

Sun’s Out Bun’s Out

Who would win? A runtime for JavaScript, TypeScript and WebAssembly based on Rust and V8 with $26,000,000 in funding from the best VCs in the world, or one determined boi.

Meet Bun: the brand new, all-in-one JavaScript runtime that can install npm packages ~20x faster than yarn and ~49x faster than npm install, can bundle over 1 million lines of JS per second, and claims to be 3x faster than both Deno and Node. Oh, and it was all built by one person.

The features:

  • Bun is an alternative runtime to Node and Deno. But more than that, it also aims to be a bundler, a transpiler, and a package manager – which makes it a viable alternative (in the long run) to other build tools like Webpack 🙏.

  • Bun comes with built-in Web API’s like fetch and WebSocket (reminder that Node just barely added native fetch support a few months ago.), and it natively implements 90% of Node-API functions. It also comes with a super fast, built-in SQLite3 client.

  • It implements Node’s module resolution algorithm, so you can use most npm packages in Bun.

  • Every file is transpiled, so TypeScript and JSX just work.

That’s a lot already, but it’s only half the fun. Let’s zoom in on why Bun is able to be so mind-numbingly fast:

  1. Unlike Node and Deno, Bun uses WebKit’s JavaScriptCore engine instead of V8. JSC is known for being harder to work with than V8, but a little bit faster in some cases.

  2. It’s written in Zig, instead of Rust or C++. According to Jarred, Zig is great because of its “low-level control over memory and lack of hidden control flow, which makes it much simpler to write fast software.” (We’ll take his word for it.)

  3. Jarred wrote most of Bun from scratch and was obsessed with benchmarking and optimizing everything by hand.

Bottom Line: The only thing moving faster than the Bun runtime is the Bun hype train – the GH repo went from 1,700 stars to over 13,000 in the first 24 hours of last week’s v0.1.0 beta release. And it doesn’t look like it’s slowing down any time soon.


Humor based on my pain

Laughing about building notifications so we don't cry [sponsored]

Courier gave my team so much time for activities

Newton’s 3rd law of motion clearly states that, “building app notifications always takes 5x longer than you think.”

And that might be understating it now that we have so many different platforms to worry about (email, SMS, web and mobile push, Slack, and tons more).

That’s what makes Courier so amazing. They give you complete notification infrastructure with one API that you can set up in an afternoon.

That API integrates with over 50 notification channels, and it handles everything – templating, routing, automations, even logging and analytics. It’s your PM’s *wildest* dream come true.

Courier is used by Fortune 500 companies and startups like Lattice and LaunchDarkly to save an average of 480 engineering hours a year. That’s a lot more time for hide and go seek Fridays team building.

The best part? Courier lets you send your first 10,000 notifications of every month for free (no credit card required).

Check it out. 👈


Vecna drinking Starbucks

Vue 2 devs waiting patiently for new features

Vue goes back to the future past

Our last story was a long one, so let’s make this quick.

Vue just released v2.7 (“the Naruto release”), but if you’ve been keeping score at home, you might be thinking, “wait, isn’t Vue 3 the default now?”

Yes it is, but since the Vue 2 → Vue 3 migration has been hairier than expected, the Vue team decided to release v2.7 to share some of the cool new Vue 3 features with developers who are still using Vue 2. (There’s a reason they call Evan You the benevolent dictator.)

The biggest highlight of this release is that it brings the full-fledged Composition API to Vue 2. This collection of APIs lets you author Vue components using imported functions instead of declaring options – which allows for better type inference, better logic reuse, and more flexible code organization.

This makes for a much better experience when trying to scale a Vue app.

Bottom Line: This release speaks to the less-than-seamless upgrade experience of migrating an app from Vue 2 to Vue 3, but it also speaks to the Vue team’s willingness to listen to Vue devs and meet them halfway 🙏.


Jobs

Mobile Software Engineer at Phantom

Phantom is looking for mobile engineers who enjoy massive ownership and freedom, and who want to work with a variety of technologies, particularly React Native. You’ll be directly impacting the development of their flagship mobile app and working closely with the founders to improve the product. This role is fully remote.


JS Quiz – Sponsored by BugHerd

This is the best tool I’ve seen for getting website feedback from clients. If you’re an agency or freelancer, you should really check it out. It’ll easily save you 50 emails per project.

Given this code, how could we log planeteers without breaking out of our arrow function?

export default connect (
  ({planeteers}) => ({capPlanet: planeteers.captain})
)

Cool Bits

  1. Atomico is small library for creating Web Components with “React-inspired syntax” like functions, hooks, and Vdom. It also single handedly created what we’ve coined “The Web Platform Paradox” - An infinite loop of Web Platform absolutists tweeting that they love Atomico because of Web Components and that they hate Atomico because of, well, you know.

  2. Wayne is a library that’s like Express.js inside of a Service Worker and has a best friend named Garth who sometimes finds Bugs Bunny attractive.

  3. Appwrite is a secure, open-source, backend as a service that gives you all the core APIs you need to build any web or mobile app. Guess who just became a fullstack developer? All of us 😈 [sponsored]

  4. React Table just changed its name to TanStack Table after it released v8 with newly-added support for Solid.js, Vue, and Svelte. I still think they should’ve named it “ReSolVuelte Table”, but they stopped inviting me to the naming committee meetings for some reason.

  5. Brain.js is a GPU accelerated neural network for browsers and Node. A little disappointed to see that Brain isn’t the mascot.

  6. Lea Verou gave an hour-long talk on CSS Variable Secrets at CSS Day. Contrary to what you might think, it’s actually not about applying the principles from The Secret to your codebase. Even though I’m sure that visualizing the CSS you want in order to get the Law of Attraction working for you can’t hurt.

  7. Do you ever feel overwhelmed? Like no matter what you do you can’t keep up with the JS ecosystem? Well, that’s too bad cause Bao.js is a fast, minimalist web framework for the Bun JavaScript runtime.

  8. “The New Wave of State Management” discusses the core problems that state management libraries try to solve and how next-gen libraries are addressing them in new ways. I’m not sure who decides which libraries make the cut for the “new wave”, but I’m guessing it’s similar to how they choose a new Shrek in South Dakota.


JS Quiz - Answer – Sponsored by BugHerd

export default connect (
  ({planeteers}) => console.log(planeteers) || ({capPlanet: planeteers.captain})
)

Since console.log returns undefined, JavaScript, after logging, will still execute the right hand operand and therefore our return value will be the same.


Have a product you think our developers will love?
Advertise in Bytes

ui.dev icon youtube icon twitter icon

50 W Broadway Ste 333 PMB 51647 Salt Lake City, Utah 84101

Unsubscribe from Bytes

Older messages

Bytes: Like any good doggo, ESLint might be a little overbearing

Monday, July 4, 2022

Happy Fourth of July to those who celebrate and happy July 4th to those who don't. This week, we've got our special Bytes Cocktail recipe, our class action lawsuit Airbnb developers, and a

Bytes: Hot Spec Summer is BACK

Monday, June 27, 2022

This week, we've got Hot Spec Summer, Shopify's Big H, and Bionicles fan fiction. Welcome to #106. Hot Spec Summer is back A tradition unlike any other Last week, we observed the only religious

Bytes: If it renders on the edge, it's time to pledge.

Monday, June 20, 2022

This week, we've got the Death Cab for Cutie of auth solutions, lessons from Daddy Warzucks, and nowhere to hide. Welcome to #105. We are fast. We are lean. We are French. The build tool coming for

Bytes: 15 badges earns you a waffle party

Monday, June 13, 2022

This week, we've got one IDE going to heaven, fifteen GitHub badges to earn a waffle party, and a million ways to be cruel. Welcome to #104. Welcome to the cloud, my son Is the cloud heaven? Last

Bytes: What do Air Bud and Angular have in common?

Monday, June 6, 2022

This week, we've got an Air Bud crossover for the ages, a new team-building drinking game, and a master plan for infiltrating the Vue Mafia. Welcome to #103. Was this a real movie, or did we all

You Might Also Like

Hacker Newsletter #696

Friday, April 19, 2024

The greatest value of a picture is when it forces us to notice what we never expected to see. //John W. Tukey hackernewsletter Issue #696 // 2024-04-19 // View in your browser #Favorites Unlock your

Google's massive reorg 🧑‍🤝‍🧑, Meta's Llama 3 launch 🤖, China bans WhatsApp 💬

Friday, April 19, 2024

Google has reorganized its Android, Chrome, and Google hardware divisions Sign Up |Advertise|View Online TLDR TLDR 2024-04-19 📱 Big Tech & Startups Meta's battle with ChatGPT begins now (5

Is your Notes app completely disorganized?

Friday, April 19, 2024

Hi there, Is your Notes app completely disorganized? In a recent survey we found that 77% of our readers would like to learn how to better organize the notes on their iPhone. That's why we're

Data Science Weekly - Issue 543

Friday, April 19, 2024

Curated news, articles and jobs related to Data Science, AI, & Machine Learning ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

A deal made in cloud security heaven

Thursday, April 18, 2024

Meta's Llama 3 goes public and hackers hold World-Check data for ransom View this email online in your browser By Christine Hall Thursday, April 18, 2024 Welcome to TechCrunch PM! I'm glad you

💎 Issue 413 - RubyJS-Vite

Thursday, April 18, 2024

This week's Awesome Ruby Newsletter Read this email on the Web The Awesome Ruby Newsletter Issue » 413 Release Date Apr 18, 2024 Your weekly report of the most popular Ruby news, articles and

💻 Issue 406 - Swift for C++ Practitioners, Part 1

Thursday, April 18, 2024

This week's Awesome .NET Weekly Read this email on the Web The Awesome .NET Weekly Issue » 406 Release Date Apr 18, 2024 Your weekly report of the most popular .NET news, articles and projects

💻 Issue 413 - How to implement HLS Video Streaming in a React App

Thursday, April 18, 2024

This week's Awesome Node.js Weekly Read this email on the Web The Awesome Node.js Weekly Issue » 413 Release Date Apr 18, 2024 Your weekly report of the most popular Node.js news, articles and

📱 Issue 407 - Textual Healing: iOS Text Editing Minutiae

Thursday, April 18, 2024

This week's Awesome iOS Weekly Read this email on the Web The Awesome iOS Weekly Issue » 407 Release Date Apr 18, 2024 Your weekly report of the most popular iOS news, articles and projects Popular

💻 Issue 413 - Interview with Senior JavaScript Developer 2024 [video]

Thursday, April 18, 2024

This week's Awesome JavaScript Weekly Read this email on the Web The Awesome JavaScript Weekly Issue » 413 Release Date Apr 18, 2024 Your weekly report of the most popular JavaScript news, articles