Slashdot Mirror


User: Eli+Gottlieb

Eli+Gottlieb's activity in the archive.

Stories
0
Comments
3,639
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 3,639

  1. Re:Lisp renaissance on Bjarne Stroustrup Previews C++0x · · Score: 1

    Actually, I tend to use C, C++ (not much), Object Pascal or Lisp as I please. The parenthesis just annoy me because I hate Emacs and refuse to use it.

    And a language really doesn't need to have as little syntax as Lisp does in order to be that powerful. Lisp's advantage is that users build their functions on top of primitive functions, but the primitive functions look the same linguistically as the user-defined ones. This contrasts with, say... C++ where a user-defined can overload standard operators, but no new operators can be defined. I estimate that if you added a keyword to make a statement return a value and allowed user-defined operators an Algol-derived language could probably become almost as powerful as Lisp. "Almost" because Lisp's interpreted nature allows it to treat code as data without invoking the compiler.

  2. Re:run-time compiling? on Bjarne Stroustrup Previews C++0x · · Score: 1

    There is Lisp, and there are lower-level languages used for systems programming. That and maybe something for games, multimedia and other performance-critical apps.

  3. Re:So slowly C++ will become Ada? on Bjarne Stroustrup Previews C++0x · · Score: 1

    So it's the Revenge of the Bondage and Discipline Languages! Actually, I'm still waiting for the rest of the world to realize that clean, bug-discouraging languages are better than others which have no substantial difference from the B&D languages except that they allow you to shoot yourself in the head.

  4. Re:I Win on Bjarne Stroustrup Previews C++0x · · Score: 1

    You can read that?

  5. Re:run-time compiling? on Bjarne Stroustrup Previews C++0x · · Score: 1

    >(eval (read))
    (format t "~a" "You really should learn LISP.")
    You really should learn LISP.
    NIL
    >

  6. Re:My wish-list for c++ on Bjarne Stroustrup Previews C++0x · · Score: 1

    In other words, let's add bit arrays to Object Pascal and ditch C++ for it. I really don't get why people don't do that, really.

    The only problem I can think of is that there needs to be a way to create interface-only headers that you can ship to users who might want to link to your software.

  7. Re:Downhill at a fast rate on Bjarne Stroustrup Previews C++0x · · Score: 1

    (gcl)* (list "Lots of Irritating Superfluous Parenthesis" "Lisp uses garbage collection, you insensitive clod!")
    ("Lots of Irritating Superfluous Parenthesis" "Lisp uses garbage collection, you insensitive clod!")

    Get off your soapbox. Some of us like languages that actually have syntaxes and can really do low-level work.

  8. Re:Things to change before I'd get one on GP2X Surpasses Expectations · · Score: 1

    Actually, I'd agree with the WLAN thing. However, can't a USB WLAN dongle be attached by the USB port?

  9. Re:Legality? on GP2X Surpasses Expectations · · Score: 1

    "Hardly practical"? I've been getting ROMs off the web since I was in 5th grade! Want a copy of Kirby Superstar?

  10. Re:Both! on The Boot Loader Showdown · · Score: 4, Funny

    Apparently the virus protection doesn't recognize Windows for what it is, either.

  11. Re:Stymie the goons in charge on How To Enable Mom w/ Encrypted E-Mail? · · Score: 1

    See my latest journal entry for code to do exactly that sort of thing.

  12. Re:Communist country? Are you serious? on China Declares War on Internet Pornography · · Score: 4, Informative

    What you speak of is called "Oligarchical Socialism". True Communism has no government and no private ownership of the means of production.

  13. Re:Schools on Knowledge Overload or Internet Lazy? · · Score: 1

    And that is why community-funded Student-Directed-Learning Centers are a Better Idea than private schools.

  14. Source Code on NSA Caught With The Cookies · · Score: 1
    Here posted is the source code in Common Lisp that "terroristizes" given text. Thought I'd save the effort of duplication for those who haven't already coded one and don't use Emacs.
    ;This maker of food for the NSA Line Eater is copyright (C) Eli Gottlieb, December 26 2005.
    ;It's under the GNU General Public License version 2.0.
    (defvar *dictionary* '("assasinate" "kill" "suicide bomb" "dirty bomb" "nuclear device"
                  "Al-Quaeda" "insurgency" "Hamas" "Baath"
                  "jihad" "Allah" "Islam"
                  "Sears Tower" "Empire State Building" "White House" "Golden Gate Bridge" "New York City subway"
                  "Iraq" "Afghanistan" "Palestine" "Iran" "Saudi Arabia"
                  "Israel" "America" "England"
                  "infidels"
                  "Usama bin Laden"
                  "London"))
     
    (defun terroristize (lines)
      (if (not (equalp lines nil))
        (append
          (if (equalp (cdr lines) nil)
        (list (car lines))
        (list (car lines) (nth (random (length *dictionary*)) *dictionary*)))
          (terroristize (cdr lines)))
        nil))
     
    (defun equal-to-any (value any)
      (cond
        ((equalp value (car any)) (car any))
        ((cdr any) (equal-to-any value (cdr any)))
        ('t nil)))
     
    (defun all-whitespace-before-p (the-string start-index end-index)
      (do ((index start-index (- index 1)))
          ((equalp index end-index) T)
        (if (not (equalp (elt the-string index) #\ )) (return nil))))
     
    (defun token-delimited-p (token-beginning index-of-char string-data delimiters)
      (and (equal-to-any (elt string-data index-of-char) delimiters) (not (all-whitespace-before-p string-data index-of-char token-beginning))))
     
    (defun tokenize (string-input delimiters &optional (inclusive nil))
      (setf tokens nil)
      (setf token-beginning 0)
      (dotimes (c (length string-input))
        (if (token-delimited-p token-beginning c string-input delimiters)
          (progn
        (setf tokens (append tokens (list (subseq string-input token-beginning (if inclusive (+ c 1) c)))))
        (setf token-beginning (+ c 1)))))
      (if (< token-beginning (length string-input))
        (append tokens (list (subseq string-input token-beginning)))
        tokens))
     
    (defun parse-for-words (sentence)
      (tokenize sentence '(#\ )))
     
    (defun parse-for-sentences (message)
      (tokenize message '(#\. #\? #\!) T))
     
    (defun string-reglue (str1 str2 delimiter)
      (concatenate 'string (concatenate 'string str1 (string delimiter)) str2))
     
    (defun list-to-string (list-input)
      (if (stringp (car list-input))
        (if (cdr list-input)
          (string-reglue (car list-input) (list-to-string (cdr list-input)) #\ )
          (car list-input))
        nil))
     
    ;This is the main function. Hand it an arbitrary string to be sprinkled with "terrorist lingo" ;-).
    (defun feed-echelon (message)
      (setf sentences (mapcar 'parse-for-words (parse-for-sentences message)))
      (dotimes (sentence (length sentences))
        (setf (elt sentences sentence) (terroristize (elt sentences sentence))))
      (list-to-string (mapcar 'list-to-string sentences)))
  15. What do I care? on NSA Caught With The Cookies · · Score: 5, Funny

    Why Baath would Iraq I be kill on insurgency the Hamas NSA's London website Israel anyway?

  16. Re:With regards to the hoax... on Slashback: Little Red Hoax, Firefly, Google · · Score: 1

    There's no more need for the "Little Red Book" story. We already have another that's even worse for Bush.

  17. Re:As I peer into my crystal ball... on Slashback: Little Red Hoax, Firefly, Google · · Score: 1

    Correct. Too many scientists and hackers forget that randomness and free will are indistinguishable solely by observation. The higher power might be as dumb as a fruit fly, but there would still be an irreconcilable dichotomy between the "It's chance" crowd and the "Cosmic Fly did it" group.

  18. Re:As I peer into my crystal ball... on Slashback: Little Red Hoax, Firefly, Google · · Score: 1

    "Little Red Hoax"
    This will get the least press because it disproves slashdot Liberal majority that the Bush Administration is out to get them all.


    Actually, we don't need that story to prove the Bushiviks are out to get us all anymore. The NSA Data Mining Much Larger Than Reported, remember.

  19. Oh, good on Nissan and Microsoft Create Videogame Car · · Score: 4, Funny

    Now I can finally make a fool of myself in public by playing a driving game when I should be speaking to the police officer knocking on the window!

  20. Re:Windows' Difficulty with Names on Linux's Difficulty with Names · · Score: 1

    Or even more outrageous: That he fork every project whose name he finds confusing, change the names and somehow make all the major distros and the community use his version instead of the originals?

    Open source doesn't mean you can change anything you disagree with, it means you can change any issue you can get enough inertia behind your opinion on.

  21. Re:And somewhere on Dell Pre-Installing Firefox in UK · · Score: 1

    Inside the corporate offices of Microsoft, an angel dies.
    You seem to have misspelled "devil".

  22. Re:640Mb per second should be enough for anyone on Does Faster Broadband Matter? · · Score: 1

    Good for you, all that walking. Americans buy so many damned cars because we can never get our city planners and town boards to plan communities close together for walking instead of far apart for driving.

  23. Re:So I guess most people on Does Faster Broadband Matter? · · Score: 1

    The issue, however, is that you are paying more for somebody to punch a number into a computer or flip a switch. There's little to no actual work involved for the ISP to increase your upstream bandwidth. They already have the capacity, and they know perfectly well that powerusers would prefer more upstream. They're just greedy.

  24. Re:640Mb per second should be enough for anyone on Does Faster Broadband Matter? · · Score: 1

    I'm a fool, am I? Some people actually like owning what they use, you know.

  25. Recolada on Writing Genetic Code · · Score: 3, Insightful

    Good to hear somebody is working on something important.

    If God didn't mean us to create life he would smite these people straight out, so we can kill that objection, BTW.

    The interesting part is going to be how they actually turn their new genome into a living bacteria. They're basically going to have to either assemble the first one from whole cloth or trick some other microbe into producing what they want.

    And even if we can make these things perform useful functions, how to make sure they don't die out from lack of an evolutionary niche or mutate and become pathological?