HNHacker News
TopNewBestAskShowJobs

dkarapetyan

1 karma · joined December 4, 2019

submissionscomments
dkarapetyan··on Terraform 0.9
You're setting up a false dichotomy. Expressing a dependency graph of cloud resources does not require a special DSL.

In fact if Terraform was a library it would not do everything nor do I want it to do everything. At the end of the day Terraform traverses a dependency graph and generates a sequence of commands to run. The traversal is basically a topological sort and the command generation is a bunch of API calls. None of those things require a specialized DSL.

dkarapetyan··on Terraform 0.9
Nope. Chef is an embedded DSL. It does not have the same shortcomings. In fact it is the only configuration management tool that approaches the problem from the right angle. Instead of re-inventing the wheel it gives me a library of composable components that I can glue together however I wish.

You must not have seen many TF deployments. I've seen several and each one is a unique snowflake. Some use Jinja, some use Makesfiles, some use Erb, some just use heroic copy-pasting. There are no conventions or standards whatsoever. I don't know what you mean by readable either. When was the last time you navigated 20 Terraform modules while mentally filling in all the variables and thought to yourself "Ya, this is totally readable".

dkarapetyan··on Terraform 0.9
It's not the lack of "advanced" constructs as you say. It is also the total disregard for all the human centuries of effort that have gone into making programming languages and environments convenient vehicles for expressing computation. Things like stack traces, syntax highlighting editors, auto-complete, interactive debuggers, and a bunch of other stuff you get with an actual programming language that you don't get with an external DSL. There is a reason those things are not part of the package. It is because making those things is extremely hard. Whereas slapping together a parser is not but feels like actual work.

You might consider those things advanced. I consider it the bare minimum to get proper work done.

dkarapetyan··on Terraform 0.9
I forgot about the lack of auto-complete and the horrible error messages. At least with a library when I have a syntax error or something blows up I have a debugger and the actual language at my disposal to figure stuff out. No such things are remotely available with all these external DSLs. If even there is any semblance of error reporting.

Several human centuries of effort have been spent on improving these things (syntax highlighting, auto-complete, stack traces, error messages, interactive debuggers, etc.) and then all these DSL authors decide to just chuck it all out. Boggles the mind.

More than a few times Terraform has wrapped an error message from AWS in the hopes of being helpful while hiding all the details of the actual error message and no hints how to rectify things in the DSL.

dkarapetyan··on Terraform 0.9
I don't know either. Puppet, ansible, salt, and friends are in the same boat. The best part is that the special syntax doesn't buy them anything. They just end up being gimped languages for expressing some kind of dependency graph.
dkarapetyan··on Terraform 0.9
I was initially a huge fan but now I hate it. It re-invents so many unnecessary wheels that it is downright obnoxious. There are no loops, if statements, variables. Things that have been in programming languages since day 1. It re-invents modules, badly. Has weird hacks like null resources and external data providers to get around shortcomings in their "declarative" model. And a few other things I'm forgetting. Oh, now they're adding "environments". That's just dandy because they got everything else so right.

Every place I've seen Terraform used invariably runs into these shortcomings and the workarounds range from using Erb and Jinja templates to generate Terraform templates to just ditching it entirely and using home-grown solutions. Terraform should have been a library in an actual programming language instead of a gimped external DSL that re-invents the wheel.

dkarapetyan··on Palantir enables immigration agents to look up information from the CIA
> expensive consultingware database

You're giving it more credit than necessary. It's just expensive consultingware. It's only incidentally a database.

dkarapetyan··on Is Facebook a Structural Threat to Free Society?
The human reward function is all jacked up. We keep looking to mesianic liars as leaders and willingly give up personal power and freedom in exchange for the feeling of safety and group belonging.

Facebook is not the cause. It is merely the symptom.

dkarapetyan··on Keep the Internet Open
The best part is that it was all enabled by people who did not like politics and just enjoyed solving problems. Sometimes I wonder if focusing on technology is the technologist's equivalent of putting one's head in the sand.
dkarapetyan··on Both geniuses and madmen pay attention to what others ignore
Not if they're all in the normal direction.
dkarapetyan··on Both geniuses and madmen pay attention to what others ignore
You indeed can't average a bunch of viewpoints and get anything good out of it. That's why Alan Kay usually has that vector space example where "different viewpoint" means giving yourself a vector out of the existing "plane of viewpoints".
dkarapetyan··on Both geniuses and madmen pay attention to what others ignore
There is nothing mystical about it. It is possible for something to be genetically predetermined without being heritable in any meaningful way because the underlying genetic patterns are unstable. Going back to my windstorm example, windstorms don't last long because the energy inherent in the storm basically rips it apart.

You keep glossing over that fact for some reason.

dkarapetyan··on Both geniuses and madmen pay attention to what others ignore
I mean as a complex biological system phenomenon genius is unstable a bit like unstable weather phenomenon. We don't have windstorms all the time but every so often global currents and temperatures line up and we get one. I imagine genius is a bit like that at the genetic level.

