Thursday, May 16, 2024

Solid.js + Signals

A Solid primer on Signals with Ryan Carniato (JS Party #320) podcast


Solid JS

Simple and performant reactivity for building user interfaces.


By far the easiest way to get started with Solid is to try it online. Our REPL at https://playground.solidjs.com is the perfect way to try out ideas. 

As is https://codesandbox.io/ where you can modify any of our Examples.



Solid is a declarative JavaScript library for creating user interfaces. Instead of using a Virtual DOM, it compiles its templates to real DOM nodes and updates them with fine-grained reactions. Declare your state and use it throughout your app, and when a piece of state changes, only the code that depends on it will rerun.



Solid/Signals

Signals are the cornerstone of reactivity in Solid. They contain values that change over time; when you change a signal's value, it automatically updates anything that uses it.


ollama.ai: Local AI server


Get up and running with large language models.
Run Llama 3, Phi 3, Mistral, Gemma, and other models. Customize and create your own.


host ALL your AI locally - YouTube

Discover how to set up your own powerful, private AI server with NetworkChuck. This step-by-step tutorial covers installing Ollama, deploying a feature-rich web UI, and integrating stable diffusion for image generation. Learn to customize AI models, manage user access, and even add AI capabilities to your note-taking app. Whether you're a tech enthusiast or looking to enhance your workflow, this video provides the knowledge to harness the power of AI on your local machine. Join NetworkChuck on this exciting journey into the world of private AI servers.

Guide and Commands: https://ntck.co/ep_401

Courses @networkchuck


Wednesday, May 15, 2024

AWS CEO change: AI challenge?

 AWS leadership update: AWS CEO Adam Selipsky steps down


Amazon Web Services CEO to resign, effective June 3


Matt Garman taking over as CEO with AWS at crossroads | TechCrunch

"It’s tough to say that a $100 billion business finds itself at a critical juncture, but that’s the case with Amazon Web Services, the cloud arm of Amazon, and the clear market leader in the cloud infrastructure market.

On Tuesday, the company announced that CEO Adam Selipsky was stepping down to spend more time with his family and recharge a bit, according to his statement. His replacement is AWS lifer Matt Garman."

During Selipsky’s tenure, growth for the cloud division has slowed pretty dramatically, falling from 33% in Q2 2022 to 12% in Q2 and Q3 2023 before ticking up to 13% and 17% in its two most recent reports — although to be fair, growth has slowed across the industry, as the space has settled into a more mature state. Yet at the same time the core infrastructure business seems to be maturing, it is being rocked by a major disruption in the form of generative AI.




CSV libs

JS/TS

csv - npm search

csv - npm
1.2M downloads/week, MIT, 2 months update

The csv project provides CSV generation, parsing, transformation and serialization for Node.js.

It has been tested and used by a large community over the years and should be considered reliable. It provides every option you would expect from an advanced CSV parser and stringifier.

This package exposes 4 packages:

1.6M downloads/week, MIT, 3 months update

Package that combines both @fast-csv/format and @fast-csv/parse into a single package.


Tuesday, May 14, 2024

AI: ChatGPT 4o from OpenAI

Hello GPT-4o | OpenAI

new flagship model that can reason across audio, vision, and text in real time.

GPT-4o (“o” for “omni”) is a step towards much more natural human-computer interaction—it accepts as input any combination of text, audio, image, and video and generates any combination of text, audio, and image outputs. It can respond to audio inputs in as little as 232 milliseconds, with an average of 320 milliseconds, which is similar to human response time(opens in a new window) in a conversation. It matches GPT-4 Turbo performance on text in English and code, with significant improvement on text in non-English languages, while also being much faster and 50% cheaper in the API. GPT-4o is especially better at vision and audio understanding compared to existing models.


Introducing GPT-4o - YouTube

Interview Prep with GPT-4o - YouTube

Math problems with GPT-4o - YouTube

Sam Altman talks GPT-4o and Predicts the Future of AI - YouTube



OpenAI GPT-4o is now rolling out — here's how to get access | Tom's Guide..



OpenAI and Google are launching supercharged AI assistants. Here's how you can try them out. | MIT Technology Review

OpenAI struck first on Monday, when it debuted its new flagship model GPT-4o. The live demonstration showed it reading bedtime stories and helping to solve math problems, all in a voice that sounded eerily like Joaquin Phoenix’s AI girlfriend in the movie Her (a trait not lost on CEO Sam Altman).







Google IO = AI * 120 :)

