preparations for version 0.11.0

This commit is contained in:
Araq 2015-04-30 02:01:38 +02:00
commit a4f8a89c85
8 changed files with 467 additions and 349 deletions

View file

@ -126,12 +126,108 @@ Files: "examples/*.txt"
Files: "examples/*.cfg" Files: "examples/*.cfg"
Files: "examples/*.tmpl" Files: "examples/*.tmpl"
Files: "tests/actiontable/*.nim"
Files: "tests/alias/*.nim"
Files: "tests/ambsym/*.nim"
Files: "tests/array/*.nim"
Files: "tests/assign/*.nim"
Files: "tests/astoverload/*.nim"
Files: "tests/async/*.nim"
Files: "tests/benchmarks/*.nim"
Files: "tests/bind/*.nim"
Files: "tests/borrow/*.nim"
Files: "tests/casestmt/*.nim"
Files: "tests/ccgbugs/*.nim"
Files: "tests/clearmsg/*.nim"
Files: "tests/closure/*.nim"
Files: "tests/cnstseq/*.nim"
Files: "tests/collections/*.nim"
Files: "tests/compiles/*.nim"
Files: "tests/concat/*.nim"
Files: "tests/concepts/*.nim"
Files: "tests/constr/*.nim"
Files: "tests/constraints/*.nim"
Files: "tests/controlflow/*.nim"
Files: "tests/converter/*.nim"
Files: "tests/cpp/*.nim"
Files: "tests/defaultprocparam/*.nim"
Files: "tests/deprecated/*.nim"
Files: "tests/destructor/*.nim"
Files: "tests/dir with space/*.nim"
Files: "tests/discard/*.nim"
Files: "tests/distinct/*.nim"
Files: "tests/dll/*.nim"
Files: "tests/effects/*.nim"
Files: "tests/enum/*.nim"
Files: "tests/exception/*.nim"
Files: "tests/exprs/*.nim"
Files: "tests/fields/*.nim"
Files: "tests/float/*.nim"
Files: "tests/friends/*.nim"
Files: "tests/gc/*.nim"
Files: "tests/generics/*.nim"
Files: "tests/gensym/*.nim"
Files: "tests/global/*.nim"
Files: "tests/implicit/*.nim"
Files: "tests/init/*.nim"
Files: "tests/iter/*.nim"
Files: "tests/js/*.nim"
Files: "tests/js/*.cfg"
Files: "tests/let/*.nim"
Files: "tests/lexer/*.nim"
Files: "tests/lookups/*.nim"
Files: "tests/macros/*.nim"
Files: "tests/magics/*.nim"
Files: "tests/metatype/*.nim"
Files: "tests/method/*.nim"
Files: "tests/misc/*.nim"
Files: "tests/modules/*.nim"
Files: "tests/namedparams/*.nim"
Files: "tests/notnil/*.nim"
Files: "tests/objects/*.nim"
Files: "tests/objvariant/*.nim"
Files: "tests/openarray/*.nim"
Files: "tests/osproc/*.nim"
Files: "tests/overflw/*.nim"
Files: "tests/overload/*.nim"
Files: "tests/parallel/*.nim"
Files: "tests/parallel/*.cfg"
Files: "tests/parser/*.nim"
Files: "tests/pragmas/*.nim"
Files: "tests/proc/*.nim"
Files: "tests/procvar/*.nim"
Files: "tests/range/*.nim"
Files: "tests/rodfiles/*.nim"
Files: "tests/seq/*.nim"
Files: "tests/sets/*.nim"
Files: "tests/showoff/*.nim"
Files: "tests/specialops/*.nim"
Files: "tests/stdlib/*.nim"
Files: "tests/system/*.nim"
Files: "tests/template/*.nim"
Files: "tests/testament/*.nim"
Files: "tests/testdata/*.nim"
Files: "tests/threads/*.nim"
Files: "tests/threads/*.cfg"
Files: "tests/trmacros/*.nim"
Files: "tests/tuples/*.nim"
Files: "tests/typerel/*.nim"
Files: "tests/types/*.nim"
Files: "tests/usingstmt/*.nim"
Files: "tests/varres/*.nim"
Files: "tests/varstmt/*.nim"
Files: "tests/vm/*.nim"
Files: "tests/readme.txt"
Files: "tests/testament/css/*.css"
Files: "lib/pure/unidecode/unidecode.dat"
[Windows] [Windows]
Files: "bin/nim.exe" Files: "bin/nim.exe"
Files: "bin/nim_debug.exe"
Files: "bin/c2nim.exe" Files: "bin/c2nim.exe"
Files: "bin/nimgrep.exe" Files: "bin/nimgrep.exe"
Files: "bin/nimsuggest.exe"
Files: "bin/nimble.exe"
Files: "bin/*.dll"
Files: "dist/*.dll" Files: "dist/*.dll"
Files: "koch.exe" Files: "koch.exe"
@ -142,7 +238,7 @@ BinPath: r"bin;dist\mingw\bin;dist"
; Section | dir | zipFile | size hint (in KB) | url | exe start menu entry ; Section | dir | zipFile | size hint (in KB) | url | exe start menu entry
Download: r"Documentation|doc|docs.zip|13824|http://nim-lang.org/download/docs-${version}.zip|overview.html" Download: r"Documentation|doc|docs.zip|13824|http://nim-lang.org/download/docs-${version}.zip|overview.html"
Download: r"C Compiler (MingW)|dist|mingw.zip|82944|http://nim-lang.org/download/${mingw}.zip" Download: r"C Compiler (MingW)|dist|mingw.zip|82944|http://nim-lang.org/download/${mingw}.zip"
Download: r"Aporia IDE|dist|aporia.zip|97997|http://nim-lang.org/download/aporia-0.1.3.zip|aporia\bin\aporia.exe" Download: r"Aporia IDE|dist|aporia.zip|97997|http://nim-lang.org/download/aporia-0.3.0.zip|aporia\bin\aporia.exe"
; for now only NSIS supports optional downloads ; for now only NSIS supports optional downloads
[UnixBin] [UnixBin]

