website updates for 0.9.6

This commit is contained in:
Araq 2014-10-19 16:07:14 +02:00
commit dc8d8ebb79
7 changed files with 45 additions and 131 deletions

View file

@ -37,7 +37,6 @@ Files: "config/nimdoc.cfg"
Files: "config/nimdoc.tex.cfg" Files: "config/nimdoc.tex.cfg"
[Documentation] [Documentation]
; Files: "doc/*.txt"
; Files: "doc/*.html" ; Files: "doc/*.html"
; Files: "doc/*.cfg" ; Files: "doc/*.cfg"
; Files: "doc/*.pdf" ; Files: "doc/*.pdf"
@ -65,6 +64,7 @@ Files: "compiler/readme.txt"
Files: "compiler/nimrod.ini" Files: "compiler/nimrod.ini"
Files: "compiler/nimrod.cfg" Files: "compiler/nimrod.cfg"
Files: "compiler/*.nim" Files: "compiler/*.nim"
Files: "doc/*.txt"
Files: "compiler/nimfix/*.nim" Files: "compiler/nimfix/*.nim"
Files: "compiler/nimfix/*.cfg" Files: "compiler/nimfix/*.cfg"

View file

@ -130,10 +130,5 @@ vcc.options.always = "/nologo"
vcc.options.speed = "/Ox /arch:SSE2" vcc.options.speed = "/Ox /arch:SSE2"
vcc.options.size = "/O1" vcc.options.size = "/O1"
# Configuration for the Digital Mars C/C++ compiler:
@if windows:
dmc.path = r"$nimrod\dist\dm\bin"
@end
# Configuration for the Tiny C Compiler: # Configuration for the Tiny C Compiler:
tcc.options.always = "-w" tcc.options.always = "-w"

View file

@ -58,8 +58,6 @@ Currently, the following C compilers are supported under Windows:
| http://www.mingw.org/download.shtml | http://www.mingw.org/download.shtml
- | LLVM with Clang or GNU C/C++ frontend - | LLVM with Clang or GNU C/C++ frontend
| http://llvm.org/releases/download.html | http://llvm.org/releases/download.html
- | Digital Mars C++
| http://www.digitalmars.com/download/freecompiler.html
However, most testing is done with GCC. However, most testing is done with GCC.

View file

