text stringlengths 0 1.62k |
|---|
[1946.08 --> 1952.44] encouraging numbers sort of coming out you know they they have an implementation of the concurrent |
[1952.44 --> 1960.22] collector so the major distinction when i say concurrent collector is between that and what is the |
[1960.22 --> 1966.66] garbage collector in 1.4 is that 1.4 collector is just to stop the world like mark and sweep collector |
[1966.66 --> 1974.12] which means that um once your program like allocates twice as much memory since the last garbage |
[1974.12 --> 1980.52] collection um it triggers a collection the whole program stops the garbage collector walks all of |
[1980.52 --> 1987.26] the data structures that are allocated and finds um data structures that are no longer like accessible |
[1987.26 --> 1993.92] by the application code and then it marks all of those data structures actually does the reverse |
[1993.92 --> 1999.56] it marks the ones that are accessible um and then it collects all the stuff that's inaccessible so and |
[1999.56 --> 2004.74] then it deallocates them and that happens quite quickly but the program does pause while that happens |
[2004.74 --> 2008.98] and so it means you know the larger your heap is the more stuff you have allocated |
[2008.98 --> 2015.00] um the longer those garbage collection pauses will be and that can be an issue for interactive |
[2015.00 --> 2020.68] applications like you can imagine if you've ever played minecraft for instance you'll notice that |
[2020.68 --> 2026.08] after you've been running around for a while um there'll be like a few seconds where everything |
[2026.08 --> 2033.30] just chugs the frame weight plummets and um you know it gets kind of awful and janky and that's because |
[2033.30 --> 2041.60] the jvm is is doing a big garbage collection at that point um what the concurrent collector in go |
[2041.60 --> 2049.88] will do is it does a lot more of the work um while the application code is running and then it's able to |
[2049.88 --> 2058.00] incrementally collect uh unused memory as the by making very very small pauses in which to do that |
[2058.00 --> 2064.78] so basically you're kind of smearing the larger collection over a longer period of time and we're |
[2064.78 --> 2070.68] able to sort of specify an upper bound for like the the longest your program will actually pause so it |
[2070.68 --> 2077.80] still will pause but the size of the pauses should be um predictable that's the less yeah drastically |
[2077.80 --> 2083.00] less it comes at the cost of some runtime performance so because obviously if you're |
[2083.00 --> 2088.74] collecting at the same time as you're running the program then the program must therefore run a |
[2088.74 --> 2094.82] little bit slower but on balance i think you know for most go programs the net effect will just be |
[2094.82 --> 2102.14] a simple positive or just neutral and then it also makes go useful for a wider variety of applications |
[2102.14 --> 2107.94] there are some people who have more interaction more interactive applications or applications that have |
[2107.94 --> 2112.44] stringent latency requirements that just couldn't go near go because of those |
[2112.44 --> 2117.78] but i think the 1.5 release will really make a lot more possible for a lot more people |
[2117.78 --> 2122.86] um and make go you know something that they can actually viably choose as opposed to |
[2122.86 --> 2126.24] ruled out simply because of the old garbage collector |
[2126.24 --> 2134.60] and you also talked a bit about the http2 server being in go is that planned for 1.5 as well or is that |
[2134.60 --> 2141.34] i know you got one point soon is that yeah probably not 1.5 i think the standard is the standard now |
[2141.34 --> 2165.68] so that's encouraging but it's probably not ready for 1.5 it's not really battle tested or anything i'm not i'm not i'm not really sure um it could be but it's more likely to be in 1.6 but there were so on the release cycle does that mean the following august or is that spring and and sort of yea... |
[2165.68 --> 2180.54] gotcha okay but the nice thing is you know if you write go programs that are http servers when we do bring http2 support in they'll just become http2 servers so you won't actually have to do anything different in your application |
[2180.54 --> 2187.98] there's also a uh an active development repo out there from brad fits is that something that someone can |
[2187.98 --> 2196.46] kind of use in tandem and sort of use it before 1.6 absolutely yeah we have a demo site at http2.golang.org |
[2196.46 --> 2202.58] where you can you know if you have a browser that supports it which uh at least chrome and firefox do |
[2202.58 --> 2209.62] um you can see what it's like to talk http2 it also if you use google.com or anything you're probably already using http2 |
[2209.62 --> 2216.22] um not the go implementation of course but yeah brad if you go to github.com slash bradfit slash http2 |
[2216.22 --> 2222.22] you'll see um his sort of work in progress and it's you know it's pretty solid it's very very well |
[2222.22 --> 2228.66] tested brad's very good about writing comprehensive tests so he actually found a bunch of bugs in the |
[2228.66 --> 2234.14] spec and other people's reference implementations as he was writing his own implementation which is |
[2234.14 --> 2240.70] a sign that you're doing a decent job i think we just had uh ili gregorik on the show not too long ago |
[2240.70 --> 2245.10] actually we were talking about our new nightly email we ship out this email called changelad nightly |
[2245.10 --> 2252.94] is actually the github archive email that ilia stopped shipping started this year and uh ilia |
[2252.94 --> 2258.40] came on the show and said i'm an internet plumber that was his title because he was like i just i |
[2258.40 --> 2262.40] make the internet fast that's what i do and he was just talking about the new spec being out there and |
[2262.40 --> 2267.98] it was just a few weeks back so it was like fresh and new then i think i think it's really cool i mean i |
[2267.98 --> 2274.14] think people criticize http2 because they they expect it to be some because it's version two you know |
[2274.14 --> 2281.76] they expect it to be something amazing whereas i'm happy with just quantitatively better right that's |
[2281.76 --> 2290.06] that's that's i that's a great uh goal if if you can achieve that then i think you're doing well um |
[2290.06 --> 2296.28] and really i feel like it was the sort of the biggest incremental step we could take |
[2296.28 --> 2302.50] that people would viably adopt right i think some people disagree but that's my take on it |
[2302.50 --> 2310.26] i i if you look at the demo site which i guess you'll link to um there's a go for tiles demo where |
[2310.26 --> 2318.08] you get to see you know a whole bunch of images um loaded concurrently over http versus http2 and you |
[2318.08 --> 2325.88] can artificially like add latency to the requests and um http2 lets you pipeline like all of those |
[2325.88 --> 2332.60] requests simultaneously and so you can fire off like you know a hundred get requests down one tcp |
[2332.60 --> 2339.28] connection and then get all the responses back and the demo is startling and i think particularly on |
[2339.28 --> 2344.68] high latency connections like mobile connections it will really make the web a lot better i'm excited |
[2344.68 --> 2348.96] it's a perfect segue there into talking a bit about mobile we'll talk about get here in a bit too but |
[2348.96 --> 2355.72] let's start with talking about mobile um i know that it's some new stuff happening in in 1.5 and |
[2355.72 --> 2362.16] you've got uh android support coming out uh or deeper android support and you're also have plans for |
[2362.16 --> 2367.06] ios support so what is the state of mobile for go right now and what are people building with go in |
[2367.06 --> 2374.58] mobile well i mean it's it's still really nice and um you know the libraries are still very spot and |
[2374.58 --> 2381.04] and in flux um i'm not really aware of anyone doing anything serious with go on on mobile at this |
[2381.04 --> 2389.70] point um but what we're hoping to have in 1.5 is a basic toolkit for writing like go programs that run |
[2389.70 --> 2396.32] on android and ios so you'll be able to write the same go code that runs on either platform and you |
[2396.32 --> 2401.40] know there's a there's a huge amount of like grunge work involved in making this possible um which i've |
[2401.40 --> 2406.26] been sort of tangentially involved with um the other part of it that's really cool is we'll have |
[2406.26 --> 2413.52] this go mobile tool um that when you it's a bit like the go tool you can just say you know go mobile |
[2413.52 --> 2419.94] install and it builds your app and then uploads it to your phone and you know if you're familiar with |
[2419.94 --> 2424.82] either the android or the ios tool chains you know you you know how painful that can be |
[2424.82 --> 2433.06] very and so and so you know i personally look forward to the day when i can actually do mobile |
[2433.06 --> 2440.40] development because i simply don't have the time to just like get into that and figure it out you |
[2440.40 --> 2446.20] know it would take me way more spare time than i have but i have all these great ideas about little |
[2446.20 --> 2451.80] games i want to build or you know little tools you know i would i would be writing lots of programs |
[2451.80 --> 2457.98] my phone that i use all the time but i just don't have the time to actually learn how to make that |
[2457.98 --> 2467.08] work so yeah i'm very excited about that yes it's it's funny because um over the weekend um or i guess |
[2467.08 --> 2471.42] this week too but over the weekend we had some family in and just a sort of a side story on on the |
[2471.42 --> 2476.30] desire to do some gaming i never really thought that i would ever have a desire to build a game but |
[2476.30 --> 2481.60] when i was sitting there with my niece um this is not a plug uh and they're not paying us to say this but |
[2481.60 --> 2487.56] coolmath-games.com was pretty neat we went there on our on the on the ipad we were just sitting there |
[2487.56 --> 2493.12] just playing games for you know like an hour or whatever and i was just thinking like here's this |
[2493.12 --> 2497.22] little impressionable kid loving these games and she doesn't realize that you can build these things |
[2497.22 --> 2503.68] with html css and javascript and it's pretty you know some css animations and stuff like that |
[2503.68 --> 2508.48] um but going a little further to actually build an app part of it you know is what you're talking about but |
[2508.48 --> 2514.70] i never really had that desire to build a game yet and that was the moment where i had this moment |
[2514.70 --> 2520.36] where like i wish it was a little easier to jump into that or i'd sort of learn that so well i mean |
[2520.36 --> 2528.54] even in the web world like it's insanely complicated to understand html css and javascript |
[2528.54 --> 2533.48] you know with a lot of us have grown up in this environment and so we've kind of |
[2533.48 --> 2539.70] learned or we've wrote learned all of the stuff we need to know to be productive in that environment |
[2539.70 --> 2547.86] yeah um i spent a lot of time as a web developer you know before i was at google and i think it's |
[2547.86 --> 2552.54] it's astounding really the complexity that we put up with and so you know one of the things i'm excited |
[2552.54 --> 2562.10] about this this go on android and ios stuff is we'll have these simple toolkits for doing stuff |
[2562.10 --> 2568.72] like putting images and text on the screen moving them around animating them handling user input |
[2568.72 --> 2575.24] handling audio and it would be a nice little environment that just works right and i know |
[2575.24 --> 2578.98] there are similar projects in other languages and so on goes the language i like using so |
[2578.98 --> 2583.68] obviously this appeals of course right but uh you gotta take what's happening elsewhere and |
[2583.68 --> 2589.98] bring it into your camp that's how it works yeah let's take a quick break in here from one of our |
[2589.98 --> 2596.62] sponsors when we come back we're gonna dive deep into goes transition to get from a curial uh kind of |
[2596.62 --> 2600.90] hear about the details behind that a lot of a lot of details shared and i got some questions for you |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.