View file

@ -119,7 +119,7 @@ proc buildTool(toolname, args: string) =
proc nsis(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)
# produce 'nim_debug.exe': # produce 'nim_debug.exe':
exec "nim c compiler" / "nim.nim" exec "nim c compiler" / "nim.nim"
copyExe("compiler/nim".exe, "bin/nim_debug".exe) copyExe("compiler/nim".exe, "bin/nim_debug".exe)

View file

@ -1532,10 +1532,10 @@ const
NimMajor*: int = 0 NimMajor*: int = 0
## is the major number of Nim's version. ## is the major number of Nim's version.
NimMinor*: int = 10 NimMinor*: int = 11
## is the minor number of Nim's version. ## is the minor number of Nim's version.
NimPatch*: int = 3 NimPatch*: int = 0
## is the patch number of Nim's version. ## is the patch number of Nim's version.
NimVersion*: string = $NimMajor & "." & $NimMinor & "." & $NimPatch NimVersion*: string = $NimMajor & "." & $NimMinor & "." & $NimPatch

View file

@ -593,8 +593,9 @@ proc targzDist(c: var ConfigData) =
let oldDir = getCurrentDir() let oldDir = getCurrentDir()
setCurrentDir(tmpDir) setCurrentDir(tmpDir)
try: try:
if execShellCmd("7z a -ttar $1.tar $1" % proj) != 0 or #if execShellCmd("7z a -ttar $1.tar $1" % proj) != 0 or
execShellCmd("7z a -tgzip $1.tar.gz $1.tar" % proj) != 0: # execShellCmd("7z a -tgzip $1.tar.gz $1.tar" % proj) != 0 or
if execShellCmd("7z a -tzip $1.zip $1" % proj) != 0:
echo("External program failed") echo("External program failed")
finally: finally:
setCurrentDir(oldDir) setCurrentDir(oldDir)

View file

@ -35,7 +35,7 @@
; Default installation folder ; Default installation folder
; This is changed later (in .onInit) to the root directory, if possible. ; This is changed later (in .onInit) to the root directory, if possible.
InstallDir "$LOCALAPPDATA\?{c.name}" InstallDir "$LOCALAPPDATA\?{c.name}-?{c.version}"
; Get installation folder from registry if available ; Get installation folder from registry if available
InstallDirRegKey HKCU "Software\c.name\c.version" "" InstallDirRegKey HKCU "Software\c.name\c.version" ""

View file

@ -13,8 +13,8 @@ Binaries
-------- --------
Unfortunately for now we only provide builds for Windows. Unfortunately for now we only provide builds for Windows.
* 32 bit: `nim-0.10.2_x32.exe <download/nim-0.10.2_x32.exe>`_ * 32 bit: `nim-0.11.0_x32.exe <download/nim-0.11.0_x32.exe>`_
* 64 bit: `nim-0.10.2_x64.exe <download/nim-0.10.2_x64.exe>`_ * 64 bit: `nim-0.11.0_x64.exe <download/nim-0.11.0_x64.exe>`_
Installation based on generated C code Installation based on generated C code
@ -24,8 +24,8 @@ This installation method is the preferred way for Linux, Mac OS X, and other Uni
like systems. Binary packages may be provided later. like systems. Binary packages may be provided later.
Download `nim-0.10.2.zip <download/nim-0.10.2.zip>`_, extract it and follow Download `nim-0.11.0.zip <download/nim-0.11.0.zip>`_, extract it and
these instructions: follow these instructions:
* sh build.sh * sh build.sh
* Add ``$your_install_dir/bin`` to your PATH. * Add ``$your_install_dir/bin`` to your PATH.

