Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
NateDad
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
121.
▲
by
NateDad
11y ago
But then you have no idea what the computer is actually doing . There's a big performance difference between an in-memory loop and querying a database. This is one of the things I like about Go... what the computer actually does in
122.
▲
by
NateDad
11y ago
But Go programs use way less memory than Java applications... so the java application that uses 100GB might only use 40GB (or less) in Go. And there are tweaks you can make to hot code in Go to not generate garbage at all (pooling etc).
123.
▲
by
NateDad
11y ago
nobutseriously... type userList []*User func (u userList) Len() int { return len(u) } func (u userList) Swap(i, j int) { u[i], u[j] = u[j], u[i] } func (u userList) Less(i, j int) bool { return u[i].Nam
124.
▲
by
NateDad
11y ago
map and filter are often just syntactic sugar for a loop, so I just write a loop. I work on a ~1M LOC codebase in Go and it's really not a problem. map and filter would not make my life significantly easier. They're solving easy
125.
▲
by
NateDad
11y ago
Actually, the compiler is getting faster in 1.7, and binaries are getting smaller: http://dave.cheney.net/2016/04/02/go-1-7-toolchain-improveme...
126.
▲
by
NateDad
11y ago
100GB heap size in Go? How about 15ms pauses with zero tuning? https://pbs.twimg.com/media/CWoAGeUW4AAy0-9.png:large
127.
▲
by
NateDad
11y ago
It's 3 lines of code the most newbie of newbies could understand... if this is the biggest problem I have in my day to day programming, I'll be happy. Is it mildly annoying to type out those three lines? Sure. You know what'
128.
▲
by
NateDad
11y ago
So, VMs are effectively a completely different machine. Different memory space, different disk space, different process space, etc. This is linux applications running on the same machine as your windows applications. Yes, they'll be
129.
▲
by
NateDad
11y ago
Just to verify, watched a video that explicitly said that it does get around the path limit (though if you then go look at those files in explorer, explorer "has problems" whatever that means).... but that's just because expl
130.
▲
by
NateDad
11y ago
I have one that is now 2.5 years old. Specs-wise, it was basically top of the line. Quad Core i7, 16GB RAM, 500GB SSD, 3200x1800 touchscreen, GeForce 750m GPU (which was one of the best mobile GPUs back then). It has a lot of nice touches
131.
▲
by
NateDad
11y ago
Oh and environment variables... Will $HOME be defined, for example?
132.
▲
by
NateDad
11y ago
Given that I work on a cross platform application for linux & windows... I'll be interested to see if they try to hide some of the more annoying platform compatibility problems.... like the fact that many linux applications assume
133.
▲
by
NateDad
11y ago
I have the XPS 15. It is almost identical to a Macbook Pro. Build quality is really awesome. Super super happy with it. The new one with the infinity edge screen is super friggin' sexy, and will absolutely be my next computer. I k
134.
▲
by
NateDad
11y ago
I'm pretty sure I saw something in one of the articles that mentions they explicitly use the extended \\?\ form of paths, which gets around the 255 character path limit.
135.
▲
by
NateDad
11y ago
yuuup
136.
▲
by
NateDad
11y ago
No. No GUI applications (currently, and no announced future support... and I wouldn't bank on them doing it).
137.
▲
by
NateDad
11y ago
GUI applications not currently supported, and as far as I've seen, not intended to be supported (but who knows in the long term).
138.
▲
by
NateDad
11y ago
Well, the thing about Go concurrency is that it has been with the language since the beginning. How much library code is compatible with concurrent or streams or futures or Quasar? If you choose one over the others, are you limiting yours
139.
▲
by
NateDad
11y ago
The problem with checked exceptions is that your code trends towards having every method marked as 'throws Exception' (or whatever your application's top level exception is). Any time a low level method changes to throw a ne
140.
▲
by
NateDad
11y ago
As others have said, it is highly discouraged by the community to use panics as control flow. Generally a panic means there's a serious bug somewhere - not just that unexpected stuff happened, but the programmer actively is doing some
141.
▲
by
NateDad
11y ago
Well.. yes, exactly. The question was "why should I learn Go if I know Java?" That's a pretty good reason.
142.
▲
by
NateDad
11y ago
Go uses a lot less memory than Java, according to most comparisons. There's a lot of work going on in the cloud space with Go applications (docker, kubernetes, etc), so there's a lot of new libraries for networked webservers gett
143.
▲
by
NateDad
11y ago
Wireless is a pipe dream. You can't power something wirelessly over any reasonable distance with any reasonable power draw... furthermore, the bandwidth capacity needed just keeps increasing such that even wired standards have a har
144.
▲
by
NateDad
11y ago
I can't remember the last time I plugged my phone into my laptop. Bandwidth for USB-C is way low on my list of reasons to like it on my 6P. #1 for me, personally, is that it's more durable.. my micro USB ports on my phone always
145.
▲
by
NateDad
11y ago
...until someone else offers 55%, then you offer 60%... until it reaches equilibrium at approximately 100% (and I understand real life is a lot more complicated than one single salary number)
146.
▲
by
NateDad
11y ago
I'm saying it's bad for the company. They lose my institutional knowledge and have to pay the costs of getting a replacement, simply to try to save a relatively tiny amount of cash by not paying me more and hoping I don't not
147.
▲
by
NateDad
11y ago
It's this kind of thinking why I have left several jobs and immediately got a 20% more money at my next job - the company I was with didn't keep up with market rates. It's ridiculous, because my knowledge of their software m
148.
▲
by
NateDad
11y ago
I work remotely from outside Boston, a friend at work is remote from Argentina (I find the parallel to the article interesting). I make more than he does by a significant amount (very roughly similar to the salaries in the article). I actua
149.
▲
by
NateDad
11y ago
That's only true so long as everyone else is only paying local market rate. Once a company starts offering people in Argentina SF-level pay... that company now will get every single qualified developer in that location that they want.
150.
▲
by
NateDad
11y ago
Wow, uh no. You're 100% wrong, unless I'm misunderstanding you. You can absolutely have user code running on N threads simultaneously (where N is the number of cores of your machine). And you definitely do need mutexes. Your sta
More ›