xtodo
- the general question is, in programing language design, can syntax obstruct semantic.
- we think of syntax and semantics as totally separate. syntax is design of code, while syntactic unit has semantics.
- so obviously, they are not totally separate. because semantics is what combination of your syntax can do.
- if the grammar does not allow certain syntax code combination, then you don't have that semantics.
- maybe
- also, think about lambda calculus and combinators
Intertwined Relation of Syntax and Semantics
This is a example of intertwined relation of syntax and semantics.
let's dive into detail.
in programing languages, you have statements and expressions.
- Statements is a sequence of procedures.
- Expression is code that has a value.
For example, in python, to specify branch control, you have if-statement. But you do not have if-expression.
In JavaScript, you have both if-statement (e.g. if (x === 1) { f() } else { g() } ) and if-expression. (e.g. (( x === 1 ) ? f() : g() ))
Are the difference of statements vs expressions, a semantic issue? Yes. Because their meaning is different. One is procedure, the other return a value (besides also is procedure).
now, similarly, in many programing languages, a function can be defined by a statement and or by an expression.
e.g. in JavaScript, use keyword function at top level to define function via statement, and you can also use
JS: Arrow Function
e.g. (x => x + 1) to define function as expression.
it returns the function as a value.
in python, you use def statement to define a function.
or you can use lambda, it is an expression.
one advantage of function expression in programing language is that it is convenience to embed it inside another expression.
but python's indentation syntax, requires complicated expression to be multiple lines, because not all basic semantics of python can be expressed as expression, such as the conditional if.
so with you use the lambda function expression, and if it requires a if conditional, it must be multiple lines of the indentation syntax.
this indentation syntax, prevents the embedding or nesting of arbitrary expressions.
where is textedit untitled saved
~/Library/Containers/com.apple.TextEdit/Data/Library/Autosave Information/
- how to transfer line app data from android to iphone
- https://x.com/i/grok/share/2jtxQWJa63N7FpINVOWk0Mz56
- finish review
- Syntax Design: String Syntax (2010)
- maybe mod topic box
- add keyboard photos from “computer museum”
- c:/Users/xah/xdoc/x_todo_pics/x_d2025-09-19_computer_museum/d2025-09-18_IMG_0786.JPG
- try again emacs lisp auto format from ideasman42.
- he talked to me on discord, on 2025-10-08
- finish reading the ai article
- write a tutorial on python class
- and update my tutorial
- finish update my tutorial
- Python: Decorator
- explain python decorator
- https://x.com/i/grok/share/D0bUzYOJEg0FAvVpxhWFmNLi0
- clean grok bookmarks
- learn the algo for voronoi diagram
- Voronoi diagram
- Delaunay triangulation
- create new page maybe
- What Object-Oriented Programming Was Supposed to Be: Two Grumpy Old Guys' Take on Object-Oriented Programming
- By Ole Lehrmann Madsen, Birger Møller-Pedersen.
- https://dl.acm.org/doi/abs/10.1145/3563835.3568735
- install web font for linear b
- Unicode: Linear B 𐂂
- write script to rename file on my site
- revive my emacs lisp code to validate site local links
- check_local_links.go
- check_local_links.el
- this command
xah-html-extract-urlhas regex for search all source url. - also check HTML: Local Unsafe Tags
- 2025-05-07
xah-html-validate-anno-buffer, validate my files - clean up annotation
- Gulliver's Travels into Several Remote Nations of the World
- Literature Classics
- read thru
- JS: Array
- 1 hour math
- 30 min vscode
- 1 hour Wolfram language plane curves Visual Dictionary of Special Plane Curves
- Fsharp Learning Notes
- Lean Lang Learning Notes
- how to stop brave browser creating screenshots in download folder on ipad
- make donation links a direct link, e.g. on my home page. check amazon and paypal
- clear text in screenshot dirs
- clear xtodopic dir
- 2025-10-10 clear xtodopic dir, the keyboard photos of computer meseum
- clear twitter bookmarks
- remove big video files on xah site. keep some
- x_big_video_files.txt
- 2024-10-23 remove all copyrighted audio files e.g. Mazzy Star - Flowers in December 🎵
- convert mkv video to mp4 or webm
- Kensington Orbit Trackball with Scroll Ring
- Convert Video from Different Formats
- remove amazon links, in xah music
- remove amazon links, in xah arts
- put pre js 2015 code each to separate page, and create a index of them
- JS: Convert Object to Map 📜
- mod the python find replace or just find version, so it prints context.
- mod the perl find replace script, so it has a no-write to file option.
- fix the wolframlang script. WolframLang: Script to Find Replace Strings in a Dir
- mod the Wolfram language find replace script, so it has a no-write to file option.
- mod the wolframlang version, so it also prints context.
- modify all these scripts, so they can run in command line with standard powershell or bash option syntax.
- then, do bench mark. then, in coming days, maybe morrow, do a proper livestream on this.
- 2022-01-09 compare the speed (benchmark) of find replace of emacs lisp, python, golang, WolframLang
- add a write toggle
- Perl: Find Replace Text in Directory 📜
- Python: Find Replace Text in Directory 📜
- in my YouTube, clean up the xah emacs tutorial playlist, and Wolfram language playlist
- polish up the notes on probability, stat, python
- Statistics Tutorial
- Probability Tutorial
- Python: Statistics
- Python: Probability, Combinatorics
- on windows, which version is this rsync
- 0.8.1.0 C:\ProgramData\chocolatey\bin\rsync.exe
- Windows Subsystem for Linux
- https://learn.microsoft.com/en-us/windows/wsl/install
- https://learn.microsoft.com/en-us/windows/wsl/about
- https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux
- xah-rsync-xahweb-to-webserver
- Could not create directory '
- 2023-08-26 CC_Engine_x64.exe maybe uninstall
- 2023-08-01 cleanup my machine win_choco.html
- rename some article. to programing problem or programing toy problem Code Fun: Index
- Latest observation on the webdev milengen zoomer web design guru framework faaks.
- This began about 2019 or so.
- Sites no work if u don't have cookies on.
- Having JavaScript on no matter.
- Started to happen all over.
- Wallstreet journal, imgur, reddit, etc.
- (might be off on the specific sites, but it's wildfire).
writing twitter bot
- 2021-12-05 finish Syntax: Sugar Syntax at Compiler Level vs Coder Level (2015)
xahweb user facing
- 2021-11-17 make the back nav bar all point to semantic noodle
- Semantic Noodle
- 2021-11-25 make a side panel for Logo Design in Software Industry. Index
xahweb, less important
- 2021-11-18 remove or move
- Double-Bun Hair Girls (2005)
- Nearly Extinct Animals 📺
- 2021-11-17 search and fix ppp8745 on xah sites
- 2021-11-17 resolve [~/git/xahsvg/xah_svg_core.ts] [~/git/xahjs/xahjs.ts]
- 2021-11-17 resolve [~/xdoc/xahsite_web_todo/xx_2021-10-09_htaccess_orig]
- 2021-11-17 remove the links to big org sites http://xahlee.org/wordy/words/gre.html
old