Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
TheHydroImpulse
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
TheHydroImpulse
10y ago
We're using Docker pretty extensively at Segment with over 1,200 containers running in production with ECS (total count, not uniqueness). We haven't touched Swarm and are staying a couple versions behind. With that said, we'r
32.
▲
by
TheHydroImpulse
10y ago
What about when they don't give that info away but keep it for themselves? Still creepy?
33.
▲
by
TheHydroImpulse
10y ago
There is, at least for the NHL. It's still not completely reliable but I can watch every game of the regular season and playoffs much easier than using gamecenter (and cheaper). The blackouts are really bad for the NHL. When I lived in
34.
▲
by
TheHydroImpulse
10y ago
The reason it's slow is because python interprets it's input. It essentially introduces major indirection for instructions to be executed. So for '1 + 1', you can't just output some fast x86 instruction and inline i
35.
▲
by
TheHydroImpulse
10y ago
The early version of hiphop (Facebooks php compiler) would compile PHP into C++. It was really interesting how they went from C++ to now a full featured JIT.
36.
▲
by
TheHydroImpulse
10y ago
Rc is scoped to a single thread, so it'll be, at worst, stop-the-thread.
37.
▲
by
TheHydroImpulse
10y ago
I actually get the opposite feeling. Maybe that's because I'm so used to rustdoc now, but it's super easy to find everything. Go's doc tool seems like just a giant dump of API signatures. Rustdoc isn't perfect, but
38.
▲
A second try at using Rust
(jvns.ca)
2 points
by
TheHydroImpulse
10y ago
|
0 comments
39.
▲
by
TheHydroImpulse
11y ago
Green threads are probably not going to be as useful in Rust as in other languages. Having something like await/async built into the compiler that transforms into state machine (like in C#) would be more powerful it seems.
40.
▲
Segment Sources – Load Salesforce, Zendesk, Stripe into Redshift and Postgres
(segment.com)
178 points
by
TheHydroImpulse
11y ago
|
37 comments
41.
▲
by
TheHydroImpulse
11y ago
Racer (which this package uses) supports jumping to definitions (including standard library ones).
42.
▲
by
TheHydroImpulse
11y ago
Optionals can't be expressed safely in Go. They have a type of `Option<T>` or `Maybe<T>`. Swift just has this notion built as an operator. Traditional enums aren't particularly interesting. What languages like Rust and
43.
▲
by
TheHydroImpulse
11y ago
How so? From my experience, I was able to make massive changes and the compiler would guide me through to make sure I didn't miss anything. If it compiles, it'll generally work minus any logical errors/changes.
44.
▲
by
TheHydroImpulse
11y ago
> Rust is expensive to develop - if you can afford to use a GC, you should use a GC This has not been the case for many people using Rust, including myself. Once you learn the language, there is no "cost" to use it. In fact, th
45.
▲
by
TheHydroImpulse
11y ago
Go effectively uses a thread-per-connection model with goroutines (M:N threading instead of N:N threading though). You won't be able to fully exploit the hardware that way. It is, however, easier to use, but the context switching and s
46.
▲
by
TheHydroImpulse
11y ago
As long as we're talking about purely generics with no introduction to type classes, the obvious ones people point out: - More compiler complexity - Compilation speeds might be effected - Without type inference, type signatures could b
47.
▲
by
TheHydroImpulse
11y ago
They become pretty weak for encryption except #1. Moreover, there are real arguments for the inherit danger in owning a gun, statistically. It's a fact that you're more likely to commit suicide or someone gets killed because you o
48.
▲
by
TheHydroImpulse
11y ago
Generics do not have to be complex and they allow abstractions that simplify your code. Please explain how .map, .filter, .reduce, .pmap are complex? Swift is also built with LLVM, a backend that is far superior to Go's handmade one. I
49.
▲
by
TheHydroImpulse
11y ago
It's not a modern Java, it's an antiquated Java. It might aim to be modern, but Go is far from being a modern programming language, even if it was implemented in modern times.
50.
▲
by
TheHydroImpulse
11y ago
If people are still writing it by hand each time, it's a problem with tooling, specifically dependency management. If it's that much of a pain to distribute a library, then people are going to write it themselves. That's not
51.
▲
by
TheHydroImpulse
11y ago
The Go community seems to throw "you're using the language wrong, do it like this..." or "copying code is the way to go" or "those things you use in other languages shouldn't be used in ours." or &quo
52.
▲
by
TheHydroImpulse
11y ago
I disagree. Useful, proven abstractions like Futures, Map, Filter, Functors are actually simpler to use and reason about -- not more complex.
53.
▲
by
TheHydroImpulse
11y ago
Using an acking system (like that in Storm or Heron) would move it to be physically at-least-once with a logical exactly-once by de-duping at the target. This means if you observe the inner system, you won't be seeing exactly-once sema
54.
▲
by
TheHydroImpulse
11y ago
But one of the reasons you're able to process more with async I/O is bypassing the costs of the thread-per-connection model. So you're not forced to store all the thread's stacks and you don't have expensive context
55.
▲
by
TheHydroImpulse
11y ago
There are a few different ways one could achieve this. The first options would be to generate a struct: struct RouteUser { route: &'static str, f: fn(_: &mut Request) -> PencilResult } Then given
56.
▲
by
TheHydroImpulse
11y ago
There's probably some opportunity to use custom annotations in Rust to achieve the same thing. #[route("/foobar")] fn user(_: &mut Request) -> PencilResult { // ... } However, pr
57.
▲
by
TheHydroImpulse
11y ago
Will do, thanks!
58.
▲
by
TheHydroImpulse
11y ago
Bay Area. Seems like there's a few choices with Hollister, Lodi, Monterey Bay, Norcal. Lodi seems like it's the bigger name out the bunch.
59.
▲
by
TheHydroImpulse
11y ago
Tandem instructors at my dropzone did pretty much the same thing. All stayed on the GoPro 2 or original 3. I used to jump at Eden North in Canada, but I'm moving to North California so I have to pick a new one :) Gotta love a Cessna Ca
60.
▲
by
TheHydroImpulse
11y ago
Even within GoPro's demographic of sports, everyone who wants one probably already has one, more or less. Upgrading is now less of a concern with 4K. I bought one for skydiving and I can't see myself upgrading if they came out wit
More ›