Better HN
topnewbestaskshowjobs
Log inSign up

_dps

1,602 karma · joined Jun 7, 2011 (15y ago) · 406 submissions

I roam the world trying to make things better with computational mathematics. Once upon a time I taught applied math at USC.

(email:demetri.spanos@gmail.com)

Submissions

comment 9y ago · link · parent

> Unless you're solving toy problems, it matters quite a bit. In mathematical optimization, constructing the problem tends to be just as expensive as solving the problem is – sometimes more so.

With all due respect, this is just false. I can construct a million dimensional linear program for a large network problem in a few seconds in python. Solving it with cplex can take minutes.

I have a Ph.D. in computational mathematics and do this for a living. I write lots of C, and still almost exclusively use Python or Lua for problem formulation because the performance just doesn't matter.

I'm certain there are some cases where it's true. One I've encountered is doing real-time solution of MILP for adaptive path planning. Here the problems are of moderate size and you want to reconstruct them from geometry data every 10ms or so. Here Python will indeed bite you in the problem formulation stage.

comment 9y ago · link · parent

> Yes. So how about a workflow where you write dynamically typed code, and then use a tool to convert that code (with user input) to statically typed code.

This describes how I do a lot of my work. I prototype quickly in Python or Lua, and I have some in-house tools that let me migrate highly constrained subsets of those languages into C, with automated Quickcheck-style checking to make sure the translated code generates the same log messages as the source code.

For me the experience of starting out with something extremely flexible, with a repl, easily mocked components, and tons of "kitchen sink" functionality makes me feel free to experiment quickly. Once I have something that looks like it's working I iteratively remove reliance on dynamic features or built-in libraries.

At the end I have a Python function that looks a lot like a C function, but I got to that function a lot faster and more comfortable than I would have had I started in a pure C workflow. And from there, it's a quick build step to convert that function to a C function.

I haven't found a good common name for this pattern, but I think of it as "plastics and metals", analogous to industrial design. Even though you know a component will end up being made of steel, lots of the design questions are more easily and cheaply solved by making a similar thing in plastic. The plastic of course won't stand up to "production" load, but it usually doesn't have to do so.

comment 9y ago · link · parent

I'm not sure if I'm missing sarcasm here; if I am I apologize.

But... this is obviously not how the world works. In the records and CDs era revenue was proportional to disks shuffled around. It is absolutely not the case that a typical web business has revenue proportional to the number of servers they employ.

The important point here is what economists call "trapping the value" and "pricing power": a CD full of music has lots of value, but the person selling the physical item was at one point the person controlling scarcity, and thus had pricing power, so they trapped most of the value.

Nowadays web business models allow developers to trap the value of their software more effectively. That doesn't mean they are piggybacking on the markup on web servers.

comment 9y ago · link · parent

> IMO industry leaders have pressure to reinvest their profits in R&D and put it in their new products, regardless of whether they can get patent protection for them or not.

This has obvious free-rider problems for things like new video streaming protocols. Why contribute to the development of next generation codecs, for example, if you can just copy the most successful solution of your competitors and get 80% of the benefit for none of the cost?

