unicodex / nimformat Goto Github PK
View Code? Open in Web Editor NEWTest Nim implementation of Python native library focused on string substitution.
License: MIT License
Test Nim implementation of Python native library focused on string substitution.
License: MIT License
Readme needs PIP install instructions, how to install this from Pypi โ
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
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/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.