Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
iopq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
511.
▲
by
iopq
8y ago
The thing is, when I spend a lot of time thinking about how to make my program type-safe all of my unit tests become either useless or no-ops Integration tests easily survive refactoring, on the other hand
512.
▲
by
iopq
8y ago
I mean, you could just have producers forcing you to do something that's not good, like celebrity cameos and other stupid things.
513.
▲
by
iopq
8y ago
What if the later writers just got worse reviews because they were in the later seasons? In other words, something else caused the decline so the later writers got worse ratings.
514.
▲
by
iopq
8y ago
Here is a simpler syntax: fn accumulate tuples: &[(&'a Str, &Fn(i32) -> Bool)], i: i32 -> t where t: Monoid + From &'a Str + From String, this is how Haskell with lifetimes and borrowing wo
515.
▲
by
iopq
8y ago
Haskell has nice syntax for generics, no stupid <> to forward declare type parameters
516.
▲
by
iopq
8y ago
I'm comparing it to Haskell syntax for the same thing, which is much cleaner
517.
▲
by
iopq
8y ago
But the cost keeps growing, especially when you need to go from 50 servers to 100
518.
▲
by
iopq
8y ago
Templates generate bad error messages because they are duck-typed. Rust is better at this.
519.
▲
by
iopq
8y ago
You should really be memcaching the database aggressively. I got it to the point that PHP was taking more time than the database for most pages because most pages DON'T need to be updated that frequently.
520.
▲
by
iopq
8y ago
Okay, tell me if this is readable to you: fn accumulate<'a, T: Monoid>(tuples: &[(&'a str, &Fn(i32) -> bool)], i: i32) -> T where T: From<&'a str> + From<String>, thi
521.
▲
by
iopq
8y ago
There are definitely 10x engineers. They're just experienced enough not to make the mistakes a junior engineer makes. It's invisible, they just didn't do that stupid thing someone else would have done. Have you ever had thing
522.
▲
by
iopq
8y ago
We're the Rust Evangelism Strike Force and we'll convince you to write more secure code!
523.
▲
by
iopq
8y ago
Nice try, Stroustrup
524.
▲
by
iopq
8y ago
Neither of which are sexist
525.
▲
by
iopq
8y ago
Courts shouldn't have so many resources that they should be looking at things like that for one thing, a use of a meme doesn't infringe on anyone's rights
526.
▲
by
iopq
8y ago
Really? Because I find let x = ~"blah"; to be more readable than let x = String::from("blah");
527.
▲
by
iopq
8y ago
Usually you return a closure with impl Fn. Another use case is to return an iterator. I wrote a post about it. Let me know if it helps. https://medium.com/@iopguy/impl-trait-in-rust-explanation-ef...
528.
▲
FizzBuzz can finally be implemented in stable Rust
(medium.com)
6 points
by
iopq
8y ago
|
0 comments
529.
▲
by
iopq
8y ago
I was in Japan and the shinkansen definitely had cargo on it
530.
▲
by
iopq
8y ago
If one billion events happen in a day, then some one-in-a-billion event is likely to happen every day. Some of them, like a coin landing perfectly sideways will just go on Youtube. Some of them will end up in the news.
531.
▲
by
iopq
8y ago
The rules for the game are quite simple, thankfully. It's a good use case for Rust since the faster it runs the stronger the bot. Any crashes of course ruin the rating as well.
532.
▲
by
iopq
8y ago
Because sometimes there's no budget, there's "we spend less money on hardware the less resources our program uses" so faster is always better.
533.
▲
by
iopq
8y ago
Of course it's safer. It prevents you from doing a null pointer exception. That just by itself is a big enough win not to even use Go or Java ever again.
534.
▲
by
iopq
8y ago
I contributed to an open source project for a bot that plays Go (the game). It's fast and multi-threaded, without random crashes. Kind of the best case scenario.
535.
▲
by
iopq
8y ago
Es el mio is perfectly good Spanish
536.
▲
by
iopq
9y ago
Lifetimes are related to scopes, but are not scopes: http://smallcultfollowing.com/babysteps/blog/2016/04/27/non-...
537.
▲
by
iopq
9y ago
cyanobacteria don't respond to much either, they just have mechanisms to "respond" to their environment much like a robot for a bacteria the most common response to environmental change is to die
538.
▲
by
iopq
9y ago
There is no duty for a company to provide social security for contractors. Same way as an Uber contractor has no responsibility to drive a certain amount of time or at certain hours.
539.
▲
by
iopq
9y ago
Uber and Lyft actually succeeded in creating an accessible system that everyone could afford. You have it all backwards. The common person can actually afford Uber, not cabs.
540.
▲
by
iopq
9y ago
The driver uses that money to pay for his own health insurance and retirement. Contrary to your post, Uber provided me with commercial vehicle insurance when I was driving for them.
More ›