4 ms·
Web framework. If Nim had a super robust web framework, usage/adoption would skyrocket. It has all the ergonomic benefits of a language like Python but the pe
by tiffanyh 4y ago
Web framework.
If Nim had a super robust web framework, usage/adoption would skyrocket.
It has all the ergonomic benefits of a language like Python but the perf/memory of C.
- afavour 4y agoI'm not so convinced. Web frameworks by and large don't need the perf/memory of C, they're always running on high powered servers. Nim feels like it would be perfect for embedded settings.
- barnabee 4y agoI’d love a really good Nim web server option, too. Something lightweight but with enough to quickly build APIs, like FastAPI in Python or maybe Chi in Go. Even if the speed wouldn’t do it for many people over, say, FastAPI, the static typing and less insane package and dependency management than Python, and lower friction/boilerplate than Go might.
- senko 4y ago> Web frameworks by and large don't need the perf/memory of C, they're always running on high powered servers But if they had perf/memory of C they wouldn't need to run on high powered servers! If a language allows you to be productive and can deliver high performance that can reduce your ops complexity and your hosting bill, what's not to like?
- kaba0 4y agoThat implies that we don’t already have high performance web frameworks in managed (thus more productive) languages already, which is not the case. C#, Java, Go are all such languages with plenty of examples.
- antifa 4y agoWith that logic, why should anyone use nim at all? Those are the terrible languages we've come to nim to be free of.
- hu3 4y agoYes! Since it has first-class support for compiling to JavaScript, it could offer fullstack type safety web development in a single language. It's also very easy to grok by being Python-like.
- summarity 4y agoThat's what Karax provides. Then choose one of the numerous web servers available to serve it. Write additional client-side code in Nim if you want to (nim js -> esbuild). It's all there.
- winrid 4y agoWe really should try to port Django to it. It would be a good fit I think.
- summarity 4y agoNot sure more is needed. I'm building apps with Nim using mummy (threaded server) and Karax (building HTML). Karax can also run in the browser. And that's just the minimal setup, more batteries-included frameworks like Prologue exist. Absolutely no blockers to delivering great web apps in Nim