For Programmers: Free Programming Magazines  


Home > Archive > Dylan > June 2007 > Compiling Dylan programs









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Compiling Dylan programs
Rob Hoelz

2007-05-06, 7:59 am

Hello Dylan users,

I'm new to Dylan, and I think it's a pretty neat language, but I've hit
a bit of a snag: I can't figure out how to get the damn thing to
compile.

I know this question is probably ridiculously easy, but I've searched
high and low for an answer to this question and can't seem to find the
answer. I'm using Open Dylan 1.0 Beta 2, and I've gotten to the point
where I need to provide a project file. Is there a nice, easy way to
just compile a Dylan file without creating a project? If not, how do I
create a project, preferably without the use of an IDE. I like my
command line!

Thanks,
Rob Hoelz
Reinder Verlinde

2007-05-07, 4:00 am

In article <20070506035800.04da68fc@TheRing.hoelzro.homelinux.net>,
Rob Hoelz <hoelz@wisc.edu> wrote:

> Hello Dylan users,
>
> I'm new to Dylan, and I think it's a pretty neat language, but I've hit
> a bit of a snag: I can't figure out how to get the damn thing to
> compile.
>
> I know this question is probably ridiculously easy, but I've searched
> high and low for an answer to this question and can't seem to find the
> answer. I'm using Open Dylan 1.0 Beta 2, and I've gotten to the point
> where I need to provide a project file. Is there a nice, easy way to
> just compile a Dylan file without creating a project? If not, how do I
> create a project, preferably without the use of an IDE. I like my
> command line!


I guess you need to create a .lid file describing the library you are
compiling. It is a text file describing the other files. For examples,
check your installation directory. On my system

find /usr/local/opendylan-1.0beta4/ -name "*.lid" | wc -l

prints '586'.

<http://www.cs.cmu.edu/~gwydion/dyla...emos/demos.html>
might also help.

Reinder
Florian Richter

2007-05-07, 7:59 am

Am 06.05.2007, 10:58 Uhr, schrieb Rob Hoelz <hoelz@wisc.edu>:

> Hello Dylan users,
>
> I'm new to Dylan, and I think it's a pretty neat language, but I've hit
> a bit of a snag: I can't figure out how to get the damn thing to
> compile.
>
> I know this question is probably ridiculously easy, but I've searched
> high and low for an answer to this question and can't seem to find the
> answer. I'm using Open Dylan 1.0 Beta 2, and I've gotten to the point
> where I need to provide a project file. Is there a nice, easy way to
> just compile a Dylan file without creating a project? If not, how do I
> create a project, preferably without the use of an IDE. I like my
> command line!
>
> Thanks,
> Rob Hoelz


Hello!

I'm new to dylan too and had exactly the same problem.
A good explanation, how the build-process works and which files are needed
is here:
http://www.opendylan.org/books/dpg/db_30.html (and following pages)

Unfortuantely the code doesn't work, so I took this hello-world example as
template.
The location on my system was:
/opt/opendylan/sources/app/hello-world/

You can build the example with:
$ opendylan -build hello-world.lid

This are my first steps in dylan and I can't guarentee that they are
correct or recommandable. I think, it's rather hard to figure out how you
get running your first dylan-program especially on Linux. The different
implementions are quite confusing.

Florian
bruce@hoult.org

2007-05-08, 4:00 am

On May 7, 11:50 pm, "Florian Richter" <Florian_Rich...@gmx.de> wrote:
> This are my first steps in dylan and I can't guarentee that they are
> correct or recommandable. I think, it's rather hard to figure out how you
> get running your first dylan-program especially on Linux. The different
> implementions are quite confusing.


I use Gwydion Dylan rather than Open Dylan, primarily becuase it's
more portable and it's what I'm used to. Getting started is pretty
easy using one of two methods:

1) Single file mode is intended for small one-off progams with a
single source file and using a default set of libraries.

Create a file, say, foo.dylan:

------------- foo.dylan -------------
module: foo

format-out("hello from foo!\n");
----------------------------------------

$ d2c foo.dylan
$ ./foo
hello from foo
$


2) lid file mode is for larger programs wth (eventually) multiple
source files, and which make sophisticated use of libraries and
modules.

There's a handy utility script called make-dylan-app included with
Gwydion Dylan for createing a template project:

$ make-dylan-app foo
$ cd foo
$ ls -l
total 32
-rw-r--r-- 1 bruce bruce 114 May 8 18:22 Makefile
-rw-r--r-- 1 bruce bruce 151 May 8 18:22 foo-exports.dylan
-rw-r--r-- 1 bruce bruce 241 May 8 18:22 foo.dylan
-rw-r--r-- 1 bruce bruce 54 May 8 18:22 foo.lid
$ make
$ ./foo
Hello, world!
$


Hope this helps someone!

Rayiner Hashem

2007-05-08, 4:00 am

> I'm new to Dylan, and I think it's a pretty neat language, but I've hit
> a bit of a snag: I can't figure out how to get the damn thing to
> compile.


If you're using OpenDylan on any of the supported platforms, you need
a few basic files to get started. Say your project is "hello", and the
library is called "hello". You need at least: hello.lid, hello-
library.dylan, and hello.dylan (the filenames are arbitrary):

---- file: hello.lid ----

library: hello
files: hello-library
hello
---- end ----

--- file: hello-library.dylan ---

module: dylan-user

define library hello
use common-dylan;
use io;
end library;

