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 6y ago · link · parent

Two simple reasons. First, "hello world" requires less explanation

  print "hello world"
  vs
  print ("hello world")
Second, printing a line to stdout is an extremely common and special activity (especially during debugging). There is almost no programmer-defined function you could write that has a function as fundamental as that of "print".

Larry Wall of Perl thought about these things in terms of Huffman Coding, i.e. the most common thing you might want to write should have the syntax elide any easily understood context.

In the case of "print", we know we're not talking about any random function here: it's the function for getting output to the terminal, one of the most fundamental operations in all of programming. So I think it's totally fine for it to have a special representation in the language.

comment 6y ago · link · parent

Agree with everything you said here, but let me riff on this

> The "print" statement being a great example. Was it kind of weird? Sure.

I am reminded of the Emerson quip "A foolish consistency is the hobgoblin of little minds". The Py2 print statement is special/weird because it is a very important and special behavior, especially for newcomers. It's not randomly special, it's special because it models something that deserves special treatment.

Py3 is more consistent, but less humane. I use it over Py2 only because the market has moved on, but every time I type print with parentheses I curse Guido.

comment 6y ago · link · parent

> player skill is assumed to be normally distributed when that is just so demonstrably not the case

This is close but not exactly right, and the small difference matters. Elo does not assume that skill is normally distributed, but rather that "quality of play" in a single game is normally distributed around some average quality level for the player. Obviously this too is an approximation but it's a much smaller one.

comment 6y ago · link · parent

This is true for a large fraction of the programming world, but not all of it. As just two examples I happen to know:

  1) graphics / games / vfx
  2) energy / mining
It is the norm in these markets to pay for industry leading software tools, and I know multiple companies making profit-per-employee in ballpark FAANG range.

comment 6y ago · link · parent

I'm curious if anyone has a data source on this that actually breaks down by duties? A "police officer" can be a beat cop in Baltimore, or a desk sergeant in Omaha, or an IA reviewer etc.

When people say "being a police officer" is risky they obviously mean the part where you go around physically enforcing law and order, not the other parts that are actually the majority of many long-term police careers. But the fact that the current beat cop will in 5 years have a much safer job doesn't mean that the current job is not very risky.

comment 6y ago · link · parent

Yes, one good way to think about this was that there was very little change in the value (fully discounted long term etc.) of stocks but a large change in the price (current exchange rate with other participants facing temporal constraints) of cash.

comment 6y ago · link · parent

I don't want to belabor this, and I'm sure that your intentions here are good. I'm very aware of various technical definitions of inflation, and I understand where you're coming from.

I will leave you with this — do you think there might be a reason why the conventionally promoted inflation definitions and measures allow rapid increase in cost of living on fixed income to be called "not inflation"? Do you think that's a good definition, if it means someone with a fixed future cash flow can now buy a smaller stream of future goods? What/who is served by sticking to these (IMO gerrymandered) definitions of "value of money"?

We've gone deep enough and I will leave my contribution at that (though obviously feel free to reply). I too was educated on these technical definitions of inflation and I have become extremely skeptical of them as I have seen the mismatch with lived reality.

Edit: I won't make any more points, but I will say that I consider the implications in the response below here uncharitable and unresponsive to the points above.

comment 6y ago · link · parent

You're just choosing a definition that is convenient for you, and I might mention convenient for the wealthy establishment. The things ordinary people most need to buy with money have gotten more expensive — not as a blip, but durably and steadily for a decade. If you want to die on the hill of "this is not how I choose to use the word 'inflation'" then that's fine, I just don't see it as very persuasive.

comment 6y ago · link · parent

It's simply not true that they keep being wrong. Yes, hyper-inflationists were wrong. But "much larger inflation"-ists were not wrong.

Anything with inelastic supply has gotten more expensive by an average of about 3% every year for the last decade: health care [0], education [1], real estate [2]. That's 50% higher inflation than the 2% conventional target, and arguably after the revelations of 2008 one might justifiably expect even lower than 2% natural inflation.

