Questions tagged [stratifiedjs]

Oni StratifiedJS (previously known as "Oni Apollo") is the reference StratifiedJS Language implementation + a supporting set of modules. It runs server-side (based on NodeJS) as well as client-side (cross-browser).

StratifiedJS modernizes the JavaScript language for use in non-trivial web applications:

No more asynchronous spaghetti.

Underpinned by ideas from the Orc process calculus, SJS offers all the advantages of asynchronous programming with conventional sequential syntax. Perform asynchronous requests without callbacks. Pause program execution without setTimeout. Orchestrate complex asynchronous logic with intuitive high-level operators. See the Language Reference for more details.

Structure.

A modern CommonJS-style require() system operating without callbacks or boilerplate makes it easy to structure large codebases.

Building blocks included.

The Standard Module Libray with its 30+ modules gives you a good foundation for your web application.

Fluent and functional in spirit.

SJS's doubledot operator makes it possible to write beautiful fluent APIs (such as e.g. the sequence module) without invasive monkey-patching or adding clunky object-oriented wrappers.

Advanced syntax features.

SJS includes some of the best features proposed for upcoming JavaScript standards, making for an all-around more pleasurable, powerful and safe coding experience:

6 questions
2
votes
1 answer

StratifiedJS: how call modules from .js files

I'm using the library StratifiedJS (http://onilabs.com/stratifiedjs) to construct an api database synchronous. But I am confused about how to include files. As the documentation says, I import the library this way:
Papouc
  • 25
  • 7
0
votes
1 answer

Split data into train and test stratified on label

I have a data frame (df) with two columns (Numbers and Letters). See reproducible example: Numbers<- c(2.370653,3.811336,5.255120,…
Skårup
  • 33
  • 4
0
votes
1 answer

stratified sampling R: java.lang.OutOfMemoryError: Java heap space

I want to use this function here is the code on github to sample my dataset in 2 parts 90% traning data set ( for example) and 10% (the rest) are the test ( for example tried this code…
-1
votes
3 answers

Using waitfor from stratified in AngularJS

I'm using the StratifiedJS library's waitFor construct. function myFunction() { // some declarations waitfor() { AsyncService.getThisDone().then(function(result) { // some more calculation …
Nitin
  • 7,187
  • 6
  • 31
  • 36