Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Imba 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.


I'm not reading anything which suggests they're targeting server-side.


This 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


from 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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: