Power of Interpreted Languages

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default Power of Interpreted Languages

    Some general questiosn concerning interpreted lanaguages (and their JIT couterparts).

    How far do you think an interpreted language can go? In otherwords, to what extent could the more traditional set of compiled c/c++ programs on a system be replaced by interpreted versions.

    We all know that scripting is great for good many tasks, but could scripting make for a good word processor, for instance? How about a Desktop Enviornment or Window Manager?

    To what extent can Ruby programs be utilized to displace traditional binary apps on my PC?

    Comments...thoughts?

    -t

    T. Onoma Guest

  2. Similar Questions and Discussions

    1. ASP Code not interpreted
      Hi there, I am storing asp code as content in a table field (MS SQL Server). When I try to display it via a HTML page only the HTML is...
    2. Antwort: Power of Interpreted Languages
      Ohyea But, would you implement a game with ruby?
    3. Stuff inside <? ... ?> not being interpreted
      Hi all. I have some scripts that switch between plain HTML and PHP. eg: <img src="<? echo($myimage) ; ?>" alt="myimage.jpg"> On my old...
    4. [PHP] PHP - Interpreted or Compiled Language
      Thanks jay for quick response I'll tell you what really forced me to go in the matter of interpreted or Compiled language. In the heart of PHP...
    5. [PHP] PHP - Interpreted or Compiled Language
      PHP is most definitely an interpreted language. -Jackson On Thursday 14 August 2003 8:37, breath wrote: -- jackson miller cold feet...
  3. #2

    Default Re: Power of Interpreted Languages

    --- "T. Onoma" <transami@runbox.com> wrote:
    > Some general questiosn concerning interpreted lanaguages (and their JIT
    > couterparts).
    >
    > How far do you think an interpreted language can go? In otherwords, to
    > what extent could the more traditional set of compiled c/c++ programs on
    > a system be replaced by interpreted versions.
    Not this tired old refrain again.... Every task has a purpose, so it
    really doesn't matter to what extend which language you use. Yes, perhaps
    there are languages out there more suited to performing certain tasks than
    others...

    For example, I wouldn't want to see a high-end graphics game written in
    Ruby, it would be too slow.
    > We all know that scripting is great for good many tasks, but could
    > scripting make for a good word processor, for instance? How about a
    > Desktop Enviornment or Window Manager?
    No -- too slow.
    > To what extent can Ruby programs be utilized to displace traditional
    > binary apps on my PC?
    This sounds very much like a homework assignment....

    -- Thomas Adam

    =====
    Thomas Adam

    "The Linux Weekend Mechanic" -- [url]http://linuxgazette.net[/url]
    "TAG Editor" -- [url]http://linuxgazette.net[/url]

    __________________________________________________ ______________________
    Want to chat instantly with your online friends? Get the FREE Yahoo!
    Messenger [url]http://mail.messenger.yahoo.co.uk[/url]

    Thomas Adam Guest

  4. #3

    Default Re: Power of Interpreted Languages

    > > We all know that scripting is great for good many tasks, but could
    > > scripting make for a good word processor, for instance? How about a
    > > Desktop Enviornment or Window Manager?
    >
    > No -- too slow.
    A counter-argument: Look at SawFish. It's critical sections are written
    in C, using GTK and GDK to do drawing routines. However, the logic of
    the window manager is written in Scheme/REP. Sawfish is also incredibly
    flexible beacuse of this, Scheme being as dynamic as it is.

    I don't think that being interpreted makes this possible, it is being
    dynamic. That said, dynamic is usually a feature of interpreted
    languages, not compiled. (The most notable exception I can think of
    being Objective C.)

    Sawfish is plenty fast -- faster than Metacity, often, which is written
    in C alone.

    I'd love to see many apps written in Ruby/Gnome2, or at least large
    sections. A word processor with the logic written in Ruby would be easy
    to hack, easy to fix. Same for other apps. In my experience, it's fast
    enough.

    (This is why Emacs is popular, too...)

    Ari


    Aredridel Guest

  5. #4

    Default Re: Power of Interpreted Languages


    On Nov 7, 2003, at 13:31, Thomas Adam wrote:
    >> We all know that scripting is great for good many tasks, but could
    >> scripting make for a good word processor, for instance? How about a
    >> Desktop Enviornment or Window Manager?
    >
    > No -- too slow.
    >
    Andy and I've written an X-11 window manager, mostly in Ruby...

    Cheers


    Dave


    Dave Thomas Guest

  6. #5

    Default Re: Power of Interpreted Languages

    Wow. Can we download it somewhere?
    ___________________
    John Long
    [url]www.wiseheartdesign.com[/url]


    ----- Original Message -----
    From: "Dave Thomas" <dave@pragprog.com>
    To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
    Sent: Friday, November 07, 2003 8:18 PM
    Subject: Re: Power of Interpreted Languages

    >
    > On Nov 7, 2003, at 13:31, Thomas Adam wrote:
    > >> We all know that scripting is great for good many tasks, but could
    > >> scripting make for a good word processor, for instance? How about a
    > >> Desktop Enviornment or Window Manager?
    > >
    > > No -- too slow.
    > >
    >
    > Andy and I've written an X-11 window manager, mostly in Ruby...
    >
    > Cheers
    >
    >
    > Dave
    >
    >
    >
    >
    >


    John W. Long Guest

  7. #6

    Default Re: Power of Interpreted Languages


    On Nov 7, 2003, at 21:30, John W. Long wrote:
    >> Andy and I've written an X-11 window manager, mostly in Ruby...
    > Wow. Can we download it somewhere?
    >
    Sorry - it was for a client (and it was fairly specialized: it was
    designed for an internet kiosk, so it's main job was to control rigidly
    which windows could be displayed, and where)

    Cheers


    Dave


    Dave Thomas Guest

  8. #7

    Default Re: Power of Interpreted Languages

    "John W. Long" <ng@johnwlong.com> writes:
    > Wow. Can we download it somewhere?
    There is an open source ruby-scriptable X11 WM out there.

    [url]http://kahakai.sourceforge.net[/url]

    I've yet to try it, but I'd love to hear more opinions of it.
    George Ogata Guest

  9. #8

    Default Power of Interpreted Languages

    > But, would you implement a game with ruby?

    Depends on the game, of course.

    Probably not 100% Ruby, but from what others have said/implied Ruby could make a good glue language to pull the compiled pieces together, as well as an embedded script language.

    Others agree?


    T. Onoma Guest

  10. #9

    Default Re: Power of Interpreted Languages

    On Mon, 10 Nov 2003 18:36:51 +0900, T. Onoma wrote:
    >> But, would you implement a game with ruby?
    >
    > Depends on the game, of course.
    >
    > Probably not 100% Ruby, but from what others have said/implied Ruby
    > could make a good glue language to pull the compiled pieces together,
    > as well as an embedded script language.
    >
    > Others agree?
    I have made a tiny Tetris game using Ruby SDL (271 lines of code).
    It runs smooth on my pentium350.

    Its distributed with ruby-sdl as a sample:
    [url]http://www.kmc.gr.jp/~ohai/index.en.html[/url]

    --
    Simon Strandgaard
    Simon Strandgaard Guest

  11. #10

    Default Re: Power of Interpreted Languages

    On Monday 10 Nov 2003 9:36 am, T. Onoma wrote:
    > > But, would you implement a game with ruby?
    >
    > Depends on the game, of course.
    >
    > Probably not 100% Ruby, but from what others have said/implied Ruby could
    > make a good glue language to pull the compiled pieces together, as well as
    > an embedded script language.
    Absolutely. I'm working on a massive multiplayer game which has it's own
    internal script language to allow players to create their own AI for
    spacecraft/missiles etc. I've been thinking for a while about the feasibility
    of ripping that out and replacing it with an internal ruby facility. The main
    problem I see is being able to limit the resources available to each player.
    I wouldn't want someone allocating some huge array and bringing the server to
    its knees. I'm sure it's feasible though; Just haven't applied any thought to
    the solution yet ;)

    And of course the legal implications of using ruby in a commercial game, which
    might be insurmountable.

    Andrew Walrond


    Andrew Walrond Guest

  12. #11

    Default Re: Power of Interpreted Languages

    > And of course the legal implications of using ruby in a commercial game, which
    > might be insurmountable.
    Can someone expound on this? Are there problems using ruby in commercial products?
    John Guest

  13. #12

    Default Re: Power of Interpreted Languages

    On Mon, 10 Nov 2003 06:56:02 -0800, John wrote:
    >> And of course the legal implications of using ruby in a commercial game, which
    >> might be insurmountable.
    >
    > Can someone expound on this? Are there problems using ruby in commercial products?
    Ruby's regexp engine has a GPL license.

    If you wish to use Ruby in a commercial product, then compile the
    oniguruma regexp engine into Ruby. AFAIK.. that should be it.

    --
    Simon Strandgaard
    Simon Strandgaard Guest

  14. #13

    Default Re: Power of Interpreted Languages

    On Mon, Nov 17, 2003 at 10:22:34AM +0900, Simon Strandgaard wrote:
    > On Mon, 10 Nov 2003 06:56:02 -0800, John wrote:
    >
    > >> And of course the legal implications of using ruby in a commercial game, which
    > >> might be insurmountable.
    > >
    > > Can someone expound on this? Are there problems using ruby in commercial products?
    >
    > Ruby's regexp engine has a GPL license.
    LGPL, a bit nicer for commercial uses

    --
    _ _
    | |__ __ _| |_ ___ _ __ ___ __ _ _ __
    | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \
    | |_) | (_| | |_\__ \ | | | | | (_| | | | |
    |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
    Running Debian GNU/Linux Sid (unstable)
    batsman dot geo at yahoo dot com

    *** PUBLIC flooding detected from erikyyy
    <lewnie> THAT's an erik, pholx.... ;)
    -- Seen on #LinuxGER


    Mauricio Fernández Guest

  15. #14

    Default Re: Power of Interpreted Languages

    On Tue, 18 Nov 2003 06:18:52 +0900, Mauricio Fernández wrote:
    > On Mon, Nov 17, 2003 at 10:22:34AM +0900, Simon Strandgaard wrote:
    >> On Mon, 10 Nov 2003 06:56:02 -0800, John wrote:
    >>
    >> >> And of course the legal implications of using ruby in a commercial game, which
    >> >> might be insurmountable.
    >> >
    >> > Can someone expound on this? Are there problems using ruby in commercial products?
    >>
    >> Ruby's regexp engine has a GPL license.
    >
    > LGPL, a bit nicer for commercial uses
    Sorry, it wasn't on purpose.. :-)

    --
    Simon Strandgaard
    Simon Strandgaard Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139