Then there's the very rapid rise in the price of stocks which is itself a form of price inflation (it takes more money to buy the same share of the productive economy).

Anything rich people/institutions hold or supply in exchange for dollars from laborers has gotten more expensive at a substantially-higher-than-normal rate.

[0] https://www.in2013dollars.com/Medical-care/price-inflation

[1] https://www.in2013dollars.com/College-tuition-and-fees/price...

[2] https://www.in2013dollars.com/Housing/price-inflation

comment 6y ago · link · parent

> There's pretty good evidence for logarithmic marginal utility of money

1) This is, at best, controversial. Measuring cardinal utility is an unsolved, perhaps unsolvable problem. The kinds of experiments that lead to these claims are things like "what more would you buy if you had $X" or "how much, out of 10, would your happiness increase if you had $X more". Needless to say these are full of problems with self reporting, perception, lack of skin in the game, etc.

The only utility-adjacent concept that can be tested rigorously is preference ordering in situations where the subject actually bears the costs and benefits of the choice. This makes most experiments you'd want to do very costly, and potentially unethical.

2) Even if we accept that everyone has a logarithmic curve describing their own utility for money, this doesn't mean you can make intersubjective comparisons. To give an analogy, it's a "units" problem. Bob's utility is measured in Bobutils, and Alice's utility is measured in Aliceutils. Even if Bobutils(dollars) and Aliceutils(dollars) are both logarithmic, this doesn't get you any closer to aggregating their utility or evaluating tradeoffs (can't add/subtract things with different units).

Edit: playing minor devil's advocate to myself on point 1, it's certainly true that there's good evidence of diminishing marginal utility of money (or of anything). I was specifically responding to the kinds of experiments that lead to the claim of a logarithmic form, which I consider to have many problems.

comment 6y ago · link · parent

> scene specific lighting hacks, things that make no physical sense but result in the visual appearance they are after.

The flip side of this is that physically realistic shadows aren't always what you want. Any amateur photographer who has noticed just how awful hard shadows are on faces on clear sunny days has learned this lesson the hard way.

To quote a graphics professor of mine (tongue in cheek), "Physically accurate rendering is a crutch for people who aren't smart enough to cheat their way to the look they want".

comment 6y ago · link · parent

Yes — I was slightly incomplete in my description, but you are exactly correct about what I meant. Company liabilities include things you are obligated to pay under uncertain future circumstances, so accountants have to make sure that such liabilities can be handled if they ever arise.

comment 6y ago · link · parent

This is in practice just a deferred salary scheme. Since the mandate attaches an unavoidable additional liability to every year of employment, that will get rolled into the total cost of employment by accountants.

So yes, when you collect the deferred salary it feels generous. But you were getting less salary up until that point in order to make the system solvent.

One may well prefer this arrangement, but one can't evaluate the generosity of the payment without also accounting for the cost that made it possible.

comment 6y ago · link · parent

Same material in video format if you prefer: https://youtu.be/D7CBcFlR3Ms?list=PLEMXAbCVnmY7Zja8lG2TLXvO3...

Also, interesting tidbit: this is from the person behind the Handmade Hero project, which has been discussed here before and is a lot of fun if you're into low level / 90s style video game programming (https://www.youtube.com/channel/UCaTznQhurW5AaiYPbhEA-KA)

75.

Everything you never wanted to know about printing(mollyrocket.com ↗)

1 points · by _dps · 6y ago · 1 comment

comment 7y ago · link · parent

> Also, it is basically white countries telling Africa to stop having children.

Birth rates in europe + descendant countries, china, korea, and japan are already at stable or slightly falling levels. So this is more like asking Africa to make the same pro-stability adjustments others have made already.

comment 7y ago · link · parent

I've been wondering about the broad lack of programmability in commercially available drones (something that seems like an obvious feature). Would you say this is the main motivation, or is this just the motivation for Skydio?

comment 7y ago · link · parent

I've worked recently in this exact field (known in OR as "pickup dropoff problem with time windows" or PDPTW). As you say, all these modifications are completely standard (especially ones that minimize the worst-case "suffering" of the most-affected passenger).

