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 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
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
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 F
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 get
〈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 app
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
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
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
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 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
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. @
http://www.youtube.com/watch?v=_
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 Progra
〈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…
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
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
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
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
On Mar 1, 7:04 am, Kaz Kylheku 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, but that // is j
On Feb 29, 9:01 pm, Steven D'Aprano 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], list_a[i]
forgive me sir, but i haven't
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
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!
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
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
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'l
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...
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".
>
>
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. "1stst
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
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
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
2011-07-21
On Jul 18, 12:09 am, Rouslan Korneychuk 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)([\}\]”›»】〉》」』]|$) |
> (\{)(?&matched)([\)\]”›»】〉》」』]|$) |
>
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
On Jul 19, 11:14 am, Thomas Jollans 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 xxdir with a
sing
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
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.
> > (e.
On Jul 17, 8:31 am, Thomas Jollans wrote:
> On Jul 17, 9:47 am,XahLee 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 mat
On Jul 18, 2:59 pm, Thomas 'PointedEars' Lahn
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 inde
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
>
> pair
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
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
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
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 matching-p
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 mo
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 is much more the pro
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:
>
>
>
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:
>
>
>
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 nice if someone actually give a example...
Xah
--
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
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 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
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
On Jun 15, 5:43 am, rusi wrote:
> On Jun 15, 5:32 pm, Dotan Cohen 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. Good to know!
>
> Most of the pia
On Jun 14, 7:50 am, Dotan Cohen wrote:
> On Mon, Jun 13, 2011 at 10:21, Elena wrote:
> > On 13 Giu, 06:30, Tim Roberts wrote:
> >> Studies have shown that even a
> >> strictly alphabetical layout works perfectly well, once the typist is
> >> acclimated.
>
> > Once the user is acclimated to move
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,
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
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
thinki
On Jun 13, 6:45 pm, Gregory Ewing 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 designing keyboard
(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, be
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.
• M
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
On May 25, 12:26 am, Thorsten Kampe wrote:
> * Rikishi42 (Wed, 25 May 2011 00:06:06 +0200)
>
>
>
>
>
>
>
>
>
>
>
> > On 2011-05-24, Steven D'Aprano wrote:
> > >>> I think that is a patronizing remark that under-estimates the
> > >>> intelligence of lay people and over-estimates the difficulty of
On May 24, 3:06 pm, Rikishi42 wrote:
> On 2011-05-24, Steven D'Aprano wrote:
>
> >>> I think that is a patronizing remark that under-estimates the
> >>> intelligence of lay people and over-estimates the difficulty of
> >>> understanding recursion.
>
> >> Why would you presume this to be related t
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
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)”
>
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
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 lis
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 contents
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
On Mar 1, 3:40 pm, Chris Jones 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.. especially since it
On Feb 28, 7:30 pm, rusi wrote:
> On Feb 28, 11:39 pm, Dotan Cohen 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 experimented with putting
> > the sy
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
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
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 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 files,
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
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
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
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 e
On Jan 4, 3:17 pm, "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" 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 teams using OCaml. S
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
http://quotenil.com/Pl
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
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 g
On Oct 28, 12:59 am, Lawrence D'Oliveiro wrote:
> In message
> <3fe80ac4-b595-4bcb-96b9-9138b1ec5...@l17g2000yqe.googlegroups.com>,
>
> TheFlyingDutchman wrote:
> > On Oct 27, 4:55 pm, Lawrence D'Oliveiro
> > wrote:
>
> >> Would it be right to say that the only Lisp still in common use is the
>
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
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
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〉
http://xahlee.org/Un
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
>
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)
>
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
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.
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
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 this time:
>
> "
> (do ((i 0 (+ 1 i)) ; i initially
On Sep 27, 9:34 pm, John Bokma wrote:
> Seebs writes:
>
> fup set to poster
>
> > On 2010-09-28, John Bokma wrote:
> >> Seebs writes:
> >>> On 2010-09-26, J?rgen Exner wrote:
> It was livibetter who without any motivation or reasoning posted Python
> code in CLPM.
>
> >>> Not exactly
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,
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
• n
On Sep 26, 5:40 am, Spiros Bousbouras wrote:
> > And just for good measure, some «European style quotes» and “balanced smart
> > quotes” which I intend some day to try to convince people to start using
> > to eliminate the scourge of backslash escapes. But that's a topic for
> > another day.
>
>
1 - 100 of 525 matches
Mail list logo