Saturday, April 30, 2022

Live Reloading Go (web) Apps

5 Ways to Live Reloading Go Applications - Tech Inscribed

go get -u


docker run -it --rm -w <WORKING_DIR> -v <PROJECT_FOLDER>:<MOUNT_POINT> -p <HOST_PORT>:<CONTAINER_PORT> cosmtrek/air


go get
gin --appPort 5000 --port 3000


npm install -g nodemon
nodemon --exec go run main.go --signal SIGTERM


go get

Thursday, April 28, 2022

Lunr.js vs Solr vs ElasticSearch vs OpenSearch

lunr.js: "search made simple"

Lunr: A bit like Solr, but much smaller and not as bright

lunr - npm

olivernn/lunr.js: A bit like Solr, but much smaller and not as bright @GitHub

  • Full text search support for 14 languages
  • Boost terms at query time or boost entire documents at index time
  • Scope searches to specific fields
  • Fuzzy term matching with wildcards or edit distance

Solr (pronounced "solar") is an open-source enterprise-search platform, written in Java. Its major features include full-text search, hit highlighting, faceted search, real-time indexing, dynamic clustering, database integration, NoSQL features[2] and rich document (e.g., Word, PDF) handling. Providing distributed search and index replication, Solr is designed for scalability and fault tolerance.[3] Solr is widely used for enterprise search and analytics use cases and has an active development community and regular releases.

Solr runs as a standalone full-text search server. It uses the Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it usable from most popular programming languages. Solr's external configuration allows it to be tailored to many types of applications without Java coding, and it has a plugin architecture to support more advanced customization.

Lucene is widely used as a standard foundation for non-research search applications.(Java)
Lucene has been ported to other programming languages including Object Pascal, Perl, C#, C++, Python, Ruby and PHP

He founded Lucene...  and co-founded Apache Hadoop

The main difference between Solr and Elasticsearch is that Solr is a completely open-source search engine. Whereas Elasticsearch though open source is still managed by Elastic’s employees. Solr supports text search while Elasticsearch is mainly used for analytical querying, filtering, and grouping.

web performance tools

