-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
factor: update for Factor 0.98 #605
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:vivid | ||
FROM ubuntu:20.04 | ||
MAINTAINER Joel Martin <[email protected]> | ||
|
||
########################################################## | ||
|
@@ -24,8 +24,9 @@ WORKDIR /mal | |
# Factor | ||
RUN apt-get -y install libgtkglext1 | ||
RUN cd /usr/lib/x86_64-linux-gnu/ \ | ||
&& curl -O http://downloads.factorcode.org/releases/0.97/factor-linux-x86-64-0.97.tar.gz \ | ||
&& tar xvzf factor-linux-x86-64-0.97.tar.gz \ | ||
&& curl -O https://downloads.factorcode.org/releases/0.98/factor-linux-x86-64-0.98.tar.gz \ | ||
&& tar xvzf factor-linux-x86-64-0.98.tar.gz \ | ||
&& ln -sf /usr/lib/x86_64-linux-gnu/factor/factor /usr/bin/factor \ | ||
&& rm factor-linux-x86-64-0.97.tar.gz | ||
&& rm factor-linux-x86-64-0.98.tar.gz | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add the following line at the end of Dockefile:
This will allow factor to create the |
||
|
||
ENV HOME /mal |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ SYMBOL: repl-env | |
|
||
DEFER: EVAL | ||
|
||
GENERIC# eval-ast 1 ( ast env -- ast ) | ||
GENERIC#: eval-ast 1 ( ast env -- ast ) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. besides this, there's another
(similarly for steps 8, 9, A) |
||
M: malsymbol eval-ast env-get ; | ||
M: sequence eval-ast '[ _ EVAL ] map ; | ||
M: assoc eval-ast '[ _ EVAL ] assoc-map ; | ||
|
@@ -49,7 +49,7 @@ M: object eval-ast drop ; | |
swapd [ over length cut [ zip ] dip ] dip | ||
[ swap 2array suffix ] [ drop ] if* >hashtable ; | ||
|
||
GENERIC# apply 0 ( args fn -- maltype newenv/f ) | ||
GENERIC#: apply 0 ( args fn -- maltype newenv/f ) | ||
|
||
M: malfn apply | ||
[ exprs>> nip ] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please modify the top of the Dockerfile: change
FROM ubuntu:vivid
toFROM ubuntu:20.04
(just to modernize the images).