Google I/O 2024: Everything Revealed in 12 Minutes - YouTube

AI = Gemini, Astra, Gems, ... 

Gemini at Google IO 2024: New Features & Announcements! (Part 1) - YouTube


Google's fate hinges on this man: Demis Hassabis - YouTube


Google's HUGE AI Announcements Change Everything (Supercut) - YouTube

FTP client libs

Tools

FileZilla - The free FTP solution

Download FileZilla Client

FileZilla - Wikipedia

FileZilla is a free and open-source, cross-platform FTP application, consisting of FileZilla Client and FileZilla Server. Clients are available for Windows, Linux, and macOS. Both server and client support FTP and FTPS (FTP over SSL/TLS), while the client can in addition connect to SFTP servers. FileZilla's source code is hosted on SourceForge.

JavsScript: 

basic-ftp - npm

5.2M downloads/week, last update 2 weeks ago, MIT license, most popular

patrickjuchli/basic-ftp: FTP client for Node.js, supports FTPS over TLS, passive mode over IPv6, async/await, and Typescript.



ftp - npm

1.7M downloads / week, code didn't change for 9 years, must be good!

node-ftp is an FTP client module for node.js that provides an asynchronous interface for communicating with an FTP server.

mscdex/node-ftp: An FTP client module for node.js



Monday, May 13, 2024

Good Ideas in Computer Science

Good Ideas in Computer Science ・ Daniel Hooper

"By 1974, 50 years ago, we had most of what we call modern computing. Today’s fundamentals are the same — a C programmer from 1974 would feel at home on a modern computer except for the alien-like speed. I hope we have new ideas that in 50 years will be universally considered good."

Arrays (1942)

Hashmaps (1953)

Portable Programming Languages2

Processes (1958)

Graphical User Interfaces (1973)

Intentionally excluded:


Garbage Collection

Databases:  Databases are more than just one idea, with many ways to combine those ideas into a “database shape”. Some good ideas in databases: Structured query language, B-trees, ACID transactions.

Other data structures and algorithms: There are too many to list. Few are as universal as arrays and hashmaps, which appear in almost all programs.


Object Oriented Programming: There is a large group of programmers that do not consider Object Oriented Programming good5. I recommend data oriented design as a replacement worldview.

Sunday, May 12, 2024

GitHub Copilot IDE integrations, speech => code!


GitHub Copilot Integrations


VSCode extensions: 



"A VS Code extension to bring speech-to-text and other voice capabilities to VS Code."


data sharing / security concerns:




Docker Compose v2: GoLang

Docker (desktop) is changing, and some apps using docker-compose may need adjustments...

History and development of Docker Compose | Docker Docs

Effective July 2023, Compose V1 stopped receiving updates and is no longer in new Docker Desktop releases. Compose V2 has replaced it and is now integrated into all current Docker Desktop versions. For more information, see Migrate to Compose V2.

Version two of the Docker Compose command-line binary was announced in 2020, is written in Go, and is invoked with docker compose. Compose V2 ignores the version top-level element in the compose.yml file.


Saturday, May 11, 2024

JavaScript: Map vs object performance

Map - JavaScript | MDN

Map: Performs better in scenarios involving frequent additions and removals of key-value pairs.

object: Not optimized for frequent additions and removals of key-value pairs.

10x better!

Using Map Over Objects in JavaScript: A Performance Benchmark | by Rehmat Sayany | Medium






