Programing Challenge: Constructing a Tree Given Its Edges.

2014-01-07 Thread Xah Lee
Programing Challenge: Constructing a Tree Given Its Edges. Show you are the boss. http://xahlee.info/perl-python/python_construct_tree_from_edge.html here's plain text. ── ── ── ── ── Problem: given a list of edges of a tree: [child, parent], construct the

Re: Learn Technical Writing from Unix Man in 10 Days

2012-04-29 Thread Xah Lee
On Apr 29, 7:43 pm, Jason Earl wrote: > On Sat, Apr 28 2012, Steven D'Aprano wrote: > > On Sat, 28 Apr 2012 14:55:42 -0700, Xah Lee wrote: > > >> Learn Technical Writing from Unix Man in 10 Days > > >> Quote from man apt-get: > > >>     remove

Learn Technical Writing from Unix Man in 10 Days

2012-04-28 Thread Xah Lee
Learn Technical Writing from Unix Man in 10 Days Quote from man apt-get: remove remove is identical to install except that packages are removed instead of installed. Translation: kicking kicking is identical to kissing except that receiver is kicked inste

John Carmack glorifying functional programing in 3k words

2012-04-26 Thread Xah Lee
ch of Fuckfaces. (and Fuck Pythoners. Python fucking idiots.) O, don't forget, 〈Programing: What are OOP's Jargons and Complexities (Object Oriented Program as Functional Program)〉 http://xahlee.org/Periodic_dosage_dir/t2/oop.html please you peruse of it. your servant, humbly

A Design Pattern Question for Functional Programers

2012-04-18 Thread Xah Lee
Understand HTML5?〉 http://xahlee.org/UnixResource_dir/writ/html5_vs_intelligence.html Xah -- http://mail.python.org/mailman/listinfo/python-list

Emacs Lisp vs Perl: Validate Local File Links

2012-04-13 Thread Xah Lee
too. (python code welcome too.) Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: f python?

2012-04-08 Thread Xah Lee
Xah Lee wrote: « http://xahlee.org/comp/fuck_python.html » David Canzi wrote «When Microsoft created MS-DOS, they decided to use '\' as the separator in file names.  This was at a time when several previously existing interactive operating systems were using '/' as the

Re: f python?

2012-04-08 Thread Xah Lee
On Apr 8, 4:34 am, Steven D'Aprano wrote: > On Sun, 08 Apr 2012 04:11:20 -0700, Xah Lee wrote: > > [...] > > I have read Xah Lee's post so that you don't have to. > > Shorter Xah Lee: > >     "I don't know Python very well, and rather than adm

f python?

2012-04-08 Thread Xah Lee
hi guys, sorry am feeling a bit prolifit lately. today's show, is: 〈Fuck Python〉 http://xahlee.org/comp/fuck_python.html Fuck Python By Xah Lee, 2012-04-08 fuck Python. just fucking spend 2 hours and still going. here's the short story. so

how i loved lisp cons and UML and Agile and Design Patterns and Pythonic and KISS and YMMV and stopped worrying

2012-04-07 Thread Xah Lee
format follows, as a amenity for tech geekers. --- World Multiconference on Systemics, Cybernetics and Informatics ??? Xah Lee, 2010-04-04 Starting in 2004, i regularly receive email asking me to participate a conference, called “World Multiconference

Re: Is Programing Art or Science?

2012-04-03 Thread Xah Lee
On Apr 3, 8:22 am, Rainer Weikusat wrote: > Xah Lee writes: > > [...] > > > For example, “Is mathematics science or art?”, is the same type of > > question that has been broached by dabblers now and then. > http://en.wikipedia.org/wiki/Liberal_arts this is the best

Google Tech Talk: lisp at JPL

2012-04-02 Thread Xah Lee
=_gZK0tW8EhQ i just started watching, havn't done yet. (thx jcs's blog for the news) PS posted to python and perl forums too, because i think might be interesting for lang aficionados . Reply to just your community please. Xah -- http://mail.python.org/mailman/listinfo/python-list

Is Programing Art or Science?

2012-04-02 Thread Xah Lee
to know. • Theory vs Practice • Jargons of IT Industry • The Lambda Logo Tour • English Lawers PS don't forget to checkout: 〈From Why Not Ruby to Fuck Python, Hello Ruby〉 @ http://xahlee.org/UnixResource_dir/writ/why_not_Ruby.html yours humbly, Xah -- http://mail.pyth

