Xah Programing Blog

Syntactic obsession, imperative despisal, unicode ♥, hacker hate

Subscribe Feedtwitter me @xah_lee

Xah Programing Blog Archive

Put $5 in my patreon. https://www.patreon.com/xahlee

Heart Beat Watch

Dolby Atmos in Windows 10

with Windows 10, you have a bunch of ad “tiles” popping up on your Win startup menu. One of them is Dolby Atmos.

in the beginning, sound is played back in 1 speaker. Then come stereo. Recorded in 2 channels, play back in 2 speakers. Then, surround, prerecorded 5 channels, 5 speakers. Dolby Atmos is ~128 channels meta info, not pre-recorded. Play back on n-speakers dynamically.

am an ascetic. Stereo is sufficient pleasure. No doubly atoms, i don't have money. thank you.

hackernews flagged me

my article made it to hackernews, but someone flagged it. hohoho https://news.ycombinator.com/item?id=18640340

see my blog elsewhere for pol stuff.

Why I'm Switching from Mac to Windows

added current state of Mac vs Windows vs Linux.

so, phone sell declined for the firs time in 2017. and it's said it's gonna continue to decline. #iphone #android

microSD card vs usb 3 flash drive

how's a microSD card differ from a usb 3 flashdrive, besides the form factor? (i've never used any SD card before) (both MacMini late 2014 and Surface Pro 4 has microSD port)

did my research. basically, always just buy usb 3 drive. There's no reason to buy SD card unless u don't have usb ports or something.

note, when you buy a usb drive, never buy those super cheap ones. (they fake disk size report or low quality electronics) buy from reputable brand only.

SanDisk i can trust. amazon

Mac Mini Late 2014 Spec

#chess this just in. amazing. AlphaZero blows away Stockfish in 1000 games. https://www.chess.com/news/view/updated-alphazero-crushes-stockfish-in-new-1-000-game-match this means, if we have to name 1 best chess computer, it's AlphaZero

See also: Chesss vs Chinese Chess

DisplayPort and the Tech Progress of Electronic Interface

So, there's now DisplayPort and miniDisplayPort. DisplayPort The last video connection tech am somewhat familiar is DVI (digital video interface) year ~2000, the era of switching from analog to digital.

DisplayPort differ by it's the 1st video interface to use packets. Like TCP/IP. That means, it's easily extensible, cables can trivially splice or merge, can be transmitted to USB. Amazing. From analog to digital to packet swarm.

You wonder, are connector tech gonna kept changing every 5 years? what possibly could they change? You thought, finally we have a good connector/interface, but bang, they change again.

Also note, much of port/connector/interface/dongle change are driven by money, of corps and standard orgs. Those have patent royalties justly ask you for $, those don't, sing OpenSource song but gecha with membership fee.

this thing, a usb key, function as a physical key for your online accounts. Not sure how it works. Yubico YubiKey 4 good rating

this one, big laptop backpack, with high rating Inateck 15.6 Inch Laptop Backpack

GUI vs Command Line — a Unified Design (repost)

Go Board Game on Hexagonal and Triangular Grids (old. repost.)

Costs of Computer Language Operations

very impressed by digital pen of surface pro

Microsoft Surface Pro

Microsoft Windows is so stupid. it created a myriad ways of the control panel. There's the classic WinXP interface. Then vista interface. and Windows 10 added another. The best UI is just 1 way to get to an item.

what does airplane mode do exactly

it turns off any radio signal the phone may send: wifi, cell phone, bluetooth, usually also turns off gps. Tip: airplane mode is handy to save battery.

you can put your laptop thru x-ray at airport security check

you can put your laptop thru x-ray at airport security check. phone, laptop, hard drive, flash drive, all ok. Back in 2000, the answer given was no. but i guess we know better now.

Microsoft edge browser blocks Google Chrome browser

lol. when u download Google Chrome on Microsoft Surface, then on launching setup, it says check your internet because SmartScreen cannot be reached and can't decide it's safe to run it.

These bloodsucking corps still, but that nobody raises an eyebrow these days.

Microsoft Surface

swapped my Dell Inspiron 15 7559 amazon with roomate's Surface Pro 4 amazon He needed gaming, i needed portable

Microsoft Surface line seems confusing.

