3,297 karma · joined Nov 15, 2012 (14y ago) · 1,171 submissions
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
If I look at everything I used to write in C, I'd say 80% is well suited for Go and the rest I would fallthrough to Rust for. For the stuff where having a GC and slightly less control is OK, I don't see why I would want to use Rust. Rust is just much more complex and I prefer to keep it simple stupid (KISS).
Basically, Go is good for 90% of what I used to use Java for and 80% of what I used to use C for... trying to understand where it makes sense for Rust to fit in.
comment 9y ago · link · parent
Have you considered forking Go and replacing the type system? If such an experiment was successful this could be the fabled Go 2.0...
comment 9y ago · link · parent
For example, Java a few generations ago was very poor at escaping heap allocation to the stack and so much the opposite skewing towards heap allocation over stack allocation, so I'm sure the JVMs of this era were an extremely good fit for the generational hypothesis.
comment 9y ago · link · parent
comment 9y ago · link · parent
You do not need to run as root to bind an application to a low port, instead use setcap (it works for everything not just Go): https://stackoverflow.com/questions/14537045/how-i-should-ru...
comment 10y ago · link · parent
Quick tip; If you do this, you can also make your iptables rules be per user. For example, "webserverUser" can only accept inbound connections on 80/443 and only have outbound connections that are related to established inbound ones. If an attacker gains execution as this user, they cannot download new code, etc or even do DNS lookups for that matter.
comment 10y ago · link · parent
Lots of people have a pathological fear of being left out / not in the know. Just the other day a co-worker was lamenting how much time he spends checking all the channels just because he didn't want to miss something...
Because slack hallway conversations have a lower barrier than real ones, therefore it can be more taxing on people than real life, or other forms of communication, would be.
comment 10y ago · link · parent
1: https://www.techempower.com/benchmarks/#section=data-r12&hw=...
2: https://benchmarksgame.alioth.debian.org/u64q/compare.php?la...
comment 10y ago · link · parent
I think this is highly dependent on "how bad" the two mainstream options are. There are plenty people who think there is a legitimate concern that a Trump presidency could lead to nuclear war or some other kind of national disaster. If you believe this is a real possibility it comes much easier to empathize with voting for the "least bad option".
TL;DR I dislike Regan, but in a Regan vs Hitler election I would vote for Regan rather than a 3rd party I was actually more aligned with to try to ensure Hitler did not rise to power.