perldoc: the key to perl

2012-03-26 Thread Xah Lee
r key with 8th bit. keyX doesn't have a ID, but you can make one by finding the number at the place you found the key C. Key C is actually optional, but when inner key and keyX's number matches, it changes the nature of the lock. This is when you need to turn on keyMode … Xah -- http://mail.python.org/mailman/listinfo/python-list

a interesting Parallel Programing Problem: asciify-string

2012-03-06 Thread Xah Lee
oject, if someone actually use a parallel-algorithm-aware language to work on this problem, and report on the break-point of file-size of parallel-algorithm vs sequential- algorithm. Anyone would try it? Perhaps in Fortress, Erlang, Ease, Alice, X10, or other? Is the Clojure parallel aware? Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Xah Lee
On Mar 5, 9:26 pm, Tim Roberts wrote: > Xah Lee wrote: > > >some additional info i thought is relevant. > > >are int, float, long, double, side-effects of computer engineering? > > Of course they are.  Such concepts violate the purity of a computer > language&#

are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Xah Lee
some additional info i thought is relevant. are int, float, long, double, side-effects of computer engineering? Xah Lee wrote: «… One easy way to measure it is whether a programer can read and understand a program without having to delve into its idiosyncrasies. …» Chris Angelico wrote

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-02 Thread Xah Lee
n when 2 operators are adjacent e.g. 「3 △ 6 ▲ 5 」? do you happen to know some site that shows the relevant page i can have a look? thanks. Xah On Mar 1, 3:00 am, Kiuhnm wrote: > On 3/1/2012 1:02, Xah Lee wrote: > > > i missed a point in my original post. That is, when the same

Re: lang comparison: in-place algorithm for reversing a list in Perl,Python, Lisp

2012-03-02 Thread Xah Lee
Xah Lee wrote: «… One easy way to measure it is whether a programer can read and understand a program without having to delve into its idiosyncrasies. …» Chris Angelico wrote: «Neither the behavior of ints nor the behavior of IEEE floating point is a "quirk" or an "idiosyncracy

Re: lang comparison: in-place algorithm for reversing a list in Perl,Python, Lisp

2012-03-01 Thread Xah Lee
ization they provide is microscopic and temporary. best is really floor(x/y). idiomatic programing, is a bad thing. It was spread by perl, of course, in the 1990s. Idiomatic lang, i.e. lang with huge number of bizarre idioms, such as perl, is the worst. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: lang comparison: in-place algorithm for reversing a list in Perl, Python, Lisp

2012-02-29 Thread Xah Lee
ive me sir, but i haven't been at python for a while. :) i was, actually, refreshing myself of what little polyglot skills i have. Xah -- http://mail.python.org/mailman/listinfo/python-list

lang comparison: in-place algorithm for reversing a list in Perl, Python, Lisp

2012-02-29 Thread Xah Lee
fun example. in-place algorithm for reversing a list in Perl, Python, Lisp http://xahlee.org/comp/in-place_algorithm.html plain text follows What's “In-place Algorithm”? Xah Lee, 2012-02-29 This page tells you what's “In-place algorithm”, usi

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-02-29 Thread Xah Lee
y bad written. Becha ass! Xah On Feb 29, 4:08 am, Kiuhnm wrote: > On 2/29/2012 9:09, Xah Lee wrote: > > > > New Science Discovery: Perl Idiots Remain Idiots After A Decade! > > > A excerpt from the new book 〈Modern Perl〉, just published, chapter 4 > > on “Operator

New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-02-29 Thread Xah Lee
New Science Discovery: Perl Idiots Remain Idiots After A Decade! A excerpt from the new book 〈Modern Perl〉, just published, chapter 4 on “Operators”. Quote: «The associativity of an operator governs whether it evaluates from left to right or right to left. Addition is left associative, such that

Re: Questions about LISP and Python.

2011-12-05 Thread Xah Lee
On Dec 5, 4:31 am, Tim Bradshaw wrote: > On 2011-12-05 11:51:11 +0000, Xah Lee said: > > > python has more readible syntax, more modern computer language > > concepts, and more robust libraries. These qualities in turn made it > > popular. > > Yet you still post h

Programing Language: latitude-longitude-decimalize

2011-11-29 Thread Xah Lee
lisp, etc. I'll post a emacs lisp solution in a couple of days. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: question about speed of sequential string replacement vs regex or

