Xah Programing Blog
Microsoft Windows
net help
net use * /delete
net session /delete
perl cult
- Perl Books Survey 2002
- Perl One-Liner Screw
- Perl: Theory vs Practice
- Theory vs Practice Voodoo
- Laziness, Perl, and Larry Wall
- Larry Wall and Cults
- Perl's raison d'Γͺtre
- On the Survival Strategies of Larry Wall vs Richard Stallman
- Text Processing: Emacs Lisp vs Perl
- What is Expressiveness in Programing Languages
now full Table of Contents.

Bend Language

ollama. ai bot install
- ollama. very nice.
- thx to frenzie.
- gonna install deepseek and flux soon, livestream it.

xah lee web, ten thousand files, tag for tag
- ten thousand html files.
- written manually, tag for tag, char for char.
- since 1997.
- https://x.com/xah_lee/status/1914825678115234225

- btw, the change is this.
- from:
<meta name=viewport β¦ />
- to:
<meta name="viewport" β¦ />
- a nasty thing Apple introduced, late milen dolts bought.
- for programing language designers.
- it is interesting to compare the string quote syntax design of different languages
- here's a short annotation.
- emacs lisp string. most primitive.
- only one form of string "abc".
- everything needs backslash.
- no embed variable.
- Elisp: String
- Wolfram language string, follows lisp tradition. only one form.
- Wolfram: String
- Perl String has many forms.
- 'single' is verbatim.
- "double" can embed variable, and has backslash escape.
- but it also have q, qq, with almost any character as delimiter.
- and finally it has heredoc, using random char sequence as delimiter, to allow quoting any text sans worry.
- Perl: Quote Strings
- PHP follows perl design.
- PHP: String Syntax
- Ruby follows perl design.
- Ruby: Quote String
- PowerShell follows basic perl design.
- 'single' is verbatim.
- "double" has escape and embed variable. but escape uses backtick instead backslash.
- PowerShell: String
- Golang String.
- "double quote" has backslash escape. no embed variable.
- `backtick quote` is verbatim.
- Golang: String
- JavaScript String is the worst.
- "QUOTATION MARK" β literal newline char not allowed. has backslash escape.
- 'APOSTROPHE quote' β basically same as QUOTATION MARK quote.
- after 20 years, in 2015, they fixed by adding
- `GRAVE ACCENT quote`.
- JS: Quote String
- Python String is a confuse ball.
- you got "double" , 'single', which means the same. does not allow multiple lines.
- then you got """triple double""", '''triple single''', which can have multiple lines.
- no here doc. no embed variable.
- then you got a bunch of string prefx chars, u for unicode, b for byte, r for raw, and f is added few years ago for format. these prefix can be combined.
- Python: Quote String
- Fsharp String.
- "quotation mark quote", has backslash escape.
- """triple quotation mark quote""", is verbatim.
- at sign @ prefix makes it verbatim.
- dollar sign $ prefix makes embed variable or expression.
- Fsharp: String
what's a transducer in clojure

- the reason am learning fsharp is that:
- how immutable list, hashtable, etc works for real-life software needs. (e.g. the O in OCAML)
- i still no understand how oop works in fp,
- learn pattern matching in a f lang. how it compared to Wolfram language. (seems, no comparison at all. they are a magnitude lesser then patterns in Wolfram)
massive update
- PowerShell: Regular Expression Operators
- PowerShell: Regular Expression Operators
- π PowerShell: Regex Result ($Matches)
Wolfram language, turning an expression to function.

this is is a technique, of turning an expression to function.
useful because usually math functions are expressed as an expression.
For example, to plot a parabola, you write
Plot[{x, x^2}, {x,-2,2}]
instead of
Plot[{ Function[x, x], Function[x, x^2]}, {-2,2}]
however, formally, the formula for parametric plane curves are two functions. so
{ Function[x, x], Function[x, x^2]}
is actually more correct.
more traditionally written as
x = Function[x, x]
y = Function[x, x^2]
but traditional math notation does not have a way to represent a anonymous function.
so traditionally its written as:
x = fx
y = fy
fx(x) = x
fy(x) = x^2
in traditional math notation, function definition is usually written as an expression, with indication of which symbol is the function's formal parameter.
Clear[ ff ] ff[xxpr_, {xvar_, tmin_, tmax_}] := Function[xvar, xxpr]
topic or related
fuck the fsharp, got the indentation disease from python idiots.

