summary refs log tree commit diff stats
path: root/compiler/vmops.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix #16815 round(x,places) works again in vm (#16825)Timothee Cour2021-01-281-1/+8
| | | | | | | * fix #16815 round+places works again in vm * improve tests; fix for linux 32bit * fix test for windows
* add math.signbit (#16592)flywind2021-01-071-0/+6
|
* Add math.copySign (#16406)flywind2020-12-301-0/+6
| | | | | * add math.copySign * fix + tests
* explicit ID generation for easier IC (#15559)Andreas Rumpf2020-10-251-1/+1
| | | | | | | | | | | | | | | | | * refactoring: idents don't need inheritance * refactoring: adding an IdGenerator (part 1) * refactoring: adding an IdGenerator (part 2) * refactoring: adding an IdGenerator (part 3) * refactoring: adding an IdGenerator (part 4) * refactoring: adding an IdGenerator (part 5) * refactoring: adding an IdGenerator (part 5) * IdGenerator must be a ref type; hello world works again * make bootstrapping work again * progress: add back the 'exactReplica' ideas * added back the missing exactReplica hacks * make tcompilerapi work again * make important packages green * attempt to fix the build for 32 bit machines (probably need a better solution here)
* implements https://github.com/nim-lang/RFCs/issues/258 (#15503)Andreas Rumpf2020-10-061-3/+17
| | | | | | | | | * implements https://github.com/nim-lang/RFCs/issues/258 * don't be too strict with custom pragma blocks * cast pragmas: documentation * added most missing inference query procs to effecttraits.nim
* Added std/effecttraits.nim (#15462)Andreas Rumpf2020-10-021-0/+9
|
* Remove little lies :)Clyybber2020-08-081-5/+6
|
* Fix bootstrappingClyybber2020-08-081-3/+4
|
* implement (#15153)cooldome2020-08-041-1/+1
|
* `nim doc --backend:js`, `nim doc --doccmd:-d:foo`, `nim r --backend:js`, ↵Timothee Cour2020-05-111-2/+3
| | | | | | | | | | `--doccmd:skip` + other improvements (#14278) * `nim doc --backend:js|cpp...` `nim doc --doccmd:'-d:foo --threads:on'` `nim r --backend:cpp...` (implies --run --usenimcache) * --usenimcache works with all targets * --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
* fix https://github.com/nim-lang/Nim/issues/14275 querySetting(nimcacheDir) ↵Timothee Cour2020-05-081-1/+1
| | | | works even if implicitly set (#14277)
* add `--experimental:vmopsDanger`; add generic conversion for vmops (#13813)Timothee Cour2020-04-201-9/+24
| | | * add --experimental:vmopsDanger; vmops cleanups
* make bootstrapping more robust for people who have Nim inside /usr/bin (#13855)Andreas Rumpf2020-04-031-32/+34
|
* std/compilesettings implementation (#13584)Andreas Rumpf2020-03-041-0/+33
| | | | | | | | * Implement compileSetting() and compileSettingSeq() * Change from magic to vmop * better design for querySetting Co-authored-by: genotrance <dev@genotrance.com>
* fixes #13013, reverts previous changes to readLines() (#13036) [backport]cooldome2020-01-051-1/+1
| | | | | | | * Revert "remove default argument for readLines (#12807) [backport]" This reverts commit c949b81efdeb08b38224e1678ad140b7b7663b15.
* remove default argument for readLines (#12807) [backport]cooldome2020-01-021-1/+1
|
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-2/+2
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* fixes #12491 [backport]Andreas Rumpf2019-10-241-1/+5
|
* added cpuTime to VM (#12346)Ico Doornekamp2019-10-041-0/+10
| | | | | | * added cpuTime to VM * Hide VM-time cpuTime() behind --benchmarkVM flag
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* fixes #12125 (#12131)Andreas Rumpf2019-09-061-1/+9
| | | | * fixes #12125
* hashes: implement murmur3 (#12022)Miran2019-09-011-0/+29
| | | | | | | | * hashes: implement murmur3 * refactoring; there is only one murmurHash and it works at compile-time via VM hooks * fixes JS tests * makes toOpenArrayByte work with C++ * make it bootstrap in C++ mode for 0.20
* Implement isExported for symbols in macros (#11963)nc-x2019-08-181-1/+10
| | | | | | | | * Implement isExported for macros * Reimplement isExported using VM callback mechanism * VM does not support exceptions, use stacktrace() instead.
* VM exception fixes (#11868)Oscar Nihlgård2019-08-021-0/+4
|
* Compiler plugin for implementing incremental computation in user space (#10819)cooldome2019-04-111-3/+21
| | | | | | | | | | This plugin provides essential building block for implementing incremental computations in your programs. The idea behind incremental computations is that if you do the same calculation multiple times but with slightly different inputs you don't have to recompute everything from scratch. Also you don't want to adopt special algorithms either, you would like to write your code in standard from scratch manner and get incrementality for free when it is possible. The plugin computes the digest of the proc bodies, recursively hashing all called procs as well . Such digest with the digest of the argument values gives a good "name" for the result. Terminology loosely follows paper "Incremental Computation with Names" link below. It works well if you have no side effects in your computations. If you have global state in your computations then you will need problem specific workarounds to represent global state in set of "names" . SideEffect tracking in Nim also useful in this topic. Classical examples: Dashboard with ticking data. New data arrives non stop and you would like to update the dashboard recomputing only changed outputs. Excel spreadsheet where user changes one cell and you would like to recompute all cells that are affected by the change, but do not want to recompute every cell in the spreadsheet.
* fixes #10585Araq2019-02-071-2/+5
|
* add `getCurrentCompilerExe` to vmops (eg allows to get nim compiler at CT); ↵Timothee Cour2018-12-181-1/+4
| | | | add tests for vmops (#9925)
* Don't use deprecated fmod in VMdata-man2018-12-011-2/+1
|
* Fixes #9671 (#9750)Randy Smith2018-11-191-3/+0
|
* deprecated ospaths (#9665)Andreas Rumpf2018-11-091-3/+3
|
* make `mod` on floats available in the VM (#9591)skilchen2018-11-051-1/+5
| | | | | | * make `mod` on floats available in the VM * add testcase * removed no longer needed imports
* compiler refactoring; use typesafe path handing; docgen: render symbols ↵Andreas Rumpf2018-09-071-1/+1
| | | | between modules
* compiler API: final cleanups; improve security by diabling 'gorge' and friendsAndreas Rumpf2018-05-291-11/+12
|
* more modules compile againAndreas Rumpf2018-05-121-9/+7
|
* introduce nkTupleConstr AST node for unary tuple construction; breaking changeAndreas Rumpf2018-04-131-2/+2
|
* Added a few useful os calls to VM (#7440)genotrance2018-04-121-19/+29
|
* getEnv now supports a 'default' parameter; refs #6019Andreas Rumpf2017-10-301-1/+6
|
* Fixes #6336 (#6337)Yuriy Glukhov2017-09-061-2/+10
|
* added system.gorgeEx that includes the exitCode; refs #4874; fixes #1994Araq2017-01-071-0/+6
|
* stdlib and compiler don't use .immediate anymoreAndreas Rumpf2016-07-291-8/+8
|
* Add ``readFile`` implementation for nimvmAnatoly Galiulin2016-04-131-31/+37
|
* os.walkDir is available at compile timeAraq2015-11-101-1/+9
|
* VM produces objects.Yuriy Glukhov2015-09-051-1/+1
|
* system.locals is now a plugin for educationAraq2015-04-241-1/+1
|
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|
* fixes #1473Araq2014-11-121-0/+5
|
* system.writeFile works at compile-timeAraq2014-10-021-0/+9
|
* VM supports math and a few os procsAraq2014-08-301-0/+66