Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nathansizemore
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Show HN: Nkeep
(nkeep.app)
3 points
by
nathansizemore
2y ago
|
0 comments
2.
▲
Async Rust Isn't Bad: You Are
(n8s.site)
5 points
by
nathansizemore
2y ago
|
2 comments
3.
▲
by
nathansizemore
10y ago
I'd have to look into it, haven't checked out mio in months, but I don't see any reason why it couldn't be compatible with it. Any particular reason?
4.
▲
by
nathansizemore
10y ago
> Why not X? I wanted to use Rust and learn epoll through working with it directly. > I was hoping Rust wouldn't head down this road. To my knowledge, Rust does not have a std async story. I hope it will, and I believe libs like
5.
▲
by
nathansizemore
10y ago
Yeah, learning a more safe way to program via the borrow checker can take some time to get ingrained. Bad habbits are hard to break ;) I do know that async-hyper is coming out soon (hyper built atop mio). Personally, I enjoy not having supp
6.
▲
by
nathansizemore
10y ago
Exactly. It is ideal for any type of high performance server that needs to handle many long lived concurrent connections.
7.
▲
by
nathansizemore
10y ago
From briefly looking across the README, it looks like Ranch is more for maintaining a pool of connections, where this _also_ handles the marshalling of consumer defined I/O (Non-blocking read/writes) operations, and the workflow a
8.
▲
by
nathansizemore
10y ago
Bummertown. This is my first open source project I've really broadcast to the world and I should have taken more time to research the name instead of just going for the first one that came into my head. Thanks for pointing that out!
9.
▲
by
nathansizemore
10y ago
TBQH, I do not have the slightest clue why I decided to implement that as a growable String type instead of a literal. Definitely warrants a change.
10.
▲
by
nathansizemore
10y ago
Thanks for the feedback! This means I need better docs :) So, the framework itself does not implement any of that, it is on the consumer. It just calls the proper methods on the trait object provided. https://nathansizemore.githu
11.
▲
by
nathansizemore
10y ago
Of course! Well, hyper is a lib for dealing with the HTTP protocol. If being cross platform did not matter, hyper could be build atop of this. I did not go the route of mio because I wanted to learn the entire process of working with epoll
12.
▲
by
nathansizemore
10y ago
Thanks, but it only uses epoll :) mio is a crate that offers more platform agnostic async I/O.
13.
▲
by
nathansizemore
10y ago
Thanks! Yeah, only a few days into using emacs. I keep forgetting about those files.
14.
▲
by
nathansizemore
10y ago
Thanks! Was lucky enough to be able to use Rust for a production application, and hope it can be useful to others in providing the tedious mundane parts of socket server building :)
15.
▲
Show HN: Hydrogen, a multithread non-blocking Linux server framework in Rust
(github.com)
154 points
by
nathansizemore
10y ago
|
46 comments