massive. the importance of syntax.
Syntax is the most important aspect of a programing language
The quality of a programing language, can be judged by how much of it can be explained by its syntax alone.
- Why Syntax is More Important Than Semantics
- Formal Definition of Systematic Grammar
- Grammar Complexity of Conlang and Complang
- Composable Syntax
- Syntax Algebra
- Syntactic Meaning of Variable
- OCaml Syntax Sucks
- Problem of Expressive Programing Languages
- Variable Naming: English Words Considered Harmful
- Parameter names start with phi Ο, variable names start with xi ΞΎ
- The Sigil War, Syntactic Indicator for Types of Function and Variable (2016)
- Elisp: DOLLAR SIGN $ and AT SIGN @ in Variable Name
- Predicate in Programing Languages and Naming
- Perl: Variable Name Prefix (aka Sigil)
- Ruby: Variable Name Conventions
- PowerShell: Automatic Variables
- Clojure: Variable Name Conventions
- best programing language are:
- golang β industrial, general, jobs
- fsharp β industrial, for functional programing
- Wolfram language β most powerful
- emacs lisp β most powerful for text processing
- worst shit are:
- c β bit diddling
- cpp β bit diddling with warts
- d β failed wart
- you have no choice langs:
- python β due to mob
- JavaScript β basically only choice on web
- java β boring enterprise jobs
- PowerShell β must on Microsoft
- bash β must for linux admin, scripts
- cpp β gamer dolts
- mid brain langs:
- rust β bit diddling with piss
- python β brainless zoomer jobs
- perl β for slobs
- haskell β understand nothing but holier than thou
- scheme lisp β going nowhere anytime
- common lisp β obsolete fart
- clojure β elegance intertwined with java shit
- finally, found the author
- UNIX Philosophy, Fast Food the UNIX way
- written in 1983.
- thanks to, someone on twitter (see my replies)
- unix, the crime of humanity
- brainwashed a few gen of coders
- and hogged the progress of cpu for 3 decades
PowerShell Firewall vs Unix Shit

- studying windows firewall in powershell.
- very complex, but very well documented.
- in contrast, on linux bsd, is one fucked up fuck.
- i spend a month studying linux firewall and document it in 2013.
- this is, the best iptable documentation.
- Linux: Firewall, iptables Tutorial
- powershell, is ten times better than the unix linux bash fuck.
- actually consistant, useful, syntax summary.
- fuck, the C and unix fuckheads, that damaged computing industry for 3 decades.

A Short History of Open Source Movement
- open source origin is fsf, the free software foundation, in 80s, by richard stallman.
- in around 1998, it got robbed by esr (Eric S Rayman and other) to form a faction called open source, on the pretext that open source is more friendly to commercial corps.
- the 2 camp r enemies, to this day.
- (but most people since 2010 have no idea, thinking they are same.)
- richard stallman gets very angry and batshit if you by mistake thank him for βopen sourceβ movement.
- by the way, it's on YouTube, but these days you can't find it become google is rotten.
- you can find it on my website...
- then, around 2010, open source became entirely taken over by deep usa controlled mega corps.
- today, basically 99.99% of open source, are funded, and controlled, by for profit giant corps, eg google facebook microsoft.
- thus code of conduct etc.
- the harm is too many to list.
- one of them is that it completely robbed social power of coders, which is the most critical profession for advancing a nation.
- now, either you work for a for money corp, have comfy living, conform to what they say, or you become jobless.
Stop The Open Source And Free Software Foundation Skam.
- If you are a open source activist, and you get your money from a company that's not 100% open source, you are a skum.
- Note: this applies to not average open source proponent.
- because like a lot pol movements (e.g. lgbtqtrans blm communism etc), lots youths don't know better.
- but applies to severe type, like activists, constantly promoting it.
- If you insist on this, you might want to unfollow me.
- I have been a fsf fanatic, in late 90s.
- Done lots livestream about it. Too many story to tell.
- But it's helpless in social network era, especially with the zoomer dolts.
- If you are really good man of peace and share mentality, simply put your code free.
- For legality, say it's public domain. That's it.
- You don't even need any license.
- Lots people especially in scientific community did this before fsf before open source, and i did it for all my Wolfram language and perl code in 90s.
China AI Bot Deepseek
- 1 tera usd gone, in a day
- amazing
- just because, china released a ai chatbot, open source n open weights.
- deepseek

