3 ms·
What would this look like for other language backends to support? Eg would be neat if Rust (my webservers) could support this on the backend edit: Downvoted, i
by unshavedyak 1y ago
What would this look like for other language backends to support? Eg would be neat if Rust (my webservers) could support this on the backend
edit: Downvoted, is this a bad question? The title is generically "web servers", obviously the content of the post focuses primarily on TypeScript, but i'm trying to determine if there's something unique about this that means it cannot be implemented in other languages. The serverside DSL execution could be difficult to impl, but as it's not strictly JavaScript i imagine it's not impossible?
- kentonv 1y agoI'm hoping the answer will be: * Use Cap'n Proto in your Rust backend. This is what you want in a type-safe language like Rust: generated code based on a well-defined schema. * We'll build some sort of proxy that, given a Cap'n Proto schema, converts between Cap'n Web and Cap'n Proto. So your frontend can speak Cap'n Web. But this proxy is just an idea for now. No idea if or when it'll exist.
- indolering 1y agoDo you feel like we are reaching the final form for RPC protocols yet?
- bryanlarsen 1y agoNow you've likely been downvoted because you're complaining about downvotes. Which is too bad because you've elicited a great answer from the author. It's usually best to ignore downvotes. Downvoted comments are noticeably grey. If people feel that's unfair, that'll attract upvotes in my experience.
- unshavedyak 1y ago> Now you've likely been downvoted because you're complaining about downvotes. Fwiw i think it was only once, and i was upvoted after mentioning it. You're right i could have worded it as something more ambiguous, aka "it seems this is unpopular" or w/e, but my edit was in reply to someones feedback (the downvote), so i usually mention it. No complaint, just a form of wordless-feedback that i was attempting to respond to. Despite such actions being against HN will heh.