Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
erickt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
2017 State of Rust Survey
(blog.rust-lang.org)
15 points
by
erickt
9y ago
|
1 comments
32.
▲
by
erickt
9y ago
Hello! It's been a bit since I dug into hyper, but that's surprisingly low. Just to check, did you compile this with optimizations enabled, like `cargo build --release`?
33.
▲
The Rust+Gnome Hackfest in Mexico City, Part 1
(people.gnome.org)
4 points
by
erickt
10y ago
|
0 comments
34.
▲
by
erickt
10y ago
This is great news! Congrats on the launch. How is the performance compared to the other Level 3/4 load balancers, like HAProxy, NginX, AWS ELB, and GCE's Cloud Load Balancer? disclosure: rust core team member
35.
▲
by
erickt
10y ago
I wrote it [0]. I meant to get it merged upstream, but the author took the repository offline to help build his business, so my fork bitrotted. However, it looks like Rust support may have independently landed upstream [2]? [0]: https:
36.
▲
by
erickt
10y ago
In case you didn't see, I mentioned there is a way to do this right now: https://news.ycombinator.com/item?id=13791945
37.
▲
by
erickt
10y ago
One approach for this that I haven't really seen get used much that you can use a macro to get around this. In your comboluator.rs, just add this at the bottom of the file: #[cfg(test)] Mod tests { include!("comb
38.
▲
Extending the Underhanded Rust Submission Deadline to March 31
(underhanded.rs)
5 points
by
erickt
10y ago
|
0 comments
39.
▲
by
erickt
10y ago
Rust Core team member here. Out of the box, the Rust standard library only provides very basic networking support [1]. If you want to process requests in parallel, then yes you need to spawn an OS thread to process the request. We went with
40.
▲
by
erickt
10y ago
Amazon Machine Instance [1]. Its the name Amazon uses for the virtual machine image running on AWS. 1: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html
41.
▲
by
erickt
10y ago
Serve creator here. The core library 'serde' never actually required nightly. It was just the helper library 'serde_derive' which can automatically implement the serde traits that needed nightly. dtolnay has been doing a
42.
▲
by
erickt
10y ago
For those not watching the compiler development traffic, macros 1.1 (which will enable things like #[derive(FromForm))]) could land in stable as soon as 6 weeks from now. We haven't really started thinking about a "macros 1.2"
43.
▲
by
erickt
10y ago
Thanks for the heads up! We fixed that setting, so mail away.
44.
▲
by
erickt
10y ago
That's a wonderful idea! I filed [1] to track it. I meant to do something like this, but it got lost in the shuffle prepping for the announcement. We'll publish one in a future blog post. [1]: https://github.com/ru
45.
▲
by
erickt
10y ago
To add on to kibwen and Manishearth, another aspect is that one of the Rust Team's 2017 objectives [1] is to get our community more engaged in mentoring people and projects. We see the open ended aspect of this contest as a way to enco
46.
▲
by
erickt
10y ago
Thanks! I just pushed up a fix for that.
47.
▲
The First Annual Underhanded Rust Contest
(underhanded.rs)
247 points
by
erickt
10y ago
|
25 comments
48.
▲
by
erickt
10y ago
There's no real difference with what serde_codegen does, and what the compiler does for expanding macros. It's just expanding to source rather than raw AST. The idea would be that these types would be put into a library (or just a
49.
▲
by
erickt
10y ago
Serde code generation can be used on stable Rust, it just requires a bit of boilerplate code to setup: https://serde.rs/codegen-stable.html . Things will be much better once macros 1.1 gets stabilized.
50.
▲
by
erickt
10y ago
Serde creator here. Steve's right, serde is fundamentally a generic protocol that implements serialization. I didn't use nom for serde_json (because it didn't exist at the time) but it's definitely possible to use nom an
51.
▲
by
erickt
10y ago
Rust uses the train release model which releases every 6 weeks [1]. It's definitely possible for someone to have an open PR for a year that's not in this list. I'm pretty sure this list is generated by running `git log --form
52.
▲
by
erickt
10y ago
In the Rust case, the crashes are either the stack being blown on recursion or panics when overflowing numbers.
53.
▲
by
erickt
10y ago
Check out https://github.com/stepancheg/grpc-rust . Still in development.
54.
▲
by
erickt
10y ago
One rust crate that seems fairly well along is https://github.com/stepancheg/grpc-rust . It claims it can communicate with the go client.
55.
▲
Hashicorp's Terraform 0.7 has been released
(github.com)
1 points
by
erickt
10y ago
|
0 comments
56.
▲
by
erickt
10y ago
> By keeping platforms / package collections in userland we can get organic collections of stuff that make sense to bundle together. Imagine a "server platform", an "event loop platform", a "calculus platfor
57.
▲
by
erickt
10y ago
Rust Core Team member here. I actually wrote up an RFC [1] that proposes adding JavaScript-like source map support to Rust, in order to improve our plugins-in-stable-code supports. Odds are we are going to reject it for now since I think we
58.
▲
by
erickt
10y ago
Thanks for finding that bug! In a way, Serde itself is all about extracting the metadata of a type and handling validation issues. However this is metadata is currently not exposed to end users. It's something I've thought about d
59.
▲
by
erickt
10y ago
Serde [1] creator here. I think serde can do this out of the box. Is it missing something you need? [1]: https://github.com/serde-rs/serde
60.
▲
by
erickt
10y ago
The drop flag is only generated for types that implement the `Drop` trait. Furthermore, there's work [0] that will shift the drop flag out of the value onto the call stack frame, and then even only in situations where the compiler cann
More ›