4 ms·
As this seems to be some kind of javascript derivate using node.js on the backend (?) I'm interested in how this deals with async operations, ie. can you create
by mikkom 11y ago
As this seems to be some kind of javascript derivate using node.js on the backend (?) I'm interested in how this deals with async operations, ie. can you create functions which take a long time to run without blocking other users?
This is especially important as they are targeting server side too.
- vertex-four 11y agoI'm not reading anything which suggests they're targeting server-side.
- jarcane 11y agoThis whole website is written in Imba. It uses the same code for server and client. After the initial load, all navigation in the browser is happening with history push/popState, and rendered directly on the client, yet any hard refresh should land you at the same spot when rendered from the server, thanks to using the same logic for routing as well. http://imba.io/guides#toc-examples-scrimbla http://imba.io/guides#toc-examples-scrimbla
- mikkom 11y agofrom http://imba.io/guides http://imba.io/guides What is Imba? Imba is a new programming language for the web that compiles to performant JavaScript. It is heavily inspired by ruby and python, but developed explicitly for web programming (both server and client).
- judofyr 11y agoImba itself is "just" a language which compiles to JavaScript and can be used both at the client- and the server-side. At the server-side you use the same techniques as in Node.js (callbacks/promises for I/O-bound concurrency; process pools for computational concurrency). Imba has syntax support for `await` (based on Promises) which helps quite a lot on concurrency-heavy code.