What is this model?
- Deepseek R1 is a 671B mixture of experts model with "reasoning block" in inference where 37B params are activated on inference.
- It has 128K context length.
Is this model good?
- yes, but it's inferior to other top models in some aspects.
Is this model good for everything?
- no. it's not good for function calling, multi-turn conversations, json output and some other aspects.
What is interesting about this model?
- Deepseek claims that it tooks significantly less money to train than other top models. You can read the paper about their approach to training model.
- MIT licensed open weights. It's one of the largest and strongest models with open weights.
- It's one of the rare models that generates a "reasoning block" in response and trained specifically for it.
- my questions.
- what's βexpert modelβ, βreasoning blockβ
- 37B params are active. not sure i understand this. what does it mean technically how some nodes are active?
- what's function calling?
- open weight. great idea.
- why did they release it as open weights?
- this seems critical.
- did china do that to basically just collapse openai chatgpt?
Programing Language Rant on C
- the only reason C exist today, is meme.
- C today, is a chad meme.
- its convoluted nature makes it the real man's lang.
- C always has air of real man's lang, like unix.
- Anything that's difficult to use, gets that air.
- so, u wanna be a real man? use C, unix.
- that was the saying, since 30 years ago.
- the style of saying that, changed a bit over the decade.
- c and cpp, both, are the worst skums in the universe
- began, with c
- and cpp, is just let's ride c and make me popular
- and they together, breeds the intel chips skam
- so for 30 or more years, we stuck with the intel 86 fuck
- fucked the entire computing industry for 4 decades
huge updates.
- Windows: Turn on File Sharing
- Mac: Access Shared Files on Windows, from Mac
- How to Share File: Access Windows Files from Mac, via Wifi
- Mac: Turn on File Sharing
On Open Source Tech, and Their Political Affiliations
- A lot coders told me they are against using fsharp csharp PowerShell, because they hate Bill Gates.
- But also, some have told me they are against golang, because Google is evil.
- Note, The whole dotnet, including csharp fsharp powershell, is opensource.
- Also, Rust, Golang, all google products, facebook, they went men can get pregnat or you get banned.
- for computer professionals.
- aka tech bro, who made america great with nuke n rockets n AI.
- not laywers and talking heads and stock friers.
- upgraded to powershell 7.5

- master go programing language.
- The best industrial programing language.
- Best functional programing language is fsharp.
- Best general purpose language is Wolfram language.
- worst langs are, c, cpp, python, JavaScript.
COMPUTER SCIENCE. What is Term-Rewriting System vs Regular Expression
- Wolfram language, as term-rewriting system.
- where you have pattern matching and replacement, similar to regular expression.
- but regular expression works on strings, while the term-rewriting system basically considers the source code as string (sequence of symbols forming terms aka expression).
- regular expression only matches basically linear expression.
- Wolfram language pattern can match nested expression, so it can get very complex on just which part of expression are replaced, tree depth levels and priority.
complete update on Wolfram language string functions.
- Wolfram: String
- Wolfram: String Functions
- Wolfram: Get SubString, by Index
- π Wolfram: Get SubString, by Pattern
- π Wolfram: String Split
- π Wolfram: String Join
- π Wolfram: String Insert
- π Wolfram: Delete SubString
- Wolfram: String Match
- Wolfram: String Replace
- Wolfram: Convert String
- Wolfram: String Template (format)
- Computer science.
- Programing language syntax design.
- A gander into Comment Syntax
- Comp Lang: Comment Syntax
On Wolfram Language Association (aka association list, dictionary, hash table). Major update. Now the association section is complete.
- Wolfram language's dict, you can filter, sort, etc, on the keys, or the values.
- Or do union intersection difference on keys, or on values.
- Or map to keys, or to values, or to the pair.
- Or do pattern matching on the keys, or on the values.
- A magnitude richer than python or haskell or clojure or any other language.
- And the key can be any expression, and the value can be any expression.
- Wolfram: Association (Key Value List)
- Wolfram: Association. Get Value
- Wolfram: Association. Add Item
- Wolfram: Association. Delete Items by Key
- Wolfram: Association. Check Key Exist
- Wolfram: Association to List, Get All Keys or Values
- Wolfram: Association. Delete Items by Filter
- π Wolfram: Create Association
- π Wolfram: Association. Check Value Exist
- π Wolfram: Association. Sort
- π Wolfram: Association. Union, Intersection, Complement, Etc
- π Wolfram: Map f to Association
- π Wolfram: List. Count, Group, Similar Items
- Wolfram: List. Reshape (split, group, flatten, transpose)
updated my php tutorial from 2007, just a tiny bit.