2011-09-28 Thread Xah Lee
iteral, not regex)? because i thought implementing replacement for string should be much simpler and faster, because buffers comes with it a whole structure such as “point”, text properties, buffer names, buffier modifier, etc. Xah On Sep 28, 5:28 am, Xah Lee wrote: > On Sep 28, 3:57 am, mer...

Re: question about speed of sequential string replacement vs regex or

2011-09-28 Thread Xah Lee
On Sep 28, 3:57 am, mer...@stonehenge.com (Randal L. Schwartz) wrote: > >>>>> "Xah" == Xah Lee writes: > > Xah> curious question. > Xah> suppose you have 300 different strings and they need all be replaced > Xah> to say "aaa". > >

question about speed of sequential string replacement vs regex or

2011-09-28 Thread Xah Lee
med entities to unicode char. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: What Programing Language are the Largest Website Written In?

2011-08-02 Thread Xah Lee
On Jul 31, 11:38 am, gavino wrote: > On Jul 13, 1:04 pm, ccc31807 wrote: > > > > > > > > > > > On Jul 12, 7:54 am, Xah Lee wrote: > > > > maybe this will be of interest. > > > > 〈What Programing Language Are t

Re: a little parsing challenge ☺

2011-07-21 Thread Xah Lee
On Jul 21, 9:43 am, pyt...@bdurham.com wrote: > Xah, > > 1. Is the following string considered legal? > > [ { ( ] ) } > > Note: Each type of brace opens and closes in the proper sequence. But > inter-brace opening and closing does not make sense. nu! > Or must a closi

Re: a little parsing challenge ☺

2011-07-21 Thread Xah Lee
suggestion of ideas. i haven't done extensive testing on my own code neither. I'll revisit maybe in a few days. Feel free to grab my report and make it nice. If you would like to fix your code, feel free to email. Xah On Jul 21, 7:26 am, Ian Kelly wrote: > On Thu, Jul 21

Re: a little parsing challenge ☺

2011-07-21 Thread Xah Lee
ks for the code. are you willing to make it complete and standalone? i.e. i can run it like this: perl Rouslan_Korneychuk.pl dirPath and it prints any file that has mismatched pair and line/column number or the char position? i'd do it myself but so far i tried 5 codes, 3 fixes, all failed. Not a complain, but it does take time to gather the code, of different langs by different people, properly document their authors and original source urls, etc, and test it out on my envirenment. All together in the past 3 days i spent perhaps a total of 4 hours running several code and writing back etc and so far not one really worked. i know perl well, but your code is a bit out of the ordinary ☺. If past days have been good experience, i might dive in and study for fun. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: a little parsing challenge ☺

2011-07-21 Thread Xah Lee
On Jul 19, 11:07 am, Thomas Jollans wrote: > On 19/07/11 18:54, Xah Lee wrote: > > > > > > > > > > > On Sunday, July 17, 2011 2:48:42 AM UTC-7, Raymond Hettinger wrote: > >> On Jul 17, 12:47 am, Xah Lee wrote: > >>> i hope you&#x

Re: a little parsing challenge ☺

2011-07-21 Thread Xah Lee
s py3 validate_brackets_Thomas_Jollans_2.py c:/Users/h3/web/xxst/find_elisp/validate matching brackets/xxdir \xx.txt h3@H3-HP 2011-07-21 05:21:59 ~/web/xxst/find_elisp/validate matching brackets py3 --version Python 3.2.1 h3@H3-HP 2011-07-21 05:27:03 ~/web/xxst/find_elisp/validate matching bracke

Re: a little parsing challenge ☺

2011-07-20 Thread Xah Lee
pt to Validate Matching Brackets Xah Lee, 2011-07-19 This page shows you how to write a elisp script that checks thousands of files for mismatched brackets. The Problem Summary I h

Re: a little parsing challenge ☺