All have touch screen with digital pen (which can hover like mouse point without touching screen) Why introduce the laptop line? also, they are not set apart by price. Price is diff for cpu and ram level. though, they are better than Apple's for sure. there, i fixed your xmas shopping list.

ok. Surface Laptop sucks. See wiki for detail. Surface Laptop Surface Book is good.

Microsoft Surface Pro

base power id system 2018-12-03 31fba
base power id system 2018-12-03 31fba

Math: ID System, Number Base vs Number of Digits

added a calculator.

Chesss vs Chinese Chess

W3C Proposed Icons for Internet before Unicode

minor updates.

implementing basic Mathematica in golang


implementing basic Mathematica in golang. great to learn from.

by the way, full version of Mathematica Wolfram lang is included free with Raspberry Pi. Raspberry Pi Kit that'd be the easiest way to learn a symbolic pattern matching language

mathematica7 expression forms 2014-07-11
mathematica7 expression forms 2014-07-11

here's what Wolfram Language looks like. note the 3 sections are syntactically equivalent. They can be transformed into each other by pressing a button. The last one, FullForm, is pure nesting of the form F[...] like #lisp. see Wolfram Language, Mathematica

plane tiling mathematica 2016-05-04 35001
plane tiling mathematica 2016-05-04 35001

“every developer should buy a copy of Mathematica, because it will expand their mind.” —#Clojure creator Rich Hickey and here's another notebook. Geometry: Plane Tiling Mathematica Package Geometry: Plane Tiling Mathematica Package

in symbolic pattern matching ruled based lang e.g. Mathematica, there is a property. for 20 years, 90s to 2000s, i don't know how to describe it. Now i know. When i first heard of “denotational semantics”, i thought that's it, but its not.

In java etc, they talk about serialization. i.e. Some “object” have a output form that can be read back. Like JavaScript JSON. In symbolic pattern matching lang e.g. Mathematica, basically the whole lang is “serialized”. That IS the ESSENTIAL requirement for symbolic pattern matching.

note that symbolic pattern matching (e.g. Mathematica), in not the same as those pattern matching in #ocaml or #haskell. These are not symbolic. Lisp macro, is symbolic pattern matching, but a extremely limited eedeeatic one.

in other words, in symbolic pattern matching lang, there is (basically) no concept in the lang that produces certain “object” or “compiled internal thing”. Everything, is laid out as text, like JSON.

Another way to say is, in symbolic pattern matching lang, the language is just a collection of literal expression. And its computing model is transforming these textual expressions.

screenshot 2018-11-25 72ee3
from https://twitter.com/eraakasharora

♥. thanks

Programing Language and Its Machine. Intro to Computer Hardware via Anecdotes

Programing Language and Its Machine


Math vs Programing, What-is vs How-to

added example about x==y==z

How to Convert Video

understand ASCII non-printable characters and their representation

ASCII Characters ␀ ␣ ¶

Google web crawler abuse