AI: AlphaFold 3 from Google DeepMind

 Google DeepMind and Isomorphic Labs introduce AlphaFold 3 AI model

"a new AI model developed by Google DeepMind and Isomorphic Labs. By accurately predicting the structure of proteins, DNA, RNA, ligands and more, and how they interact, we hope it will transform our understanding of the biological world and drug discovery."

link from



Friday, May 10, 2024

Tesla: cars or robots?

While TSLA stock price is falling, some argue that Tesla future profits
may come more from robots than from cars. Or maybe robo-cars, CyberCab?

Here is a long elaboration about future with robots doing most of jobs...
Very mixed feeling about this, regardless how "certain" it may look to some people.

Tony Seba just revealed why Elon Musk is no longer interested in EVs - YouTube


RethinkX - Wikipedia

RethinkX is a think tank founded by Tony Seba and James Arbib that focuses on identifying disruptive innovations that could soon impact society.


Tony Seba, Author, Thought Leader and SV Entrepreneur

Tony Seba - YouTube


This time, we are the horses: the disruption of labor by humanoid robots
RethinkX  |  9 May 2024

"In the 15 years between 1907 and 1922, horses went from providing 95% of all private vehicle-miles traveled on American roads to less than 20%. In areas like New York City, which led in the adoption of automobiles, the disruption of transportation was swift and transformative
...
Over the next 15-20 years, humanoid robots will disrupt human labor throughout hundreds of industries across every major sector of the global economy. The disruption of labor will be among the most profound transformations in human history, and therefore simultaneously represents one of the greatest opportunities and greatest challenges our civilization has ever faced.

...
Throughout history, every time technology has enabled a 10x or greater cost reduction relative to the incumbent system, a disruption has always followed."
...
Humanoid robots will enter the market at a cost-capability of under $10/hour for their labor, on a trajectory to under $1/hour before 2035 and under $0.10/hour before 2045."



MicroK8s - Kubernetes for developers, edge and IoT

MicroK8s - Zero-ops Kubernetes for developers, edge and IoT

"Zero-ops, pure-upstream, HA Kubernetes,
from developer workstations to production.

The best Kubernetes experience for developers, DevOps, cloud and edge"

Thursday, May 09, 2024

AI: Amazon Q; Anthropic

competition is good :)

Generative AI Powered Assistant - Amazon Q - AWS

"The most capable generative AI–powered assistant for accelerating software development and leveraging companies' internal data"



Anthropic was founded by former members of OpenAI, Daniela Amodei and Dario Amodei.[7] In September 2023, Amazon announced an investment of up to $4 billion, followed by a $2 billion commitment from Google in the following month.[8][9][10]

As part of the deal, Anthropic would use Amazon Web Services (AWS) as its primary cloud provider and make its AI models available to AWS customers

unovis.js Modular data visualization framework


f5/unovis: Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript @GitHub (Apache2 license)

📈 🗺 It has charts, maps, network graphs, and more!
🌳 Tree-shakable and supports individual component imports to reduce your bundle size;
🎨 Highly customizable, thanks to the CSS-variables support.

Learn more about Unovis on unovis.dev


Wednesday, May 08, 2024

Node.js Streams, Fastify

join the creator of Fastify, as well as Node.js TSC member, on an hour long odyssey into the world of streams, a topic in which he specializes. He starts off quite poetically .. a stream is like an array over time .. before quickly getting on to some live coding and demos. This is one in a series of events put on by Platformatic. (75 minutes.) MATTEO COLLINA

A Deep Dive into Node.js Streams | Masterclass - YouTube

Streams are the lifeblood of many Node.js applications, enabling efficient data processing and manipulation. But their evolution has been anything but straightforward.


Helpful links:
  • Streams training GitHub repo here
  • Installing Git large file storage support here
  • Additional information on Node.js event loops here

Tuesday, May 07, 2024

Hybrid Cars vs EVs?

