Git Product home page Git Product logo

mathcompile's People

Contributors

njpipeorgan avatar

Stargazers

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

Watchers

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

mathcompile's Issues

Build a PacletSite in this github repository

With this improvement, users can simply write PacletInstall["MathCompile"] to fetch the newest and compatible version of MathCompile after executing PacletSiteRegister@"https://github.com/njpipeorgan/MathCompile/raw/master".

Put all paclets in the /Paclets/ directory, and export the PacletSite[Paclet[Name->..., ...], ...] expression as ZIP to /PacletSite.mz, then everything will be OK.

You can use the PutSiteInfo[] function to conveniently create PacletSite.mz in this paclet: PacletInstall["WolframPacletSiteManager", "Site"->"https://github.com/rnotlnglgq/WolframPacletSiteManager/raw/master"] .

Can't reload some function

if a function have same input parameter with another, then you only can call one of them.

I think the reason is they have same "name" the "man_function". so I change the name to man_function_funcid. it seem ok after that.

How to solve "The header file "math_compile.h" cannot be found"

After the tested codes, two errors occured to prevent the next application.
The first one was after
<< MathCompile
f = Function[{Typed[x, Integer]}, x + 2];
CompileToCode[f] `
to find the information"Import::nffil: File C:\Users\Administrator\AppData\Roaming\Mathematica\Applications/SourceFiles/src_template.cpp not found during Import."

When compiling to the binary,
f = Function[{Typed[x, {Integer, 1}]}, Times @@ x]; compiled = CompileToBinary[f];
the hint as "MCLink::noheader: The header file "math_compile.h" cannot be found._" failed to get the binary codes.


  1. Did the problem bring out due to the g++ not installed properly?
    I have tried to use both the TDM-GCC-64 and mingWx86_64-8.1.0-release-posix-sjlj-rt_v6-rev0 to fail.
  2. Did MathCompile contrdict with Compile with the option "CompilationTarget -> "C""? After all, to compile to c you also need like
    <<CCompilerDriverGenericCCompiler $CCompiler={"Compiler"->GenericCCompiler,"CompilerInstallation"->"C:\\TDM-GCC-64\\bin","CompilerName"->"gcc.exe","SystemCompileOptions"->"-Ofast"};

I appreciate your great work very much with large willing to try MathCompile.

MCLink::libdir: The library directory does not exist.

I am on windows 10, mma 12.1 , mingw

I run

CCompilerDriver`$CCompiler = {"Compiler" -> 
    CCompilerDriver`GenericCCompiler`GenericCCompiler, 
   "CompilerInstallation" -> "C:\\MinGW\\bin", 
   "CompilerName" -> "g++.exe"};

and then I run

$CCompiler

get

{"Compiler" -> CCompilerDriver`GenericCCompiler`GenericCCompiler,
"CompilerInstallation" -> "C:\MinGW\bin",
"CompilerName" -> "g++.exe"}

then I tried one example:

<< MathCompile` (*导入包*)
f = Function[{Typed[x, {Integer, 1}]}, 
Times @@ x];(*定义一个函数*)compiled = CompileToBinary[f];(*编译成二进制*)

It returns that

MCLink::libdir: The library directory does not exist.

So how to fix it?

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.