Thread: Scheme

    #16
  1. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1050
    Originally Posted by xlordt
    Ok, i got the editor installed.. now i just need to change its BG from white to black.. it was as simple as python2.4 setup.py install.... done!
    I presumed you've have issues with not having gnome-python-extras and gnome-python, pygtk etc.
  2. #17
  3. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    Originally Posted by LinuxPenguin
    I presumed you've have issues with not having gnome-python-extras and gnome-python, pygtk etc.
    Ya.. but i do have Gnome installed.
  4. #18
  5. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    LinuxPenguin Can i modify scribes theme? If so were is the documentation for it?
  6. #19
  7. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1050
    No, and no.

    Nah, if you want to do that, you change the gnome code editor's preferences globally, there should be a gnome configuration file or utility for it somewhere.
  8. #20
  9. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1050
    Originally Posted by jamieB
    I couldn't comment, I'm happy with the default faces and color-themes
    The default font in any lisp's mode is bloody awful, it looks like courier.

    >>I've never had any problems installing slime and if you're using one of the open source common lisps it is the de facto standard. I like jumping to the hyperspec docs for the function under point etc. Have you seen Marco Baringer's slime movie? Worth a watch http://common-lisp.net/project/slime/doc/slime.torrent

    It was the movie that made slime installation look difficult. Granted, it might look a lot easier if they weren't trying to set up an ssh tunnel for it, but *shrug*

    >>I agree, it's not a general purpose language and typing has gotchas compared to strongly typed (but dynamic) modern lisps, but I think it makes a good embedded scripting language. The rich API helps - if you want to create a function that moves text around, rewrites as you type (eg closing parens or something more complicated) it's a matter of calling existing hooks.

    Yes, but even some rudimentary functions become *impossible* to make due to this, including the first function I tried to write in elisp (no, i can't remember what it was)
  10. #21
  11. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    What is wrong here.

    scheme Code:
    (define size 10)
    (if( < size 20)
       (display size) 
       (display "hmm")
    )
    I'm just testing things out.
  12. #22
  13. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1050
    a space after the if needed and a space before the < to be taken off
  14. #23
  15. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    Originally Posted by LinuxPenguin
    a space after the if needed and a space before the < to be taken off
    Damn i didnt know about the spaces... now how can i make it print on a new line. I tried adding (newline) right next to (display..)
  16. #24
  17. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1050
    (display "\n")

    When you get onto string handling you'll make it much more efficient, so don't worry about it.
  18. #25
  19. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    Well what i did was this.
    scheme Code:
    (define size 10)
     (if (< size 20)
         (display size)
         (display "hmm"))
    (newline)
  20. #26
  21. fork while true;
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2005
    Location
    England, UK
    Posts
    5,538
    Rep Power
    1050
    Is there even a primitive named newline? hrm...

    (display "\n")
  22. #27
  23. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2002
    Posts
    596
    Rep Power
    23
    Originally Posted by xlordt
    Damn i didnt know about the spaces... now how can i make it print on a new line. I tried adding (newline) right next to (display..)
    have you looked at SICP? It's aim isn't really to teach scheme but that's what it does...
    Can i modify scribes theme? If so were is the documentation for it?
    >> No and no.
    I'm keeping quiet
  24. #28
  25. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2002
    Posts
    596
    Rep Power
    23
    Originally Posted by LinuxPenguin
    It was the movie that made slime installation look difficult. Granted, it might look a lot easier if they weren't trying to set up an ssh tunnel for it, but *shrug*
    I know this is going OT but installing slime (if you already have sbcl, clisp, cmucl whatever installed) goes like this:

    . download slime
    . add 2 or 3 lines to .emacs, following the example in the slime docs
    . M-x slime
  26. #29
  27. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    Originally Posted by jamieB
    have you looked at SICP? It's aim isn't really to teach scheme but that's what it does...

    I'm keeping quiet
    hehehe
  28. #30
  29. Only the strong survives!!.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Feb 2003
    Location
    A World of wonders.
    Posts
    5,583
    Rep Power
    407
    Ok I want to know if there is a better shorter way of doing this?

    Code:
    (define age 27 )
    (define name "xlordt")
     ( if (< age 18)
       (begin 
        (display "Your not allowed to view this content") (newline)
       )
       (begin 
         (set! name "The King!!")
          (display name) (newline)
       )
     )
    Also how many scheme programmers are here at dev? Can somene show me a program created in scheme?

IMN logo majestic logo threadwatch logo seochat tools logo