Comments (5)
The first thing would be to check the current behaviour of The Evil One in the current JS engines.
from fext.
Maybe it's cleaner and easier to do the "half thing", as in:
function sortedSearch(sortedArray, x, /*?fun?*/less, /*?fun?*/equal)
{
// ....
return improveFirst( // UNCHANGED
sortedArray, x, less, equal, isFirstFound, isLastFound
, first_found, last_found, i, j, imax, jmin
);
}
// ...
// --- Private details
function improveFirst( // UNCHANGED
sortedArray, x, less, equal, isFirstFound, isLastFound
, first_found, last_found, i, j, imax, jmin
)
{
// ...
return mret( // CHANGED
improveLast
, fext.__inputArgs__
);
}
for a partial use we could also have return mret( otherFun, a, b, c, fext.__restInputArgs__ );
Thanks to Julio Di Egidio for his inspiring comment.
from fext.
won't do it for now
from fext.
won't do the argument macros either, impossible to implement in debug mode
from fext.
Actually did it, including support for debug mode :)
See top comment of #11, and sorted_search_local
use case about here
from fext.
Related Issues (18)
- speed measurement GUI
- investigate d performance feasability HOT 1
- argument macros HOT 1
- shortcut fext === fext.mfun
- fix nashorn support HOT 4
- investigate feasability in D HOT 6
- support transfun's "inlineable" interface
- code cleanup: remove `__fext_undefined__`
- internals: investigate destructuring HOT 1
- beautify the generated code HOT 1
- add "real life" example like sortedsearch
- investigate inlining HOT 1
- offer easy debugging
- try to improve IE11 support
- try not to modify non-mret returns
- improve nashorn support HOT 2
- node rpm package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fext.