GURU NEEDED : break a command into several lines and comment each line
Basically, I have spent a few hours experimenting and searching on the comp.unix.shell how to break a command with several switches into more than one line AND to be able to put some comment on each line. #!/bin/bash -xv command \ # comment1 -sw1 \ # comment2 -sw2 \ # comment3 arguments One ought to be able to comment every single switch if desired for whatever reason. Bolega -- http://mail.python.org/mailman/listinfo/python-list
Which is the best implementation of LISP family of languages for real world programming ?
Which is the best implementation of LISP family of languages for real world programming ? http://wiki.alu.org/Implementation Kindly pick one from commercial and one from open-source . The criteria is : libraries, gui interface and builder, libraries for TCP, and evolving needs. Please compare LISP and its virtues with other languages such as javascript, python etc. I put javascript in the context that it is very similar in its architecture (homoiconic ie same representation for data-structures and operations, ie hierarchical, which means nested-lists <=> n-ary tree <=> binary tree <=> linked-list <=> dictionary <=> task-subtask, and implicitly based on what C calls pointers, and at machine level the indirect addressing of memory) to lisp family. I put python in the context that it has the most extensive libraries and shares the build-fix virtue of lisp highlighted by Paul Graham in his books. Python is touted for its rapid prototyping of guis. It syntax enforces stable format which guards against programmer malice or sloppiness - so that there is a certain level of legacy code readability. Both have eval but not clear what is the implementation efficiency to justify the habit of excessively using it. Certainly, lisp/scheme are excellent for learning the concepts of programming languages due to its multi-paradigm nature and readily available code of the elementary interpreter. Is there an IDE for these lispish-scheming languages ? Is there quality implementation for Eclipse ? Emacs pre-supposes some knowledge of these so that newbie can get stuck. Also, emacs help is not very good. Is there a project whereby the internal help of emacs (analogous to its man pages) are being continuously being updated AND shared ? I have never seen updates to the help. Perhaps, the commercial people are doing it, even from the posts of the newsgroups, but the public distros or these newsgroups have NEVER made such an announcement. Explanations integrated into the help are more important than the books - its like the wikipedia incorporated into emacs. Is there support for the color highlighting of the code by hovering as on this page ? http://community.schemewiki.org/?lexical-scope Which book/paper has the briefest minimal example of gui design along XML nested/hiearchical elements with event-listeners for lisp/scheme ? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Which is the best implementation of LISP family of languages for real world programming ?
On Jun 10, 2:51 pm, p...@informatimago.com (Pascal J. Bourguignon) wrote: > bolega writes: > > Which is the best implementation of LISP family of languages for real > > world programming ? > > What's the real world? > What's real world programming? > > -- > __Pascal Bourguignon__ http://www.informatimago.com/ I mean ordinary people, who may want to do things with their computers for scripting, tasks that python can do, possibly when a language is weak and another has library, then use some function from there even if it is compiled. A set of work around techniques will always be needed. Things that perl does, python does, bash does etc. things like java applets for various animations etc. possibly some unoptimized but fast protyping of parsers to fix files or convert formats etc. a wide array of user tasks. Sorry, I dont intend any flame wars ... as a general statement ... -- http://mail.python.org/mailman/listinfo/python-list
Re: Which is the best implementation of LISP family of languages for real world programming ?
On Jun 12, 2:02 am, "Antti \"Andy\" Ylikoski" wrote: > 10.6.2010 23:14, bolega kirjoitti: > > > > > Which is the best implementation of LISP family of languages for real > > world programming ? > > >http://wiki.alu.org/Implementation > > > Kindly pick one from commercial and one from open-source . > > > The criteria is : > > > libraries, gui interface and builder, libraries for TCP, and evolving > > needs. > > > Please compare LISP and its virtues with other languages such as > > javascript, python etc. > > > I put javascript in the context that it is very similar in its > > architecture (homoiconic ie same representation for data-structures > > and operations, ie hierarchical, which means nested-lists<=> n-ary > > tree<=> binary tree<=> linked-list<=> dictionary<=> task-subtask, > > and implicitly based on what C calls pointers, and at machine level > > the indirect addressing of memory) to lisp family. > > > I put python in the context that it has the most extensive libraries > > and shares the build-fix virtue of lisp highlighted by Paul Graham in > > his books. Python is touted for its rapid prototyping of guis. It > > syntax enforces stable format which guards against programmer malice > > or sloppiness - so that there is a certain level of legacy code > > readability. > > > Both have eval but not clear what is the implementation efficiency to > > justify the habit of excessively using it. > > > Certainly, lisp/scheme are excellent for learning the concepts of > > programming languages due to its multi-paradigm nature and readily > > available code of the elementary interpreter. > > > Is there an IDE for these lispish-scheming languages ? Is there > > quality implementation for Eclipse ? Emacs pre-supposes some knowledge > > of these so that newbie can get stuck. Also, emacs help is not very > > good. > > > Is there a project whereby the internal help of emacs (analogous to > > its man pages) are being continuously being updated AND shared ? I > > have never seen updates to the help. Perhaps, the commercial people > > are doing it, even from the posts of the newsgroups, but the public > > distros or these newsgroups have NEVER made such an announcement. > > > Explanations integrated into the help are more important than the > > books - its like the wikipedia incorporated into emacs. > > > Is there support for the color highlighting of the code by hovering as > > on this page ? > > >http://community.schemewiki.org/?lexical-scope > > > Which book/paper has the briefest minimal example of gui design along > > XML nested/hiearchical elements with event-listeners for lisp/scheme ? > > > Thanks > > I have used several available LISP systems such as the Gigamonkeys CLISP > Lispbox, and the Clozure Common LISP. > > The system which I currently am using is the Franz Allegro Common LISP. > It is a commercial product; and so far I have had no problems with the > Allegro. (NB: I am using the Express version. I feel that the full > scale commercial license is not exceedingly expensive.) > > (Right now I'm studying and working with the exercises in Peter Norvig's > book Paradigms of Artificial Intelligence Programming. I have done 16 > of the 25 chapters.) > > This is not an advertisement. If someone wishes to criticize that > product, or if someone would like to suggest some other equally usable > implementation, of course please feel free to do so. > > regards, Antti J. Ylikoski > Helsinki, Finland, the E.U. What was your main reason for picking the Allegro (commercial) as opposed to one of the open source ones ? Is there anything in this old norvig book that makes it worth pursuing as a text ? http://norvig.com/paip.html -- http://mail.python.org/mailman/listinfo/python-list
C interpreter in Lisp/scheme/python
I am trying to compare LISP/Scheme/Python for their expressiveness. For this, I propose a vanilla C interpreter. I have seen a book which writes C interpreter in C. The criteria would be the small size and high readability of the code. Are there already answers anywhere ? How would a gury approach such a project ? Bolega -- http://mail.python.org/mailman/listinfo/python-list
Is Scheme/LISP faster than C/C++
Quoting the following post :- I am looking for expert opinions http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/54fb97d15b234d31# > Probably doesn't meet your intent, but this is a really impressive bit > of (whacky) art: Lisp runs faster than C. Once you get more time away from screwing Palestinians, and other false-flags, you will find ideas like these How to make Lisp go faster than C Didier Verna Abstract Contrary to popular belief, Lisp code can be very ef- cient today: it can run as fast as equivalent C code or even faster in some cases. In this paper, we explain how to tune Lisp code for performance by introducing the proper type declarations, using the appropriate data structures and compiler information. We also explain how e ciency is achieved by the compilers. These techniques are applied to simple image process- ing algorithms in order to demonstrate the announced performance on pixel access and arithmetic operations in both languages. === Standard Disclaimer, nothing personal http://www.youtube.com/watch?v=lX18zUp6WPY http://www.youtube.com/watch?v=XQapkVCx1HI http://www.youtube.com/watch?v=tXJ-k-iOg0M Hey Racist and INcompetent FBI Bustards, where is the ANTHRAX Mailer ? Where are the 4 blackboxes ? Where are the Pentagon Videos ? Why did you release the 5 dancing Israelis compromising the whole 911 investigation ? If the Dubai Police can catch Mossad Murderers and put the videos and Iranian Police can why cant you put the Pentagon Videos ? If Iran police can put the AMERICAN TERRORIST, Riggi and puting on INTERNATIONAL MEDIA a day after catching him without TORTURE, why cant you put the INNOCENT patsies on the MEDIA. Why did you have to LIE about Dr Afiya Siddiqui and torture that Innocent little mother of 3 and smashing the skull of her one child ? http://www.youtube.com/watch?v=DhMcii8smxk http://www.youtube.com/watch?v=0SZ2lxDJmdg There are CRIMINAL cases against CIA CRIMINAL Bustards in Italian courts. FBI bustards paid a penalty of $5.8 million to Steven Hatfill, but only because he was a white. They got away with MURDER of thousands of Non-whites in all parts of the world. Daily 911 news : http://911blogger.com http://www.youtube.com/watch?v=tRfhUezbKLw http://www.youtube.com/watch?v=x7kGZ3XPEm4 http://www.youtube.com/watch?v=lX18zUp6WPY -- http://mail.python.org/mailman/listinfo/python-list
Re: Is Scheme/LISP faster than C/C++
Sorry, I dont have access to the journal papers ... or I would do research myself. On Jun 14, 10:10 am, bolega wrote: > Quoting the following post :- > > I am looking for expert opinions > > http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/54... > > > Probably doesn't meet your intent, but this is a really impressive bit > > of (whacky) art: > > Lisp runs faster than C. Once you get more time away from screwing > Palestinians, and other false-flags, you will find ideas like these > > How to make Lisp go faster than C > Didier Verna > Abstract > Contrary to popular belief, Lisp code can be very ef- > cient today: it can run as fast as equivalent C code > or even faster in some cases. In this paper, we explain > how to tune Lisp code for performance by introducing > the proper type declarations, using the appropriate > data structures and compiler information. We also > explain how e ciency is achieved by the compilers. > These techniques are applied to simple image process- > ing algorithms in order to demonstrate the announced > performance on pixel access and arithmetic operations > in both languages. > > === > Standard Disclaimer, nothing personal > > http://www.youtube.com/watch?v=lX18zUp6WPY > > http://www.youtube.com/watch?v=XQapkVCx1HI > > http://www.youtube.com/watch?v=tXJ-k-iOg0M > > Hey Racist and INcompetent FBI Bustards, where is the ANTHRAX Mailer ? > Where are the 4 blackboxes ? Where are the Pentagon Videos ? Why did > you release the 5 dancing Israelis compromising the whole 911 > investigation ? If the Dubai Police can catch Mossad Murderers and put > the videos and Iranian Police can why cant you put the Pentagon > Videos ? If Iran police can put the AMERICAN TERRORIST, Riggi and > puting on INTERNATIONAL MEDIA a day after catching him without > TORTURE, why cant you put the INNOCENT patsies on the MEDIA. Why did > you have to LIE about Dr Afiya Siddiqui and torture that Innocent > little mother of 3 and smashing the skull of her one child ? > > http://www.youtube.com/watch?v=DhMcii8smxkhttp://www.youtube.com/watch?v=0SZ2lxDJmdg > > There are CRIMINAL cases against CIA CRIMINAL Bustards in Italian > courts. > > FBI bustards paid a penalty of $5.8 million to Steven Hatfill, but > only because he was a white. They got away with MURDER of thousands of > Non-whites in all parts of the world. > > Daily 911 news :http://911blogger.com > > http://www.youtube.com/watch?v=tRfhUezbKLw > > http://www.youtube.com/watch?v=x7kGZ3XPEm4 > > http://www.youtube.com/watch?v=lX18zUp6WPY -- http://mail.python.org/mailman/listinfo/python-list
Fascinating interview by Richard Stallman on Russia TV
"Democracy is sick in the US, government monitors your Internet" http://www.youtube.com/watch?v=2BfCJq_zIdk&feature=fvsr Enjoy . -- http://mail.python.org/mailman/listinfo/python-list
Fascinating interview by Richard Stallman on Russia TV
"Democracy is sick in the US, government monitors your Internet" http://www.youtube.com/watch?v=2BfCJq_zIdk&feature=fvsr Enjoy . -- http://mail.python.org/mailman/listinfo/python-list
Re: C interpreter in Lisp/scheme/python
On Jun 20, 9:31 pm, Richard Fateman wrote: > Define Macro wrote: > > On Jun 13, 7:07 pm, bolega wrote: > >> I am trying to compare LISP/Scheme/Python for their expressiveness. > > >> For this, I propose a vanilla C interpreter. I have seen a book which > >> writes C interpreter in C. > > >> The criteria would be the small size and high readability of the code. > > >> Are there already answers anywhere ? > > Sure. Lots of texts on compilers provide exercises which, in one way or > another suggest how to write an interpreter and perhaps a compiler too > for some language. Anyone taking a course on compilers is likely to > have followed such exercises in order to pass the course. Some > instructors are enlightened enough to allow students to pick the > implementation language. > > Ask any such instructor. Beware, he does not tell the readers the financial details. This is what he wrote to me by email. I would be willing to meet with you here in Berkeley to educate you on these matters at a consulting rate of $850 per hour, with a minimum of 8 hours. RJF > I think you will find that many people use a packaged parser-generator > which eliminates much of the choice-of-language difference. Do you like > Bison, Yacc, Antlr, or one of the many parser generators in Lisp, > python, etc. > > My own experience is that in comparing Lisp to C, students end up with > smaller and better interpreters and compilers, faster. I don't know > about python vs C for sure, but I suspect python wins. As for > python vs Lisp, I don't know. > > RJF -- http://mail.python.org/mailman/listinfo/python-list
Re: C interpreter in Lisp/scheme/python
On Jul 13, 11:18 pm, geremy condra wrote: > On Tue, Jul 13, 2010 at 11:01 PM, bolega wrote: > > On Jun 20, 9:31 pm, Richard Fateman wrote: > >> Define Macro wrote: > >> > On Jun 13, 7:07 pm, bolega wrote: > >> >> I am trying to compare LISP/Scheme/Python for their expressiveness. > > >> >> For this, I propose a vanilla C interpreter. I have seen a book which > >> >> writes C interpreter in C. > > >> >> The criteria would be the small size and high readability of the code. > > >> >> Are there already answers anywhere ? > > >> Sure. Lots of texts on compilers provide exercises which, in one way or > >> another suggest how to write an interpreter and perhaps a compiler too > >> for some language. Anyone taking a course on compilers is likely to > >> have followed such exercises in order to pass the course. Some > >> instructors are enlightened enough to allow students to pick the > >> implementation language. > > >> Ask any such instructor. > > > Beware, he does not tell the readers the financial details. This is > > what he wrote to me by email. > > > > > I would be willing to meet with you here in Berkeley to educate you on > > these matters at a consulting rate of $850 per hour, with a minimum > > of 8 hours. > > > RJF > > > > He's Berkeley's former CS chair and was implementing lisp before > common lisp was a twinkle in anybody's eye. His time is valuable. > > Geremy Condra This makes some sense. He replied on the newsgroup in a lengthy post that there are sufficient resources out there giving hint that no one need help me out. Then I was called "lazy" in one email and tersely given JUST the last name of an author who has many books each many 100s pages, when I asked for a relevant book, as if i am a scholar in the field, although he did spend lots of words on irrelevant and unbeneficial things which diminished my enthusiasm. Now, I find out from you that he has/had a business concern or interest in a company that is writing/wrote lisp interpreter in C. Correct me if I am making an error. I dont want to think deprecatingly of any good soul but this is what i experienced. -- http://mail.python.org/mailman/listinfo/python-list
Re: C interpreter in Lisp/scheme/python
On Jul 13, 11:35 pm, Paul Rubin wrote: > bolega writes: > > I am trying to compare LISP/Scheme/Python for their expressiveness... > > Are there already answers anywhere ? > > How would a gury approach such a project ? > > These two articles > > http://page.mi.fu-berlin.de/~prechelt/Biblio/jccpprt_computer2000.pdf > http://www.haskell.org/papers/NSWC/jfp.ps > > about language comparisons (Python is in the first but not the second) > might be of interest. > > If you want to know how to implement C, there is a pretty good book by > Hanson and Fraser about LCC, called "A Retargetable C Compiler". > Basically a code walkthrough of a small C compiler written in C. I have decided to limit my goal to tyni LISP interpreter in C because its a smaller and simpler language. -- http://mail.python.org/mailman/listinfo/python-list
Emacs Time Line, Graphical Chart by Jamie Zawinski - Valuable Resource for Newbies - written: 8-Mar-1999, updated: 29-Oct-2007
Many newbies would find this one by Jamie Zawinski, of immense help http://www.jwz.org/doc/emacs-timeline.html written: 8-Mar-1999, updated: 29-Oct-2007 For more detail about the early days, please see Bernie Greenberg's paper, Multics Emacs: The History, Design and Implementation. I've drawn lines only where code is shared, not merely ideas. 1976TECMAC and TMACS a pair of "TECO-macro realtime editors." by Guy Steele, Dave Moon, Richard Greenblatt, Charles Frankston, et al. | | 1976EMACS by Richard Stallman, Guy Steele, EINE (EINE Is Not EMACS) and Dave Moon. by Dan Weinreb. Merger of TECMAC and TMACS, plus for MIT Lisp Machine. a dynamic loader and Meta-key cmds.First Emacs written in Lisp. Ran on ITS and TWENEX (Tops-20)| written in TECO and PDP 10 assembly. | | | 1978Multics Emacs ZWEI (ZWEI Was EINE Initially) by Bernie Greenberg. by Dan Weinreb and Mike McMahon. written in MacLisp;| also used Lisp as its | extension language.| 1980 ZMACS (direct descendant of ZWEI) on Symbolics LM-2, LMI LispM, and later, TI Explorer (1983-1989) 1981 Gosling Emacs : by James Gosling: written in C; with "Mocklisp" as its extension language. / | 1983 / | / Unipress Emacs (6-may-83) /$395 commercial product. 1984 / Hemlock /by Bill Chiles, / Rob MacLachlan, et al. 1985 GNU Emacs 13.0? (20-mar-85) written in Spice Lisp by Richard Stallman. (CMU Common Lisp) initial public release? : | : GNU Emacs 15.10 (11-apr-85) : | GNU Emacs 15.34 (07-may-85) | GNU Emacs 16.56 (15-jul-85) (Gosling code expunged for copyright reasons) | | GNU Emacs 16.60 (19-sep-85) (contained first patches from the net, including preliminary SYSV support) | | GNU Emacs 17.36 (20-dec-85) (included TeX manual; first version that worked on SYSV out of the box) | | 1986 GNU Emacs 18.24 beta (02-oct-86) | 1987 GNU Emacs 18.41 (22-mar-87) | GNU Emacs 18.45 (02-jun-87) | GNU Emacs 18.49 (18-sep-87) | \ |\ | \ | \ | Early work on Epoch begins (1987) | by Alan M. Carroll 1988 GNU Emacs 18.50 (13-feb-88) | | | GNU Emacs 18.51 (07-may-88) | | | GNU Emacs 18.52 (01-sep-88) | |Epoch 1.0 (14-dec-88) |by Alan M. Carroll with Simon Kaplan 1989 GNU Emacs 18.53 (24-feb-89) | | \ | |\ | _ | |\ GNU Emacs 18.54 (26-apr-89) | \ | | \ GNU Emacs 18.55 (23-aug-89) | \ || |\ || | NEmacs 3.2.1 (15-dec-89) || | "Nihongo Emacs": a fork || | with multi-byte Japanese || | language support. || | | || Epoch 2.0 (23-dec-89) | || | | || | | 1990 || Epoch 3.1 (06-feb-90) | || | | |\ | NEmacs 3.3.1 (3-mar-90) | \ | | | \ Epoch 3.2 (11-dec-90) | | \last C
sed/awk/perl: How to replace all spaces each with an underscore that occur before a specific string ?
sed/awk/perl: How to replace all spaces each with an underscore that occur before a specific string ? I really prefer a sed one liner. Example Input : This is my book. It is too thick to read. The author gets little royalty but the publisher makes a lot. Output: This_is_my_book._It_is_too__thick_to read. The author gets little royalty but the publisher makes a lot. We replaced all the spaces with underscores before the first occurence of the string "to ". Thanks Gnuist -- http://mail.python.org/mailman/listinfo/python-list