fafhrd91
fafhrd91 on Hacker News
i am original author of pyo3. Yuri Selivanov (author of uvloop and edgedb) suggested pyo3 name.
name was chosen after `uranium trioxide`, pythonium trioxied - pyo3
You still need to initialize inner structures and buffers. Cache allows to avoid that.
Posted by
fafhrd91 on Wednesday July 10, 2019 @03:06AM
from the techempower.com dept.
We use actix at azure iot
one thread in best case. But process may die. Depends on panic
Actix provides actor abstraction over synchronous code and allows to communicate with it in async manner. TechEmpower benchmarks uses sync actors for db operations and http part is async. I am not sure how this help though, tokio-minihttp also uses threadpool for db operations, results are not that good
i think from ergonomics standpoint, actix is very close to rocket. of course rocket has some advantage, but actix compiles on stable and has zero codegen code. as soon as proc macro stabilizes both will be on par.
from performance perspective, actix is faster than rocket on any type of load.
first, you need to define what is crash in rust means. panic or error. in general case you can not recover from panic. in case of error, type system prevents unhanded errors in actors. you can restart actor, but that is controlled by developer action.
we use actix. but that is all i can share :)
Posted by
fafhrd91 on Wednesday May 30, 2018 @03:10PM
from the actix.rs dept.
Posted by
fafhrd91 on Monday May 14, 2018 @10:36PM
from the stevezeidner.com dept.
a lot of has changed since 2015. scalable http/1, http2/, websockets libraries and frameworks are available. and with async/await async programming will be even simpler.
i'd say in most projects i worked, threads would be enough. but it is so boring :)
new shiny async code is much more entertaining!
on other hand we should talk about C100k or C1m problems.
Writing good docs is hard for sure! Especially for developers, you just want to write cool code :) but take into an account lifetime of the projects, compared to python all of them pretty young. For example I started actix-web just 5 months ago, sure it needs more documentation
I'd like to mention actix, it is an actor framework for Rust language. it is single process at the moment, but distributed version is in development.
https://github.com/actix/actix/
Actix web is a small, pragmatic, extremely fast, web framework for Rust.
* Supported HTTP/1.x and HTTP/2.0 protocols
* Streaming and pipelining
* Keep-alive and slow requests handling
* Client/server WebSockets support
* Transparent content compression/decompression (br, gzip, deflate)
* Configurable request routing
* Graceful server shutdown
* Multipart streams
* Middlewares
Posted by
fafhrd91 on Wednesday February 28, 2018 @06:13PM
from the show-hn dept.
There is no guide for actix but I am planing to add one
you can always try rust in parallel with python code with libraries like pyo3
stable rust is only two years old. we just need some more time