View file

@ -2,11 +2,26 @@
News News
==== ====
..
2015-03-01 Version 0.11.0 released 2015-04-30 Version 0.11.0 released
================================== ==================================
What's left to be done
~~~~~~~~~~~~~~~~~~~~~~
The 1.0 release is expected by the end of this year. Rumors say it will be in
summer 2015. What's left:
* Bug fixes, bug fixes, bug fixes!
* ``immediate`` templates and macros will be deprecated as these will soon be
completely unnecessary, instead the ``typed`` or ``untyped`` metatypes can
be used.
* The standard library needs cleanups and use the features we have for
concurrency and parallelism.
Changes affecting backwards compatibility Changes affecting backwards compatibility
----------------------------------------- -----------------------------------------
@ -129,10 +144,16 @@ News
of the assignment operator has arrived! of the assignment operator has arrived!
- ``system.len`` for strings and sequences now returns 0 for nil. - ``system.len`` for strings and sequences now returns 0 for nil.
- A single underscore can now be used to discard values when unpacking tuples. - A single underscore can now be used to discard values when unpacking tuples:
.. code-block:: nim
let (path, _, _) = os.splitFile("path/file.ext")
- ``marshal.$$`` and ``marshal.to`` can be executed at compile-time. - ``marshal.$$`` and ``marshal.to`` can be executed at compile-time.
- Interoperability with C++ improved tremendously; C++'s templates and - Interoperability with C++ improved tremendously; C++'s templates and
operators can be wrapped directly. See `this <nimc.html#ImportCpp-pragma>`_ operators can be wrapped directly. See
`this <nimc.html#additional-features-importcpp-pragma>`_
for more information. for more information.
@ -170,8 +191,7 @@ News
expressions properly (`#544 <https://github.com/Araq/Nim/issues/544>`_). expressions properly (`#544 <https://github.com/Araq/Nim/issues/544>`_).
- Fixed internal error with generic proc using ``static[T]`` in a specific - Fixed internal error with generic proc using ``static[T]`` in a specific
way (`#1049 <https://github.com/Araq/Nim/issues/1049>`_). way (`#1049 <https://github.com/Araq/Nim/issues/1049>`_).
- More fixes relating to generics - More fixes relating to generics (`#1820 <https://github.com/Araq/Nim/issues/1820>`_,
(`#1820 <https://github.com/Araq/Nim/issues/1820>`_,
`#1050 <https://github.com/Araq/Nim/issues/1050>`_, `#1050 <https://github.com/Araq/Nim/issues/1050>`_,
`#1859 <https://github.com/Araq/Nim/issues/1859>`_, `#1859 <https://github.com/Araq/Nim/issues/1859>`_,
`#1858 <https://github.com/Araq/Nim/issues/1858>`_). `#1858 <https://github.com/Araq/Nim/issues/1858>`_).
@ -346,6 +366,7 @@ News
- Fixed "using `method`: 1 in a objects constructor fails when compiling" - Fixed "using `method`: 1 in a objects constructor fails when compiling"
(`#1791 <https://github.com/Araq/Nim/issues/1791>`_) (`#1791 <https://github.com/Araq/Nim/issues/1791>`_)
2014-12-29 Version 0.10.2 released 2014-12-29 Version 0.10.2 released
================================== ==================================

View file

@ -1,13 +1,13 @@
<a class="news" href="news.html#Z2015-04-30-version-0-11-0-released">
<h4>Apr 30, 2015</h4>
<p>Nim version 0.11.0 has been released!</p>
</a>
<a class="news" href="news.html#Z2014-12-29-version-0-10-2-released"> <a class="news" href="news.html#Z2014-12-29-version-0-10-2-released">
<h4>Dec 29, 2014</h4> <h4>Dec 29, 2014</h4>
<p>Nim version 0.10.2 has been released!</p> <p>Nim version 0.10.2 has been released!</p>
</a> </a>
<a class="news" href="news.html#Z2014-12-09-new-website-design">
<h4>Dec 9, 2014</h4>
<p>The new website design and forum are now online!</p>
</a>
<a class="news" href="news.html#Z2014-02-11-nimrod-featured-in-dr-dobb-s-journal"> <a class="news" href="news.html#Z2014-02-11-nimrod-featured-in-dr-dobb-s-journal">
<h4>Feb 11, 2014</h4> <h4>Feb 11, 2014</h4>
<p>Nimrod featured in Dr. Dobb's Journal</p> <p>Nimrod featured in Dr. Dobb's Journal</p>