Porting to emscripten

Jason Miller <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <[email protected]>
Yesterday I came up with the rather stupid idea of porting clisp to
emscripten.  I've gotten the build to go rather far, as I have a
lisp.run that kind-of-sort-of works, but fails during the loading of
init.lisp here:
  
> ;; for the time being the files don't have to be searched:
> (sys::%putd 'search-file
>  (sys::make-preliminary
>   (function search-file (lambda (filename &optional extensions (keep-dirs t))
>     (declare (ignore keep-dirs))
>     (mapcan #'(lambda (directory)
>                 (let ((directory (pathname-directory directory)))
>                   (mapcan #'(lambda (extension)
>                               (let ((filename (merge-pathnames filename
>                                                 (make-pathname
>                                                  :directory directory
>                                                  :type extension))))
>                                 (if (probe-file filename) (list filename) '())))
>                           extensions)))
>             (cons #"" *load-paths*))))))

With the message:
> *** - LET: variable DECLARATIONS has no value

Any clues for how to start tracking this down?  My debugging facilities
are limited to
 1) modifying the lisp or C code
 2) generating a list of all C functions called
 3) generating a list of all branches taken and manually matching it up

-Jason

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.