Xah Programing Blog Archive 2018-09
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
i can't tell wtf is that.
this is what online forum looks like, before Facebook
https://forums.somethingawful.com/showthread.php?threadid=3846735
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.
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.
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.
memories. this is where i live. Netscape headquarter was just 15 min walk away.
xahlee info git stat 2018-09-16
finally fixed.
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://x.com/googlechrome/status/1037038838550601734
〔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 Art ░ ▒ ▓ 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.
- Why Python Lambda is Broken
- Python, Lambda, Guido: is Language Design Just Solving Puzzles?
- Lambda in Python 3000
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.