2011-07-19 Thread Xah Lee
mismatched curly quotes. > > (e.g.http://xahlee.org/p/time_machine/tm-ch04.html ) > > > LOL Billy. > > >  Xah > > I suspect its due to the file mode being opened with 'rb' mode.  Also, > the diction of characters at the top, the closing token is the key, > wh

Re: a little parsing challenge ☺

2011-07-19 Thread Xah Lee
e naive. I hope to see and learn from your > > solution too. > > > i hope you'll participate. Just post solution here. Thanks. > > I thought I'd have some fun with multi-processing: > > https://gist.github.com/1087682 hi Thomas. I ran the program, all cpu went max (i have a quad), but after i think 3 minutes nothing happens, so i killed it. is there something special one should know to run the script? I'm using Python 3.2.1 on Windows 7. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: a little parsing challenge ☺

2011-07-19 Thread Xah Lee
        reported = True >                     else: >                         stack.append(c) > >             print '%s: %s' % (name, ("good" if len(stack) == 1 else "bad > '%s' at %s:%s" % first_bad)) Thanks for the fix. Though, it seems still wrong. On the file http://xahlee.org/p/time_machine/tm-ch04.html there is a mismatched curly double quote at 28319. the script reports: tm-ch04.html: bad ')' at 68:2 that doesn't seems right. Line 68 is empty. There's no opening or closing round bracket anywhere close. Nearest are lines 11 and 127. Maybe Billy Mays's algorithm is wrong. Xah (fairly discouraged now, after running 3 python scripts all failed) -- http://mail.python.org/mailman/listinfo/python-list

Re: a little parsing challenge ☺

2011-07-19 Thread Xah Lee
: %s' % name > > -- > Bill as Ian Kelly mentioned, your script fail because it doesn't report the position or line/column number of first mismatched bracket. This is rather significant part to this small problem. Avoiding unicode also lessen the value of this exercise, because han

Re: a little parsing challenge ☺

2011-07-19 Thread Xah Lee
On Sunday, July 17, 2011 2:48:42 AM UTC-7, Raymond Hettinger wrote: > On Jul 17, 12:47 am, Xah Lee wrote: > > i hope you'll participate. Just post solution here. Thanks. > > http://pastebin.com/7hU20NNL just installed py3. there seems to be a bug. in this file http://xahle

Re: a little parsing challenge ☺

2011-07-19 Thread Xah Lee
On Jul 18, 7:07 pm, Billy Mays wrote: > On 7/18/2011 7:56 PM, Steven D'Aprano wrote: > > > > > > > > > > > Billy Mays wrote: > > >> On 07/17/2011 03:47 AM, Xah Lee wrote: > >>> 2011-07-16 > > >> I gave it a shot.  It doe

Re: a little parsing challenge ☺

2011-07-18 Thread Xah Lee
On Jul 17, 12:47 am, Xah Lee wrote: > 2011-07-16 > > folks, this one will be interesting one. > > the problem is to write a script that can check a dir of text files > (and all subdirs) and reports if a file has any mismatched matching > brackets. > … Ok, here's

a little parsing challenge ☺

2011-07-17 Thread Xah Lee
find this a interesting “challenge”. This is a parsing problem. I haven't studied parsers except some Wikipedia reading, so my solution will probably be naive. I hope to see and learn from your solution too. i hope you'll participate. Just post solution here. Thanks. Xah -- http://mail.python.org/mailman/listinfo/python-list

What Programing Language are the Largest Website Written In?

2011-07-12 Thread Xah Lee
osoft sites... are they in C/C++ and or dotnet? Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: Lisp refactoring puzzle

2011-07-11 Thread Xah Lee
2011-07-11 On Jul 11, 6:51 am, jvt wrote: > I might as well toss my two cents in here.  Xah, I don't believe that > the functional programming idiom demands that we construct our entire > program out of compositions and other combinators without ever naming > anything.  That

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread Xah Lee
On Jul 5, 12:17 pm, Ian Kelly wrote: > On Mon, Jul 4, 2011 at 12:36 AM, Xah Lee wrote: > > So, a solution by regex is out. > > Actually, none of the complications you listed appear to exclude > regexes.  Here's a possible (untested) solution: > > >

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread Xah Lee
On Jul 5, 12:17 pm, Ian Kelly wrote: > On Mon, Jul 4, 2011 at 12:36 AM, Xah Lee wrote: > > So, a solution by regex is out. > > Actually, none of the complications you listed appear to exclude > regexes.  Here's a possible (untested) solution: > > >

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread Xah Lee
On Jul 4, 12:13 pm, "S.Mandl" wrote: > Nice. I guess that XSLT would be another (the official) approach for > such a task. > Is there an XSLT-engine for Emacs? > > -- Stefan haven't used XSLT, and don't know if there's one in emacs... it'd be nic

emacs lisp text processing example (html5 figure/figcaption)

2011-07-03 Thread Xah Lee
llows. -- Emacs Lisp: Processing HTML: Transform Tags to HTML5 “figure” and “figcaption” Tags Xah Lee, 2011-07-03 Another triumph of using elisp for text processing over perl/python. The Problem -- Summary I want batch tran

what is the airspeed velocity of an unladen swallow

2011-06-28 Thread Xah Lee
this will be of interest to those bleeding-edge pythoners. “what… is the airspeed velocity of an unladen swallow?” xahlee.org/funny/unladen_swallow.html Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-18 Thread Xah Lee
On Jun 18, 4:06 am, Dotan Cohen wrote: > On Sat, Jun 18, 2011 at 01:09, Xah Lee wrote: > > thanks. didn't know about Ducky keyboard. Looks good. Also nice to > > hear your experience about Truly Ergonomic keyboard. > > I like it, see my first-hour review > here:htt

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-17 Thread Xah Lee
On Jun 17, 2:26 pm, Dotan Cohen wrote: > On Fri, Jun 17, 2011 at 20:43, Xah Lee wrote: > > u r aware that there are already tens of layouts, each created by > > programer, thinking that they can create the best layout? > > Yes. Mine is better :) > Had Stallman not heard

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-17 Thread Xah Lee
th. there's many ways we can cookup tests right away to see. e.g. try to squeeze a rubber ball with 4th and thumb. Repeat with pink + thumb. Or, reverse exercise by stretching a rubber band wrapped on the 2 fingers of interest. You can easy see that pinky isn't stronger. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-17 Thread Xah Lee
so there are several sites all trying to do it. Talk is cheap, the hardest part is actually to get money to finance and manufacture it. The latest one, which i deem good, is Truely Ergonomic keyboard. It sells for $200 and is in pre-order only now. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: Keyboard Layout: Dvorak vs. Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-14 Thread Xah Lee
for some reason, was unable to post the previous message. (but can post others) So, the message is rot13'd and it works. Not sure what's up with Google groups. (this happened a few years back once. Apparantly, the message content might have something to do with it because rot13 clearly works. Yet,

Re: Keyboard Layout: Dvorak vs. Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-14 Thread Xah Lee
Ba Wha 13, 7:23 nz, Ehfgbz Zbql 〔ehfgbzcz...@tznvy.pbz〕 jebgr: │ Qibenx -- yvxr djregl naq nal bgure xrlobneq ynlbhg -- nffhzrf gur │ pbzchgre vf n glcrjevgre. │ Guvf zrnaf va rssrpg ng yrnfg gjb pbafgenvagf, arprffnel sbe gur │ glcrjevgre ohg abg sbe gur pbzchgre: │ │ n. Gur glcvfg pna glcr bayl

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-14 Thread Xah Lee
st of the time being thinking, │ planning, debugging, communicating with customers or managers, reading │ documentation, testing, committing code, sketching data schemas on the │ whiteboard ... to say nothing of the dreaded strategy meetings. you can find the study on my site. URL in the first post o

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-13 Thread Xah Lee
also worked as data entry clerk for a couple of years. Am a dvorak touch typist since 1994. (and emacs since 1997) However, i never learned touch type the numbers on the main section till i think ~2005. Since about 2008, the numerical keypad is used as extra function keys. Xah -- http://mail.python.org/mailman/listinfo/python-list

Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-11 Thread Xah Lee
n be done in less than 20 minutes if you just type continuously. If your typing doesn't come anywhere close to a data-entry clerk, then any layout “more efficient” than Dvorak is practically meaningless. Xah -- http://mail.python.org/mailman/listinfo/python-list

uhmm... your chance to spit on me

2011-06-10 Thread Xah Lee
Dear lisp comrades, it's Friday! Dear Xah, your writing is: • Full of bad grammar. River of Hiccups. • Stilted. Chocked under useless structure and logic. • WRONG — Filled with uncouth advices. • Needlessly insulting. You have problems. • Simply stinks. Wort

Re: English Idiom in Unix: Directory Recursively

2011-05-26 Thread Xah Lee
On May 26, 4:20 am, Thorsten Kampe wrote: > Did your mom tell you to "recursively clean up your room"?. that had me L O L! i think i'll quote in my unix hating blogs sometimes, if you don't mind. ☺ Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-25 Thread Xah Lee
nlink" instead of "delete"? Or "directory" > instead of "folder", pointing out that "directory" is the correct term > because a directory is just a listing and does not "contain" the actual > files. Of course these implementation details will never matter to > anyone except under the rarest conditions. > > Thorsten well said. half of posts in this thread are from idiots. just incredible, but again, its newsgroups ... what am i thinking ... Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-24 Thread Xah Lee
; I'm one of the 'people'. You say exposed to, I say bothered/bored with. > > I have nothing against the use of a proper, precise term. And that word can > be a complex one with many, many sylables (seems to add value, somehow). > > But I'm not an academic, so I don't admire the pedantic use of terms that > need to be explained to 'lay' people. Especially if there is a widespread, > usually shorter and much simpler one for it. A pointless effort if > pointless, even when comming from a physicist.  :-) very well said, Rikishi42. this one is probably the most intelligent post in this thread. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-24 Thread Xah Lee
On May 23, 9:28 pm, Chris Angelico wrote: > On Tue, May 24, 2011 at 2:20 PM, Xah Lee wrote: > > why don't you file a bug report? In GNU Emacs 23.2, it's under the > > Help menu. I suppose it's the same in other emacs distro. > > Because I do not consider its b

Re: English Idiom in Unix: Directory Recursively

2011-05-23 Thread Xah Lee
On May 22, 4:32 pm, Chris Angelico wrote: > On Mon, May 23, 2011 at 9:17 AM, Xah Lee wrote: > > the context is this: In emacs directory manager (aka dired), when you > > call dired-do-delete on a directory, emacs prompts, this way: > > “Recursive delete of xx? (y or n)” >

Re: English Idiom in Unix: Directory Recursively

2011-05-22 Thread Xah Lee
On May 22, 3:46 pm, Chris Angelico wrote: > On Mon, May 23, 2011 at 6:22 AM, Xah Lee wrote: > > Xah wrote: > > «In the emacs case: “Recursive delete of xx? (y or n) ”, what could it > > possibly mean by the word “recursive” there? Like, it might delete the > > directo

Functional Programing: stop using recursion, cons. Use map & vectors

2011-05-22 Thread Xah Lee
nism). Realizing the algorithmic property and parallel- execution issues of linked list is only recent years. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-22 Thread Xah Lee
Xah wrote: «In the emacs case: “Recursive delete of xx? (y or n) ”, what could it possibly mean by the word “recursive” there? Like, it might delete the directory but not delete all files in it? » Jonathan de Boyne Pollard wrote: > It might *try* to delete the directory but not any of