define module hello
use common-dylan;
use format-out;
end module;

-- end ---

--- file: hello.dylan ---

module: hello

begin
format-out("Hello!\n");
end;

--- end ---

Basically, the .lid file is the "makefile" for the project, the hello-
library.dylan file is your "header", where you define what libraries
you use and what you export, and the hello.dylan file is your actual
code.

This makes for a pretty large "hello world" program, but in any non-
trivial program you'd need these various components anyway.
Personally, I've written the skeleton files ones, and just copy it
over and change the names when I want to start a new program.


Hannes Mehnert

2007-05-09, 8:00 am

On May 7, 1:50 pm, "Florian Richter" <Florian_Rich...@gmx.de> wrote:
> I'm new to dylan too and had exactly the same problem.
> A good explanation, how the build-process works and which files are needed
> is here:http://www.opendylan.org/books/dpg/db_30.html(and following pages)
>
> Unfortuantely the code doesn't work, so I took this hello-world example as
> template.


Hi,

this was because the headers in dylan files (module: dylan-user etc.)
has to be separated
with a newline from the actual Dylan code. I just fixed it in the
Dylan programming online version. (http://www.opendylan.org/books/
dpg/) by adding some newlines.

Also, the opendylan linux tarball provides a perl script, make-dylan-
app,
http://www.opendylan.org/cgi-bin/vi...n-app?rev=11308
which gets one argument and creates a directory with its argument as
name,
containing an example hello-world application.

Regards,

Hannes

Florian Richter

2007-05-09, 8:00 am

Am 08.05.2007, 17:32 Uhr, schrieb Hannes Mehnert <hannes@opendylan.org>:
[color=darkred]
> this was because the headers in dylan files (module: dylan-user etc.)
> has to be separated
> with a newline from the actual Dylan code. I just fixed it in the
> Dylan programming online version. (http://www.opendylan.org/books/
> dpg/) by adding some newlines.


The example still doesn't work, because he doesn't find the library
'format-out'. When I replace this with 'io', it works. I don't know, if
the 'format-out'-library really exists. If not, some paragraphes of the
page have to be reviewed and changed:

http://www.opendylan.org/books/dpg/db_32.html


> Also, the opendylan linux tarball provides a perl script, make-dylan-
> app,
> which gets one argument and creates a directory with its argument as
> name,
> containing an example hello-world application.


This script is really useful!

Thank you for your anwsers,

Florian
Erterdick80

2007-05-21, 4:06 pm

the alleged britney spears sex tape!

http://celebsvips.com/b1.jpg

Looks like the alleged Britney Spears K-fed tapes may have finally gotten into the wrong hands. Britney should try investing a tiny percentage of her money into a decent camera! Funny how a video surfaces a day after their divorce. Looks like Kevin is out for revenge!

A source told US Wly magazine: "He has threatened to release raunchy footage of the two taken before Spears looked pregnant."

This is the hottest scandal since the release of the Paris Hilton Sex Tape! Its not conclusive but damn, if thats Britney she can really wax a pole! This is what weve all been waiting for.
Erdeteptap

2007-05-31, 7:35 am

Another wet video starring incredible asian girl!
http://www.incredible-asians-online...dicked_hard.avi
Entity

2007-06-07, 9:59 am

Halle Berry and Alyssa Milano Spoiling Lucky Girl!
http://www.shockingtheworld.com/Play?movie=1673286
Stertedup8

2007-06-07, 6:59 pm

Helen Hunt and Carmen Electra Lick Pussies On Sofa!
http://www.shockingtheworld.com/Win...yer?vid=1673286

Shania Twain and Jessica Alba Tongue Tickles Lesbian Lovers Pussy Movies!
http://www.shockingtheworld.com/Pla...eg?clip=1673286

Catherine Z. Jones and Nikki Cox Crazy On High Heels!
http://www.shockingtheworld.com/Watch?movie=1673286

Sarah M. Gellar and Jessica Simpson , Lesbian Girl Sex!
http://www.shockingtheworld.com/PlayMovie.cgi?q=1673286

Catherine Z. Jones and Sarah M. Gellar ,Hot Lesbians On Floor!
http://www.shockingtheworld.com/Play?clip=1673286
Xxx_________xxx

2007-06-07, 7:05 pm

Christina Applegate Shows Juicy Knockers!

http://www.shockingtheworld.com/WatchTube?q=1673286
Pinkdink

2007-06-15, 12:29 am

Britney Spears On Sofa Shows Tight Ass!

http://www.videomoviesonline.com/Pl...p?watch=1673286



funny more naruto very video funny fishing video XXXXing funny porn shit video funny video clip for email funny porn video
http://635-funny-video.info/funny-v...nd-picture.html http://635-funny-video.info/crazy-funny-video-clip.html http://635-funny-video.info/funny-hunting-video.html http://635-funny-video.info http://635-funny-video.info/funny-star-war-video.html
Anerbasder

2007-06-27, 7:07 am

Catherine Z. Jones Shows Hairless Cunt In Forest!

http://www.thetubebender.com/b?vid=1673286



cute and funny animal video free funny email video funny sick video clip funny super mario video free funny police video
http://635-funny-video.info/funny-f...o-download.html http://635-funny-video.info/video-d...sexy-funny.html http://635-funny-video.info/extremely-funny-video.html http://635-funny-video.info/clip-fu...line-video.html http://635-funny-video.info/forum-funny-sexy-video.html
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com