![]() |
#106 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,528
Karma: 37057604
Join Date: Jan 2008
Device: Pocketbook
|
Just got off a thread on another site talking about new programming languages. It's amazing how much object oriented coding concepts warp programmers minds.
All those people who had slide rules in the day would kill for all the wasted cycles... |
![]() |
![]() |
![]() |
#107 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,085
Karma: 722357
Join Date: Feb 2010
Device: PRS-505
|
My mind was warped long before I ever touched a computer.
My first programming language was FORTRAN IV, and I've been accused of writing FORTRAN programs in every language I touch, including assembler. All I can say in my own defense is there are times when a 3-value IF is exactly what you need, and I'm sad that the languages I code in nowadays lack them. |
![]() |
![]() |
![]() |
#108 | |
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
______ Dennis |
|
![]() |
![]() |
![]() |
#109 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,528
Karma: 37057604
Join Date: Jan 2008
Device: Pocketbook
|
Quote:
Some of those same people then tell me how bad greenhouse warming is, while requiring honkin' big server farms to handle their wildly inefficient coding languages... (I'll go quietly, officer.) |
|
![]() |
![]() |
![]() |
#110 | |||
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
It's simply not possible to handle the demand for applications in Assembler. And few of the object oriented languages you rail about will see widespread adoption. They are experiments, designed to address specific problem domains. A few may see wider adoption if they address a big enough problem set in a better way than existing languages. Some of them may not be as inefficient as you think. Quote:
And you would see the same growth of demand and big honking server farms no matter what language everyone coded in. There is simply an almost insatiable demand for new applications and machines to run them. ______ Dennis Last edited by DMcCunney; 07-27-2010 at 11:09 AM. |
|||
![]() |
![]() |
![]() |
#111 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
Quote:
This is some site. Pure, hardcore, slide rule porn ;-). They even have all the slide rule models I own. Unfortunately they obviously sell rules to collectors, with appropriate [collector] prices. Now I have to make my own circular slide rule, just to satisfy my craving. There is no way I could spend $250 of my fun budget on a really nice circular slide rule. You could buy a couple of refurbished e-ink readers for that price! So I will have to write some scripts in AutoLISP to draw nice circular logarithmic scale for me in AutoCAD. By the way, AutoLISP uses Reverse Polish Notation as its basic syntax. And *lots* or parenthesis. By the way, why are all the "western" slide rule scales labeled by illogical and cryptic markings like C, D, A, B, S, S-T, instead of x, x, x^2, x^2, sin(x) that every technician out there would recognize without referring to the manual? |
|
![]() |
![]() |
![]() |
#112 | |||||
Digitally confused
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 1500000
Join Date: Mar 2010
Location: London, UK
Device: KPW, K2i, Nexus 7 32gb, Kobo Mini
|
Quote:
![]() Quote:
Quote:
Quote:
Quote:
![]() |
|||||
![]() |
![]() |
![]() |
#113 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
Quote:
Quote:
Parentheses (together with the necessary whitespaces separating atoms) are the only thing that determine the structure of LISP program. Lisp is beautiful language. Very simple, very capable, the interpreter can be written with absolute minimum of code. This is why Lisp and its descendants (very often carefully disguised, so it is not obvious that "gee, this is that scary Lisp") are so popular as an embedded language for many systems. (+ 1 2) gives answer 3 (* (+ 1 2) 4) gives answer 12 On an RPN calculator you would enter something 4 shift 2 shift 1 + * But depending on the depth of the stack you do need to use parenthesis if the level of the deepest nested parenthesis is high enough. For better example have a look at this Wikipedia article http://en.wikipedia.org/wiki/Lisp_%2...ge%29#Examples When you write a program in AutoLisp and you want to prevent other people from reading the program you simply strip all the CR/LF characters (make it one long line), replace tabs (used for formatting) with spaces and then replace every occurrence of more than one consecutive space with one space. When you replace all the variable names with some A1, A1, A3, B1 meaningless names, it is guaranteed that nobody will be able to understand your program without LOTS of effort, especially when the program is long ;-) so a nicely formatted Code:
(defun factorial (n) (if (<= n 1) 1 (* n (factorial (- n 1))) ) ) Code:
(defun factorial (n) (if (<= n 1) 1 (* n (factorial (- n 1))))) By the way, do you know the GNU Emacs text editor? Do you know it has absolutely magnificent built-in RPN calculator that can find root of the equation of the n-th power, solve system of n non-linear equation with m variables in symbolic notation and do other unbelievable things? |
||
![]() |
![]() |
![]() |
#114 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,085
Karma: 722357
Join Date: Feb 2010
Device: PRS-505
|
Emacs has everything. It's just that you have to sit on a mountaintop wearing nothing but a loincloth and eating lychees for a year before you can actually use it all.
|
![]() |
![]() |
![]() |
#116 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 787
Karma: 1575310
Join Date: Jul 2009
Device: Moon+ Pro
|
Strange-the terms *I* remember used to belittle the stories I enjoyed 50 years ago were 'trash', 'escapist', and 'science fiction'. I don't recall hearing SciFi used at all until the 80's, when science fiction started becoming popular. (That's when all us long-time readers started turning into pretentious snobs because we'd recognized the worth of thinking about the future years before.)
|
![]() |
![]() |
![]() |
#117 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 281
Karma: 52007
Join Date: Jun 2010
Device: nook
|
Quote:
![]() Actually LISP stands for List Processor. Everything in LISP is a list. Even your program. And lists are enclosed in parenthesis. |
|
![]() |
![]() |
![]() |
#118 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 281
Karma: 52007
Join Date: Jun 2010
Device: nook
|
Emacs is not a text editor, it's a way of life.
It is astonishing all the weird add-on features that have been bolted on to it. |
![]() |
![]() |
![]() |
#119 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
Quote:
I was trying to learn XEmacs for several years and I organized a show-off with our resident Vim guru. I wanted to persuade him that XEmacs has more features [important to us, that is] than Vim. The show-off ended with me installing the Vim and never looking back ;-) In a week I was more efficient doing things I need to do -- mostly Regular expression magic -- in Vim than I ever was using [GNU|X]Emacs. I can take a freshly compiled Vim with default options and configure it exactly to my liking in 10 minutes. My dotemacs file had several kilobytes collected all over the net and I was still dissatisfied with its behavior. |
|
![]() |
![]() |
![]() |
#120 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New SciFi: 2184 | MartinParish | Self-Promotions by Authors and Publishers | 33 | 12-26-2010 09:59 PM |
Do you know this scifi paperback series? | motormanjh | Reading Recommendations | 2 | 08-08-2009 03:55 PM |
New SciFi Ezine Out | Gibbo | News | 18 | 04-26-2009 10:07 AM |
Help me place this SciFi! | RWJ | Lounge | 12 | 10-22-2008 03:58 AM |
SciFi/Fantasy | kezza | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 04-13-2003 11:52 AM |