The polyglot part sounds great! What does it look like, though? Can you expose an API in Rust and consume it in TS? What about types? Can you share them between languages? For example, could I write my front end in TS and reuse the types declared in my Rust server?
That's an interesting question! Spin 2.0 allows for writing server side applications in a number of different languages and composing them together into one server side program (think service oriented architecture but it's all running as one program). Currently sharing logic between the server and the browser in diff languages is not supported, but it could be made possible in the future. Stay tuned for developer tutorials on polyglot programming with Spin 2.0!
Shout out for using a reMarkable.
The polyglot part sounds great! What does it look like, though? Can you expose an API in Rust and consume it in TS? What about types? Can you share them between languages? For example, could I write my front end in TS and reuse the types declared in my Rust server?
That's an interesting question! Spin 2.0 allows for writing server side applications in a number of different languages and composing them together into one server side program (think service oriented architecture but it's all running as one program). Currently sharing logic between the server and the browser in diff languages is not supported, but it could be made possible in the future.
Stay tuned for developer tutorials on polyglot programming with Spin 2.0!