comment 7y ago · link · parent

What's an older and more powerful single institution of an abrahamic religion? I can only guess you are referring to something involving Judaism but there is nothing even remotely like the Catholic church (large, rich, organized, formal creed, central authority, standardized practice across large territories) in thousands of years of the history of Judaism.

comment 7y ago · link · parent

I like k8s but this is way too optimistic.

I regularly run long-standing 20+ instance clusters using boto, pip, and a few hundred lines of python scripts. People have been doing some version of this for ~15 years.

K8s adds a lot of conceptual overhead on top of "just write a sysadmin script". It is absolutely not necessary to have an orchestration system as soon as you're past one instance.

comment 7y ago · link · parent

It's important to note that the Schengen agreement was only about travel, and not what what is commonly assumed these days regarding border debates: the ability to come, settle, work, and take part in the social safety net.

Switzerland for example was a Schengen signatory. Switzerland has never allowed open immigration, work permits, or welfare benefits for people entering under Schengen terms.

So while I think you give a good example of what can happen in 50 years, I think it's very important to draw a distinction between Schengen-like agreements and what people commonly understand from the closed/open border debate.

comment 7y ago · link · parent

> The developers hold the power here.

They do not, this is exactly the point of free software. Anyone can fork it and release their fork under a different name. Don't want to do that work? Too bad. Want to force the developers to do it? Now which party is attempting to exercise power?

The only thing the developers are doing is refusing to modify their free gift to the community to line up with other people's non-technical priorities. This is not an exercise of power — is it simply reminding people that free software contributors are not indentured servants.

comment 7y ago · link · parent

Leaving aside the outright abusive, probably nothing. But how excited would you be to receive in your inbox "Your [beloved project] didn't solve my pet problem the way I wanted! This software sucks and the devs are lazy bastards who don't listen to the community". Then imagine getting one of these a month, a week, even a day if your project is very successful.

It's of course nothing like actual abuse or threats of violence but it's an emotional toll that I certainly wouldn't want to pay. I have better things to do with my life.

comment 7y ago · link · parent

> But in my field, in most cases the source code is never released at all. That's a far bigger problem that not having support to use it.

I agree but I think it's good for people to know that almost any moderately successful open project will attract whiners, complainers, entitled people, and in some cases outright abuse.

From the perspective of society, having no open code is worse than having open code that's unmaintained. We're agreed here.

From an individual contributor's perspective, opening yourself up to varying forms of whining and abuse "for the social good" (and not, say, for your tenure or publication count or whatever a researcher cares about in the moment) is a bigger problem than just sitting quietly on stuff you don't want to become a drain on your life.

comment 7y ago · link · parent

Ballpark: say 16 8-byte fields for each transaction and 128 transactions per day, 30 years of transactions is ~180MB.

(to be clear I consider this a very generous estimate of how big this could possibly get)

comment 7y ago · link · parent

I don't believe flat earthers should be banned from social networks, so it sounds like we're in agreement.

comment 7y ago · link · parent

Both sides believe this about the other side.

comment 7y ago · link · parent

You say fascist about Trump. The republicans say socialist about Obama. Round and round we go until everyone but corporate-approved opinion is banned.

comment 7y ago · link · parent

Since I've been mentoring Soslan for a bit, let me offer to do a reference call/email for any interested employers. I've been around HN a long time and can address any of the questions this audience is likely to have.

Soslan is a highly motivated entry-level candidate and I think he would be a strong opportunity for teams looking to add some incremental junior capacity at a low cost.

Do check out his portfolio, which I think shows a fair amount of polish and variety for someone at his stage of career.

comment 7y ago · link · parent

I've been following Bill's work on Odin for years now and he has really accomplished a lot. I personally haven't had a use case for it yet but people whose opinions I trust have all had pleasant experiences with it, and it's already being used as a tooling language in at least one production project.

So if you are interested in new languages, and especially "low concept" systems languages, I can heartily endorse this project.

12345
14