putting-the-you-in-cpu
bun
putting-the-you-in-cpu | bun | |
---|---|---|
9 | 290 | |
4,629 | 70,962 | |
1.4% | 2.6% | |
7.9 | 10.0 | |
2 months ago | 2 days ago | |
MDX | Zig | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
putting-the-you-in-cpu
-
Tech I am learning in 2024
Thanks to cpu.land , I grew an uncanny interest in how cpu works and got me deep into operating systems from there, it’s fascinating to see the deep down of your computer to the levels of registers and ALUs(arithmetic logical units). Nand2tetris and OSTEP is the greatest resource for starting with operating systems.
-
Ask HN: Who is hiring? (February 2024)
OrbStack | Founding Engineer | US/Europe REMOTE | Full-time | https://orbstack.dev
OrbStack is making Docker containers & development environments delightful. Our app replaces Docker Desktop and makes containers faster, lighter, and easier to work with. It's the tool of choice for PlanetScale, Replicate, and other hot companies.
Containers should be a joy to use, not something you have to put up with. Let's build the future of dev envs.
As a founding engineer, you'll mainly work on breaking high-level ideas down into tough systems problems, solving them, and taking ownership of projects. If https://cpu.land and https://docs.orbstack.dev/architecture excite you, you'll be right in place.
Email: jobs orbstack dev
-
Show HN: How did YOUR computer reach my server?
Hi! I'm Lexi. I'm 17, and one of the things I'm interested in is gaining a deeper understanding of how computers work and showing that in new ways. A few months ago I published https://cpu.land (discussion: https://news.ycombinator.com/item?id=37062422).
After cpu.land, I felt a lot of pressure to make another Big Giant Thing but didn't really have anything compelling. So I just hacked away on personal projects and, through some coincidental learning on how the Internet works, ended up hacking together a traceroute program that could live stream to a website from scratch!
I realized I had never seen this sort of thing on the web before, and it was actually a kind of cool and novel way of visualizing the structure of the Internet, so I polished it up and built a pretty site around it. In the process, I learned some really interesting things about how BGP and the structure of The Internet, so I melted the traceroute tool with an article sharing that knowledge.
I'm still hacking on this and I'm sure my code will manage to break somehow, so please let me know if you have any suggestions! :)
(Side note: why Rust? I don’t think programming language choice matters that much, but I wanted to quickly write a very dependable low-level program, and I really like Rust’s error handling primitives.
-
Websites must Know #1
https://cpu.land/
- Steve Jobs: Fast boot times saves lives
- I wrote this guide to how CPUs execute programs
- I'm 17 and wrote this guide on how CPUs run programs
- Show HN: I'm 17 and wrote this guide on how CPUs run programs
bun
-
Node Test Runner vs Bun Test Runner (with TypeScript and ESM)
It has a decent compatibility with both Jest and Vitest's APIs (you can track progress here so you can use it as almost a drop-in replacement for either. Just as Node's, it has describe/it, mock, test and others, but with the expect syntax (which I find more readable). For example:
-
SPA-Like Navigation Preserving Web Component State
In this third and final article in the series on HTML Streaming, we will explore the practical implementation of the Diff DOM Streaming library in web browsing. This approach will allow any website using web components to retain its state during browsing. We will discuss in detail how to achieve this step by step using VanillaJS and Bun.
-
React Server Components Example with Next.js
At Node Conference 2023, Jarred Sumner (creator of Bun) showed a demo of server components in Bun, so there is at least partial support in that ecosystem. The Bun repo provides bun-plugin-server-components as the official plugin for server components. And while I haven’t looked at it in-depth, Marz claims to be a “React Server Components Framework for Bun”.
- Bun – A fast all-in-one JavaScript runtime
-
From Node to Bun: A New Dawn for JavaScript Engines?
Continuously evolving, Bun is currently optimized for MacOS and Linux, with ongoing efforts towards Windows compatibility. Tailored for resource-constrained environments like serverless functions, it emerges as an ideal solution. The Bun team is committed to achieving comprehensive Node.js compatibility and seamless integration with prevalent frameworks. For those intrigued by Bun's potential and want to give it a try, more information is available on its website at https://bun.sh/.
-
Bun - The One Tool for All Your JavaScript/Typescript Project's Needs?
Let’s say you are interested in learning more about Bun and probably give it a try. Bun has a website, where you can learn more about Bun and its features (including all the benchmark data captured in this issue), and here is the link.
-
Bun 1.1
Looks like it, it seems the 2% are mostly odd platform specific issues that the authors' did not deem very important (my assumption for the release happening anyway). AFAIK this[1] PR tries to fix them.
[1]: https://github.com/oven-sh/bun/pull/9729
-
Bun-ify Your Project
Bun has a solution for it. First of all, it already has a list of trusted dependencies. For them, Bun will execute all necessary scripts by default. Otherwise, you can add it to trustedDependecies in your package.json file. In Bun community usage of trustedDependencies is a hot topic. There are several suggestions on how to improve it.
-
I have created a small anti-depression script
Install Node.js (or Bun, or Deno, or whatever JS runtime you prefer) if it's not there
-
JSR: The JavaScript Registry
I think maybe I was unclear. I'm talking about writing libraries that abstract across these differences and provide a single API, as sibling describes. I already know it's possible. I made a simple filesystem abstraction here[0] and a very simple HTTP library that uses it here[1]. They both work in Node/Deno and the browser. Unfortunately I ran into issues with Bun's slice implementation[2]. But I suspect there's a much better way of detecting and using the different backends.
[0]: https://github.com/waygate-io/fs-js
[1]: https://github.com/waygate-io/http-js
[2]: https://github.com/oven-sh/bun/issues/7057
What are some alternatives?
vmlinux-to-elf - A tool to recover a fully analyzable .ELF from a raw kernel, through extracting the kernel symbol table (kallsyms)
vite - Next generation frontend tooling. It's fast!
x86doc - HTML representation of the Intel x86 instructions documentation.
GORM - The fantastic ORM library for Golang, aims to be developer friendly
Optimizing-linux - A simple guide for optimizing linux 🐧 in detail
nvm - Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
mtr - Official repository for mtr, a network diagnostic tool
fastify - Fast and low overhead web framework, for Node.js
resemble-enhance - AI powered speech denoising and enhancement
go-pg - Golang ORM with focus on PostgreSQL features and performance
coursebook - Open Source Introductory Systems Programming Textbook for the University of Illinois
deno - A modern runtime for JavaScript and TypeScript.