I
I
iscateli2021-09-03 18:59:30
Web development
iscateli, 2021-09-03 18:59:30

Are there any frameworks that allow you to write a backend in rust + javascript?

Are there any frameworks that allow you to write a backend in rust + javascript?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
DevMan, 2021-09-03
@iscateli

Chot you mixed warm and soft.
according to the classics: on js, the front is sawn on anything, which, via API, communicates with the back, which is written on anything.
in a special way: there are frameworks / approaches that try to cross this in one: blazor for no, vaadin for java, livewire for php and all that.
it's up to you to decide. in its purest form, the back is not related to the front at all, except through the API.

D
Dmitry Belyaev, 2021-09-03
@bingo347

Depending on what you understand by rust + javascript
If this is a project on rust with inserts on js (for example, for ssr), then there are several options:
1. An application on rust and an application on node.js work side by side, communicate via tcp/udp/unixsock/ etc.
2. Integrate rust application as a native addon to node.js, communication via ffi, there is neon for this .
3. Introduce a js engine into the application on rust, for example, there is a binding to v8 from deno or a much more lightweight quick-js , true bindingwhile it is greatly curtailed and not the fact that it will get better, it is clearly a person who is far from js. In my spare time, I'm sawing my safe wrapper for this engine, my goal is just to launch ssr js frameworks in rust applications, but I think something working will not be until October.

V
Vasily Bannikov, 2021-09-03
@vabka

There are no such frameworks, and it is not clear why.
In principle, on the backend, you can use ffi / wrappers over v8 / wasm / all sorts of RPCs over anything, but these will all be home-made solutions, not frameworks.

L
Leonid, 2021-09-03
@caballero

why such perversions?
Of course, you can write a site in assembler if you don’t do it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question