podcast & links:

 Enabling performance-centric engineering orgs featuring Dan Shappir (JS Party #216) |> Changelog

Tuesday, April 26, 2022

Neovim IDE; Lua language; MessagePack data

Home - Neovim

hyperextensible Vim-based text editor
  • API is first-class: discoverable, versioned, documented.
  • MessagePack structured communication enables extensions in any language.
  • Remote plugins run as co-processes, safely and asynchronously.
  • GUIs, IDEs, web browsers can --embed Neovim as an editor or script host
Vim (text editor) - Wikipedia

a Dutch computer programmer and an active member of the open-source software community. He is the original author, maintainer, release manager, and benevolent dictator for life of Vim,[1] a vi-derivative text editor that is very popular among programmers and power users. From July 2006 until September 2021 Moolenaar was employed by Google working in the Zürich office.

  • Modern GUIs
  • API access from any language including C/C++, C#, Clojure, D, Elixir, Go, Haskell, Java, JavaScript/Node.js, Julia, Lisp, Lua, Perl, Python, Racket, Ruby, Rust
  • Embedded, scriptable terminal emulator

Neovim has many benefits over Vim, and has been applying pressure on Vim for years to improve its own development and codebase. Nvim has first class support for Lua outside of Vimscript, which has enabled a lot of people to write more powerful plugins.

MessagePack: It's like JSON. but fast and small

MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON. But it's faster and smaller. Small integers are encoded into a single byte, and typical short strings require only one extra byte in addition to the strings themselves.

"MessagePack is more compact than JSON, but imposes limitations on array and integer sizes. On the other hand, it allows binary data and non-UTF-8 encoded strings. In JSON, map keys have to be strings, but in MessagePack there is no such limitation and any type can be a map key, including types like maps and arrays, and, like YAML, numbers.

Compared to BSON, MessagePack is more space-efficient. BSON is designed for fast in-memory manipulation, whereas MessagePack is designed for efficient transmission over the wire. For example, BSON requires null terminators at the end of all strings and inserts string indexes for list elements, while MessagePack doesn't. BSON represents both arrays and maps internally as documents, which are maps, where an array is a map with keys as decimal strings counting up from 0. MessagePack on the other hand represents both maps and arrays as arrays, where each map key-value pair is contiguous, making odd items keys and even items values.

The Protocol Buffers format aims to be compact and is on par with MessagePack. However, while JSON and MessagePack aim to serialize arbitrary data structures with type tags, Protocol Buffers require a schema to define the data types. Protocol Buffers compiler creates boilerplate code in the target language to facilitate integration of serialization into the application code; MessagePack returns only a dynamically typed data structure and provides no automatic structure checks."

Py Sunfish Chess => GoLang

Let's write a tiny chess engine in Go

"porting the sunfish chess engine to Go. Sunfish is notable for its simplicity and small size, while still being capable of playing decent chess.

full code of the engine at (the name comes from latin species name of Gopher rockfish).

If you are interested in small chess engines, I strongly recommend playing with sunfish. Also, sunfish was based on Micromax engine, which has a wonderful documentation by his author, definitely worth reading."

While this Go implementation works, there are a few issues that need attention, can not be used as-is (i.e. start K-Q position needs to be swapped, etc.)

Monday, April 25, 2022

Elon Musk += Twitter - $44B

 Musk gets Twitter for $44 billion, to cheers and fears of 'free speech' plan | Reuters

"Musk wants Twitter's algorithm for prioritizing tweets to be public and objects to giving too much power on the service to corporations that advertise.

Musk has also advocated user-friendly tweaks to the service, such as an edit button and defeating "spam bots" that send overwhelming amounts of unwanted tweets."

Automated Chessboard + Micro Max chess sw

10 Steps (with Pictures) - Instructables

For this project, the Micro Max chess program from H.G. Muller and ported for Arduino by Diego Cueva was preferred. It is a very smart, efficient and it is particularly small (<2kB).

Spitfire1900/umax: MicroMax (umax) small chess engine


micromax_mac/micromax.c at master · silitho/micromax_mac

Sunday, April 24, 2022

AWS Game => Skills?

Amazon's new role-playing game can help you build your AWS skills | TechRadar

"Designed by AWS Training and Certification, AWS Cloud Quest aims to help adult learners gain practical AWS experience. To beat the game, learners will need to complete quests that build cloud skills while helping the 3D world's citizens build a better city. Gameplay includes videos, quizzes and hands-on exercises based on real-world business scenarios."

AWS Skill Builder

While there are AWS classes on various online training planforms, and while they do provide correct and useful information, the style of provided training is usually less than optimal... Amazon may do better by supporting independent trainers with less internal bias. The complexity that may be "natural" on scale of Amazon is not quite applicable for most of its customers....

Saturday, April 23, 2022

NVIDIA amazing story

Nvidia: The GPU Company (1993-2006) | History and Strategy | Deep Podcast Case Studies

"He wears signature leather jackets. He can bench press more than you. He makes cars that drive themselves. He’s cheated death — both corporate and personal — too many times to count, and he runs the 8th most valuable company in the world. Nope, he’s not Elon Musk, he’s Jensen Huang — the most badass CEO in semiconductor history. Today we tell the first chapter of his and Nvidia’s incredible story. You’ll want to buckle up for this one!"

Nvidia: The Machine Learning Company (2006-2022) | History and Strategy | Deep Podcast Case Studies

"By 2012, NVIDIA was on a decade-long road to nowhere. Or so most rational observers of the company thought. CEO Jensen Huang was plowing all the cash from the company’s gaming business into building a highly speculative platform with few clear use cases and no obviously large market opportunity. And then... a miracle happened. A miracle that led not only to Nvidia becoming the 8th largest market cap company in the world, but also nearly every internet and technology innovation that’s happened in the decade since. Machines learned how to learn. And they learned it... on Nvidia."

An Interview with Nvidia CEO Jensen Huang about Manufacturing Intelligence – Stratechery by Ben Thompson

Nvidia - Wikipedia

Jensen Huang - Wikipedia

JavaScript ML

StephenGrider/MLKits: Starter projects for machine learning

with "Plinko" game visualization

Machine Learning with Javascript @Udemy

"ML with Javascript is just plain easier to learn than with Python. Although it is immensely popular, Python is an 'expressive' language, which is a code-word that means 'a confusing language'. A single line of Python can contain a tremendous amount of functionality; this is great when you understand the language and the subject matter, but not so much when you're trying to learn a brand new topic."

Friday, April 22, 2022

GoLang: big math lib

big package - math/big -

Package big implements arbitrary-precision arithmetic (big numbers). The following numeric types are supported:

Int    signed integers
Rat    rational numbers
Float  floating-point numbers

Thursday, April 21, 2022

AWS: move DB by using Multi-AZ deployment

Move an Amazon RDS DB instance from a public subnet to private subnet in the same VPC

want to move my DB instance from a public to a private subnet within the same VPC, and make my DB instance completely private:
  • Avoids the need to create a new DB instance
  • Avoids using the snapshot-restore process
  • Minimizes the downtime
Enable Multi-AZ on your DB instance

Reboot your DB instance with failover and disable Multi-AZ deployment

Saturday, April 16, 2022

Rust on Windows with WSL2 and VS Code

Install Rust - Rust Programming Language

open WSL2 (i.e. Ubuntu) terminal

> curl --proto '=https' --tlsv1.2 -sSf | sh
> sudo apt-get update
> sudo apt install build-essential
> cargo new rust_test
> cargo run
> code .

Friday, April 15, 2022

Javascript Byte Code

Javascript - Byte Code - YouTube

> node --print-bytecode --print-bytecode-filter=add2numbers

How to get JavaScript bytecode from Node.js and V8 in 2019 | by Drag13 | Medium

Node.js Under the Hood #8 - Understanding Bytecodes - DEV Community

How to Compile Node.js Code Using Bytenode? | HackerNoon

Franziska Hinkelmann, Ph.D

Saylor Academy: free college-level education

Saylor Academy

Saylor Academy - Wikipedia

On its website, the foundation offers 317 free, college-level courses, which are selected as typical courses in high enrollment majors at traditional U.S. colleges.[3] Content is accessible without needing to register or log into the website, however an account is required to gain access to final exams, and a free certificate of completion.[1]

The foundation works with consultants to design the courses, typically university and college faculty members or subject experts The consultant develops a blueprint for the course, then researches open educational resources (OER) to supply the course with lectures, texts, and other resources. If suitable texts and documents are not found, the foundation works with faculty to compile new materials which it releases to the OER community under a Creative Commons license.[4] Each course is accompanied by an assessment.[1]

by Michael J. Saylor - Wikipedia

Business Intelligence & Analytics Solutions The Mobile Wave: How Mobile Intelligence Will Change Everything: 9781593157203: Saylor, Michael J.: Books

Michael Saylor: Bitcoin, Inflation, and the Future of Money | Lex Fridman Podcast #276 - YouTube

#276 - Michael Saylor: Bitcoin, Inflation, and the Future of Money | Lex Fridman Podcast

Michael Saylor Keynote - YouTube

"move from fragile to agile" world:
try quickly, and then try something else if this does not work

"it does not need to be perfect, it just needs to work to advance civilization"

Michael J. Saylor Keynote - YouTube

we have much more computing power and content now than 20 years ago

we have much less attention now

Michael Saylor's MASTERCLASS in Cryptocurrency Investing and the Future of BITCOIN - YouTube

Tuesday, April 12, 2022

Monday, April 11, 2022

AWS Lambda Function URLs

AWS Introduces Lambda Function URLs to Simplify Serverless Deployments

general availability of Lambda Function URLs, a feature that lets developers directly configure a HTTPS endpoint and CORS headers for a Lambda function without provisioning other services.

With the new feature developers can avoid relying on the Amazon API Gateway or the Application Load Balancer to map a Lambda function to a HTTP call. Each function URL is globally unique and can be associated with a function’s alias or the function’s ARN, implicitly invoking the latest version

Lambda URL - Pricing per million requests:
- Rest API (first 333 mil) = $3.5
- HTTP API (first 300 mil) = $1.0
- Lambda URL = Free
- CloudFront proxying to Lambda URL = ~ $1.0 to $1.2

IPFS (Interplanetary File System)

introduction to IPFS (Interplanetary File System) and it's relevance to Web3, NFT's and Blockchain - YouTube by Chris Hay

IPFS Powers the Distributed Web (//

IPFS @GitHub (Go, JS)

IPFS Support in Brave | Brave Browser (supports IPFS)

IPFS Gateway · Cloudflare Distributed Web Gateway docs (serving IPFS)

Cloudflare goes InterPlanetary - Introducing Cloudflare’s IPFS Gateway

OpenSea, the largest NFT marketplace (using IPFS)

Pinata | Your Home for NFT Media (hosting IPFS)

Amazon / AWS CICD Pipelines

very informative interview about internal CICD in Amazon and AWS

 Clare Liguori on Automating Safe and “Hands-Off” Deployments at AWS

Wednesday, April 06, 2022

Lisp => GoLang

 codr7/g-fu: Lisp 2 Go @GitHub

g-fu is a pragmatic Lisp developed and embedded in Go.

Tuesday, April 05, 2022

Docker dev environments, Lisp and others

Docker images for many dev environments / prog languages;
in particular useful for Windows users

Explore Docker's Container Image Repository | Docker Hub

CodeSignal/dockerfiles: Dockerfiles for CodeSignal user code execution @GitHub

codesignal/lisp - Docker Image | Docker Hub


(defun fib (n)
  "Naive recursive computation of the nth element of the Fibonacci sequence"
  (check-type n (integer 0 *))
  (if (< n 2) n
      (+ (fib (1- n)) (fib (- n 2)))))

> docker run --rm -v ${PWD}:/lisp  -it codesignal/lisp:v10.0.0

# cd /lisp
# clisp
[1]> (+ 1 2)
[2](load 'fib.lisp)
[3](fib 8)
# exit

created by CodeSignal for Technical Interview and Assessment Solutions

useful VS Code plugin

Amazon => space internet?

 Jeff Bezos and Amazon just hired everybody but SpaceX for Project Kuiper | Ars Technica

Amazon announced launch agreements with the following companies as it seeks to build out its constellation of 3,236 satellites:
  • Arianespace: 18 launches of Europe's new Ariane 6 rocket
  • Blue Origin: 12 launches of the company's New Glenn rocket, with options for 15 additional launches
  • United Launch Alliance: 38 launches of the company's Vulcan rocket
  • final nine Atlas V rocket launches from United Launch Alliance

Monday, April 04, 2022

mini Lisp in TypeScript

nukata/lisp-in-typescript: A Common Lisp-like Lisp-1 in TypeScript with TCO and partially hygienic macros @GitHub

This is a Lisp interpreter compatible with lisp-in-dartlisp-in-cs and lisp-in-go.

another one:

Indy9000/lisper: Lisp Parser Interpreter written in TypeScript @GitHub

test('factorial(5)', () => {
  const t = ParseList(`
    (defn main ()
      (defn factorial (n)
        (if (== n 0)
          (* n (factorial (- n 1)))
      (factorial 5)
  const actual = Run(t)

TypeScript: Live Coding a Lisp Interpreter from scratch (Part 1) - YouTube

Sunday, April 03, 2022

book: The Art of WebAssembly

ArtofWebAssembly_chapter2.pdf (WAT basiscs)

The Art of WebAssembly @OReilly Learning

The Art of WebAssembly | No Starch Press

battlelinegames/ArtOfWasm: Code repo for "The Art of WebAssembly" by Rick Battagline @GitHub

Wasm Book

Language Parsing in JavaScript

 Parsing in JavaScript: all the tools and libraries you can use @ strumenta

Chomsky hierarchy - Wikipedia

  - Antlr (

  - PegJS (

  - Nearley (

PEG.js – Parser Generator for JavaScript

Ohm: Parsing Made Easy – Nextjournal

Implementing a Simple Compiler on 25 Lines of JavaScript · Minko Gechev's blog

Casual Parsing in JavaScript | Brandon's Website

JSON Parser with JavaScript | Tan Li Hau

Write a parser with JavaScript | Hacker News

j-s-n/WebBS: A toy language that compiles to WebAssembly


The Art of Computer Programming by Donald Knuth

excellent podcast interview at ACM ByteCast with Donald Knuth

Don Knuth's Home Page @ Stanford

Literate programming - Wikipedia knuthweb.pdf

The Art of Computer Programming (TAOCP)

At the end of 1999, these books were named among the best twelve physical-science monographs of the century by American Scientist,

The bible of all fundamental algorithms and the work that taught many of today’s software developers most of what they know about computer programming.

22 videos

Music art by Donald Knuth

Fantasia Apocalyptica is a multimedia work for pipe organ, accompanied by several video tracks. It can be regarded as a somewhat literal translation of the Biblical book of Revelation into music.

Saturday, April 02, 2022


 GTC 2022 Keynote with NVIDIA CEO Jensen Huang - YouTube

NVIDIA Instant NeRF: NVIDIA Research Turns 2D Photos Into 3D Scenes in the Blink of an AI - YouTube

NeRF Research Turns 2D Photos Into 3D Scenes | NVIDIA Blog

NVIDIA’s New AI: Wow, Instant Neural Graphics! 🤖 - YouTube

wisdom: Brian Kernighan

Wisdom from 50+ years in software featuring Brian Kernighan (The Changelog #484) |> Changelog

podcast  conversation with Brian Kernighan! Brian’s been in the software game since the beginning of Unix. Yes, he was there at Bell Labs when it all began. And he is still at it today, writing books and teaching the next generation at Princeton.

... about the birth of Unix, Ken Thompson’s unique skillset, why Brian thinks C has stood the test of time, his thoughts on modern languages like Go and Rust, what’s changed in 50 years of software, what makes platforms like Unix and the web so powerful, his take as a professor on the trend of programmers skipping the university track...
suggested content:

Books @ O'Reilly Learning: