ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: JCU Librarian <collector@jedi.org.ua>
To: Pavel Stupin <grosso@mail.ru>
Cc: community@altlinux.ru
Subject: Re: [Comm] Запуск LISP-программ
Date: Sun, 18 May 2003 16:54:47 +0300
Message-ID: <20030518135446.GA15189@localhost.localdomain> (raw)
In-Reply-To: <20030518213425.6ed33577.grosso@mail.ru>

On Sun, May 18, 2003 at 09:34:25PM +0800, Pavel Stupin wrote:
> Спасибо что откликнулись! ... 
> Кстати, вы с этой программой тоже работали?

Нет, я пишу на лиспе, но Ideal'ом ни разу не пользовался. Вот
сейчас его вытащил, посмотрел -- оказывается это довольно старый
пакет, его нужно адаптировать.

> 
> В общем, поставил sbcl --- теперь при
> "sbcl --load load-ideal.lisp" получаю:
> 
> _____________________________________________________________
> debugger invoked on condition of type SB-KERNEL:SIMPLE-PACKAGE-ERROR:
> The name :USER does not designate any package.
> ...
> restarts:
>   0: [CONTINUE] Continue anyway (skipping to toplevel read/eval/print
> loop).
>   1: [QUIT    ] Quit SBCL (calling #'QUIT, killing the process).
> (SB-INT:%FIND-PACKAGE-OR-LOSE 1 :USER)[:EXTERNAL]
> 0] SB-EXT:QUIT
> _____________________________________________________________
> 
> То есть у меня, видимо, нет этого пакета USER? В начале запускаемого
> файла есть такие строки:

Тут проблема в том, что в стандарте не указано как должно
называться просторанство имен пользователя. У кого-то это USER, у
кого-то -- CL-USER... Насколько я успел посмотреть код, он
запускался под коммерческими Allegro CL & Lucid Works. Он и
сейчас под ними запустится, и даже с графикой (полных свободных
реализаций CLIM не существует :( ), но они стоят дорогих денег.

Пока что очевидно что нужно заменить определения

(in-package :user)

на 

(in-package :cl-user)

а там уже дополировывать.


> _____________________________________________________________
> ;;; -*- Mode: LISP; Syntax: Common-lisp; Package: USER -*-
> (in-package :user)
> _____________________________________________________________
> 
> Его нужно как-то отдельно доустанавливать?

Нет, в данном случае это namespace в который загружаются новые
определения.


> И когда пытаюсь запустить какие-то функции Ideal, которые описаны в
> мануале, то получаю "undefined function" и "undefined variable" (видимо,
> потому что нет USER?). 

Это потому что они не загрузились с самого начала...


> Кстати, как нужно правильно запускать функции в LISP?
> В таком виде?: (function_name variable_name)

Ага. Лисп весь такой. Если появится желание изучить этот язык --
пишите, я подскажу где взять литературу.

Sincerely,

--Victor


  reply	other threads:[~2003-05-18 13:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-18  5:05 Pavel Stupin
2003-05-18 10:25 ` JCU Librarian
2003-05-18 13:34   ` Pavel Stupin
2003-05-18 13:54     ` JCU Librarian [this message]
2003-05-19  8:33       ` [Comm] " Vitaly Ostanin
2003-05-19  9:35         ` JCU Librarian
2003-05-19 10:42           ` Vitaly Ostanin
2003-05-19 19:57             ` [Comm] " Maksim Otstavnov
2003-05-19 10:15 ` [Comm] " Alexandr R. Ogurtzoff  
2003-05-19 22:58   ` JCU Librarian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030518135446.GA15189@localhost.localdomain \
    --to=collector@jedi.org.ua \
    --cc=community@altlinux.ru \
    --cc=grosso@mail.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git