(I say 80% because the competitor's solution will presumably not be totally optimized for your business needs)

comment 9y ago · link · parent

I agree that defining "political" is itself partly political. Having said that, and just as my 2 cents, I think the experiment was not run long enough to be conclusive.

People always complain with changes. I think it's reasonable to believe that people who actively want politics on HN would be on the noisier end of the spectrum of complainers. Any attempt to get these conversations off HN was bound, initially, to cause a loud and pointed reaction from one subset of users.

But people also adapt and forget. I think there's a real chance that after, say, 6-8 weeks, HN would have established a "new normal" and people would know that it's not a place to discuss the outrage of the week, just as it's already known it's not a place to discuss the latest celebrity-dancing-baking-show scandals.

I'll reiterate that it's a very tricky problem. But I don't agree that there was conclusive evidence that the political detox "didn't work" -- it was canceled long before a steady state was reached.

comment 9y ago · link · parent

> But is it really worse for society to have single mothers on welfare than to have mothers trapped in toxic marriages for financial reasons?

Surely this is an empirical question and not a theoretical one. Unfortunately it's hard to measure fairly. Let me offer a clearly flawed first pass.

If you take, just as a reference point, pre 1960 US society and post 1980 US society as exemplars of "lots of toxic marriage" and "lots of welfare mothers", then I think one would be hard pressed to show empirical evidence that the latter is doing any better than the former. Certainly by conventional measures of success, one could argue that the latter is worse (though there are so many confounding variables that I personally don't feel comfortable having an opinion).

My point here is that I don't think we can presume the welfare-single-mother outcome to be, a priori, obviously better than the old toxic-marriage status quo, when measured by society-level outcomes. There is ample evidence that both cases are clearly inferior to stable, non-toxic, two-parent households. So the question is an empirical one of the lesser of two evils, and I don't think we have a clean way to answer it so far.

comment 9y ago · link · parent

>> It's not the managers or capital owners that have been driving these productivity gains either

> I'm under the impression most of the productivity gains since the early 1990s were due to large capital improvements, which aren't paid for by employees.

Expanding here, the improvement in information and communication technology (one aspect of capital investment) has dramatically increased the effectiveness of intelligent management at the top. They have vastly more signals, and vastly higher granularity, with which to make decisions.

I don't have data one way or another, but I could believe that managers' productivity-per-unit-talent has improved more than line-workers' productivity-per-unit-talent.

comment 9y ago · link · parent

> Deconstruction changed the way we think about what we read, see, and hear, and taught us to question the assumptions inherent in the same. It gave us the spaghetti western, cyberpunk, and arguably punk rock itself (and it definitely influenced hip hop and dub).

I've seen related claims before, and, having attempted to dig into them, my impression as a lay person is that what is called "postmodern literature" is actually not obviously connected to postmodern thought and deconstruction.

I personally find, for example, the idea of an unreliable narrator or non-linear storytelling not to be obviously derived from the idea of the subjectivity of anchors of truth. There are of course superficial similarities, but I see no evidence that the academic and philosophical ideas were in any way necessary for the literary, musical, and cinematic ideas. My feeling about the alleged similarities is about the same as the claims that Cubism was deeply connected to allegedly parallel ideas in the physics of relativity -- ideas that would pass in an art house, given enough narcotics, but that do not withstand serious scrutiny if one actually knows anything about the origins of ideas in physics.

So I wonder if you would be able to draw me a straight line from, say, Derrida to The Sex Pistols? Or to explain to me how Gibson's Neuromancer would not exist but for Foucault? These are not rhetorical questions -- I would be truly grateful to receive a good answer, and it might just turn around my generally low opinion of the post-60s contributions of postmodernism and deconstruction.

comment 9y ago · link · parent

I am far from an expert in Deconstruction, but I am an expert in mathematics and have read a fair amount on the foundations of mathematics. I find your description technically correct, but highly misleading.

The vast majority of mathematicians will agree with "no one true foundation". However, unlike the bulk of postmodern/deconstructive work, they are then perfectly happy to say "this particular foundation is good enough to explore some interesting ideas", as opposed to wallowing in the fact that they had to take a generative step to create the mooring of their meaning.

In my non-expert opinion, I think many people instinctively rebel against Deconstruction, not because they can't accept that there has to be a faith-act to pragmatically root meaning... but because Deconstructionists, having discovered that such faith acts are necessary, then refuse to engage with any particular choice made by people who want to discuss pragmatic meaning.

Mathematicians have long ago internalized the important, but ultimately quite limited, idea behind Deconstruction (which, by the way, they didn't need Deconstructionists to tell them, since the idea of having to subjectively choose an axiom system goes back at least to the Greeks). Having understood this, they have since moved on with their lives to continue to do important and valuable things, just as they were doing before. What have the Deconstructionists done?

comment 9y ago · link · parent

I think it's a stretch to call denial of entry to one of the most exclusive institutions of the world as "not treating them as normal humans".

Reading between the lines from the text here (which I admit is speculation), I think there's substantial chance the admissions office feels there may be a shoe yet to drop (note that her son's body was never found... which based on the text of the article is likely to mean she never told the authorities where it was, which raises questions about what else might have happened).

They specifically cite the possibility that her description of her crime amounted to deception. Between that and the possibility of more secret land mines that might reveal she has done something even worse (i.e. actively killed the child), I think it's totally reasonable for the administration to say "No thanks, we're full to the gills with no-risk applicants."

No one is entitled to be selected for graduate study at Harvard. And she seems to be doing fine with other offers. So I think as a society we've done reasonably well in giving her a chance at a new life.

comment 9y ago · link · parent

I'm curious if the population generally thinks this is a reasonable situation. I can easily imagine a 25% difference in valuation of two properties in the same area with the same number of bedrooms, the same age, same space, and nominally the same amenities. I can also imagine a 25% difference based on some newly opened restaurants, new bus routes, etc., that will not be reflected in historical data.

There is also an enormous subjective-experience component in how people value residential real estate, and enormous variation in details that really do matter and aren't available in real estate data aggregates (like lighting profile, and how intelligently the interior design exploits that lighting profile).

It's so far from what I'd consider reasonable based on my (obviously limited) experience, and I'm genuinely curious how the locals feel about it.

comment 9y ago · link · parent

I was at Caltech when LIGO was being built. Kip Thorne gave a great lecture in the engineering school about how they went about knowing what to try to engineer in the first place. I'm not an expert on LIGO, but based on the seminars I attended it sounded like there was a lot of science that went into figuring out what the engineering team needed to do.

comment 9y ago · link · parent

> "Data is data and data is good"

This is a reasonable intuition, but is hard to square with the increased risk of publication bias for small studies (i.e. we should question whether the typical small study published is really "data" in the sense we'd like).

Since small studies are more sensitive to noise and "fishing" for an effect, and since non-results are rarely published, what happens with meta-analysis of many published small studies is that you end up primarily looking at outliers rather than typical results. Since most research questions have a directionality to what counts as "interesting", the outliers also tend to be clustered on one side rather than evenly split.

The two papers I recommend anyone read if they care about these problems are:

Why Most Published Research Findings are False

http://journals.plos.org/plosmedicine/article?id=10.1371/jou...

The garden of forking paths: Why multiple comparisons can be a problem, even when there is no “fishing expedition” or “p-hacking” and the research hypothesis was posited ahead of time

http://www.stat.columbia.edu/~gelman/research/unpublished/p_...

comment 9y ago · link · parent

Actually this is a topic very near to my interests. You mention it in farming (and that interests me, but the extent of my farming knowledge is growing a small garden of tomato plants) ... but I think it's a more general trend that technology tends to be developed with an eye toward massive scale, with small-scale efficiency as an afterthought.

Could you give some examples of opportunities you see in developing technology for farming at the small scale? In particular, examples where the technology designed for the large scale farms wouldn't be appropriate?

comment 9y ago · link · parent

I'm not a JS expert, but I do a lot of work with heavy numerical computing that occasionally has to run inside a responsive UI without threading (it's no fun). The solution is "simple", if annoying:

1) you find a small-enough granule of work inside each compute kernel so that one iteration/update/whatever of it is under the target frame duration (for these kinds of UIs 30 FPS is plenty and 15 FPS is tolerable, we're talking business visualization apps and so on)

2) you organize your computation as a resume/yield loop [0]; you run a few iterations of a function like "percent_finished = make_progress(state_of_computation)" then schedule yourself to do another round of progress on the next frame, and return/yield so that the event loop / UI can flush any pending I/O events

Needless to say, this gives up a lot of compute efficiency in return for making it relatively easy to maintain responsiveness. And it doesn't work on problems where you can't find good "yield" points in the computation. But a lot of numerical computing problems have natural/reasonable yield points, e.g. after each data point is processed, or after every 100 elements of a large vector are processed.

[0] A great example of this in a widely used library is the streaming compression interface in zlib, which lets you compress or decompress a nearly-arbitrarily-small granule on each invocation.

comment 9y ago · link · parent

No one would have objected to a comment like: "One school of philosophy holds that thinking is inherently linguistic, so in that sense animals probably can't think."

People are objecting to the unsubstantiated, doctrinaire, insistence on this very narrow definition to the exclusion of all others, including the ones used by people who research animal cognition for a living.

I don't see why anyone should exclusively care what Descartes has to say about it when we have an additional 400 years of science after his death that suggests he didn't have the whole picture.

comment 9y ago · link · parent

> ... a number of philosophical errors in the comments (w.r.t. language, religion, qualia, zombies, etc).

I feel like this is, intentionally or not, aimed at least 80% at my comments :)