English Idiom in Unix: Directory Recursively

2011-05-17 Thread Xah Lee
might be of interest. 〈English Idiom in Unix: Directory Recursively〉 http://xahlee.org/comp/idiom_directory_recursively.html -- English Idiom in Unix: Directory Recursively Xah Lee, 2011-05-17 Today, let's discuss something in the category of lingu

Re: Problems of Symbol Congestion in Computer Languages

2011-03-05 Thread Xah Lee
d it daily for about a month before I switched to APLX - aka micro > APL.. and as I had zero problems.. So, I suspect it is 100% A+ > compatible. > > Initially, I thought of writing a python wrapper that would handle > conversion from Unicode to A+'s peculiar brand of latin1 and back (among > other things) but never had the time. hi Chris, i created a page dedicated to creating math symbol layouts for different langs. I linked to your post. I wonder if you would let me mirror your X code on my site? Or, if you place it on somewhere more permanent or dedicate page such as git, i'd link to that. Thanks. Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems of Symbol Congestion in Computer Languages

2011-02-28 Thread Xah Lee
html i'd be interested to know what Dotan Cohen use too. i tried the swapping number row with symbols a few years back. didn't like it so much because numbers are frequently used as well, especially when you need to enter a series of numbers. e.g. heavy math, or dates 2010-02-28. One can

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Xah Lee
i think for special purposes OSes, they have quite a lot ... from Mitsubishi, NEC, etc... in their huge robotics industry among others. (again, this is all second hand knowledge) ... i recall having read non-english comp lang that appeared recently... Xah Lee -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Xah Lee
On 2011-02-16, Xah Lee  wrote: │ Vast majority of computer languages use ASCII as its character set. │ This means, it jams multitude of operators into about 20 symbols. │ Often, a symbol has multiple meanings depending on contex. On 2011-02-17, rantingrick wrote: … On 2011-02-17, Cthun wrote

