Hacker News new | past | comments | ask | show | jobs | submit login

I'm working on a little crud project. It uses rust all the way down, with actix-web as the http framework and sled as an embedded key value store. The idea is to replace the complexity and expense of using many nodes with one node that's extremely fast.

It's been a slow side project for the last month learning the ecosystem and figuring out how to properly deal with types etc.

But now I have a page that uses an opaque cookie stored in the database to identify the logged in user and return proof of success in a rendered template. My goal was to keep server latency for that request below a millisecond, and it ended up being about 100 microseconds on my laptop, so 10 times faster than I was hoping for. I'm just not sure how I could have achieved that with, for example, Django.

So I guess what I'm saying is that it's slow and challenging for me, at least in the beginning. But it's getting faster and easier over time. And in the end, I'm creating something with performance and reliability that would be hard to achieve in another way.




> I'm just not sure how I could have achieved that with, for example, Django.

Impossible.

Also look at startup time, disk size for installation...

But the real benefit is when you want to hack/refactor your code months or years later (or someone else working on the code): languages with strong type systems can help prevent sooo many error in those cases. Compare that to Python where many errors are only discovered runtime.




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

Search: