Git Product home page Git Product logo

nimformat's People

Contributors

unicodex avatar

Stargazers

 avatar  avatar

Watchers

 avatar

nimformat's Issues

nimformat.c missing causing pip3 to fail

The nim code base has changed since version .19 when you last built nimformat. Is the pylib import needed anymore?, I removed it. I updated file paths to nimbase.c and the nimformat c files to reflect the new layout for nim 1.0.2 and the compile succeeds. However the pip3 install fails because the nimformat.c file is missing. Nimpy creates a @mnimformat.nim.c file but no nimformat.c file. Do you know how to fix this?

pip3 install ~/nimformat/

Processing ./nimformat
Installing collected packages: nimformat
  Found existing installation: nimformat 0.1.3
    Uninstalling nimformat-0.1.3:
      Successfully uninstalled nimformat-0.1.3
  Running setup.py install for nimformat ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-zk5_6gt7-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-lb5kfa_v-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'nimformat' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -I/usr/include/python3.6m -c nimformat.c -o build/temp.linux-x86_64-3.6/nimformat.o -flto -ffast-math -march=native -O3
    x86_64-linux-gnu-gcc: error: nimformat.c: No such file or directory
    x86_64-linux-gnu-gcc: fatal error: no input files
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
  Rolling back uninstall of nimformat
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-zk5_6gt7-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-lb5kfa_v-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-zk5_6gt7-build/

Readme needs round times, is confusing

I linked the project to some people, they say is a lot slower, because of the e-05 ending on the readme,
I think you should round the float, kinda format it more human readable,
so people stops thinking this is slower than vanilla replace, is confusing.
People thinks is 100 times slower.

like:

Nim    = 0.0007
Python = 1.75

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.