async
liqvid
async | liqvid | |
---|---|---|
16 | 40 | |
28,077 | 742 | |
- | 0.7% | |
8.1 | 6.6 | |
4 days ago | 20 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
async
-
Avoid the Promise.all pitfall
Well you could just install the async package which has lots of useful functions like mapLimit which will reduce the burden and only run a number in parallel.
-
What is this callback in async.parallel function?
Have you checked out the docs for the async library they are using?
-
How to limit concurrency with Python asyncio?
Edit:2. What's a good library that takes care of common async patterns? (Something like async)
-
I Avoid Async/Await
Async/await is certainly not promises. In fact it would be much better implemented without promises as I proposed here: https://es.discourse.group/t/callback-based-simplified-async...
I would even say that async/await is anti-promise, it takes the main functionality of promises, a caching layer for results and errors that allows you to add the code continuation later and elsewhere (which is a major footgun imo) and coerces the execution flow back to going on the next line and provided immediately at compile time which results in a cleaner flow but not as clean, stateless, efficient or functional as if you were to remove the promises completely. Having an additional caching layer and state machine around every asynchronous function call is quite inefficient.
The essence of async/await is not promises, it's the underlying javascript generator (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...) functionality combined with asynchronous code to stop and start the generator. It's the ability to pause and resume function execution based on asynchronous operations.
The promise functionality, the caching layer and state machine for results is basically sanitized away with async/await, it becomes dead-weight computation. The only benefit of promises in async/await code is being able to more easily interface with other promise laden code which you don't need once you have async/await and a library like https://www.npmjs.com/package/async for more complex cases.
Note that promises based async/await is also a mess of an implementation that breaks stack traces and needs to support tons of odd statement corner cases (basically anything that can return an object that could be a promise) whereas a continuation passing style async/await would be a much simpler implementation that would only apply to function calls and maintain stack traces. We get that stack trace support automatically because of the great work of whoever implemented javascript generators which seem to already carry stack traces across paused/resumed functions (if you don't wrap in promises).
-
What is the difference between async.waterfall and async.series
The nodejs async module: https://github.com/caolan/async provides 2 similar methods, async.waterfall and async.series.
-
JavaScript ES6 promise for loop [duplicate]
With async I'd simply use async.series().
-
Some questions about events and promises
I don't understand. Sure you could spawn a ton of processes, but things might be bogged down. There are utilities out there for doing work queues.... so only N workers are running at any one time. The async library has some utilities for that. https://github.com/caolan/async
-
Caolan Asyncjs vs Async/Await: Which One to Use for Async Operations in NodeJS
The documentation of asyncjs is quite straightforward and easy to read. As we've only seen a couple of use cases in this article, I'd recommend to go the asyncjs documentation and check out other possibilities with the library. You can also try to replicate the same using async/await to solidify your understanding of where the library might still make sense.
-
[AskJS] How were asynchronous functions written before Promises?
It basically was tons and tons of callbacks. They'd nest weirdly deep and be a pain to work with. If you're curious, here's a link to one of my favorite JavaScript libraries from those days - it gave you a bunch of neat utilities for dealing with async code.
-
Aren't promises just callbacks?
api(function(result){ api2(function(result2){ api3(function(result3){ // do work }); });}); Which I could use a library like async for anyway, with something like:
liqvid
-
Personal coding projects
Liqvid, the animation library I developed to make those videos
-
Scientific animation tips
If you'll excuse the self-promotion, my library Liqvid can be used in conjunction with these to create full-length videos that your viewers can interact with in real-time. For instance, I taught a full vector calculus course using it.
-
The pandemic has change how I present Mathematics
Really cool! You might be interested in my software Liqvid for making interactive videos. I created it specifically for my math videos. I haven't used it for talks yet, but I have used it for teaching: MATH 180 Vector Calculus.
-
How good are you at coding?
Web development has been my main hobby for the past 17 years so pretty good at that stuff, cf Liqvid and Epiplexis. Abstract math helps with designing libraries, being able to think at multiple levels of abstraction. Currently looking to leave math academia for ed tech.
-
What long-ass proofs of the past are short today?
https://liqvidjs.org/ :)
-
Cubecubed can now dynamically write LaTeX string and trace curves! (Cubecubed is the project aim to math visualization and inspired my 3Blue1Brown's Manim). You can contribute to it if you like, I would be really appreciated.
You should take a look at Liqvid, a library I built for making interactive videos. It has lots of math features, e.g. see https://www.math.brown.edu/ysulyma/f21-math180/ for a full vector calculus course taught using this tool. When I get a chance I'll take a look at embedding Cubecubed within it.
-
My 3d interactive video lectㅤures for vecㅤtor calcㅤulus from this semㅤester
The interactive video framework is Liqvid. For the 3d graphics I used THREE.js along with react-three-fiber.
- Liqvid – Create interactive videos in React
-
Vector calculus course with interactive THREE.js videos
Videos are done with Liqvid and react-three-fiber. If you enjoy please retweet (quote-tweeting is better) https://twitter.com/YuriSulyma/status/1468569247626506240 to help spread the word :)
-
My *interactive* video lectures for Calc3 from this semester. Very proud of this!
Liqvid with THREE.js for graphics
What are some alternatives?
Bluebird - :bird: :zap: Bluebird is a full featured promise library with unmatched performance.
remotion - 🎥 Make videos programmatically with React
moment - Parse, validate, manipulate, and display dates in javascript.
awesome-interactive-math - A curated list of tools that can be used for creating interactive mathematical explorables.
q - A promise library for JavaScript
rp-codebooth - Liqvid widget for interactive code demonstrations
contra - :surfer: Asynchronous flow control with a functional taste to it
MobilePlayer - :iphone: :movie_camera: A powerful and completely customizable media player for iOS
neo-async - Neo-Async is thought to be used as a drop-in replacement for Async, it almost fully covers its functionality and runs faster
Twini-Golf-3DS - A (broken) SDL2 game made in 48 hours, ported to 3DS homebrew and unbroken!
Simple-Series-Parallel - A minimalist utility module for running async functions in series or parallel
liblcf - Library to handle RPG Maker 2000/2003 and EasyRPG projects