Better HN
topnewbestaskshowjobs
Log inSign up

devonkim

2,416 karma · joined Mar 7, 2013 (13y ago) · 1,162 submissions

[ my public key: https://keybase.io/djk29a; my proof: https://keybase.io/djk29a/sigs/bWmbTQ-k8d0k_QHQXoatDdux-G5K9Yot7CFTM6Tdkuo ]
Submissions

comment 6y ago · link · parent

Not a mock obviously but in the interest of getting things done on schedule I’d suggest running tests in a container with https://github.com/wolfcw/libfaketime and orchestrating edge cases like leap seconds external to the test suite itself.

comment 6y ago · link · parent

A well organized and understood single binary always beats a bunch of decoupled systems nobody can untangle fully, this is not rocket science. It’s why we started coming up with tracing systems like Jaeger and OpenTracing to merely figure out what happens across different domains and code boundaries. The skill is in making changes that accommodates both current and future business needs as well as future developers. If your random CRUD app isn’t understandable without a PhD in a niche domain, you need to decide if that’s a feature (HFT perhaps?) or a fault (99%+ of commercial CRUD apps).

comment 6y ago · link · parent

Some folks like having shiny hardware and it’s partly a hobby rather than a need in almost certainty barring specific niche professional needs. I upgrade my workstation setup quite rarely because my work provided laptop is what I use 90%+ of the time. Top of the line is one thing (Xeons and Threadrippers or EPYC) but pretty powerful cost effective CPUs like a 3900X or 9900k are another. Even though I do ML stuff occasionally I still do it as a useless hobby and it’s not worth bumping up to a Threadripper or a crazy GPU, especially when I can use a cloud machine for a fraction of the price and as a bonus force myself to make it somewhat repeatable and deployable for someone else.

If one’s been building machines in the past year or so, we’ve just had the biggest performance gains in CPUs in literally 10 years with the latest AMD CPUs. I went a long time with an E3-1230 but got really bored honestly after 5 years and built an i7-4790k ITX machine which wasn’t as big of a change as going from 8GB of RAM to 16 GB or to my first SSD. I got a 3900X this past year and the substantial performance gains are not a big enough reason for me to upgrade yet again compared to something like the new Ampere GPUs for even hobby machine learning purposes like mine. In the future a bigger reason for me to build again would be based around space efficiency reasons where a small case could fit on top of my desk and drive 4K AAA games, encode HEVC video day and night, and all with a 600w SFX PSU.

comment 6y ago · link · parent

I read somewhere around 80%+ take the lump sum about 12 years ago. Given the risks of inflation over 25+ years it isn’t a bad idea. Most lottery winners get accosted by family members or spend like crazy with their money and wind up broke in the end. However, a great deal of them do at least take care of their health at least (getting teeth fixed was common). A mental trap of scarcity makes it difficult for the perpetually poor to think of money as nothing more than something to be spent rather than invested, but even here the HGTV dream home winner around 2007 sold the house to create... a construction company, which went bankrupt quickly.

Financial literacy can be taught over time though similar to helping people diet and control portions.

comment 6y ago · link · parent

The psychology of a large one time payment versus a passive, smaller one is absolutely immense and should not be equated. Native tribes have oftentimes given their youth large payments that get spent on expensive consumer goods that wind up back in pawn shops, but UBI experiments in Kenya and in low income areas around the world have shown dramatically different results with the hallmarks of upward mobility presenting (risk taking, lower stress, future orientation, etc.). Lottery wins are nothing like a permanent trust fund that pays out if you stay out of jail like in Yang’s UBI.

comment 6y ago · link · parent

Yang’s UBI was never intended as a replacement for a safety net which was gravely miscommunicated / twisted by our outrage media dynamics. What he’s advocated for are completely universal programs without means testing that build on top of UBI as a presumption such as his (somewhat weak, yes) disability program. His entire thesis of the economy is that people both rich and poor are suffering enslaved to a dehumanizing economy that ironically destroys human potential and suffocating itself (the very opposite of one trend of capitalism in the past few hundred years) and destigmatizing assistance across all lines is important toward resolving the human toll politically.

comment 6y ago · link · parent

One of the problems with UBI on a small scale in the US is that it’s difficult to study the macroeconomic effects that people are so worried about. The studies on direct cash assistance in terms of social science are rather strong evidence in favor of what left leaning proponents claim. The reservations typically come from the American right which is more of a Social Darwinist party these days than a conservative one, which is closer to the Reagan Republican era GOP.

We probably need tens of billions of dollars to pilot UBI properly in the US across borders and to help setup the infrastructure to distribute the funds. But compared to another missile program, the social good of such a program is undeniable. Which is probably why it’ll be rejected in today’s hell world US politics.

comment 6y ago · link · parent

Because the data center operation isn’t the big problem for enterprises like DoD anymore, it’s the completely fragmented software environment they’ve struggled for decades to manage. VMware decades ago won a massive deal with DoD not for consolidating datacenters like most private sector was trying to do but to simply standardize machines to deploy.

comment 6y ago · link · parent

It’s not an either/or situation for tools thankfully. The author of Terragrunt has even advocated before in a blogpost for using Terraform to deploy CloudFormation stacks to make changes to AutoScaling groups and perform blue-green deployment approaches.

comment 6y ago · link · parent

That’s more of a GitOps style intervention requiring a source change and the workflow to revert a change could certainly be done but is by design not a first class construct in Terraform providers (not every provider supports every feature such as importing of resources). To respond to a Cloudwatch (heck, Prometheus, Grafana, ELK, etc) alarm saying your error rate went up because of a Route53 change it’s not out of the box with Terraform (would be a custom providers or null resources probably). And as a CLI application (granted, it’s run more like an RPC style architecture) there’s no obvious way to signal different failure levels and to respond to different failure modes of different resources.

CF roll-backs are on by default and will revert changes. Sometimes it can fail and be a real pain, but it’s overall been more of a help for myself than harm.

comment 6y ago · link · parent

Once upon a time people would put applications delivered baked into AMIs as a deployment approach. Using a combination of CloudFormation metadata, Cloudwatch Alarms, cfn-init, and other tools applications could be deployed end to end with a single tool immutably. Many people are stuck with this rather coupled approach because trying to pull it apart would take more effort than is worth to the business.

In a lot of situations infrastructure deployment and configuration management is deeply coupled in the AWS ecosystem (DB changes, Serverless technically is changing your infrastructure definition as application changes).

comment 6y ago · link · parent

Terraform doesn’t support rollbacks (handy for application roll-outs) and if your shop is heavily invested in AWS CF is a perfectly fine tool. I’ve maintained and started up tens of thousands of lines of both TF and CF and they both have their strengths and weaknesses.

comment 6y ago · link · parent

It depends upon what you’re looking at in a deployment. Static binaries are the gold standard of “simple” in theory for ops folks but are not architecture neutral by definition. The JVM JAR spec is pretty well known as well and is not a surprise with plenty of documentation or blog posts to help out. Quirks do show up from crossing boundaries into native land like DNS and sockets behaviors, but a basic JAR does give some advantages over a random native binary in a tarball when it comes to dependency management which is tougher with a static binary. It’s not obvious which version of a library is compiled into a static binary at first glance compared to unzipping and checksumming the JARs in a package.

There’s definitely some laborious parts of the Java packaging setup (the whole resources, meta-inf / manifest setup reeks of YAGNI problems) but similar to Go’s lack of expressiveness being a feature, the Java ecosystem is fundamentally designed for organizations that separate developers from the systems where the software is run, and this is either helpful or hurtful entirely depending upon the organization’s needs.

I’ve never really had a problem deploying anything based upon the packaging - it’s a minor part compared to various obscure configuration files, ConfigMaps, or environment variable injections that bother me more, and that has nothing to do with a package or even language in itself.

comment 6y ago · link · parent

Profiling in production with the JVM using something like YourKit or JProfiler is the typical case for myself. Ironically, I've found profiling with Python in production easier for the reasons you've mentioned. If something is down or running slowly already, adding another 3%+ latency is hardly going to be an issue. Architecturally, with big monolithic programs that do too many things attaching a profiler to try to analyze 1% of the program's responsibilities or surface area becomes a risk to other production operations unfortunately. In most cases slowdowns happen because of resource saturation, things timing out, blocking on shared resources. In the first scenario, trying to run a profiler can exacerbate the problem or even fail to start, so the only way forensics can be done there is by emitting observability data prior to the failure point.

Other approaches taken have been the more Erlang style "let it fail" methodology which is fine for newer projects but represents a rewrite for most systems in practice and is thus far, far beyond profiling discussions.

comment 6y ago · link · parent

The reality is that a lot of profilers cause a sort of Heisenberg effect when running in production where it can slow down your code so much that it's not as meaningful anymore. This is now the time your ops engineers like me will be wagging their finger saying the application should have had instrumentation or APM support built-in like via OpenTracing or that ebpf and friends could be useful if your production machines were reasonably up to date. In most occasions I've seen, the majority of engineering teams outside massive scale companies with gobs of resources even today wind up debugging performance problems like it's 1999 with application-external hypotheses and checking for smoking guns like high page fault rates, dropped packets, etc. (eg. USE methodology).

comment 6y ago · link · parent

It does because it counters one of the top conservative arguments against UBI (or any safety net at all for that matter) because participants _increased_ their days of work compared to unemployment insurance. Too many people are of the "you work or you should die" mentality in the developed world. This makes some sense in some situations but not anymore either. Considering the hilariously stupid things that count as employment today, the concept of "work" must evolve for us to have an honest conversation on what the point of all these programs are for in the 21st century and beyond.

I feel this experiment is better framed as means tested unemployment insurance bureaucracy vs an unconditional cash stipend. This strengthens my longtime argument that means testing is punishing to the less fortunate because it robs them of the resource most precious to all of us - time and energy. I took unemployment before when I was laid off and it was pretty laborious and took me several hours to go through the hoops to file in the first place and the confusion of how to confirm I actually applied for jobs didn't help.

comment 6y ago · link · parent

Salt is a bit of a rarity among ops people but the funny thing is my experience is the opposite of yours - 66%+ of companies I see with Salt run in master/minion mode. I prefer it over Ansible when my ssh settings are super awkward (MFA, multiple bastions, etc) to integrate into an Ansible inventory file. One place with 900+ hosts and 300+ random IP ranges with tons of (badly written) compliance I spent about 3 weeks trying to get an inventory file hacked up and I gave up and deployed Salt within a day for the basic stuff I needed to do for basic running of shell commands from a single point of control.

comment 6y ago · link · parent

Technology merely facilitates what people want to have in the first place such as in the Arab Spring situation. Unfortunately, most of the anger and violence in the US to incite change is likely to come from our right rather than our left.

comment 6y ago · link · parent

Deletion is a form of cache invalidation if you think about it

comment 6y ago · link · parent

The GND with its extensive use of private contractors is basically neoliberal like our current DoD. It is structured almost exactly the same as DoD and with a vague never-ending mission would likely take as much resources to fight an enemy that may honestly always exist. A better policy would be focused upon global trade policies to globally incentivize all countries to choose cleaner infrastructure. This sobering reality is one I certainly found refreshing from the Yang climate worldview than the climate alarmist view that civilization ends if we don't go carbon neutral in 8 years aggressively pushing the GND as a gold standard policy.

comment 6y ago · link · parent

The technology inept organizationally can’t even figure out how to use that 64GB of RAM properly is my point and more RAM won’t fix a full blown table scan on every other query coming in because people don’t have a way to stop queries without limits. However, you can add modern SSDs with millions of IOPS to paper over complete ineptitude at using a free query analyzer in your database. But to myself, inability to bring oneself to use that is about as incompetent as not being able to use a debugger or profiler. I can certainly understand a level of inability when hiring only junior devs or having one’s hands tied when dealing with production systems locked behind compliance and bureaucracy, but all these things are problems that hardware nor more people will fix honestly.

And TBF, I am mostly familiar with the guts of technology laggards and they’re adopting K8S at frighteningly fast rates compared to anything else I’ve seen in almost 2 decades. Very common to see pretty smart people familiar with the latest tech yet lacking some serious holes in fundamentals familiar to those with experience.

comment 6y ago · link · parent

If you're like a company I was at before, you'd pay $10k+ for DB consultants to tune some queries and your prod database, and when migrating your DB to new hardware forget to re-tune it and waste the extra 64GB and even SSDs installed. There should still be a bare minimum floor of competence for actually developing against and maintaining databases organizationally whether it's a DBA, better engineers, etc. Throwing hardware at a problem is fine when you're sure that you are actually throwing it in the first place which I have seen surprisingly few places do well.

comment 6y ago · link · parent

Because we got rid of DBAs in favor of “big data” developers that never learned much about SQL in the first place.

comment 6y ago · link · parent

There's always a time/cost trade-off to be made in any engineering endeavor and I'm willing to accept some longer processing times for hobby usage until it becomes more serious I should be investing a lot more into it. I have a 3900x I use mostly for video encoding, K8S, local dev, and games if I need more power. And honestly, if I want to run stuff super fast in a hurry and am willing to pay for EPYC and Threadripper kinds of hardware, I'm running it all into Terraform and Packer and shipping it off to a cloud to crunch it for a whole $30 in an hour or two. It's just that along the way I'd spend thousands screwing up on silly problems.

comment 6y ago · link · parent

There's certainly some trade-offs that could be possible by limiting the flags and quality ranges for the output similar to what we already for h.264 and h.265 hardware encoding. Another rando possibility is FPGA cores or someone figured out how to do the calculations with GPU or TPU acceleration.

comment 6y ago · link · parent

There's 2 generations of Xeon D's - the 15xx series from circa 2015 and the 21xx series from about a year ago. Their target market is essentially for low powered but somewhat powerful compute farms. Their pricing is part of the Intel mark-up for supporting RDIMMs on top of other datacenter-centric features such as remote management BOMs, SFF-8088 connector for onboard LSI HBAs, and even SFP+ support. Those features are quite reasonable for the $600 range when including an efficient low-TDP CPU.

My home server pegs my I/O when I run some tests to push a ton of bytes through Kafka, Postgres, Rook, etc. on top of a ZFS zpool. I do K8S at home along with some deep learning + big data-y toy projects because it's still cheaper than firing the equivalent up in any cloud provider after about 6 months of operation for myself, and at least I can repurpose my toys.

comment 6y ago · link · parent

There's no practical reason to use this new box for homelab folks compared to some older micro workstations that came out a year or so ago that had E3-class Xeons in them at least. For an entry of $2k it's easily worth it now to find some old Xeon D mini ITX based boards and plop them into inexpensive cases with SFX PSUs. Old gear is the bread and butter of the homelab experience and people dumping. The hard part with AMD building is mostly the ECC DIMM motherboard support experience but SMB-class hardware still is a Good Idea for prosumer and homelab folks due to software compatibility (read: drivers and less cost-driven gotchas ala winmodems) compared to consumer hardware.

comment 6y ago · link · parent

Should probably drop the dis- , thanks. Too many conditions in a row too fast is how I get bugs in my code just like in my written sentences :P

comment 6y ago · link · parent

Past performance does not indicate future return, but so far I'm seeing no reason not to distrust Toshiba hard drives at the very least given the Backblaze stats. I've bought 8 Toshiba drives with zero problems over several years on aggressively used drives but I've had several failures across drive families over the past 10 years with Western Digital drives of different batches and lines.

One of the dangers of blending drives is that there are sometimes drive geometry incompatibilities that can screw up RAID. Saw someone show they had drives that are a few cylinders off and can't replace drives now with certain replacements.

comment 6y ago · link · parent

Ah, and the flipside that many of us are familiar with - all the responsibility, none of the authority to fix it. Great recipe for burning down entire companies and driving away talent.
1
101112
39