Saturday, August 31, 2024

NVIDIA stock price growth

Nvidia stock slips after earnings, forecasts top estimates amid 'incredible' demand for its next-gen chip


In conversation with Reid Hoffman & Robert F. Kennedy Jr. - YouTube










gen AI Alexa, with Anthropic, not free

Gen AI Alexa to use Anthropic tech after it “struggled for words” with Amazon’s | Ars Technica

result of Amazon's $4 billion investment in Anthropic: need to pay subscription to use AI?

gen AI Alexa could cost up to $10 per month, according to the documents. That coincides with a June Reuters report saying that the service would cost $5 to $10 per month. The Post said Amazon would finalize pricing and naming in August.


The new version of the voice assistant, dubbed “Remarkable Alexa,” is expected to launch in October and require a subscription fee

AI: "The hottest new programming language is English"

 Andrej Karpathy on X: "The hottest new programming language is English" / X


Andrej Karpathy (@karpathy) / X

Building@EurekaLabsAI . Previously Director of AI @ Tesla, founding team @ OpenAI, CS231n/PhD @ Stanford. I like to train large deep neural net





Friday, August 30, 2024

BOOX Palma Mobile phone with ePaper

battery charge can last days or weeks!
UI looks like first version of Mac, from 1984

This Phone is Bad... Which Makes it Better? - YouTube by
Marques Brownlee

BOOX Palma Mobile ePaper 6G 128G G-sensor Front Light 16MP Rear Camera (Black)


Amazon.com: BOOX Palma Mobile ePaper 6G 128G G-sensor Front Light 16MP Rear Camera (Black) : Electronics

$280


2024 Stack Overflow Developer Survey

more realistic survey, from "real" developers, while relatively small data sample 

Technology | 2024 Stack Overflow Developer Survey


by theo-t3.gg








Top Programming Languages 2024 (IEEE Spectrum)

measuring "popularity" of prog. languages is tricky... 
IEEE method is focused on "jobs"

Python "win" by a wide margin. while in future is likely to be replaced with Mojo.

JavaScript dominates actual development, not reflected on this survey.

C++ is used for systems-level platform apps, likely to be over-estimated in this survey.

SQL is still #1 for jobs.

Top Programming Languages 2024 - IEEE Spectrum



Thursday, August 29, 2024

Polished Tesla Cybertruck

like a mirror

 The World's First Polished Tesla Cybertruck | The Driver Series: Tyson's CyberTruck - YouTube


The First *REAL GOLD* Tesla Cybertruck - What did it Cost?! - YouTube


Rspack 1.0 vs WebPack

Announcing Rspack 1.0 - Rspack

Rspack 1.0: The Rust-Powered JavaScript Bundler — Far from being ‘yet another bundler’ with its own approach and terminology to learn, Rspack prides itself on being webpack API and ecosystem compatible, while offering many times the performance. The team now considers it production ready and encourages you to try your webpack-based projects on it.

JavaScript Weekly Issue 702: August 29, 2024

Tuesday, August 27, 2024

AI "TOPS" Mini PCs with AMD Ryzen + Radeon 780M

What is TOPS and why is it important for AI? | Windows Central

TOPS (Tera Operations per Second) is a term used to measure, simplify, and advertise Neural Processing Unit (NPU) performance in AI PCs. TOPS is not a perfect metric, and many variables contribute to how well a system can handle AI tasks. It nevertheless provides a quick reference to an NPU's speed and how it compares to its competition.

AMD enters the race to the 'TOPS' with new NPUs for Ryzen AI laptops and desktops | Windows Central

AMD Ryzen PRO 8000/8040 Series processors bring Ryzen AI NPUs to desktops and mobile workstations for business.


Performance Up to 16 TOPS
Total Processor Performance Up to 39 TOPS
NPU Performance Up to 16 TOPS

Performance Up to 16 TOPS
Total Processor Performance Up to 38 TOPS
NPU Performance Up to 16 TOPS

AMD Ryzen 9 8945HS vs Ryzen 7 8845HS: performance comparison
Advantages of AMD Ryzen 9 8945HS
  • 2% higher Turbo Boost frequency (5.2 GHz vs 5.1 GHz)


Apple has stated the Neural Engine in the M4 can perform 38 trillion operations per second (TOPS), an improvement over the 18 TOPS in the M3

Beelink SER8 AMD Ryzen™ 7 8845HS MINI PC 8C/16T Frequency up to 5.1GHz

CPU & GPU & NPU on one chip. Enhanced AI acceleration and hardware ray-tracing will completely transform your experiences in office multi-tasking and graphics-intensive gaming.


Dual channel DDR5 upgradeable to max 64GB(2 x 32GB). And 1TB M.2 PCIe4.0 2280 SSD, speed up to 7000mb/s is 100% faster than PCIe 3.0 in terms of read and write speed. Dual channel M.2 NVMe 2280 SSD upgradeable to max 4TB(2 x 2TB).

AMD Ryzen 7 8845HS has CPU & GPU & NPU on one chip.The new Ryzen Al Engine has 16 TOPS of Al performance

$649



Amazon.com: Apple 2023 Mac mini desktop computer M2 chip with 8‑core CPU and 10‑core GPU, 8GB Unified Memory, 256GB SSD storage, Gigabit Ethernet. Works with iPhone/iPad : Electronics
$499

$675

AMD Radeon 780M 2800MHz graphics card, equipped with 8 cores and 16 threads, the maximum frequency of 5.2GHz, the desktop pc's NPU can reach 39 TOPS, Proficiency in Natural Language Mastery, a superb AI function, simply solves all kinds of complex PC operation problems.



