Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How well does Guile work on Windows?
How well does Guile work on Windows? I am planning to write a game using
C++ and Guile. I have found several C++ libraries that make the C++ side
portable between Linux and Windows, and even a graphics library that works.

Now all i need is the scripting language. As a fan of Lisp, my first
choice would be guile.

But it appears that Guile requires Cygwin to run (on windows). Has
anyone gotten Guile to run without Cygwin? If not, then is there a way
to distribute Cygwin without forcing the user to install Cygwin on to
his/her computer?

Thanks. If there are other scheme-extension language implementations
that work on windows and linux, please tell me. But if either of the
above CygWin questions are possible, then i'll stick with guile.

Again, thanks.

Percival

Report this thread to moderator Post Follow-up to this message
Old Post
Percival
10-13-04 08:57 AM


Re: How well does Guile work on Windows?
Percival wrote:
> How well does Guile work on Windows? I am planning to write a game using
> C++ and Guile. I have found several C++ libraries that make the C++ side
> portable between Linux and Windows, and even a graphics library that works
.
>
> Now all i need is the scripting language. As a fan of Lisp, my first
> choice would be guile.
>
> But it appears that Guile requires Cygwin to run (on windows). Has
> anyone gotten Guile to run without Cygwin? If not, then is there a way
> to distribute Cygwin without forcing the user to install Cygwin on to
> his/her computer?
>
> Thanks. If there are other scheme-extension language implementations
> that work on windows and linux, please tell me. But if either of the
> above CygWin questions are possible, then i'll stick with guile.
>
> Again, thanks.
>
> Percival

Erm... bump :)
Just basically a reply to myself, so that maybe someone will see my
question.

Percival

Report this thread to moderator Post Follow-up to this message
Old Post
Percival
10-21-04 01:57 AM


Re: How well does Guile work on Windows?
Percival wrote:

> Percival wrote:
>=20 
 
=20 
 

> Erm... bump :)
> Just basically a reply to myself, so that maybe someone will see my=20
> question.

Hi Percival

The lack of answers is probably due toe the fact that only a small
minority in this group uses Guile - and if they do then on Unix.

There are some implementations that run on both Windows and Unix,
such as DrScheme, SISC, Chicken and MIT Scheme.

The tricky part is your requirement of a graphics library.
What kind of game do you have in mind? A 3d game or a 2d bitmap
oriented game?

--=20
Jens Axel S=F8gaard


Report this thread to moderator Post Follow-up to this message
Old Post
Jens Axel Søgaard
10-21-04 01:57 AM


Re: How well does Guile work on Windows?
Percival on Wed, 20 Oct 2004 17:52:57 -0400 writes:
 

I think you can distribute just the CygWin DLLs (see [1] for how to
see what they are), with the other files you are required to
distribute by the CygWin license.

1. http://cygwin.com/faq/faq_3.html#SEC105

Please note that the free version of CygWin is GPL'de, so you can not
use the DLL with proprietary programs [2].

2. http://cygwin.com/faq/faq_1.html#SEC4

--
Marco Parrone <marc0@autistici.org> [0x45070AD6]

Report this thread to moderator Post Follow-up to this message
Old Post
Marco Parrone
10-21-04 01:57 AM


Re: How well does Guile work on Windows?
Jens Axel Søgaard wrote:
>
> There are some implementations that run on both Windows and Unix,
> such as DrScheme, SISC, Chicken and MIT Scheme.

Don't forget Bigloo.  http://www-sop.inria.fr/mimosa/fp/Bigloo/  That's what
I'm currently investigating right now, for Windows game development.  Bigloo
appears to have the best performance, according to
http://shootout.alioth.debian.org/ .

> The tricky part is your requirement of a graphics library.
> What kind of game do you have in mind? A 3d game or a 2d bitmap
> oriented game?

Nowadays the canonical way to implement a 2D game is through a 3D API.
Unless the game is so simple that any OS GUI would do, i.e. Minesweeper.

--
Cheers,                         www.indiegamedesign.com
Brandon Van Every               Seattle, WA

"We live in a world of very bright people building
crappy software with total shit for tools and process."
- Ed McKenzie


Report this thread to moderator Post Follow-up to this message
Old Post
Brandon J. Van Every
10-21-04 08:59 AM


Re: How well does Guile work on Windows?
"Brandon J. Van Every" wrote:

> Jens Axel Søgaard wrote: 
>
> Don't forget Bigloo.  http://www-sop.inria.fr/mimosa/fp/Bigloo/  That's wh
at
> I'm currently investigating right now, for Windows game development.  Bigl
oo
> appears to have the best performance, according to
> http://shootout.alioth.debian.org/ .

I feel compelled to comment on a few things related to Bigloo and performanc
e;
at least from my own experience.

As we know: Bigloo lets you use some basic types. That is especially useful 
for
a) documenting ones own code and b) performance improvements.

When speaking of performance: Bigloo is in the league of OCaml. That means
there is often only a 2-3 times performance hit/penalty compared to C. I mad
e
the experience that the performance penalty is predominant when dealing with
arrays. When simply considering floating point operations Bigloo is always
equal to C for example (grook google and comp.lang.scheme for the "Coyote gu
lch
benchmark").

If you stick to some basic rules you will get good performance out of Bigloo
:

a) Use fl*, fl/ operators (the code ist still portable!)

