Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zemo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
691.
▲
by
zemo
14y ago
yes, with structural typing, you have to be able to do everything a duck can do, not just the duckish things you're interested in locally. In duck typing, if all you're interested in is walk_like_a_duck, anything with walk_like_a_duck is a
692.
▲
by
zemo
14y ago
it forces the package names to be globally unique, by piggybacking off of DNS. If you own "lclarkmichalek.com" you can put up a server and then have "import lclarkmichalek.com/foobar/foo" if you really want to.
693.
▲
by
zemo
14y ago
type state struct { // add any fields you need to persist here } type transition func(*state) transition same as in Lexical Scanning in Go ( http://www.youtube.com/watch?v=HxaD_trXwRE )
694.
▲
by
zemo
14y ago
channel types can have methods, too ;) http://gowithconfidence.tumblr.com/post/31426832143/stacked-...
695.
▲
by
zemo
14y ago
>For instance, I'd like to write a function that takes in a channel and returns a channel that has been turned asynchronous, by running a goroutine that manages a queue and doing some other things above and beyond what a merely buffered
696.
▲
Function types in Go
(jordanorelli.tumblr.com)
121 points
by
zemo
14y ago
|
29 comments
697.
▲
by
zemo
14y ago
that's not the implementation, that's the design. It gets faster as you keep playing it.
698.
▲
by
zemo
14y ago
"often" is stretching things a bit. The reason this terminology popped up is that it was in the official documentation, but it was (or is scheduled to be) taken out. anyway, you're right, it's not duck typing. Duck typing happens at runti
699.
▲
by
zemo
14y ago
http://en.wikipedia.org/wiki/List_of_humorous_units_of_measu... probably best to measure it in time. that is, a clean shave is length 0, time since last shave estimates length. If you use an electric shaver, the settings on the shaver a
700.
▲
by
zemo
14y ago
>There is zero content discoveries features, so you have no way to get new followers or find new people to follow. Instagram has had an Explore view for a while now. >And the top posters are all teenage pop stars that I've never eve
701.
▲
by
zemo
14y ago
(batch[1] alum, male) it's about promoting the program for females, to help balance the gender divide in programming. In my batch, there was no scholarship yet, and we had no females. Same for batch[0]. batch[1] didn't have the scholarsh
702.
▲
by
zemo
14y ago
former student here, batch[1]. > I've produced a lot of interesting code across many domains and studied a decent variety of languages and technologies, the majority of my work has either been for pay or on personal projects that have (
703.
▲
by
zemo
14y ago
>No decent networks will advertise on Twicsy due to the adult content. does the "possibly_sensitive" attribute in the Twitter API help at all? I ask because I'm looking into using it on a project, but I don't have enough source data to
704.
▲
by
zemo
14y ago
It doesn't promise to make a poet out of you, it's just a toy. You know, for fun. People don't start anything correctly; babies don't start life running marathons or breezing through piano suites, we learn through play and toys are the t
705.
▲
by
zemo
14y ago
every time you perform i/o, the current goroutine yields to the scheduler. If you want to manually yield to the scheduler, you call runtime.Gosched() and the calling goroutine yields. If you want to lock a goroutine into a specific thread,
706.
▲
by
zemo
14y ago
except the example document is flat and the collection has to be homogenous for this to work. Isn't that... kinda missing the point of mongo?
707.
▲
by
zemo
14y ago
http://learnyouahaskell.com/
708.
▲
by
zemo
14y ago
>Its lack of support for threads has turned out to be a strength on the server side. ummmm, can someone elaborate? I don't understand that statement.
709.
▲
How to use interfaces in Go
(orel.li)
59 points
by
zemo
14y ago
|
14 comments
710.
▲
by
zemo
14y ago
>For example, suppose those 100,000 goroutines were network servers and a hostile client could manipulate the connection to block the routine while it was consuming 400 KiB of stack. hmm so you're saying a request causes 400KB to be all
711.
▲
by
zemo
14y ago
also time.After: http://golang.org/pkg/time/#After
712.
▲
by
zemo
14y ago
that is, until we're printing food. The French Culinary Institute has been working on 3D food printers for years.
713.
▲
by
zemo
14y ago
his SafeSet implementation exposes functionality as exported fields instead of exported methods. That should be a red flag to anybody with any real-world Go experience. Exposing functionality through channel fields obviates the possibilit
714.
▲
by
zemo
14y ago
MongoDB is disproportionately liked by the inexperienced. There are things to like about it, and being able to have sparse secondary b-tree indexes on arbitrary data is, overall, pretty rad. For prototyping, being able to just toss some s
715.
▲
by
zemo
14y ago
case-insensitive regex searches are supported.
716.
▲
by
zemo
14y ago
Mongo accepts the data you give it. If you have a type-conversion error, it's in your application layer. I use Mongo daily and have never seen this problem, because I'm using a statically typed language. This seems like more of a complai
717.
▲
by
zemo
14y ago
surprisingly enough, I actually saw this book on shelf in person at Barnes and Nobles, just an hour after I saw this post. (the union square location in NYC has it)
718.
▲
by
zemo
14y ago
ah, I initially met most of the programmers I know though hackathons and meetups. Startup Weekend was one of the first things I went to where I met a lot of people, and that happens basically everywhere.
719.
▲
by
zemo
14y ago
>maybe I'm reading too much into it. no, you got it. It's not really meant to be a criticism of Python itself, it's just behavior that is common among 20-something web developers, which is representative of some areas of the industry,
720.
▲
by
zemo
14y ago
ah, I was working on a game. It was a space shooter. I wanted it to be viewable in the browser so that I could just send a link to my friends and they wouldn't have to download it. I wound up writing it in AS3.
More ›