$730, with coupon (!)

$640, with coupon

$92


up to 34 TeraOPS

Monday, August 26, 2024

GoLang: Cogent Core, a Cross-Platform GUI Framework

 Cogent Core, a Cross-Platform GUI Framework in Go - YouTube


Initial release • Blog • Cogent Core

Cogent Core allows you to build powerful, fast, elegant apps that run on all platforms with a single Go codebase, allowing you to Code Once, Run Everywhere (Core). This blog is an interactive Cogent Core app running on the web using wasm. The same code can run on macOS, Windows, Linux, iOS, Android, and the web through a command line tool that manages all the details for running and building apps for each platform.


Cogent Core

cogentcore/core: A free and open source framework for building powerful, fast, elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the web with a single Go codebase, allowing you to Code Once, Run Everywhere. @GitHub

BSD-3-Clause license


WAYMO: self-driving & honking to other robo-cars

Residents in San Francisco neighborhood say repeated Waymo honking is keeping them up at night - YouTube



Sunday, August 25, 2024

PythonMonkey: Python VM + JavaScript Engine

Node Weekly Issue 542: July 30, 2024

PythonMonkey: Embed a JavaScript Engine into the Python VM 

If you need to use Python but also want to run JS, this gives you a way to do it with Mozilla’s SpiderMonkey engine. It’s not V8 or Node based, but supports the Node.js and NPM-compatible CommonJS module system.


Saturday, August 24, 2024

OpenAI API: text-to-speech

 Text to speech - OpenAI API 

 voices (alloyechofableonyxnova, and shimmer

openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision @GitHub


python

from pathlib import Path
from openai import OpenAI
client = OpenAI()

speech_file_path = Path(__file__).parent / "speech.mp3"
response = client.audio.speech.create(
  model="tts-1",
  voice="alloy",
  input="Today is a wonderful day to build something people love!"
)

response.stream_to_file(speech_file_path)

node.js

import fs from "fs";
import path from "path";
import OpenAI from "openai";

const openai = new OpenAI();

const speechFile = path.resolve("./speech.mp3");

async function main() {
  const mp3 = await openai.audio.speech.create({
    model: "tts-1",
    voice: "alloy",
    input: "Today is a wonderful day to build something people love!",
  });
  console.log(speechFile);
  const buffer = Buffer.from(await mp3.arrayBuffer());
  await fs.promises.writeFile(speechFile, buffer);
}
main();


max txt len for OpenAI TTS API: 4096 chars

solution: create smaller mp3, then concatenate to single file, i.e. by using this module
fluent-ffmpeg - npm

this is turn requires a separate (CLI) app installed on the computer

nothing is simple...



Android: upload multiple photos to google drive

 pixel phone how to upload multiple photos to google drive - Google Search

use Google Drive App

login to Google account, select folder to upload, click on [ + ]

then select multiple images from Gallery or Photos app, click "Done" and that is it.

best one when on WiFi


Friday, August 23, 2024

architecture: modern classic: fortress town

This Town PROVES We Can Still Build Beautiful Cities - YouTube

In this video we discover Brandevoort, a newly built town near Helmond, the Netherlands. Brandevoort consists of multiple parts, of which the central area, called ‘De Veste’ is inspired by fortified towns as they can be found in the province of Brabant. This town is dense and walkable, yet peaceful and surrounded by a stunning green landscape. It was also a commercial success, with many of the phases selling out with ease. Could this town be an example for developments in other countries, like the United States, England or other places? The future, second phase of Brandevoort isn’t secured however; a bold, futuristic plan is proposed that does away with the time tested, successful principles that led to earlier success.

 New construction Helmond - We build Brandevoort






Thursday, August 22, 2024

TypeScript: type vs interface

 Interfaces vs Types in TypeScript - Stack Overflow

interface X {
    a: number;
    b: string;
}

type X = {
    a: number;
    b: string;
}


WHY?

Evolutionary Reasons: TypeScript has evolved over time, and different features have been introduced in different versions. 
  • interface has been part of TypeScript since its early versions, primarily for defining the shapes of objects. 
  • type aliases were introduced later to handle cases that interface couldn't easily represent, such as unions, intersections, and primitive types.



What is the difference between interface and type in TypeScript ? - GeeksforGeeks


Types vs. interfaces in TypeScript - LogRocket Blog


TypeScript: TS Playground - An online editor for exploring TypeScript and JavaScript


TypeScript: Documentation - Object Types


A Comprehensive Comparison of TypeScript Type vs Interface

Types in TypeScript are more flexible and can define primitive, intersection, union, tuple, or different types of data, while interfaces are used to describe the shape of an object.


Since Typescript 3.4, you could use as const and generate a union type from an array as follows

const colors = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet'] as const;
export type Color = typeof colors[number]; // 'red'|'orange'|'yellow'|'green'|'blue'|


How to use the keyof operator in TypeScript - LogRocket Blog
type Staff = {
 name: string;
 salary: number;
} 
type staffKeys = keyof Staff; // "name" | "salary"

Using the keyof typeof pattern

We often combine keyof and typeof together, to create a type that represents the keys of a specific object. This is particularly useful when you want to define a type based on the structure of an existing object.

Let’s say we have a userProfile object as shown here:

const userProfile = {
  username: 'john_doe',
  email: 'john@example.com',
  age: 30,
  isAdmin: false,
};

We can use the keyof typeof pattern to create a type representing the keys of this user profile object:

type UserProfileKeys = keyof typeof userProfile;
// type UserProfileKeys = "username" | "email" | "age" | "isAdmin"