b) It is often better to make an array in advance; I mean one could use a
"let"-loop construct with consing up the elements and at the exit that list 
is
converted to a vector. In Bigloo it is often better to deal with vectors or
arrays from the very beginning on. However, Stalin is that cute and knows ho
w
to deal with consing-lists even and makes the best out of that.

c) Rule of thumb: use the freedom of Scheme programming. I make good progres
s
with the following strategy: a) First I try to write a working program b) Th
en
I start polishing it by means of giving and setting type informations; the
latter ensures not only sometimes a speed-up of the executable code it also
strongly improves documentation of the code. AND: Bigloo is never your enemy
 as
the way disguised OCaml sometimes plays.

d) Use all the Bigloo facilities if you need to (pattern matching, etc...); 
it
does not make sense to use Bigloo in a strict R5Rs sense.

e) The best performance option at the command line: bigloo -Obench foo.scm

That said: Does anybody know whether Bigloo its inline-function facility is
something similar to C++ its inline option. I mean often inlining functions
improves speed. Or does the Bigloo compiler automatically inline functions w
hen
using the -Obench option?

Fensterbrett


>
>


Report this thread to moderator Post Follow-up to this message
Old Post
Siegfried Gonzi
10-21-04 01:57 PM


Re: How well does Guile work on Windows?
Jens Axel Søgaard on Thu, 21 Oct 2004 00:07:33 +0200 writes:

> There are some implementations that run on both Windows and Unix,
> such as DrScheme, SISC, Chicken and MIT Scheme.

I think he wants to write some stuff in C++, and use Scheme as
scripting/extension language.

Guile, like ELK and librep, are specifically intended to be used as
extension languages, AFAIK the ones you have mentioned are not.

> The tricky part is your requirement of a graphics library.

This is one advantage of using another language too (he can implement
in C++ the graphics-related stuff, among other things).

I too am trying this way - the static core code in C, and the game
world described in a specific interpreted language.

--
Marco Parrone <marc0@autistici.org> [0x45070AD6]
<http://home.gna.org/lingerie>

Report this thread to moderator Post Follow-up to this message
Old Post
Marco Parrone
10-21-04 09:04 PM


Re: How well does Guile work on Windows?
Marco Parrone wrote:
> Jens Axel S=F8gaard on Thu, 21 Oct 2004 00:07:33 +0200 writes:
> 
>
> I think he wants to write some stuff in C++, and use Scheme as
> scripting/extension language.
>
> Guile, like ELK and librep, are specifically intended to be used as
> extension languages, AFAIK the ones you have mentioned are not.

DrScheme itself is not intended as an extension language, but the
scheme implementation underlying it, mzscheme is.

SISC is intended as an extension language, but it specifically
extends Java (which can be used to extend C/C++ through JNI).
There's probably a graphics library that can fit your needs
available for Java.

Chicken should be usable as an extension language, seeing as
there is good integration with C.

I don't know of examples or practice of MIT Scheme being used as
an extension language.

> 
>
> This is one advantage of using another language too (he can implement
> in C++ the graphics-related stuff, among other things).
>
> I too am trying this way - the static core code in C, and the game
> world described in a specific interpreted language.
>
> --
> Marco Parrone <marc0@autistici.org> [0x45070AD6]
> <http://home.gna.org/lingerie>

---
-Jordan Henderson


Report this thread to moderator Post Follow-up to this message
Old Post
jordan.henderson@gmail.com
10-21-04 09:04 PM


Re: How well does Guile work on Windows?
Marco Parrone wrote:
> Percival on Wed, 20 Oct 2004 17:52:57 -0400 writes:
>
> 
>
>
> I think you can distribute just the CygWin DLLs (see [1] for how to
> see what they are), with the other files you are required to
> distribute by the CygWin license.
>
>   1. http://cygwin.com/faq/faq_3.html#SEC105
>
> Please note that the free version of CygWin is GPL'de, so you can not
> use the DLL with proprietary programs [2].
>
>   2. http://cygwin.com/faq/faq_1.html#SEC4
>

GPL?? they GPLed a DLL...
Dang it!!

Doesn't matter anyway, this is more of an exersize that if it actually
succedes then I will release.

Percival

Report this thread to moderator Post Follow-up to this message
Old Post
Percival
10-22-04 01:57 AM


Re: How well does Guile work on Windows?
Jens Axel Søgaard wrote:
> Percival wrote:
> 
>
> 
>
>
> Hi Percival
>
> The lack of answers is probably due toe the fact that only a small
> minority in this group uses Guile - and if they do then on Unix.
>
> There are some implementations that run on both Windows and Unix,
> such as DrScheme, SISC, Chicken and MIT Scheme.
>
> The tricky part is your requirement of a graphics library.
> What kind of game do you have in mind? A 3d game or a 2d bitmap
> oriented game?
>

2d bitmap game. I am just an intermediate programmer who thinks that
scripting languages will help when  creating an RPG (mainly so I can
modify the attack points and etc of the program without compiling)

So i doubt guile will touch much graphics at all.

Percival

Report this thread to moderator Post Follow-up to this message
Old Post
Percival
10-22-04 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Scheme archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:59 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.