sn6uv / cmathics Goto Github PK
View Code? Open in Web Editor NEWan experiment rewriting the core of mathics in C
an experiment rewriting the core of mathics in C
Currently we have (definitions.h):
struct Attributes {
// pattern matching attributes
unsigned int is_orderless: 1;
unsigned int is_flat: 1;
unsigned int is_oneidentity: 1;
unsigned int is_listable: 1;
// calculus attributes
unsigned int is_constant: 1;
unsigned int is_numericfunction: 1;
// rw attributes
unsigned int is_protected: 1;
unsigned int is_locked: 1;
unsigned int is_readprotected: 1;
// evaluation hold attributes
unsigned int is_holdfirst: 1;
unsigned int is_holdrest: 1;
unsigned int is_holdall: 1;
unsigned int is_holdallcomplete: 1;
// evaluation nhold attributes
unsigned int is_nholdfirst: 1;
unsigned int is_nholdrest: 1;
unsigned int is_nholdall: 1;
// misc attributes
unsigned int is_sequencehold: 1;
unsigned int is_temporary: 1;
unsigned int is_stub: 1;
};
This takes a whole int to store just a 1 or 0. That may be optimized: we could choose from several options:
Is it viable? To what extent?
Pros:
Cons:
I expecially mean the WIP @poke1024 C++14 implementation
If not viable at all, another option would of course be using it as an external library
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.