glathoud / flatorize Goto Github PK
View Code? Open in Web Editor NEWGenerate fast implementations of mathematical expressions. Inclues a linear algebra library.
Home Page: http://glat.info/flatorize
License: Apache License 2.0
Generate fast implementations of mathematical expressions. Inclues a linear algebra library.
Home Page: http://glat.info/flatorize
License: Apache License 2.0
See if we can derive D code generation without too much pain, most likely by cloning flatorize_c.
background: we already have support for basic types in the C plugin. We could reuse this to generate asm.js code, and compare the performance:
So that we can integrate flatorize's generated code directly in transfun: glathoud/transfun#7
...with the recent asm.js plugin code, and since code generation now runs fast, make a single python script to run it all.
2014-12-01 note about GCC:
float io_array[]
first, then declare the convenience pointers float *
. The bug disappeared.Now with clang: Speed comparison JavaScript vs. C:
On an Ubuntu laptop for the (heavy) DFT1024 case I measured a speed of about 47800 iterations per seconds for Chrome 39 and about 60000 iterations per seconds for clang.
This is fast enough for me to do scientific computation in the browser with a much much faster and simpler developement process (JavaScript) than in C.
Just for fun compare on the DFT1024 test case:
misc:
for all JS files written until now: flatorize, flatorize_asmjs, flatorize_c, flatorize_type_util ...
See if we can derive OCaml code generation without too much pain, most likely by cloning flatorize_c.
(see ./lib/flatmat)
background: when matrix/vector dimensions are unknown at compile time, but one would like to benefit from the high speed code generated for known dimensions
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.