Best Hybrid Cars of 2024 and 2025 - Expert Reviews and Rankings | Edmunds

Plug-In Hybrid vs. Full Electric - Toyota Prius Prime and Tesla Model 3 Compared - YouTube

$20K vs $2,000,000 Hybrid Car! - YouTube




AI: gene-editing CRISPR

CRISPR gets an AI upgrade - GZERO Media

"CRISPR, the gene-editing method that won two female scientists the 2020 Nobel Prize in Chemistry, may soon get infused with artificial intelligence. One Northern California startup called Profluent is expected to present its new paper at a gene-editing conference next month, which describes its work using AI to analyze biological data and create new gene-editing systems.

As one professor explained to the New York Times, it’s a departure from how CRISPR typically does gene replacement. Instead of altering genes based on discoveries in nature, the startup instead uses novel methods surfaced by its AI. “They have never existed on Earth,” University of California, San Francisco professor James Fraser said. “The system has learned from nature to create them, but they are new.”

An AI Tool Just Revealed Almost 200 New Systems for CRISPR Gene Editing

"a team at MIT and Harvard led by CRISPR pioneer Dr. Feng Zhang took inspiration from an existing big-data approach and used AI to narrow the sea of genetic sequences to a handful that are similar to known CRISPR systems.

The AI scoured open-source databases with genomes from uncommon bacteria—including those found in breweries, coal mines, chilly Antarctic shores, and (no kidding) dog saliva.

In just a few weeks, the algorithm pinpointed thousands of potential new biological “parts” that could make up 188 new CRISPR-based systems—including some that are exceedingly rare."



Feng Zhang (Chinese: 张锋; pinyin: Zhāng Fēng; born October 22, 1981) is a Chinese–American biochemist. Zhang currently holds the James and Patricia Poitras Professorship in Neuroscience at the McGovern Institute for Brain Research and in the departments of Brain and Cognitive Sciences and Biological Engineering at the Massachusetts Institute of Technology. He also has appointments with the Broad Institute of MIT and Harvard (where he is a core member). He is most well known for his central role in the development of optogenetics and CRISPR technologies.


In January 2013, Zhang and Church published answers just a few weeks before Doudna did. Ever since then, Doudna and Zhang have been entangled in a complex and bitter battle over patents and prizes.


Jennifer Anne Doudna ForMemRS (/ˈdaʊdnə/;[1] born February 19, 1964)[2] is an American biochemist who has done pioneering work in CRISPR gene editing, and made other fundamental contributions in biochemistry and genetics. Doudna was one of the first women to share a Nobel in the sciences. She received the 2020 Nobel Prize in Chemistry, with Emmanuelle Charpentier, "for the development of a method for genome editing."

Sunday, May 05, 2024

AI Undergraduate Degree: UPenn

 Penn Engineering Announces First Ivy League Undergraduate Degree in Artificial Intelligence - Penn Engineering Blog

The University of Pennsylvania School of Engineering and Applied Science introduces its Bachelor of Science in Engineering (B.S.E.) in Artificial Intelligence (AI) degree, the first undergraduate major of its kind among Ivy League universities and one of the very first AI undergraduate engineering programs in the U.S.

Undergraduate | University of Pennsylvania

School of Engineering and Applied Science

Bachelor of Science in Engineering (BSE)

Microsoft RulesEngine & Editor

microsoft/RulesEngine: A Json based Rules Engine with extensive Dynamic expression support
(DotNet, @GitHub, MIT)

Rules Engine is a library/NuGet package for abstracting business logic/rules/policies out of a system. It provides a simple way of giving you the ability to put your rules in a store outside the core logic of the system, thus ensuring that any change in rules don't affect the core system.

You need to store the rules based on the schema definition given and they can be stored in any store as deemed appropriate like Azure Blob Storage, Cosmos DB, Azure App Configuration, Entity Framework, SQL Servers, file systems etc. For RuleExpressionType LambdaExpression, the rule is written as a lambda expressions.

