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
On Apr 29, 7:43 pm, Jason Earl je...@notengoamigos.org 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
remove is identical to install
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
John Carmack glorifying functional programing in 3k words
http://www.altdevblogaday.com/2012/04/26/functional-programming-in-c/
where was he ten years ago?
O, and btw, i heard that Common Lispers don't do functional
programing, is that right?
Fuck Common Lispers. Yeah, fuck them. One bunch of
Functional programing is getting the presses in mainstream. I ran
across this dialogue where a imperative coder was trying to get into
functional programing:
A: What are the design patterns that help structure functional
systems?
B: Design patterns? Hey everyone, look at the muggle try to
〈Emacs Lisp vs Perl: Validate Local File Links〉
http://xahlee.org/emacs/elisp_vs_perl_validate_links.html
a comparison of 2 scripts.
lots code, so i won't paste plain text version here.
i have some comments at the bottom. Excerpt:
--
«One thing interesting is to compare the
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 recently i
On Apr 8, 4:34 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info 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 admit I made
some pretty
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 file name
separator
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
On Apr 3, 8:22 am, Rainer Weikusat rweiku...@mssgmbh.com wrote:
Xah Lee xah...@gmail.com 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
the refreshen of the blood, from Xah's Entertainment Enterprise, i
bring you:
〈Is Programing Art or Science〉
http://xahlee.org/UnixResource_dir/writ/art_or_science.html
penned in the year of our lord two thousand and two, plain text
version follows.
Is
Dearly beloved lisperati,
I present you, Ron Garret (aka Erann Gat — aka Naggum hater and enemy
of Kenny Tilton), at Google Tech Talk
〈The Remote Agent Experiment: Debugging Code from 60 Million Miles
Away〉
Google Tech Talk, (2012-02-14) Presented by Ron Garret. @
〈Perl Documentation: The Key to Perl〉
http://xahlee.org/perl-python/key_to_perl.html
plain text follows
-
So, i wanted to know what the option perl -C does. So, here's perldoc
perlrun. Excerpt:
-C [*number/list*]
The -C flag controls some
here's a interesting problem that we are discussing at comp.lang.lisp.
〈Parallel Programing Problem: asciify-string〉
http://xahlee.org/comp/parallel_programing_exercise_asciify-string.html
here's the plain text. Code example is emacs lisp, but the problem is
general.
for a bit python relevancy…
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
On Mar 5, 9:26 pm, Tim Roberts t...@probo.com wrote:
Xah Lee xah...@gmail.com 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's abstraction
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
△ 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 kiuhnm03.4t.yahoo.it wrote:
On 3/1/2012 1:02, Xah Lee wrote:
i missed a point in my original post. That is, when the same operator
are adjacent. e.g. 「3 ▲ 6 ▲ 5
On Mar 1, 7:04 am, Kaz Kylheku k...@kylheku.com wrote:
lisp:
(floor (/ x y)) --[rewrite]-- (floor x y)
Thanks for this interesting point.
I don't think it's a good lang design, more of a lang quirk.
similarly, in Python 2.x,
x/y
will work when both x and y are integers. Also,
x//y
works too,
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
ass!
Xah
On Feb 29, 4:08 am, Kiuhnm kiuhnm03.4t.yahoo.it 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 “Operators”. Quote:
«The associativity
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”, using {python
On Feb 29, 9:01 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
You don't need a temporary variable to swap two values in
Python. A better way to reverse a list using more Pythonic idioms is:
for i in range(len(list_a)//2):
list_a[i], list_a[-i-1] = list_a[-i-1],
On Dec 5, 4:31 am, Tim Bradshaw t...@tfeb.org wrote:
On 2011-12-05 11:51:11 +, 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 here: why?
i don't like python
fun programing exercise. Write a function “latitude-longitude-
decimalize”.
It should take a string like this: 「37°26′36.42″N 06°15′14.28″W」.
The return value should be a pair of numbers, like this: 「[37.44345
-6.25396]」.
Feel free to use perl, python, ruby, lisp, etc. I'll post a emacs lisp
curious question.
suppose you have 300 different strings and they need all be replaced
to say aaa.
is it faster to replace each one sequentially (i.e. replace first
string to aaa, then do the 2nd, 3rd,...)
, or is it faster to use a regex with “or” them all and do replace one
shot? (i.e.
On Sep 28, 3:57 am, mer...@stonehenge.com (Randal L. Schwartz) wrote:
Xah == Xah Lee xah...@gmail.com writes:
Xah curious question.
Xah suppose you have 300 different strings and they need all be replaced
Xah to say aaa.
And then suppose this isn't the *real* question, but one entirely
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 xah...@gmail.com wrote:
On Sep 28, 3:57 am, mer...@stonehenge.com (Randal L. Schwartz) wrote:
Xah == Xah Lee xah
On Jul 31, 11:38 am, gavino gavcom...@gmail.com wrote:
On Jul 13, 1:04 pm, ccc31807 carte...@gmail.com wrote:
On Jul 12, 7:54 am, Xah Lee xah...@gmail.com wrote:
maybe this will be of interest.
〈What Programing Language Are the Largest Website Written
In?〉http://xahlee.org
On Jul 19, 11:14 am, Thomas Jollans t...@jollybox.de wrote:
I thought I'd have some fun with multi-processing:
Nice joke. ☺
Here's a sane version:
https://gist.github.com/1087682/2240a0834463d490c29ed0f794ad15128849ff8e
hi thomas,
i still cant get your code to work. I have a dir named
On Jul 19, 11:07 am, Thomas Jollans t...@jollybox.de 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 xah...@gmail.com wrote:
i hope you'll participate. Just post solution here. Thanks.
http
2011-07-21
On Jul 18, 12:09 am, Rouslan Korneychuk rousl...@msn.com wrote:
I don't know why, but I just had to try it (even though I don't usually
use Perl and had to look up a lot of stuff). I came up with this:
/(?|
(\()(?matched)([\}\]”›»】〉》」』]|$) |
.
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 ian.g.ke...@gmail.com wrote:
On Thu, Jul 21, 2011 at 6:58 AM, Xah
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 closing brace always balance out with the
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 have 5
On Jul 18, 7:07 pm, Billy Mays no...@nohow.com 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 doesn't do any of the Unicode delims, because
let's face it, Unicode is for goobers
On Sunday, July 17, 2011 2:48:42 AM UTC-7, Raymond Hettinger wrote:
On Jul 17, 12:47 am, Xah Lee xah...@gmail.com 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://xahlee.org/p
On Jul 18, 10:12 am, Billy Mays
81282ed9a88799d21e77957df2d84bd6514d9...@myhashismyemail.com wrote:
On 07/17/2011 03:47 AM,XahLee wrote:
2011-07-16
I gave it a shot. It doesn't do any of the Unicode delims, because
let's face it, Unicode is for goobers.
import sys, os
pairs =
On Jul 18, 2:59 pm, Thomas 'PointedEars' Lahn pointede...@web.de
wrote:
Ian Kelly wrote:
Billy Mays wrote:
I gave it a shot. It doesn't do any of the Unicode delims, because let's
face it, Unicode is for goobers.
Uh, okay...
Your script also misses the requirement of outputting the
On Jul 17, 8:31 am, Thomas Jollans t...@jollybox.de wrote:
On Jul 17, 9:47 am,XahLee xah...@gmail.com 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
On Jul 19, 10:33 am, Billy Mays
81282ed9a88799d21e77957df2d84bd6514d9...@myhashismyemail.com wrote:
On 07/19/2011 01:14 PM,XahLee wrote:
I added other unicode brackets to your list of brackets, but it seems
your code still fail to catch a file that has mismatched curly quotes.
On Jul 17, 12:47 am, Xah Lee xah...@gmail.com 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 my solution (pasted
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.
• The files will be utf-8 encoded (unix style line ending).
• If a file has mismatched
maybe this will be of interest.
〈What Programing Language Are the Largest Website Written In?〉
http://xahlee.org/comp/website_lang_popularity.html
-
i don't remember how, but today i suddenly got reminded that Facebook
is written in PHP. So, on the spur of the
2011-07-11
On Jul 11, 6:51 am, jvt vincent.to...@gmail.com 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
On Jul 4, 12:13 pm, S.Mandl stefanma...@web.de 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 nice if someone actually give a
On Jul 5, 12:17 pm, Ian Kelly ian.g.ke...@gmail.com wrote:
On Mon, Jul 4, 2011 at 12:36 AM, Xah Lee xah...@gmail.com 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:
div class=img
On Jul 5, 12:17 pm, Ian Kelly ian.g.ke...@gmail.com wrote:
On Mon, Jul 4, 2011 at 12:36 AM, Xah Lee xah...@gmail.com 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:
div class=img
.
--
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 transform
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
On Jun 18, 4:06 am, Dotan Cohen dotanco...@gmail.com wrote:
On Sat, Jun 18, 2011 at 01:09, Xah Lee xah...@gmail.com 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:http
On Jun 14, 7:50 am, Dotan Cohen dotanco...@gmail.com wrote:
On Mon, Jun 13, 2011 at 10:21, Elena egarr...@gmail.com wrote:
On 13 Giu, 06:30, Tim Roberts t...@probo.com wrote:
Studies have shown that even a
strictly alphabetical layout works perfectly well, once the typist is
acclimated.
On Jun 15, 5:43 am, rusi rustompm...@gmail.com wrote:
On Jun 15, 5:32 pm, Dotan Cohen dotanco...@gmail.com wrote:
Thanks. From testing small movements with my fingers I see that the
fourth finger is in fact a bit weaker than the last finger, but more
importantly, it is much less dexterous.
On Jun 17, 2:26 pm, Dotan Cohen dotanco...@gmail.com wrote:
On Fri, Jun 17, 2011 at 20:43, Xah Lee xah...@gmail.com 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
On Jun 13, 6:45 pm, Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
Chris Angelico wrote:
And did any of the studies take into account the fact that a lot of
computer users - in all but the purest data entry tasks - will use a
mouse as well as a keyboard?
What I think's really stupid is
On Jun 13, 6:19 am, Steven D'Aprano 〔steve
+comp.lang.pyt...@pearwood.info〕 wrote:
│ I don't know if there are any studies that indicate how much of a
│ programmer's work is actual mechanical typing but I'd be surprised
if it
│ were as much as 20% of the work day. The rest of the time being
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
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.
(a lil weekend distraction from comp lang!)
in recent years, there came this Colemak layout. The guy who created
it, Colemak, has a site, and aggressively market his layout. It's in
linuxes distro by default, and has become somewhat popular.
I remember first discovering it perhaps in 2007. Me,
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. Worthless.
•
On May 26, 4:20 am, Thorsten Kampe thors...@thorstenkampe.de 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
On May 24, 3:06 pm, Rikishi42 skunkwo...@rikishi42.net wrote:
On 2011-05-24, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
I think that is a patronizing remark that under-estimates the
intelligence of lay people and over-estimates the difficulty of
understanding recursion.
On May 25, 12:26 am, Thorsten Kampe thors...@thorstenkampe.de wrote:
* Rikishi42 (Wed, 25 May 2011 00:06:06 +0200)
On 2011-05-24, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
I think that is a patronizing remark that under-estimates the
intelligence of lay people
On May 23, 9:28 pm, Chris Angelico ros...@gmail.com wrote:
On Tue, May 24, 2011 at 2:20 PM, Xah Lee xah...@gmail.com 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 behaviour
On May 22, 4:32 pm, Chris Angelico ros...@gmail.com wrote:
On Mon, May 23, 2011 at 9:17 AM, Xah Lee xah...@gmail.com 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
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 its
this is important but i think most lispers and functional programers
still don't know it.
Functional Programing: stop using recursion, cons. Use map vectors.
〈Guy Steele on Parallel Programing〉
http://xahlee.org/comp/Guy_Steele_parallel_computing.html
btw, lists (as cons, car, cdr) in the
On May 22, 3:46 pm, Chris Angelico ros...@gmail.com wrote:
On Mon, May 23, 2011 at 6:22 AM, Xah Lee xah...@gmail.com 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
directory
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 lingustics
On Mar 1, 3:40 pm, Chris Jones cjns1...@gmail.com wrote:
At first it looks like something MS (Morgan Stanley..) dumped into the
OSS lap fifteen years ago and nobody ever used it or maintained it.. so
it takes a bit of digging to make it.. sort of work in current GNU/linux
distributions..
On Feb 28, 7:30 pm, rusi rustompm...@gmail.com wrote:
On Feb 28, 11:39 pm, Dotan Cohen dotanco...@gmail.com wrote:
You miss the canonical bad character reuse case: = vs ==.
Had there been more meta keys, it might be nice to have a symbol for
each key on the keyboard. I personally have
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
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
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
On Feb 11, 2:06 am, Alexander Gattin xr...@yandex.ru wrote:
Hello,
On Tue, Feb 08, 2011 at 05:32:05PM +, Icarus
Sparry wrote:
The key thing which makes this 'modern' is the
'+' at the end of the command, rather than '\;'.
This causes find to execute the grep once per
group of
On Feb 8, 9:32 am, Icarus Sparry i.sparry...@gmail.com wrote:
On Tue, 08 Feb 2011 13:51:54 +0100, Petter Gustad wrote:
Xah Lee xah...@gmail.com writes:
problem with find xargs is that they spawn grep for each file, which
becomes too slow to be usable.
find . -maxdepth 2 -name '*.html
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
://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 film) in theater today.
Boo. On a scale of 1 to 10, i'd say
some extempore thought.
Do you know what is CGI?
Worked with Mathematica for 5 hours yesterday. Fantastic! This old
hand can still do something! lol. My plane curve packages soon to be
out n am gonna be rich.
...gosh what godly hours i've spend on Mathematica in 1990s. Surprised
to find that i
On Jan 4, 3:17 pm, ru...@yahoo.com ru...@yahoo.com wrote:
On 01/04/2011 01:34 PM, Terry Reedy wrote:
On 1/4/2011 1:24 PM, an Arrogant Ignoramus wrote:
what he called
a opinion piece.
I normally do not respond to trolls, but while expressing his opinions,
AI made statements that are
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
On Dec 20, 10:06 pm, Jon Harrop use...@ffconsultancy.com wrote:
Wasn't that the challenge where they wouldn't even accept solutions
written in many other languages (including both OCaml and F#)?
Ocaml is one of the supported lang. See:
http://ai-contest.com/starter_packages.php
there are 12
discovered this rather late.
Google has a AI Challenge: planet wars. http://ai-contest.com/index.php
it started sometimes 2 months ago and ended first this month.
the winner is Gábor Melis, with his code written in lisp.
Congrats lispers!
Gábor wrote a blog about it here
On Oct 28, 12:59 am, Lawrence D'Oliveiro l...@geek-
central.gen.new_zealand wrote:
In message
3fe80ac4-b595-4bcb-96b9-9138b1ec5...@l17g2000yqe.googlegroups.com,
TheFlyingDutchman wrote:
On Oct 27, 4:55 pm, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand
wrote:
Would it be right
On Oct 28, 1:42 am, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
sthueb...@googlemail.com (Stefan Hübner) writes:
Would it be right to say that the only Lisp still in common use is the
Elisp
built into Emacs?
Clojure (http://clojure.org) is a Lisp on the JVM. It's gaining more
On Oct 27, 5:46 pm, rantingrick rantingr...@gmail.com wrote:
On Oct 26, 4:31 am, Xah Lee xah...@gmail.com 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
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 languages, with my opinion
A great piece about terminology in computer languages.
* 〈The Poetry of Function Naming〉 (2010-10-18) By Stephen Wolfram.
At: http://blog.stephenwolfram.com/2010/10/the-poetry-of-function-naming/
See also:
• 〈The Importance of Terminology's Quality In Computer Languages〉
On Oct 20, 4:52 am, Marc Mientki mien...@nonet.com 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 examples of the naming.
I'd
On Sep 25, 9:05 pm, Xah Lee xah...@gmail.com 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
((0 a b) (1 c d
2010-10-09
On Oct 9, 3:45 pm, Sean McAfee eef...@gmail.com wrote:
Xah Lee xah...@gmail.com 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)
I
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 on blog
On Sep 29, 11:02 am, namekuseijin namekusei...@gmail.com wrote:
On 28 set, 19:38, Xah Lee xah...@gmail.com 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
On Sep 27, 9:34 pm, John Bokma j...@castleamber.com wrote:
Seebs usenet-nos...@seebs.net writes:
fup set to poster
On 2010-09-28, John Bokma j...@castleamber.com wrote:
Seebs usenet-nos...@seebs.net writes:
On 2010-09-26, J?rgen Exner jurge...@hotmail.com wrote:
It was livibetter who
xah wrote:
in anycase, how's “do” not imperative?
On Sep 28, 6:27 am, namekuseijin namekusei...@gmail.com 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 this time:
(do ((i 0 (+ 1 i)) ;
2010-09-28
On Sep 28, 12:07 pm, namekuseijin namekusei...@gmail.com wrote:
On 28 set, 14:56, Xah Lee xah...@gmail.com wrote:
ultimately, all lang gets transformed at the compiler level to become
machine instructions, which is imperative programing in the ultimate
sense.
You say
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,[1,2,3,4,5]))
How about this:
LC(func, inputList, P)
compared to
[func for myVar in inputList if P]
the functional form is:
• shorter
• not
On Sep 27, 12:11 pm, namekuseijin namekusei...@gmail.com wrote:
On 27 set, 16:06, Xah Lee xah...@gmail.com 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,[1,2,3,4,5]))
How about
2010-09-26
On Sep 25, 11:17 pm, Paul Rubin no.em...@nospam.invalid wrote:
Python solution follows (earlier one with an error cancelled). All
crossposting removed since crossposting is a standard trolling tactic.
from collections import defaultdict
def collect(xss):
d =
1 - 100 of 510 matches
Mail list logo