Jul 09 2022
BUN.js faster as NODE.js ?
BUNZIG
VS CODE
BUN
just read about BUN here
and search videos at youtube or 'de'
now i expect it : BUN.sh and GIT
to work under 64b OS
but try first on RPI4 Bullseye 32b ( default RPI OS as of today )
curl https://bun.sh/install | bash
pi@RPI4:~/projects $ bun --version
bash: /home/pi/.bun/bin/bun: cannot execute binary file: Exec format error
ok, using my pinnwheel command to reboot to the 64bit version
update and install BUN same way
and same problem:

try to ask via twitter
but no answer.
well, he write smallprinted download is for x64 ( means for PC's? )
i could try on PC? but not windows,
i have: see my BLOG
a VMWare / Kali Linux /
want try there ( as admin ).
sudo su
kali
curl https://bun.sh/install | bash
bun --help

nano http.js
// http.js
export default {
port: 3000,
fetch(request) {
return new Response("Welcome to Bun!");
},
};
Run it with bun:
bun run http.js
BUN still in heavy work...
try 0.1.7

ok, sorry, actually when i try 0.1.7 on PC
it should have worked already for Raspberry Pi 4 / 64 bit OS
so here i try again / even i not find anything useful online /
only TOBY at Discord BUN seem to have more info ( like compiling with RPI4 8GB impossible )


again some online video here
but that is too much about the "wow bun is so fast... "
so yes let's try something / just a web server ( no bench-marking.. )
pi@RPI64:~/projects $ bun create next ./next-app
cd next-app
bun dev


its all in the flow.. so just try a
bun upgrade
ZIG
as BUN is written in ZIG, need to check on that:
ZIG learn
GIT
vid / tutorials
26.10.2022 on RPI64 (usb stick 32GB )
sudo apt install snapd
restart
sudo snap install core
snap install zig --classic --beta
pi@RPI64:~ $ zig version
0.9.1
start with
mkdir zig-world
cd zig-world
zig init-exe
zig build run
edit with
tilde src/main.zig
tilde start ( with one line )
zig build run
chmod +x start
./start
example:
pi@RPI64:~/projects/zig-world $ tilde src/main.zig
pi@RPI64:~/projects/zig-world $ ./start
info: RPI4: This is a new world here
RPI GPIO from ZIG
VS CODE
install:
sudo apt install code -y
install 2 extensions



VS CODE on RPI4 64 bit OS / 4 GB RAM
STILL UNUSABLE