Saturday, May 04, 2024

NVIDIA: 1000000x computing in 10 years

The cost of computing has reduced a million times in ten years!
In the next ten years computing power will increase another million times!

The future: "generative content" based on knowledge / meaning, instead of "static content" 
AI: finding "meaning of genes", "meaning of biology"

Advantage: low expectations; people with high expectations have low resilience 
Making progress requires "pain and suffering"

NVIDIA CEO Jensen Huang Leaves Everyone SPEECHLESS (Supercut) - YouTube

"Highlights of #nvidia ( #nvda stock ) Founder and CEO Jensen Huang speaking at Stanford Institute for Economic Policy Research (SIEPR). Highlights include why Nvidia dominated generative AI after #openai released #chatgpt , why they still have no serious competition, the story behind Jensen Huang's leather jacket, and much more."

TCO: total cost of ownership (an estimate of all the direct and indirect costs
involved in 
acquiring and operating a product or system over its lifetime).

NVIDIA TCO is so good that even if competition was free it would not be cheap enough to switch

Timestamps for this Nvidia & Stanford supercut: 00:00 NVIDIA AI Chips Now And In 2029 05:46 Why NVIDIA Has No Real Competition 08:06 Why NVIDIA Will Keep Dominating AI 11:28 Pain & Suffering - Advice for Entrepreneurs 13:09 The Truth Behind Jensen's Leather Jacket











HEIC vs JPEG photo file format

HEIC files: How to create, edit and open them | Adobe

HEIC stands for High Efficiency Image Container. The format is an updated variant of the High Efficiency Image Format (HEIF), traditionally used by Apple across its mobile devices.

Apple uses HEIC for HEIF images. HEIF essentially saves images in higher quality than JPEG while also using less space thanks to advanced compressive technology. This space-saving file format uses High Efficiency Video Coding (HEVC) to compress and store images on device drives — taking up half the space of other image file formats, like JPEGs.

Each HEIC file uses the .heic or .heics extension, depending on the number of images inside. The file also contains the relevant metadata describing each image’s size, resolution, location, and more.







The requirements and main use cases of HEIF were defined in 2013.[4][5] The technical development of the specification took about one and a half years and was finalized in the middle of 2015.[6]

Apple was the first major adopter of the format in 2017 with the introduction of iOS 11 using HEIC variant. While HEIC became the standard for iPhones, it remains possible to revert the settings to allow photos to be recorded in the more recognizable JPEG format.[7]


heic - npm search (javascript modules/libs)

(not for node.js!)


Wednesday, May 01, 2024

Metaprogramming in JavaScript

Metaprogramming - Wikipedia

Metaprogramming is a programming technique in which computer programs have the ability to treat other programs as their data. It means that a program can be designed to read, generate, analyse or transform other programs, and even modify itself while running.

Meta programming - JavaScript | MDN

The Proxy and Reflect objects allow you to intercept and define custom behavior for fundamental language operations (e.g. property lookup, assignment, enumeration, function invocation, etc.). With the help of these two objects you are able to program at the meta level of JavaScript.

 What is Metaprogramming in JavaScript? In English, please. @freeCodeCamp


atapas/js-mtprog: Sample code for Metaprogramming in JavaScript using Proxy, Reflection, Symbol, etc. @GitHub

Arc web browser

Arc browser is now available for Windows and it's so much better than Chrome | ZDNET


Arc from The Browser Company


Arc (web browser) - Wikipedia

Arc aims to act as an operating system for the web and tries to integrate web browsing with built-in applications and features. These include a scrapbook-style "easel", and "boosts", a feature that lets users cosmetically redesign a website in a similar way to browser extensions.[7] As opposed to many other browsers, Arc uses vertical tabs (which can be found in a sidebar). The sidebar contains all of the browser's functionality besides the browsing window. Arc is based on Chromium[5][6] and is written in Swift. It supports Chrome browser extensions, and uses Google Search by default.