Problems of Symbol Congestion in Computer Languages

2011-02-16 Thread Xah Lee
might be interesting. 〈Problems of Symbol Congestion in Computer Languages (ASCII Jam; Unicode; Fortress)〉 http://xahlee.org/comp/comp_lang_unicode.html -- Problems of Symbol Congestion in Computer Languages (ASCII Jam; Unicode; Fortress) Xah Lee

Re: How to Write grep in Emacs Lisp (tutorial)

2011-02-11 Thread Xah Lee
0 i ported our ecommerce web app from Solaris to it. Am not exactly thrilled. At the time, i vaguely recall, the HP sales guys come to us and tells us they have this heart-beat technology ... Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Write grep in Emacs Lisp (tutorial)

2011-02-08 Thread Xah Lee
On Feb 8, 9:32 am, Icarus Sparry wrote: > On Tue, 08 Feb 2011 13:51:54 +0100, Petter Gustad wrote: > > Xah Lee writes: > > >> problem with find xargs is that they spawn grep for each file, which > >> becomes too slow to be usable. > > > find . -maxdepth

Guy Steele on Parallel Programing

2011-02-05 Thread Xah Lee
might be interesting. 〈Guy Steele on Parallel Programing〉 http://xahlee.org/comp/Guy_Steele_parallel_computing.html -- Guy Steele on Parallel Programing Xah Lee, 2011-02-05 A fascinating talk by the well respected computer scientist Guy Steele