[More Google Abuse By Dr Neal Krawetz. At https://www.hackerfactor.com/blog/index.php?/archives/823-More-Google-Abuse.html ]

Microsoft Surface Book 2

i would like to have a Microsoft Surface Book 2

golang string, byte slice, rune slice

see Golang: String as Chars

updated Golang: String

golang FindAllStringSubmatchIndex

golang FindAllStringSubmatchIndex 2018-11-22
golang FindAllStringSubmatchIndex 2018-11-22

am now like a #golang master. lol actually, spend 1 hour just to use FindAllStringSubmatchIndex tedious unintuitive nested slice of index pairs thing.

ramdomish repost:

Linux: Add Keyboard Shortcut to Switch App

Russian Keyboard Layout and Programing

Sigil for Function Parameter Names

The Naming of List Things in Computer Languages

Meaning of Object in Computer Languages

#java #python #lisp #JavaScript #perl #Mathematica #php

Erik Naggum, Analogy vs Analysis, and lisp-1 lisp-2 Meaning-Space Erik Naggum, Analogy vs Analysis, and lisp-1 lisp-2 Meaning-Space old rant. 2001 #lisp

big endian or little endian?

little endians should dai. convince me otherwise. the reason big endian is more natural is cuz its compatible to the way we write numbers. three hundred and 1 is written 301, not 103. #linux

well, actually, there is no right answer.

this is similar to issue of notation for polynomial, or date, or first name last name.

For polynomial, x^3+x^2+x^1, the convention puts the most significant term first.

For date, there's yyyy-mm-dd, the most significant on left. But some eediatik country adhere to mm/dd/yyyy

wrote a binary, hexadecimal, converter

binary, hexadecimal, converter

HTTP3 is coming. it'll be using UDP instead of TCP. Currently named QUIC QUIC

See also: TCP/IP Tutorial for Beginner TCP/IP Tutorial for Beginner

aspect ratio, a curious design problem

the aspect ratio, is truly a curious design problem. and problem in implementation too. canvas size problem if you read Wikipedia on aspect ratio, there's a lot to say #svg #css #xahcode

a deep dive into camelCase vs snake_case

creative domain names

in this 2010 article Intro to Video Codecs lots links are ded. One of them is .cx note that coder fashion idts who get creative with domain name. .cx is the earlist e.g. goatse.cx, then deli.cio.us then .io by google itself

2000 is the decade where things unknown to humanity are being seen. 'was, also the rise of 4chan, wikipedia, and caused the downfall of christianity, and rise of rainbow gay power with legality. Due to the uncensored n uncensorable internet. Unbeknownst to us all, this turned around into sensorship

self-reference problem in programing

golang href val problem 2018-11-12 dda3c
golang href val problem 2018-11-12 dda3c

one thing i noticed in past 10 years coding is the self-reference problem. e.g. suppose u design lang string delimiter. say, python """triple quote""" . That's safe enough right? until, you start to process python source code itself.

See also: Computer Language Design: String Syntax

similar problem is, when you use regex to match a regex string. The escape become a problem that is basically unsolvable. i think it's still mathematically possible in general, but practically not. e.g. emacs in cygwin trying to pass regex on file path regex to Windows's .exe

other problems are, html entities encode/decode, and url % encoding/decoding, and especially together e.g. ampersand in url. HTML ampersand is especially nasty. It has the property that it's mathematically impossible to tell if a string is in decoded/encoded state.

it's mathematically impossible to tell if a string is in html ampersand decoded/encoded state, when, your string is html text that discuss ampersand encoding/decoding, e.g. a tutorial of it. You need general AI or human, to tell.

See also: Google Code Prettify and Ampersand Encoding

recommend a svg book?

give my tutorial a try? Practical SVG Tutorial

it's condensed version of svg 1.1 spec covering the practical parts.

otherwise, i recommend https://twitter.com/AmeliasBrain 's books

SVG Essentials: Producing Scalable Vector Graphics with XML 2nd Edition, 2014, by J. David Eisenberg, Amelia Bellamy-Royds Buy at amazon

Using SVG with CSS3 and HTML5: Vector Graphics for Web Design 1st Edition, 2017, by Amelia Bellamy-Royds , Kurt Cagle, Dudley Storey Buy at amazon

she's also the author of svg 2 spec. Svg 2 isn't much adopted afaik.

web dev work

lots work in past 2 weeks on CSS HTML. The tutorial is for quick start. It covers practical cases, concise explanation (without assuming you dummy), from my experience with html since 1995. No jargons, current design fads and jargon words. Xah Web Dev Blog

am wasting my life away

am wasting my life away. must remember, my long term goal, at this end stage of my life, say next 5 years or 10 if am lucky, is to achieve postdoc level of a geometry, and to understand proof systems, n write a compiler of my own lang. Near term goal is to complete js plot lib.

the way am currently running, is that anytime i'd depart this earth. and i don't actually have a plan. but but but btw, that's a painful thing to think about, but it's a matter of philosophy.

JavaScript/DOM String Value Problem and Symbolic Languages

what's digital network audio amplifier?

there is a thing called digital network audio amplifier NAD D 7050 Direct Digital Network Amplifier i thought it's amplifying digital signals, but that doesn't make sense? it seems to do wireless audio, e.g. wireless speakers. How does that work? What protocol is that?

Reading Programing Language Specs

ideal syntax

syntax 2018-11-05 e2911
syntax 2018-11-05 https://twitter.com/TheMichaelBurge/status/1058885000588750848

lol. the last one is the most idiotic. it's spread by OOP fad since 1995, by the likes of java python ruby JavaScript

to understand the details of these syntaxs, see

Python = Pretentious Sheet

dug this up in my file ball. not sure i published it before. Python = Pretentious Sheet reading good!

Unicode Flags 🏁

given 250 country names, can you organize them by neighbors? i just did.

Africa country flags 2018-11-02 1a059
Africa country flags

interesting that most country names in Africa ends in “a”.

eastern euro 2018-11-02 3d33a
eastern euro

most eastern euro country names also ends in “a”.

while doing the Unicode Flags page i get 250 countries and need to identify them. it's a wonder, you goto online map, and dip into street view. and see places of human animals.

Unicode Flags 🏁

Grouping Europe into Regions

i was trying to group flags into regions, unassuming, then, someone from Austria saw what i did, OMG what have you done! loool :D which country is central/eastern euro, it's complicated, really complicated.

just finished properly grouping european countries.

europe flags 2018-11-04 9f8c7
Europe Flags

Unicode Flags 🏁

now, if somebodies complains about the order used, we need to declare war.

red/yellow kiwi, seed of kiwi is pungent

the seed of kiwi, has a sorta pungent taste. you can taste it when it's blended into liquid. and, amazing, amazon sell fresh fruit now buy kiwi

red kiwi yellow kiwi seed 2018-11-04
amazon red kiwi yellow kiwi seed

searching for kiwi seed, maybe chemical or other interesting read, you find red kiwi and yellow kiwi and kiwi seed oil kiwi seed

Chinese Chess

chinese chess 2018-11-04 e2789
chinese chess 2018-11-04 54f8d

象棋,我脑🧠下不过电脑💻气死人😡 am pretty good with Chinese Chess since teens. but i can't beat computer program today.

Play Chinese Chess Online

just deleted my local copy of python 2 and python 3 docs on my site

python doc delete 2018-11-03 0d693
python doc delete 2018-11-03 0d693

i so despise python. and its doc is the worst among languages. see Python Doc Idiocies

Donald Knuth, Steve Jobs, and How Typography Sucks (on its own page)

Steve Job says, computer is bike for the minds?

a friend gave me his used bike. that's far better than $100 at walmart. but now, getting a bike lock, will cost $50. Any advice on bike lock? am looking at this Kryptolok 2 Mini-7 Bike Lock

~2015 i saw a video where young Steve Jobs talked about how human on bicycle is more distance/energy efficient than any animal. eagle or otherwise.

here's the vid https://www.youtube.com/watch?v=KmuP8gsgWb8

here's earlier diff one https://www.youtube.com/watch?v=ob_GX50Za6c (1.5 minutes)

i took a walk for 30 min and monologued about it. Note, bicycle itself won't do. You need paved roads. When you consider paved roads, the energy and effort required, bike then isn't exactly efficient, at all.

once you take paved road into account, then, there's the technology required for paved road. Also, all the precision machinery required for building a bicycle, e.g. gears, rubber on wheels, wire of breaks. that's really effort of thousands years of humanity.

then, the inspiration of “computer is bicycle for the minds” becomes silly. Note, the impetus of video tech are much due 2 pn. Much of Apple's success lies in human vanity. AI is driven by $ and military. $ and power, drives mankind.

Web Spam Farm 2018

The Python Unicode Mess

good articles.

[The Python Unicode Mess By John Goerzen. At https://changelog.complete.org/archives/9938-the-python-unicode-mess ]

and for in depth detail about this, see

[Practical Python porting for systems programmers, version 1.9 By Peter A Donis And Eric S Raymond. At http://www.catb.org/esr/faqs/practical-python-porting/ ]

See also: Python: Unicode Tutorial 🐍

paper ipad screen cover

there is such a thing. “paper screen cover” for ipad. amazon So that, when you use a pen to draw, it has friction like on paper, instead of gliding on glass.

Egyptian Hieroglyph 𓋇


Egyptian Hieroglyph 𓂀

google web font refuse to show in @brave browser

google font https://fonts.google.com/ refuse to show if you are using @brave browser

i never actually use google font. i stick to Arial. I think we should just have 3 basics. serif, sans, mono. Font should be ban'd. and fakwestern alphabetical ignoramus tech geekers. i knew am gonna get lots drivels about this from the hacker types

http://rezich.com/ roboto is nice. it's logical and geometrical and simple, as most google's designs tends to be inhuman. i was thinking of using it few years back but decided don't want to have user download it. and these days, i wouldn't use anything google.

Apple not supporting SVG

it's interesting that Apple is not actively supporting SVG. e.g. there's no default viewer.

See also: Practical SVG Tutorial

my typical daily todo

todo today (this is the typical daily todo for me)

2018-11-01 todo. write about

2018-11-01 finish

need to go thru all links in HTML5 Tags Complete List and make sure all has examples of those none.

HTML5 Tags Complete List

todo mod gen sitemap go script to also add sitemap page Xah Code Sitemap

and math.

Group Theory Notes

2018-11-01 add sidebar Lisp, Python, Perl, Ruby Code to Validate Matching Brackets

fix audio links Lojban and Chinese, A Word A Day

separate into python and perl pages Python, Perl: Script to Check HTML File Size

2018-11-08. to study https://jsfiddle.net/walipini_air/y82usfno/


2018-11-08 write a tutorial on css order

clean up my js curve code

Google auto log you into the Google Chrome

stop using google chrome browser. it auto log you in into Chrome browser. That means, they can track every page you visit. Also, by using Google Chrome, they can track everything you do. But with the auto login, it gives them a legally defendable reason to do so.

[Why I'm done with Chrome By Matthew Green. At https://blog.cryptographyengineering.com/2018/09/23/why-im-leaving-chrome/ ]

i recommend brave browser instead. am using it.

much update

Understand ASCII Control Characters

here's ASCII Table

as scientific programer, I wasn't too familiar with it for the first 10 years coding with Mathematica, in 1990s. Then from 1998 to ~2007, i did java, perl, python, php. Still don't know ascii control sequence much, except line feed (aka newline), form feed, horizontal tab, carriage return.

But as you code more or touch low level issues, you have to know it well. e.g. even in JavaScript golang

why is ascii important? because when you do networking, protocols, terminal, IO, file encoding, or even syntax detail of programing languages, understanding ASCII control sequences becomes critical.

Stack Overflow offline screenshot
Stack Overflow offline screenshot

here's some issues related to ASCII.

note, ASCII is part of Unicode. In utf8 encoding, any file in ASCII encoding is 100% same with utf8, if the file does not contain non-ascii chars such as ∑ α → 😂

note that, the need to understand ASCII is one thing, meanwhile, there are lots programers, typically mono-lang American, who have phobia towards any non-ascii character. They insist, that programing language source code should not contain ANY char that keyboard cannot type directly.

[see Problems of Symbol Congestion in Computer Languages; ASCII Jam vs Unicode]

emacs dev Alan Mackenzie is one such person, and many others in emacs dev list. They, resulted a damage to emacs around 2016. So that now emacs function doc string has the complexity of going thru transformation, instead of “curly quote” directly.

it is Alan Mackenzie, who did the deed. after hundreds of flamewar messages, then, it is Richard Stallman, sealed the damage. rms was not a emacs maintainer at the time, and supposedly he does not have the authority for final decision on anything none political. Maintainer was Stefan Monnier

what's the problem of using some form of encoding for none ascii chars?

Using encoded form is unreadable when you have lots of them. And it adds complexity of a transformation step.

e.g. in math, → ∑ α etc. not → ∑ α etc in html.

or worse in TeX escape or \xhhhh \xhhhhhh in many langs.

or consider euro lang. é and other. Basically, when you have several of that in a sentence, using encoded form is not practical. you have unreadability, and complexity of conversion, which easily go wrong, e.g. encoded/decoded twice.

imagine, if Spanish people had to write niña by niña or ni\x00f1a. Or French has to read télé from télé or t\x00e9l\x00e9. That is what programers who insist on ascii-only source code r asking.

just wrote a profile on my patreon https://www.patreon.com/xahlee thank you all for putting $ there

Great Software for Microsoft Windows ancient list.

as you blog and time marches on, pages become a record of history.

best thing for a nerd fanny pack

when coding JavaScript, do you prefer 'single' or "double" quote for string by default?

vote on twitter


js single vs double quote 2018-10-23 d72c7
js single vs double quote 2018-10-23 d72c7

xahlee info traffic rank 2018-10-23

xahleeinfo traffic rank 2018-10-23 da095
xahleeinfo traffic rank 2018-10-23

climbing the ladder

word of the day is: arduous. #xahwords

to read. erlang tutorial https://learnyousomeerlang.com/starting-out-for-real

support my work. buy yourself a 512GB SSD Buy at amazon

or Put $5 in my patreon. https://www.patreon.com/xahlee

SQLite code of conduct 2018-10-22
SQLite code of conduct 2018-10-22 source https://www.sqlite.org/codeofconduct.html


[Best Ever Paper Airplanes By Norman Schmidt. At Best Ever Paper Airplanes]

Programing Language Idiocy: Bit Operators (on its own page)

Necessity of Operator Overload in Computer Languages (on its own page)

hex screw kit

hex screw kit, so that u can open apple stuff that apple no want u do amazon

w3c dead link


dead links record trail:

when you learn a programing language, do you watch video lecture/presentation?

vote on twitter https://twitter.com/xah_lee/status/1053468710617272321

and, programers, eat walnuts, live forever. buy walnuts you buy, you eat, i live. Yes it's an ad. out of my own volition.

ML stands for?

when i see the abbreviation ML, i think of Meta Language, the grand daddy of SML, CaML, OCaML, FSharp, Clean, Miranda, Haskell. ML were invented for automated theorem proving. Machine learning?? you mean like smart guessing?

brave browser still have the bug, where sometimes the url field shows the url from a different tab

What's Function, What's Operator? (repost)

new book. The Little Typer

new book. The Little Typer The Little Typer, 2018, By Daniel Friedman et al.

Friedman is one of the top lang researcher. He's 74 now. So am not sure he's actually the main author.

Friedman wrote a series of books titled “Little Schemer”, “Little Java”, “Little Prover”, “Little MLer” etc. Daniel P Friedman Books I read Little Java back in 2000. Wasn't comprehensible to me. I never liked these story-telling style books.

why not perl6?

why not perl6 2018-10-16 f026d
why not perl6 2018-10-16 f026d

Proliferation of Computing Languages

What Lib Did You Use? None!

Garabato Kid no plugin bcde6
from Garabato Kid comics. https://twitter.com/garabatokid/

you can buy a slingshot, to shoot down drones slingshot

todo remove reference to python ruby etc at Perl by Example

do same for

on this page Perl Books Survey 2002 make those gz local copy files as html

to read kilo. text editor in 1k lines of c https://github.com/antirez/kilo

it golang https://github.com/bediger4000/kilo-in-go


essay about guido the character Transfer of Power (Guido stepping down as BDFL) https://www.reddit.com/r/Python/comments/8yapie/transfer_of_power_guido_stepping_down_as_bdfl/

esr, on porting reposurgeon from python to golang

great article by esr. on porting reposurgeon from python to golang http://esr.ibiblio.org/?p=8161 reposurgeon is software for converting cvs/svn to git. many points he touched about python and go, i agree. python's future is bleak

many point esr mentioned i concur.

Note that python became popular, when Google decided to use it ~2000. There wasn't much choice. It or perl. Python lost to php ruby for web dev, and to nodejs in late 2000s. Python is popular now because again Google used it in early 2010s for data analysis and machine learning.

python's warts and slowness and parallel computing problems can't be solved by the lang itself. go, crystal, nim, julia, trivially blast python to bits.

typed vs untyped lang

now am of the opinion that programing languages should be typed. (modern system, eg golang. not C, C++, Java). When younger, i thought it should not, cuz i considered typing as by-product of compiler.

in some sense, typing is a unwanted by-product of computer engineering aka compiler. and, it was so, up to 2000. However, with different perspective, a proper type system, is like a good property of logic system. For programing language, it improves correctness, bring clarity.

there are exceptions. e.g. Mathematica (aka wolfram lang), where the computation model mostly is a symbolic term rewriting system. So, typing system does not apply. (btw, lisp is almost the same, except lispers since 1990 are extreme idiots. they r C coders in paren clothing.)

Golang: string match any regexp

Computer Language Popularity, 1997 to 2006

Scripting: Higher Level Programming for the 21st Century

What is Expressiveness in a Computer Language

just removed all disqus comment system on my site. they've become greedy, forcing image ads, in order to survive. but their ads, are the lurid ones.

Google Code Prettify and Ampersand Encoding

Chinese abacus. they have 2 beads on top, 5 below. i never learned their exact function of the “extra” beads. In Taiwan, we grew up with Japanese style, 1 on top, 4 at bottom.


more pic https://twitter.com/Echinanews/status/1050284413504774144

but apparently, the 2 5 setup allows computation with hexadecimal, which is a traditional chinese weight system.

Syntax Design: Python's Indentation vs Nesting

interesting that D lang is still going. “Alexandrescu (i think he's 2nd in D language dev) worked as a research scientist at Facebook, before departing the company in August 2015 in order to focus on developing the D programming language.”

google shutting down google plus

google shutting down google plus, over the next 10 months.

since google began g+ in 2011, i'd say it marks the year google goes evil. then, its worse and worse, starting with greed, to now heavy censorship and explicit and blatant political gaming.

a great sadness to witness google over the decades. we helped google succeed back in 2000, since it was the company that does no evil, different from all others.

Python 3 Adoption

added a realistic survey by jetbrains

old writing, new page. work in progress

Perl: Sort Misc

Perl: Send Email

Programing Problem: Construct a Tree Given Its Edges

Google-code-prettify Example

to read https://getstream.io/blog/how-a-go-program-compiles-down-to-machine-code/

Programing Language and Its Machine (to be expanded)

Chinese spy chip found in Apple Amazon server motherboards, said.



Apple's response https://www.apple.com/newsroom/2018/10/what-businessweek-got-wrong-about-apple/

Amazon's response https://aws.amazon.com/blogs/security/setting-the-record-straight-on-bloomberg-businessweeks-erroneous-article/

stupid ipad. i have a old ipad. when viewing some page , requiring 100+ pushes to scroll down. Is there a way to drag the scroll bar?

on android, when u swipe fast, the page flies like on wheels. On iPad iOS, it's like stuck in some viscous shet. i think iOS UI is idiotic.

ImageMagick Tutorial (minor update)

programing language speed comparison

interesting. look at golang, the optimized version at bottom, beats all. and look at how slow are python ruby php.

Recursive fibonacci benchmark using top languages on GitHub


Firefox error dino 2018-09-28 d97ae
Firefox error dino 2018-09-28 d97ae

i can't tell wtf is that.

Interview with Bill Joy (creator of vi)

this is what online forum looks like, before Facebook


biological computer, dna, molecules

i took a microbiology class in 1996 or so, of things like the vid is talking about. understand cells, what's inside, what they do, how they work.

DNA animations by wehi.tv for science-art exhibition

The molecules, when a bunch of them are together, they bind in a specific way, some like that. gazillions megalions at the same time. This is what is meant by biological computer. mega parallel.

Biological computing

in 1990s, i recall Knuth said computing/algorithm is not interesting cuz it's already filled. and biology is far more interesting. That remark lodged in my mind. I now doubt it, but still, biology is fascinating. I think, to me, beats physics actually.

Project Code Rush - The Beginnings of Netscape / Mozilla Documentary

memories. this is where i live. Netscape headquarter was just 15 min walk away.

the verge pushing sj, building a PC

verge build pc wrong 2018-09-16 164db
verge build pc wrong 2018-09-16 164db

theverge dot com pushing sj. the video is here https://www.youtube.com/watch?v=jciJ39djxC4

Buy Xah Code

xahlee info git stat 2018-09-16 2f3ea
xahlee info git stat 2018-09-16 2f3ea

http://xahlee.info/ is now 16.4k files, 1.2 GiB. 5k html pages of math and code and history of the hacker cult. Take 4 years to read it, and you'll be a doctor of philosophy. You, buy it now!

Golang: System Call

Fundamental Problems of Lisp

Lenovo Yoga 720 laptop. good.

buy Lenovo Yoga 720

DuckDuckGo = lack luster

now half of the time i search something, @DuckDuckGo gives me this error:

If this error persists, please let us know: error-lite@duckduckgo.com

DuckDuckGo error 2018-09-13 2bef9
DuckDuckGo error 2018-09-13

(this happens when I'm using brave browser with JavaScript off by default, and ddg as default search)

am thinking abandoning it.

duckduckgo is such that, if you search for something easy, something typically you'd expect from 1st result, then u get what u want. But any slightly rare search, or research, its lack luster. you resort back to google.

DuckDuckGo error fixed 2018-09-14 7baff
DuckDuckGo error fixed 2018-09-14 https://twitter.com/DuckDuckGo/status/1040568066944495616

OCAML's Official Tutorial Blatantly Suck

finally fixed.

Atom/RSS Reader Bug, Relative Link

Apache Rewrites History: Why is it Named “Apache”?

History of Angular.js

is there a JavaScript util similar to golang's gofmt? note, i want it to be able to cut long lines of code. e.g. if entire code is in 1 line, make it multiple lines with indentation.

const declaration, for programer or for compiler?

in JavaScript and golang, there's “const” declaration. Am starting to think, it's more used as programer guide than for compiler, because compiler most of the time would automatically optimize var that doesn't change. Is this true?

don't use Google Chrome browser

these days i don't use Chrome except ONLY for google account. The google browser, can trivial do things even if u turn off all cookies and javascript and don't login to any site. Nobody would know except google.

context, google chrome posting about it's 10 year anniversary. https://twitter.com/googlechrome/status/1037038838550601734

unicode subscript 2018-09-04 7e36e
there's no subscript d in unicode. Unicode Math Symbols ∑ ∫ π² ∞ Unicode Math Symbols ∑ ∫ π² ∞

[There is no pass-by-reference in Go By Dave Cheney. At https://dave.cheney.net/2017/04/29/there-is-no-pass-by-reference-in-go ]

This is a great article. Apparently, that guy blog a lot about golang, seems to be a go expert.

golang, should i return big string or save it to a var pointer?

am wondering if i should do outBytes=genSiteMap(inDir) or genSiteMap(inDir, &outBytes) the 2nd ceases to be function programing, but i guess is more traditional C C++ D go stuff. Give me your opinion.

design of how to deal with errors in programing languages

[The Error Model By Joe Duffy. At http://joeduffyblog.com/2016/02/07/the-error-model/ ]

seems a great article.

Franz Lisp, number 1 commercial implementation of Common Lisp

Franz Lisp, still alive! It was, or still is, the number 1 commercial implementation of Common Lisp.


Unicode Box Lines ┌ Blocks ▓ major update

programing languages ranked by ease of learning

cutting thru golang like a chainsaw thru snow! smooth. of langs, similar experience is php. And worst is python. for ease of learning to practical depth, the order is: golang ≻ php ≻ python ≻ JavaScript ≻ perl ≻ clojure ≻ java

golang is definitely more verbose than python or ruby. For language verbosity, the order is roughly this: C ≻ java ≻ golang ≻ JavaScript ≻ php ≻ python ≻ clojure ≻ perl ≻ Mathematica

python is a lang against functional programing, worse than perl.

everytime i say it, some python fanboy will counter, python support functional programing. Right, it does, like every lang do. But in practice, even the lambda is crippled. And if you use functional programing libs, other coder looks at you funny.

Syntactic Meaning of Variable

2018-12-05 finish reading the scott cpu video and other reading Programing Language and Its Machine

2018-12-05 todo send out emacs tutorial

2018-12-03 todo elisp html, write function that get innerText

2018-12-03 todo elisp html, write function that get attribute value (xah-html-get-attribute attrName)

2018-12-05 todo put the burma page on its own.

2018-12-05 todo maybe improve Great Math Board Game Software twitter it

2018-12-05 todo. maybe better English Vocabulary for SAT, GRE

2018-12-05 todo put the amharic language on its own page Wordy Blog 2016-01

2018-11-21 todo

3 hours js play index xah js play index

to read [Overcoming Artificial Stupidity By Stephen Wolfram. At https://blog.stephenwolfram.com/2012/04/overcoming-artificial-stupidity/ ]

2018-11-15 todo read about css cascade order. write tutorial

2018-11-08 todo golang, change the replace.go script so it reports changes

2018-11-13 todo. use js to prevent right click. on chinese chess page. also make the button larger.

2018-11-13 rip Macross Plus “Information High”

2018-11-13 todo emacs, make the xah html mode, tag insert command, to not prompt, but instert class id etc directly.

2018-11-15 todo

prevent text selection

body {user-select: none;}


2018-12-07 todo https://www.williamjbowman.com/blog/2018/01/19/untyped programs don t exist/

Windows Subsystem for Linux

2018-11-26 to read https://stackoverflow.com/questions/22054578/how-to-run-a-program-without-an-operating-system/32483545#32483545

2018-11-27 https://www.syfy.com/syfywire/amazing-time-lapse-video-of-a-rocket-launch-seen-from-space

2018-11-27 http://kitchingroup.cheme.cmu.edu/blog/2018/11/16/Line-integrals-in-Python-with-autograd/

Xah Programing Blog Archive

If you have a question, put $5 at patreon and message me.