Tuesday, January 31, 2023

EV: fuel economy top 10 + IONIQ 6

 Fueleconomy.gov Top Ten

1. Lucid: 140 mpg/eq

2. Tesla Model 3: 132

etc... (Lucid/Tesla)

2023 Hyundai IONIQ 6 EPA range unveiled

140 mpg/eq

tRPC: End-to-end typesafe APIs with TypeScript

 tRPC - Move Fast and Break Nothing. End-to-end typesafe APIs made easy. | tRPC

Experience the full power of TypeScript inference to boost productivity
for your full-stack application.

Automatic typesafety

Made a server side change? TypeScript will warn you of errors on your client before you even save the file!

Snappy DX

tRPC has no build or compile steps, meaning no code generation, runtime bloat or build step.

Automatic typesafety

Made a server side change? TypeScript will warn you of errors on your client before you even save the file!


Using tRPC is like using an SDK for your API's server code, giving you confidence in your endpoints

Light bundle size

tRPC has zero dependencies and a tiny client-side footprint making it lightweight.

Light bundle size

tRPC has zero dependencies and a tiny client-side footprint making it lightweight.

tRPC, a bug tracker embedded in git, awesome ChatGPT prompts, half-baked cloud dev envs & Whisper.cpp (Changelog News) |> Changelog

tRPC - Move Fast and Break Nothing. End-to-end typesafe APIs made easy. | tRPC

The Truth About GraphQL - YouTube

Saturday, January 28, 2023

book: Data-Oriented Programming

the book is based on principles of Clojure prog. language,
that has unique and advance way of handling data

and apparently TypeScript also supports concepts of "Data Oriented" programming

Data-Oriented Programming

Eliminate the unavoidable complexity of object-oriented designs. The innovative data-oriented programming paradigm makes your systems less complex by making it simpler to access and manipulate data.
  • Separate code from data
  • Represent data with generic data structures
  • Manipulate data with general-purpose functions
  • Manage state without mutating data
  • Control concurrency in highly scalable systems
  • Write data-oriented unit tests
  • Specify the shape of your data
  • Benefit from polymorphism without objects
  • Debug programs without a debugger
the paradigm is language-agnostic: DOP code that can be implemented in JavaScript, Ruby, Python, Clojure, and also in traditional OO languages like Java or C#.

podcast interview with the book author;