@ -43,7 +43,7 @@ Possible Commands:
web generates the website web generates the website
csource [options] builds the C sources for installation csource [options] builds the C sources for installation
zip builds the installation ZIP package zip builds the installation ZIP package
inno [options] builds the Inno Setup installer (for Windows) nsis [options] builds the NSIS Setup installer (for Windows)
tests [options] run the testsuite tests [options] run the testsuite
update updates nimrod to the latest version from github update updates nimrod to the latest version from github
(compile koch with -d:withUpdate to enable) (compile koch with -d:withUpdate to enable)
@ -77,6 +77,14 @@ proc tryExec(cmd: string): bool =
echo(cmd) echo(cmd)
result = execShellCmd(cmd) == 0 result = execShellCmd(cmd) == 0
proc safeRemove(filename: string) =
if existsFile(filename): removeFile(filename)
proc copyExe(source, dest: string) =
safeRemove(dest)
copyFile(dest=dest, source=source)
inclFilePermissions(dest, {fpUserExec})
const const
compileNimInst = "-d:useLibzipSrc tools/niminst/niminst" compileNimInst = "-d:useLibzipSrc tools/niminst/niminst"
@ -94,12 +102,15 @@ proc buildTool(toolname, args: string) =
exec("$# cc $# $#" % [findNim(), args, toolname]) exec("$# cc $# $#" % [findNim(), args, toolname])
copyFile(dest="bin"/ splitFile(toolname).name.exe, source=toolname.exe) copyFile(dest="bin"/ splitFile(toolname).name.exe, source=toolname.exe)
proc inno(args: string) = proc nsis(args: string) =
# make sure we have generated the niminst executables: # make sure we have generated the niminst executables:
buildTool("tools/niminst/niminst", args) buildTool("tools/niminst/niminst", args)
buildTool("tools/nimgrep", args) buildTool("tools/nimgrep", args)
exec("tools" / "niminst" / "niminst --var:version=$# inno compiler/nimrod" % # produce 'nimrod_debug.exe':
NimrodVersion) exec "nimrod c compiler" / "nimrod.nim"
copyExe("compiler/nimrod".exe, "bin/nimrod_debug".exe)
exec(("tools" / "niminst" / "niminst --var:version=$# --var:mingw=mingw32" &
" nsis compiler/nimrod") % NimrodVersion)
proc install(args: string) = proc install(args: string) =
exec("$# cc -r $# --var:version=$# scripts compiler/nimrod.ini" % exec("$# cc -r $# --var:version=$# scripts compiler/nimrod.ini" %
@ -137,16 +148,8 @@ proc findStartNimrod: string =
echo("Found no nimrod compiler and every attempt to build one failed!") echo("Found no nimrod compiler and every attempt to build one failed!")
quit("FAILURE") quit("FAILURE")
proc safeRemove(filename: string) =
if existsFile(filename): removeFile(filename)
proc thVersion(i: int): string = proc thVersion(i: int): string =
result = ("compiler" / "nimrod" & $i).exe result = ("compiler" / "nimrod" & $i).exe
proc copyExe(source, dest: string) =
safeRemove(dest)
copyFile(dest=dest, source=source)
inclFilePermissions(dest, {fpUserExec})
proc boot(args: string) = proc boot(args: string) =
var output = "compiler" / "nimrod".exe var output = "compiler" / "nimrod".exe
@ -304,7 +307,7 @@ of cmdArgument:
of "web": web(op.cmdLineRest) of "web": web(op.cmdLineRest)
of "csource", "csources": csource(op.cmdLineRest) of "csource", "csources": csource(op.cmdLineRest)
of "zip": zip(op.cmdLineRest) of "zip": zip(op.cmdLineRest)
of "inno": inno(op.cmdLineRest) of "nsis": nsis(op.cmdLineRest)
of "install": install(op.cmdLineRest) of "install": install(op.cmdLineRest)
of "test", "tests": tests(op.cmdLineRest) of "test", "tests": tests(op.cmdLineRest)
of "update": of "update":

View file

@ -1,127 +1,39 @@
You can download the latest version of the Nimrod compiler here. You can You can download the latest version of the Nimrod compiler here.
use the binaries provided or build from source.
Binaries
========
All installers and archives contain the html documentation and tools
(nimgrep, c2nim and babel).
**Note:** The Nimrod compiler requires a C compiler to compile software. On **Note:** The Nimrod compiler requires a C compiler to compile software. On
Windows we recommend that you use Windows we recommend that you use
`Mingw-w64 <http://mingw-w64.sourceforge.net/>`_. GCC is recommended on Linux `Mingw-w64 <http://mingw-w64.sourceforge.net/>`_. GCC is recommended on Linux
and clang on Mac OS X. and clang on Mac OS X.
Installers
----------
The "full" version includes a full mingw distribution which includes a C Binaries
compiler. The "slim" version lacks this. ========
* Full (i386, 32bit): `<download/nimrod_0.9.4_windows_i386_full.exe>`_ Unfortunately for now we only provide 32 bit builds for
Windows: `nimrod_0.9.6.exe <download/nimrod_0.9.6.exe>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: dca7c63d0c1861d2d7c51b2e7a29fa98371750a10ab282d5df9de22a07719c24
</p>
* Slim (i386, 32bit): `<download/nimrod_0.9.4_windows_i386_slim.exe>`_ Installation based on generated C code
======================================
.. raw:: html This installation method is the preferred way for Linux, Mac OS X, and other Unix
<p style="font-size: 8pt; margin-top: 0;"> like systems. Binary packages may be provided later.
SHA256: c0fcd1201bd20fad1e14b9d2cc2529494057068de1dd01f871cf129f088a8242
</p>
* Full (amd64, 64bit): `<download/nimrod_0.9.4_windows_amd64_full.exe>`_
.. raw:: html Download `nimrod_0.9.6.zip <download/nimrod_0.9.6.zip>`_, extract it and follow
<p style="font-size: 8pt; margin-top: 0;"> these instructions:
SHA256: af9d478c2f3361e0f238fcb07fa8e7ae5821938c0f9063c6670e925c9ae9d16e
</p>
* Slim (amd64, 64bit): `<download/nimrod_0.9.4_windows_amd64_slim.exe>`_ * sh build.sh
* Add ``$your_install_dir/bin`` to your PATH.
.. raw:: html There are other ways to install Nimrod (like using the ``install.sh`` script),
<p style="font-size: 8pt; margin-top: 0;"> but these tend to cause more problems.
SHA256: 90c380721a46be2b9b8d5437187f701940aefc2e1fb9722dbc543f5c5a3bb85e
</p>
Archives
--------
Windows Installation from github
~~~~~~~ ========================
The "full" version includes a full mingw distribution which includes a C It is also possible to build directly from the
compiler. The "slim" version lacks this.
* Full (i386, 32bit): `<download/nimrod_0.9.4_windows_i386_full.zip>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: 8ee18faaa3a3d5df482c7abd6aa7ea87a350d7328b80ce1e2d486b59a7a93956
</p>
* Slim (i386, 32bit): `<download/nimrod_0.9.4_windows_i386_slim.zip>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: 7024fb8ad8f98c0bd4949ae36ed11b52b4e401754bbd62a11199d6dc8628d857
</p>
* Full (amd64, 64bit): `<download/nimrod_0.9.4_windows_amd64_full.zip>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: cb33cacc1a84fec771323d24cb6d9795f4803882466a9f417b424990aa49e18a
</p>
* Slim (amd64, 64bit): `<download/nimrod_0.9.4_windows_amd64_slim.zip>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: fcf877e4bd1ebfa214749af6e4811cd8539af19f1d7b23017e4bd7f6cbfb3eba
</p>
Linux
~~~~~
* Linux (i386, 32bit): `<download/nimrod_0.9.4_linux_i386.tar.gz>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: 79DD337A77AC4313A75F2C5EED8252F00BBBDEB1E0C3504660D4A52EA63DBA92
</p>
* Linux (amd64, 64bit): `<download/nimrod_0.9.4_linux_amd64.tar.gz>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: 6F6CB3C727BA8059B7605C02942AE7910C20C2A3DC6A8A600D90D50FE61F0D8C
</p>
* Linux (ppc64, 64bit): `<download/nimrod_0.9.4_linux_ppc64.tar.gz>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: 5DAC2D9F7F545929E04540E6E2594C68FC3126A3B2F7B1FA7DBA5E295B4A7D31
</p>
Mac OS X
~~~~~~~~
* Mac OS X (amd64, 64bit): `<download/nimrod_0.9.4_macosx_amd64.zip>`_
.. raw:: html
<p style="font-size: 8pt; margin-top: 0;">
SHA256: E6F3A8E434DF3E89686F043954C6DFC09ABEBC0FC09D3B9A6B35C2B3102F7C3C
</p>
If a binary for your platform is not available then you must build from source.
Bleeding edge binaries are available from the `Nimrod build farm <http://build.nimrod-lang.org/>`_.
Source
======
Starting with 0.9.4 we now advise people to build directly from the
github `master <https://github.com/Araq/Nimrod#compiling>`_ branch:: github `master <https://github.com/Araq/Nimrod#compiling>`_ branch::
git clone -b master git://github.com/Araq/Nimrod.git git clone -b master git://github.com/Araq/Nimrod.git
@ -135,4 +47,3 @@ github `master <https://github.com/Araq/Nimrod#compiling>`_ branch::
The ``master`` branch always contains the latest stable version of the compiler. The ``master`` branch always contains the latest stable version of the compiler.
If you want bleeding edge then switch to the ``devel`` branch and follow If you want bleeding edge then switch to the ``devel`` branch and follow
the same instructions outlined above. the same instructions outlined above.

View file

@ -2,10 +2,10 @@
News News
==== ====
2014-10-12 Version 0.9.6 released 2014-10-19 Nimrod version 0.9.6 released
================================= ========================================
**Note: This is the last release of Nimrod. The language has been renamed to **Note: 0.9.6 is the last release of Nimrod. The language has been renamed to
Nim. Nim slightly breaks compatibility.** Nim. Nim slightly breaks compatibility.**
This is a maintenance release. The upcoming 0.10.0 release has This is a maintenance release. The upcoming 0.10.0 release has
@ -42,6 +42,8 @@ Language Additions
- This version introduces the new ``deprecated`` pragma statement that is used - This version introduces the new ``deprecated`` pragma statement that is used
to handle the upcoming massive amount of symbol renames. to handle the upcoming massive amount of symbol renames.
- ``spawn`` can now wrap proc that have a return value. It then returns a flow
variable of the wrapped return type.
Library Additions Library Additions

View file

@ -1,3 +1,8 @@
<a class="news" href="news.html#Z2014-10-19-version-0-9-6-released">
<h3>Oct 19, 2014</h3>
<p>Nimrod version 0.9.6 has been released!</p>
</a>
<a class="news" href="news.html#Z2014-04-21-version-0-9-4-released"> <a class="news" href="news.html#Z2014-04-21-version-0-9-4-released">
<h3>Apr 21, 2014</h3> <h3>Apr 21, 2014</h3>
<p>Nimrod version 0.9.4 has been released!</p> <p>Nimrod version 0.9.4 has been released!</p>