Re: do you know what's CGI? (web history personal story)

2011-01-15 Thread Xah Lee
7;s Point Of View. 〈Avatar and District 9 Movie Review〉 http://xahlee.org/Periodic_dosage_dir/skina/avatar.html ------ Avatar and District 9 Movie Review Xah Lee, 2010-01-07 -- Avatar Went to watch the movie Avatar (2009 fil

do you know what's CGI? (web history personal story)

2011-01-14 Thread Xah Lee
he utterly idiotic Perl & unix & mysql world. (See: The Unix Pestilence ◇ Xah Lee's Computing Experience (Impression Of Lisp from Mathematica).) Well, dead-end just as Emacs Lisp i'm spending my nights with in the past 4 years. LOL. And on that note, same thing can be said with has

Re: opinion: comp lang docs style

2011-01-06 Thread Xah Lee
Richard Gruet's quick ref: http://rgruet.free.fr/PQR26/PQR2.6.html on the python doc, afaik people complains all the time, and i know at least 3 times in different years people have tried to bring up projects to fix it, all shot down with spit badly by python priests, of course. just 2 days a

opinion: comp lang docs style

2011-01-04 Thread Xah Lee
a opinion piece. 〈The Idiocy of Computer Language Docs〉 http://xahlee.org/comp/idiocy_of_comp_lang.html -- The Idiocy of Computer Language Docs Xah Lee, 2011-01-03 Worked with Mathematica for a whole day yesterday, after about 10 years hiatus

Re: Google AI challenge: planet war. Lisp won.

2010-12-22 Thread Xah Lee
.php there are 12 teams using OCaml. See: http://ai-contest.com/rankings.php (click on the lang to see all teams using that lang) Xah -- http://mail.python.org/mailman/listinfo/python-list

Google AI challenge: planet war. Lisp won.

2010-12-02 Thread Xah Lee
/Planet-Wars-Post-Mortem.html (not sure if this has been mentioned here but quick search didn't find it) Xah ∑ http://xahlee.org/ ☄ -- http://mail.python.org/mailman/listinfo/python-list

Re: is list comprehension necessary?

2010-10-28 Thread Xah Lee
On Oct 27, 5:46 pm, rantingrick wrote: > On Oct 26, 4:31 am, Xah Lee wrote: > > > recently wrote a article based on a debate here. (can't find the > > original thread on Google at the moment) > > Hey all you numbskulls who are contributing the annoying off-topic &g

Re: Land Of Lisp is out

2010-10-28 Thread Xah Lee
n JVM? guess they are UNREAL. lol btw, who cross posted this thread to python? i call troll! Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: Land Of Lisp is out

2010-10-28 Thread Xah Lee
://xahlee.org/comp/land_of_lisp.html Conrad is certainly a fervent lisp lover. ( as is Peter Seibel http://www.gigamonkeys.com/book/ ) Conrad is also a comics artist. The landoflisp is going all over on twitter yesterday and apparantly many already ordered it. Hope he does very well. Xah -- http://mail.python.org/mailman/listinfo/python-list

is list comprehension necessary?

2010-10-26 Thread Xah Lee
pure functional lang (e.g. haskell), i think lc is pretty bad. here's the plain text version of my essay What's List Comprehension and Why is it Harmful? Xah Lee, 2010-10-14 This page explains what is List Comprehension, with examples from several lang

Re: how to name a function in a comp lang (design)

2010-10-20 Thread Xah Lee
On Oct 20, 4:52 am, Marc Mientki wrote: > Am 20.10.2010 13:14, schrieb Xah Lee: > > > See also: > > > • 〈The Importance of Terminology's Quality In Computer Languages〉 > >http://xahlee.org/UnixResource_dir/writ/naming_functions.html > > > where i gave some

how to name a function in a comp lang (design)

2010-10-20 Thread Xah Lee
e.org/UnixResource_dir/writ/naming_functions.html where i gave some examples of the naming. Xah ∑ http://xahlee.org/ ☄ -- http://mail.python.org/mailman/listinfo/python-list

Re: toy list processing problem: collect similar terms

2010-10-14 Thread Xah Lee
On Sep 25, 9:05 pm, Xah Lee wrote: > here's a interesting toy list processing problem. > > I have a list of lists, where each sublist is labelled by > a number. I need to collect together the contents of all sublists > sharing > the same label. So if I have the list >

Re: Unicode Support in Ruby, Perl, Python, Emacs Lisp

2010-10-09 Thread Xah Lee
2010-10-09 On Oct 9, 3:45 pm, Sean McAfee wrote: > Xah Lee writes: > > Perl's exceedingly lousy unicode support hack is well known. In fact > > it is the primary reason i “switched” to python for my scripting needs > > in 2005. (See: Unicode in Perl and Python) >

Unicode Support in Ruby, Perl, Python, Emacs Lisp

2010-10-08 Thread Xah Lee
here's my experiences dealing with unicode in various langs. Unicode Support in Ruby, Perl, Python, Emacs Lisp Xah Lee, 2010-10-07 I looked at Ruby 2 years ago. One problem i found is that it does not support Unicode well. I just checked today, it still doesn't. Just do a web search o

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-29 Thread Xah Lee
On Sep 29, 11:02 am, namekuseijin wrote: > On 28 set, 19:38, Xah Lee wrote: > > > • “list comprehension” is a very bad jargon; thus harmful to > > functional programing or programing in general. Being a bad jargon, it > > encourage mis-communication, mis-understanding.

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-28 Thread Xah Lee
2010-09-28 On Sep 28, 12:07 pm, namekuseijin wrote: > On 28 set, 14:56, Xah Lee wrote: > > > ultimately, all lang gets transformed at the compiler level to become > > machine instructions, which is imperative programing in the ultimate > > sense. > > > You

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-28 Thread Xah Lee
xah wrote: > in anycase, how's “do” not imperative? On Sep 28, 6:27 am, namekuseijin wrote: > > how's “do” a “named let”? can you show example or reference of that > > proposal? (is it worthwhile?) > > I'll post it again in the hope you'll read t

Re: toy list processing problem: collect similar terms

2010-09-28 Thread Xah Lee
27;t know about the crossposting. > > >> Oh, he does. It has been Xah's game for years. > > > But did "livibetter" know about it?  I wasn't defending Xah, who is indeed > > at the very least clueless and disruptive. > > Heh, he's not cluel

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread Xah Lee
On Sep 27, 12:11 pm, namekuseijin wrote: > On 27 set, 16:06, Xah Lee wrote:> 2010-09-27 > > > > For instance, this is far more convenient: > > > [x+1 for x in [1,2,3,4,5] if x%2==0] > > > than this: > > > map(lambda x:x+1,filter(lambda x:x%2==0,

Re: (and scheme lisp) x Python and modern langs [was Re: gossip, Guy Steel, Lojban, Racket]

2010-09-27 Thread Xah Lee
ion” is good, because it adds another idiosyncratic syntax to the lang, but such is with the tradition of imperative langs. The ad hoc syntax aids in reading code by various syntactical forms and hint words such as “[... for ... in ...]”. Xah ∑ xahlee.org ☄ -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode usenet posting. This is a test.

2010-09-26 Thread Xah Lee
n Perl and Python〉 http://xahlee.org/perl-python/quoting_strings.html • 〈Strings in PHP〉 http://xahlee.org/php/quoting_strings.html • 〈HTML6, Your HTML/XML Simplified〉 http://xahlee.org/comp/html6.html • 〈Matching Brackets in Unicode〉 http://xahlee.org/comp/unicode_matching_brackets.html Xah ∑ xahlee.org ☄ -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   >