The principles of data-oriented programming with Yehonathan Sharvit (The Changelog #522) |> Changelog

In DOP, data is treated as a first-class citizen.

The essence of DOP is that it treats data as a first-class citizen. It gives developers the ability to manipulate data inside a program with the same simplicity as they manipulate numbers or strings. Treating data as a first-class citizen is made possible by adhering to four core principles:

Principle #1: Separating code (behavior) from data.

Principle #2: Representing data with generic data structures.

Principle #3: Treating data as immutable.

Principle #4: Separating data schema from data representation.

Javascript: The Good Parts vs "new parts"

 Javascript: The Good Parts : ProgrammerHumor

JS has many features, collected over time, some of them very good, making JS one of the most used, or THE most used prog. language... 

Still, the author of book  JavaScript: The Good Parts  Douglas Crockford (he also defined JSON!)
is not happy for many more new features being added

“The best thing we can do today to JavaScript is to retire it. Twenty years ago, I was one of the few advocates for JavaScript. Its cobbling together of nested functions and dynamic objects was brilliant. I spent a decade trying to correct its flaws. I had a minor success with ES5. But since then, there has been strong interest in further bloating the language instead of making it better. So JavaScript, like the other dinosaur languages, has become a barrier to progress. We should be focused on the next language..."

and here are both of authors together!

Friday, January 27, 2023

Docker Desktop limits with WSL2 on Windows

Limiting Memory Usage in WSL2 | Aleksandr Hovhannisyan

How to limit Memory usage on Docker Desktop WSL 2 mode | by Balaji Dharma | Geek Culture | Medium

edit "$env:USERPROFILE/.wslconfig"

make sure to save with LF only (unix style, no CR LF typical for Windows)
i.e. by using Notepad++ or edit from WSL

> wsl
> editor "$(wslpath "C:\Users\YourUsername\.wslconfig")"
> # or
>  vi "$(wslpath "C:\Users\YourUsername\.wslconfig")"

# Settings apply across all Linux distros running on WSL 2
# Limits VM memory, whole numbers using GB or MB
# Sets the VM to use two virtual processors

Thursday, January 26, 2023

TypeScript 5.0 Beta

 Announcing TypeScript 5.0 Beta - TypeScript

make TypeScript, smaller, simpler, and faster.

Litestream + LiteFS: Distributed SQLite by Fly.io

I Migrated from a Postgres Cluster to Distributed SQLite with LiteFS

by Kent C. Dodds

Litestream was originally created to improve reliability of SQLite in edge cases (specifically, disaster recovery), but the way this was done also lends itself well to the idea of distributed SQLite deployments.


Litestream has had "read-replicas" as a desired future feature for over a year. LiteFS...  works similarly to Postgres clusters. One LiteFS node is the "primary" and other nodes automatically replicate data writes. LiteFS acts as a proxy to your SQLite database (you connect to LiteFS instead of the underlying database) and then LiteFS effectively replays data updates to all read replicas. And this reply happens behind the scenes normally within 200ms (on par with distributed Postgres clusters).

LiteFS allows us to get distributed SQLite...

Additionally, SQLite data access is much faster than Postgres...

Litestream.io - Streaming SQLite Replication

Continuously stream SQLite changes to AWS S3, Azure Blob Storage, Google Cloud Storage, SFTP, or NFS. Quickly recover to the point of failure if your server goes down.

Runs as a separate process so you can integrate into existing applications with no code changes.

Only costs pennies per day. Object storage is cheap so there's no need to waste money on additional servers.

benbjohnson/litestream: Streaming replication for SQLite. @GitHub

I'm All-In on Server-Side SQLite · Fly

Tuesday, January 24, 2023

in-security: LastPass passwords stolen

Hackers stole encrypted LastPass password vaults, and we’re just now hearing about it - The Verge

"If you have an account you use to store passwords and login information on LastPass, or you used to have one and hadn’t deleted it before this fall, your password vault may be in hackers’ hands. Still, the company claims you might be safe if you have a strong master password and its most recent default settings. However, if you have a weak master password or less security, the company says that “as an extra security measure, you should consider minimizing risk by changing passwords of websites you have stored.”

A whole 2 hour discussion diving into this: twit.tv/shows/security-now

Kubernetes Challenges @ KodeKloud (free training)

interactive k8s practice labs

Kubernetes Challenges - KodeKloud

The Kubernetes Challenges is a FREE fun and challenging set of challenges to Practice Kubernetes hands-on. These challenges are specially designed to give you more hands-on and challenges that would help you excel in Kubernetes

Monday, January 23, 2023

GhatGPT simulating IQ levels: "why does it rain?"

 (2) haltakov.eth 🧱🔨 on Twitter: "ChatGPT simulating people with an IQ of 200, 100, 70, and 50. The last one is hilarious 😄 https://t.co/A7vkLfg37c" / Twitter

ChatGPT: "busy right now"

Write a standup comedy routine about the status of ChatGPT.

Comedian: "So I was trying to use this new AI chatbot website called ChatGPT and I got an error message that said 'A lot of people are checking out ChatGPT right now. Please check back soon!'"
(pauses for laughter)
Comedian: "I mean, seriously? The website is so popular that it can't handle all the traffic? And my only option is to 'check back soon'? It's like they're saying 'Sorry, we're too popular right now. Try again later.'"
Comedian: "But seriously, how many times can I check back before I just give up and try a different chatbot? I don't have all day to wait for my turn to talk to a robot."
Comedian: "I guess I'll just have to stick to talking to my cat for now. At least he doesn't have a waiting list."
(laughs and claps)
Comedian: "Just remember, if you're trying to chat with ChatGPT and you get the same error message, don't worry. It just means you're not the only one who wanted to try out this fancy AI chatbot."
(laughs and exits stage)

Azure OpenAI Service

After investing billions of dollars in OpenAI startup company
Microsoft is now "selling" some of this functionality as Azure features.

 Use Natural Language & Prompts with AI Models | Azure OpenAI Service - YouTube

leverage large-scale, generative AI models with a deep understanding of language and code

Sign up for Azure OpenAI at https://aka.ms/oai/access

and ChatGPT is getting "too smart"...

Sunday, January 22, 2023

WebAssembly JavaScript async with V8

 Introducing the WebAssembly JavaScript Promise Integration API · V8

The JavaScript Promise Integration (JSPI) API allows WebAssembly applications that were written assuming that access to external functionality was synchronous to operate smoothly in an environment where much of the desired functionality is asynchronous.

Wednesday, January 18, 2023

Podman vs Docker


containers/podman: Podman: A tool for managing OCI containers and pods. @GitHub

Podman (the POD MANager) is a tool for managing containers and images, volumes mounted into those containers, and pods made from groups of containers. Podman runs containers on Linux, but can also be used on Mac and Windows systems using a Podman-managed virtual machine. Podman is based on libpod, a library for container lifecycle management that is also contained in this repository. The libpod library provides APIs for managing containers, pods, container images, and volumes.

Podman vs Docker: All You Need To Know! | LambdaTest

Docker daemon is a background process responsible for managing all containers on a single host. It can handle all Docker images, containers, networks, storage, etc. Docker daemon uses a REST API to listen to requests and perform operations accordingly.

So, Docker needs this daemon to run in the background to manage, create, run, and build containers. Docker has a client-server logic mediated by the Docker daemon.

Podman, on the other hand, does not need a daemon. It has a (daemonless architecture), which helps users to start running containers (rootless). In other words, Podman does not require root privileges to manage containers.

Docker vs Podman: Top Differences

How is Podman different from Docker? The most significant difference between Docker and Podman is that Docker uses a client-server architecture, where a daemon runs on every host that needs to run containers, whereas Podman uses a single-process architecture. Because of this, pods and images are smaller.

Tuesday, January 17, 2023

Apple M2 Pro and M2 Max

Apple unveils M2 Pro and M2 Max: next-generation chips for next-level workflows - Apple

Built using a second-generation 5-nanometer process technology, M2 Pro consists of 40 billion transistors — nearly 20 percent more than M1 Pro, and double the amount in M2. It features 200GB/s of unified memory bandwidth — twice that of M2 — and up to 32GB of low-latency unified memory. The next-generation 10- or 12-core CPU consists of up to eight high-performance cores and four high-efficiency cores, resulting in multithreaded CPU performance that is up to 20 percent faster than the 10-core CPU in M1 Pro. Apps like Adobe Photoshop run heavy workloads faster than ever, and compiling in Xcode is up to 2.5x faster than on the fastest Intel-based MacBook Pro.

Buy 16-inch MacBook Pro - Apple

Microsoft processing HW: DPU

Microsoft acquires Fungible, a maker of data processing units, to bolster Azure | TechCrunch

Microsoft had acquired Fungible, a startup fabricating a type of data center hardware known as a data processing unit (DPU), for around $190 million.

A DPU is a dedicated piece of hardware designed to handle certain data processing tasks, including security and network routing for data traffic. The approach is intended to help reduce the load on CPUs and GPUs for core computing tasks related to a given workload.

AWS has a similar while more critical HW for managing all network communication and security outside of standard virtualization SW, as well as custom general-purpose processors. With processor manufacturing available "as a service" from TSMC, as now even from Intel, there is likely to be many more specialized, "domain specific" processors.

AWS Nitro System

AWS Graviton

Sunday, January 15, 2023

Microsoft =$10B=> OpenAI

 Microsoft in talks to invest $10 bln in ChatGPT-owner OpenAI, Semafor reports | Reuters

Microsoft Corp (MSFT.O) is in talks to invest $10 billion in ChatGPT-owner OpenAI as part of funding that will value the firm at $29 billion

Microsoft eyes $10 billion bet on ChatGPT owner | Semafor

ChatGPT goes prime time! (Practical AI #206) |> Changelog

Kubernetes Network Policy visual Editor: Cilium

Network Policy Editor for Kubernetes (//editor.cilium.io)

NetworkPolicy Editor: Create, Visualize, and Share Kubernetes NetworkPolicies

Cilium - Linux Native, API-Aware Networking and Security for Containers

cilium/cilium: eBPF-based Networking, Security, and Observability @GitHub

Cilium is a networking, observability, and security solution with an eBPF-based dataplane. It provides a simple flat Layer 3 network with the ability to span multiple clusters in either a native routing or overlay mode. It is L7-protocol aware and can enforce network policies on L3-L7 using an identity based security model that is decoupled from network addressing.

Saturday, January 14, 2023

JavaScript playing "real" music

Oxygene Pt 4 | Dittytoy (JS program)

vs original music

Jean-Michel Jarre - Oxygene, Pt. 4 - YouTube

Oxygène (Part IV) - Wikipedia

"Oxygène (Part IV)" (released in some countries under the title "Oxygène IV") is a 1977 single composed by the French electronic musician and composer Jean-Michel Jarre, from his third studio album Oxygène (1976). It is Jarre's most successful single, reaching number four on the UK Singles Chart and peaking in the top ten in the charts of several European countries. It also was used in the 2008 video game Grand Theft Auto IV,[4] and in the BBC drama Micro Men.

link from 

JavaScript Weekly Issue 621: January 13, 2023

This is fun. Dittytoy is a simple, JavaScript-powered online generative music tool and someone has put together a surprisingly faithful rendition of perhaps one of the best known instrumental synth songs ever, all the way from 1976.

Für Elise | Grand piano | Dittytoy

Karplus synth with reverb | Dittytoy (Harp)

K3s: Lightweight Kubernetes for IoT & Edge computing

The certified Kubernetes distribution built for IoT & Edge computing
(simplified K8s API)

k3s-io/k3s: Lightweight Kubernetes @GitHub, GoLang, Apache2

Friday, January 13, 2023

EV: $2000 pickup truck

Unboxing World's Cheapest Pickup Truck - YouTube

This is the cheapest car in the world. It's a Chinese pickup truck called the Chang Li Explorer and it's also one of the smallest cars in the world. Usually at Supercar Blondie we review the most expensive cars in the world, but today we bring you a $2000 car that literally gets delivered to you in a box.

How my "$2,000" Chinese Electric Truck is Holding Up (3 Month Update) - YouTube

I bought an ELECTRIC pickup truck from China (seriously!) - YouTube

ChatGPT used to create a programming language!

 How to teach ChatGPT to code in your own vanity Programming Language - YouTube

by Chris Hay

Thursday, January 12, 2023

Cloud Architecture Patterns

Cloud design patterns - Azure Architecture Center | Microsoft Learn

These design patterns are useful for building reliable, scalable, secure applications in the cloud.

Each pattern describes the problem that the pattern addresses, considerations for applying the pattern, and an example based on Microsoft Azure. Most patterns include code samples or snippets that show how to implement the pattern on Azure. However, most patterns are relevant to any distributed system, whether hosted on Azure or other cloud platforms.

Download Cloud Design Patterns – Book Download from Official Microsoft Download Center

Go web server: Fiber

 gofiber/fiber: ⚡️ Express inspired web framework written in Go @GitHub

Fiber is an Express inspired web framework built on top of Fasthttp, the fastest HTTP engine for Go. Designed to ease things up for fast development with zero memory allocation and performance in mind.

and one more...

Pushup - page-oriented web framework for Go

A server-side, page-oriented web framework for the Go programming language.

Wednesday, January 11, 2023

Docker + WASM

 Exploring Docker Hub’s WASM technical preview | by B Shyam Sundar | Dec, 2022 | Medium

docker run -dp 8080:8080 \
--name=wasm-example \
--runtime=io.containerd.wasmedge.v1 \
--platform=wasi/wasm32 \

WasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications.

It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.

programming C resources / links / info

a useful list of C-programming related links

Everything I wish I knew when learning C - Tom M

why is C still relevant?

Because with WASM it could be a good and simple tool to make fast and small "edge" apps
both for web apps, as well as "cloud native micro-services" and IoT

and most of software now depends on Linux, an that is mostly written in C

Tuesday, January 10, 2023

EV: Canoo

Canoo's Space-Age Electric Van Is FINALLY Here!! - YouTube
by FullyChargedShow

Canoo - The new EV Muscle Van | Sandy & Canoo CEO Tony Aquila - YouTube

Electric Cars, Fleet, Pickup Trucks for Clean Energy

Canoo - Wikipedia

Canoo is an American automotive startup based in Torrance, California that develops and manufactures electric vehicles. It plans to sell a lifestyle vehicle by 2022.[2][3] Canoo's research & development team is based in the Detroit region (Auburn Hills, Livonia) while production operations are in Justin, Texas and at its main manufacturing plant in Pryor, Oklahoma. The company also plans to produce commercial electric vehicles such as vans for vehicle rental and ride sharing services.

Canoo (GOEV) now has a million-dollar reason to produce EVs

Canoo resurrected after Walmart orders EVs in exchange for stock

goev stock price - Google Search

risky but it could be a good "buy"? the stock price is affordable for sure... 

visual JSON Crack

 JSON Crack - Crack your data into pieces

Monday, January 09, 2023

Tauri: desktop JS apps (vs Electron.js)

Build smaller, faster, and more secure desktop applications with a web frontend | Tauri Apps

The 6 JavaScript Projects to watch in 2023

Tauri is a desktop app framework that utilizes webview to allow you to write desktop apps using web technologies without having to embed a browser. Additionally, Tauri’s backend is written in Rust rather than JS, which means you do not need to embed Node.js either.

Tauri can also be much easier to use. With Electron, if you want to interface with a native API, you need to implement handling logic in Node.js and call that from the web. On the other hand, Tauri offers a simple API you can call to perform a variety of native tasks like filesystem manipulation, showing notifications, and more.

data: Most Popular Programming Languages 1965 - 2022

 NEW! Most Popular Programming Languages 1965 - 2022 - YouTube

The Most Popular Programming Languages - 1965/2022 - New Update - @statisticsanddata.org

data source: TIOBE Index - TIOBE not free, dataset: $5000

Sunday, January 08, 2023

tool: VSCode spell checker

 Code Spell Checker - Visual Studio Marketplace  6M installs

A basic spell checker that works well with code and documents.

The goal of this spell checker is to help catch common spelling errors while keeping the number of false positives low.

Bun: fast all-in-one JavaScript runtime

Bun is written in Zig and uses JavaScriptCore. These choices are interesting because most other server side JavaScript runtimes use V8, Google Chrome’s JavaScript runtime. On the other hand, JavaScriptCore is by Apple for Safari. Bun claims that JavaScriptCore offers better performance and is more lightweight, which is part of how it achieves its performance.

What is Bun, and does it live up to the hype?

oven-sh/bun: Incredibly fast JavaScript runtime, bundler, transpiler and package manager – all in one.

"zig" source code example

Is JavaScriptCore (JSC) really the reason bun.js is so fast? Is V8 that slow? Is JSC the fastest? - YouTube

Bun — fast all-in-one JavaScript runtime

Bun is a modern JavaScript runtime like Node or Deno. It was built from scratch to focus on three main things:Start fast (it has the edge in mind).
New levels of performance (extending JavaScriptCore, the engine).
Being a great and complete tool (bundler, transpiler, package manager).

Bun is designed as a drop-in replacement for your current JavaScript & TypeScript apps or scripts — on your local computer, server or on the edge. Bun natively implements hundreds of Node.js and Web APIs, including ~90% of Node-API functions (native modules), fs, path, Buffer and more.