Giter Club home page Giter Club logo

nimbench's People

Contributors

adelq avatar ba0f3 avatar ivankoster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nimbench's Issues

error: ‘doNotOptimizeAway’ was not declared in this scope if compiled with cpp backend

If I bench my code with nim c it works, but if I compile with nim cpp I get this error.

/home/jack/.cache/nim/benchmark_r/@mbenchmark.nim.cpp: In function ‘tyTuple__YMUa8EyOXmFxxl9adnwkkgA executeX60gensym11___benchmark_39(NI)’:
/home/jack/.cache/nim/benchmark_r/@mbenchmark.nim.cpp:262:25: error: ‘doNotOptimizeAway’ was not declared in this scope
  262 |                         doNotOptimizeAway((&r));
      |                         ^~~~~~~~~~~~~~~~~
/home/jack/.cache/nim/benchmark_r/@mbenchmark.nim.cpp: In function ‘tyTuple__YMUa8EyOXmFxxl9adnwkkgA executeX60gensym14___benchmark_68(NI)’:
/home/jack/.cache/nim/benchmark_r/@mbenchmark.nim.cpp:285:25: error: ‘doNotOptimizeAway’ was not declared in this scope
  285 |                         doNotOptimizeAway((&r));

Nimble installation fails

$ nimble install
Traceback (most recent call last)
nimble.nim(990)          nimble
nimble.nim(959)          doAction
nimble.nim(685)          install
nimble.nim(539)          installFromDir
packageinfo.nim(259)     getPkgInfo
packageinfo.nim(158)     readPackageInfo
Error: unhandled exception: Invalid section:  [NimbleError]

Broken strfmt dependency??

Using current version of Nim

Z:\Work\nim>nim --version
Nim Compiler Version 0.19.1 [Windows: amd64]
Compiled at 2018-10-10
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: 16a941a64206d7727cd1971559bfeea70ccc952f
active boot switches: -d:release

Using current Nimbench

Z:\Work\nim>nimble list --installed
nimbench [0.2.0]
nimr [0.1.0]
regex [0.8.1]
strfmt [0.9.1]
unicodedb [0.6.0]
unicodeplus [0.4.0]

Running nimbench demo

as per http://htmlpreview.github.io/?https://github.com/ivankoster/nimbench/blob/master/nimbench.html
Z:\Work\nim_work>nim c -r test_nimbench.nim
Hint: used config file 'Z:\work\nim\config\nim.cfg' [Conf]
Hint: system [Processing]
Hint: test_nimbench [Processing]
Hint: nimbench [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: algorithm [Processing]
Hint: unicode [Processing]
Hint: strfmt [Processing]
Hint: macros [Processing]
Hint: streams [Processing]
......\C:\Users\DM.nimble\pkgs\strfmt-0.9.1\strfmt.nim(528, 25) Error: type mismatch: got <tuple of (FmtType, int, int, nil, FmtAlign, FmtSign, bool, bool, bool, nil)> but expected 'Format = tuple[typ: FmtType, precision: int, width: int, fill: string, align: FmtAlign, sign: FmtSign, baseprefix: bool, upcase: bool, comma: bool, arysep: string]'

Could it be relate to:

Broken in current Nim devel
https://bitbucket.org/lyro/strfmt/issues/16/broken-in-current-nim-devel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.