Would you mind giving me some quick pointers on what the "errors" are? I can assure you that, though I may well be wrong, I have read several books on philosophy of mind and many more on cognitive science research. Despite that I'm struggling to see anything I said that would have been controversial at the time I was taking those courses in university.

comment 9y ago · link · parent

Google gives me the following two definitions for "think":

1. have a particular opinion, belief, or idea about someone or something.

2. direct one's mind toward someone or something; use one's mind actively to form connected ideas

Neither seems to mention language as a pre-requisite. In any case, you seem to have strong beliefs contrary to my understanding of animal research, so I will not bother you further.

Have a good day.

comment 9y ago · link · parent

Unless you use an extremely narrow definition of "thinking" (yours is not commonly accepted among animal researchers, and is IMO too tautological to be useful), this is clearly disproven by decades of animal cognition research.

Animals can form future-oriented plans, engage in risk management activities, can remember inventories of items stored in safekeeping locations, develop "cultural" dialects to their vocalization patterns, and much more. You can find a good start on the current state of the research here

https://en.wikipedia.org/wiki/Animal_cognition

comment 9y ago · link · parent

Yes, this is closely connected to the question of qualia, and the concept of a "philosophical zombie" [0].

On the one hand, naive human intuition seems to suggest that the "movie playing in your head" would not emerge from any number of transistors and wires connected to each other.