I think genius can be nurtured and as a society we can make better use of all our geniuses but I don't think it can be taught. It really has to do with brain wiring and although much of it is plastic some of the defaults can't be changed and those default settings are usually the ones that make or break a genius.

dkarapetyan··on Both geniuses and madmen pay attention to what others ignore
Creativity is highly correlated with mental illness because the kind of brain wiring required for creativity is a bit unstable. The article points to one such instability. Creative people are worse at filtering out "unnecessary" information.
dkarapetyan··on Both geniuses and madmen pay attention to what others ignore
You mean extra IQ points.
dkarapetyan··on Both geniuses and madmen pay attention to what others ignore
Evolution is probably the worst way to design anything and yet all of biology is driven by it. It is basically a random walk that just flips bits and every so often it is inevitable that some of those flipped bits will have something to do with the brain's default networks and modes of operation. But I think genius is an unstable optimum and things inevitably slide downhill. There is no such thing as heritable genius, crazy or otherwise.
dkarapetyan··on Has Python killed Ruby?
Ruby has had keyword arguments for a while now: https://robots.thoughtbot.com/ruby-2-keyword-arguments
dkarapetyan··on Rust's Type System Is Turing-Complete: Type-Level Programming in Rust
Hence the ad-hoc part. I don't think people go into writing a type checker and type inferencer thinking they're gonna re-implement Prolog.
dkarapetyan··on Rust's Type System Is Turing-Complete: Type-Level Programming in Rust
Ya but for some reason Shen uses weird sequent calculus syntax. I'd much rather write Prolog rules than sequents.
dkarapetyan··on Has Python killed Ruby?
Ruby is a much simpler and more aesthetically pleasant language. Python has all sorts of sharp corners. You really should learn both but I think Ruby is a much easier starting point.

Also, a lot of research on dynamic languages is being done with Ruby, e.g. TruffleRuby, JRuby, RubyOMR, and probably a few more I'm forgetting. Each of those projects is an impressive body of work in and of itself that points to Ruby being very alive and well. Oh, almost forgot about MRuby. I don't think there are similar efforts for Python. In some sense Python is much more stagnant these days in terms of innovation at the language level.

dkarapetyan··on Abstract Algebra (2016) [pdf]
I've learned from both in various undergrad and grad courses and I have to say I like Artin better. Dummit & Foote is a little too dry. I recommend Artin and Dummit & Foote as a supplement.
dkarapetyan··on Abstract Algebra (2016) [pdf]
Monoids, groups, rings, fields, etc. are all very relevant to cryptography. In general algebraic constructions come up more often than you might think. The idea of a homomorphism though not specific to algebra is prevalent in almost any formal domain. Compilers by and large can be considered homomorphisms that preserve certain semantic properties which if you dig deep enough can be expressed as algebraic structures: http://www.logicmatters.net/resources/pdfs/Galois.pdf.

Developing an intuition for all those things is best accomplished by studying abstract algebra.

dkarapetyan··on Triplebyte expands its recruiting platform beyond YC, signs up Apple, Facebook
I interviewed with Ammon. He did not come across as smug. I went through the process just as a curiosity because I was fed up with the typical interview process. I haven't followed through anything else related to Triplebyte in terms of an actual job in case people think I have a favorable view because I got a job through them.
dkarapetyan··on Instacart Closes Latest Funding Round at $3.4B Valuation
Obviously the numbers still don't add up for a delivery business so what exactly is driving the valuation up?
dkarapetyan··on Ask HN: What books fundamentally changed the way you think about the world?
https://www.amazon.com/Evolutionary-Psychology-Introduction-...
dkarapetyan··on How Uber could end up as Silicon Valley's most spectacular crash
I asked this question a while back and I'll ask it again. Why is Kalanick still in charge?
dkarapetyan··on A profound apology
Why is he still in charge? The dude is running the company into the ground as fast as he can.
dkarapetyan··on Qualities that I believe make the most difference in programmers’ productivity
Sigh. Why do we keep perpetuating this myth? From the words of the greatest genius of the 20th century

“Right. I don’t believe in the idea that there are a few peculiar people capable of understanding math, and the rest of the world is normal. Math is a human discovery, and it’s no more complicated than humans can understand. I had a calculus book once that said, ‘What one fool can do, another can.’ What we’ve been able to work out about nature may look abstract and threatening to someone who hasn’t studied it, but it was fools who did it, and in the next generation, all the fools will understand it. There’s a tendency to pomposity in all this, to make it deep and profound.” – Richard Feynman, Omni 1979

Stop the pomposity. Please.

dkarapetyan··on Ask HN: Who is switching away from MacBooks this year?
Why use a VM when I can run things directly on the bare metal or in a docker container and not pay the virtualization overhead.
dkarapetyan··on Ask HN: Who is switching away from MacBooks this year?
Have had a dell xps 13 (project sputnik) for a while now. Best portable laptop I've ever had. Mac doesn't even come close. Every time I have to use a Mac at work I wonder why can't these people wise up. All our infra is Ubuntu. What is the point of running OS X and dealing with all the cross-OS issues.
← PreviousPage 8 of 34Next →