Contact SalesSitemapCustomer Login

Warning: mysql_connect() [/function.mysql-connect]: Can't connect to MySQL server on 'coredb-01.spry.com' (13) in [path]/vpslink_template_files/contextual_ads.inc.php on line 56

Go Back   VPSlink Forums > Technical Discussion > Development

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-2007, 07:20 PM
Junior Member
 
Join Date: Jun 2006
Location: San Diego, CA
Posts: 29
Default Lisp anyone?

I've been working on a new website framework written in lisp and using SBCL (with hunchentoot, cl-who, clsql, etc.) ... only to find out that there appears to be problems running lisp implementations on vps's.

Has anyone else tried this and found a working lisp?
__________________
My link3 sites: solipsistic.net & code-poet.org
Reply With Quote
  #2 (permalink)  
Old 07-01-2007, 08:41 PM
Senior Member
 
Join Date: Aug 2006
Posts: 1,021
Default

I know of problems with LISP running on Xen, but I haven't heard this about OpenVZ. Have you actually tested this? What kind of problem are you having?
Reply With Quote
  #3 (permalink)  
Old 07-02-2007, 06:44 PM
Junior Member
 
Join Date: Jun 2006
Location: San Diego, CA
Posts: 29
Default

Well, just trying to apt-get install sbcl on debian will give me a memory allocation error:

Code:
Recompiling Common Lisp Controller for sbcl
/usr/lib/common-lisp/bin/sbcl.sh loading and dumping clc.
mmap: Cannot allocate memory
ensure_space: failed to validate 536870912 bytes at 0x09000000
I believe I tried to install from a binary tarball which failed in a similar fashion. Cmucl also failed in the same way.
__________________
My link3 sites: solipsistic.net & code-poet.org
Reply With Quote
  #4 (permalink)  
Old 07-03-2007, 11:05 AM
Senior Member
 
Join Date: Aug 2006
Posts: 1,021
Default

Are you sure you're just not running out of memory?
Reply With Quote
  #5 (permalink)  
Old 07-03-2007, 06:42 PM
Junior Member
 
Join Date: Jun 2006
Location: San Diego, CA
Posts: 29
Post

Well, I can't imagine that sbcl would require 512Mb. I do only have a link3 (256mb) and it does run a few other things, but I have seen people running into similar things based on my google searches. My ulimit is wide open, execpt for ports, pipes, and stacks.

*shrug*

For the time being, I'm switching back to my scheme code base.
__________________
My link3 sites: solipsistic.net & code-poet.org
Reply With Quote
  #6 (permalink)  
Old 07-19-2007, 08:37 PM
Member
 
Join Date: Feb 2007
Posts: 75
Default

heh, i too had to give up plans of putting up hunchentoot driven website on my link3 due to lack of memory. I however use another community supported Xen server and hunchentoot/sbcl works flawlessly there(ofcourse with 1GB vps ram, it wont complain)

btw, AnimalMachine, did that lisp framework based website get finished? Any demos around :-) ?
Reply With Quote
  #7 (permalink)  
Old 07-20-2007, 06:17 PM
Junior Member
 
Join Date: Jun 2006
Location: San Diego, CA
Posts: 29
Default

Quote:
Originally Posted by gnurag View Post
heh, i too had to give up plans of putting up hunchentoot driven website on my link3 due to lack of memory. I however use another community supported Xen server and hunchentoot/sbcl works flawlessly there(ofcourse with 1GB vps ram, it wont complain)

btw, AnimalMachine, did that lisp framework based website get finished? Any demos around :-) ?
It never really got finished. It was working for my blog, but it's unpolished and just cobbled together. Currently, I'm trying to write up a series of posts (on code-poet.org) on building a website with scheme, but I can throw in a quick diversion for hunchentoot if you'd find it helpful.

ht/sbcl/slime was a really nice set of tools to work with. Right now, with chicken scheme, the REPL gets locked by blocking socket operations I believe. And while I think there's a hackish way to get around it, the blocked REPL is kind of symbolic of how rough the edges are of the scheme tools compared to the ht/sbcl/slime set.
__________________
My link3 sites: solipsistic.net & code-poet.org
Reply With Quote
  #8 (permalink)  
Old 08-11-2007, 08:49 AM
Junior Member
 
Join Date: Jun 2006
Location: San Diego, CA
Posts: 29
Default

Well I've finally had a closer look to this and solved the simple problem. I figured I should update this thread with the fix.

Code:
sbcl --dynamic-space-size 64
Using that command line, I'm able to at least get to the REPL. It's not like sbcl has a wide array of command line options, so I'm suprised this one escaped me.

Edit: Also note that since sbcl failed to install via apt-get on debian, I just installed sbcl 1.0.7 from the linux binary tarball.
__________________
My link3 sites: solipsistic.net & code-poet.org

Last edited by AnimalMachine; 08-11-2007 at 08:52 AM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 11:29 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0