On the other hand, it's not clear how you can argue that what goes on in our own heads is physically any different. So that leads you either to religion, or to the idea that somehow consciousness has to emerge from interactions of matter. And if that's the case, it raises all sorts of ethical questions about the creation of artifacts that might (some day) exhibit consciousness. And, of course, there are already many ethical questions about how we treat animals in the here-and-now.

https://en.wikipedia.org/wiki/Philosophical_zombie

comment 9y ago · link · parent

"No animals have all the attributes of human minds; but almost all the attributes of human minds are found in some animal or other"

This was a fun read in general, but I think it's particularly interesting to consider some of its implications in the context of trends in AI (to be clear, the article has nothing to do with AI).

I think the excerpt above is rapidly becoming true for current generation ML/AI systems (I'm leaving aside the question of qualia [0], since we are still unclear how to evaluate that question even for animals).

To the extent the above becomes true, I think it's an interesting contrast to the implied point behind Dijkstra's famous "swimming submarine" analogy:

"The question of whether machines can think... is about as relevant as the question of whether submarines can swim."

The submarine "swims", but almost none of that activity could be mapped onto how a human swims. As the structure of ML/AI systems starts to mimic what we believe we know about the neuroscience of the brain, the question of whether machines are "thinking", and what that might mean about thought in general, is very interesting.

[0] https://en.wikipedia.org/wiki/Qualia

202.

Can we know what animals are thinking?(medium.economist.com ↗)

166 points · by _dps · 9y ago · 226 comments

comment 9y ago · link · parent

I'm almost entirely ignorant of DOTA 2, but the coverage suggests to me that it is winning mainly through what I would call "micro" excellence (firing at just the right range, careful maneuvering, and so on). It's clear that this kind of precision control is extremely advantaged by having direct access to the state of the game, rather than having to estimate it in real-time from vision data.

So, to me, based purely on the news coverage, it's not clear that it has learned anything like "superhuman" levels of strategy. We already know that computers have superhuman reaction times and precision calculation abilities, so it seems to me the interesting question is whether an advantage would remain after factoring those out.

comment 9y ago · link · parent

This is a highly editorialized title that clearly doesn't follow the posting guidelines:

> Otherwise please use the original title, unless it is misleading or linkbait.

> Please don't do things to make titles stand out ...

(the original title is the much more sedate "More on DOTA 2"; in case it is changed by moderators, at the time of this comment it says "How We Built the Unbeatable DOTA 2 bot", which is not even a quotation from the article)

The submitted title has certainly shaped the commentary (see people reacting to "unbeatable", and whether it's an impressive achievement, vs reacting to the technical content).

So, in a nutshell, I think we should avoid titles like this, and I believe the guidelines transparently say so as well.

comment 9y ago · link · parent

By exercising your freedom to negotiate and threatening to use your freedom to leave, you can attempt to cause changes in the corporation.

Please don't attempt to tell me that I know my argument is bad.

comment 9y ago · link · parent

There is the freedom to negotiate, and the freedom to leave. Comparing it to Stalinism is silly, and surely disrespects the millions of people who genuinely suffered and died under Stalin.

comment 9y ago · link · parent

I'll add to this that you can add a very crude (separate) model for the document length and number of distinct words, and use that to flag outlier documents that might bump into the known weaknesses with respect to document length.

comment 9y ago · link · parent

If you have some more specifics (and maybe a few frames from example video) I could probably suggest a few simple approaches to try out. I do think a simple head-counter is probably not a bad approximation (assuming you don't need to know exactly how many people). Feel free to hit me up by email (in my profile).

comment 9y ago · link · parent

> It's not perfect, put it is pretty bloody good.

Just to round out my thoughts here, I mainly agree! I lived in London for two years and I was always pleased with the NHS overall.

My main point is that, based on my experience in the USA, advocates of moving to an NHS-style system tend to underplay the fact that there is genuinely a different set of costs, and it is not a magical solution.

I spend lots of time in both the USA and in Greece (which has a mostly-NHS-style system), and I have gotten health treatment in both places throughout my life. Both systems have strengths and weaknesses, and I can totally understand someone advocating for an NHS-style system as the best overall set of tradeoffs available. It's just not without some downsides, and I wanted to point out that waiting times can be a real problem.

comment 9y ago · link · parent

To be clear: I'm not suggesting the US system is good or that the NHS-style system is bad. But I do think there is a systematic diminuation of the badness of wait times among advocates of NHS-style systems.

I, personally, find descriptions like "it's not ideal" to substantially underplay the human suffering involved. And "it's very inconvenient" is, again in my opinion, a gross understatement of the suffering of losing your vision for a few months.

1
678
14