HNHacker News
TopNewBestAskShowJobs

asgard1024

1,234 karma · joined July 27, 2013

submissionscomments
asgard1024··on Bruce Eckel announces he's going to write Atomic Python
> What is simple and clear about Python? .. it's really a pretty complex language with a deep ecosystem

Here's a helpful video from Feynman that kinda explains it: https://www.youtube.com/watch?v=YaUlqXRPMmY

Python language (ditto Perl, Ruby..) uses Babylonian approach, while the languages with more fundamental building blocks (like say Scheme, Haskell..) are more like Greek approach.

So Python it is not simpler as a language per se, but it is simpler to mold onto the problem. At least that's my explanation why people (myself included) like to use it, despite well understanding there are more elegant (mathematically) languages out there.

asgard1024··on Economics Has a Math Problem
Are the believers in so-called "economic theory" so desperate that they have to resort to name calling?

I sincerely hope someday you would read Blatt's book with an open mind. It has nothing to do with Keen, and on few pages with a bit of matrix math he obtains far better model than economists with their supply and demand curves can ever hope. (In fact, John von Neumann apparently had fingers in it too - shame he didn't live longer, we could have a proper economic theory today.)

asgard1024··on Economics Has a Math Problem
> you know not all theoretical models are equilibrium based

Depends what you mean. I would love to see a macroeconomic model, which is not just an assumption of equilibrium subjected to external shocks. I have only seen such models from postkeynesians. (Austrians do not count - they pretty much throw hands to the air and say "it does whatever it does, we cannot know anything, therefore it's OK".)

> can you rephrase it in a way that has some meaning

Well, assuming you want to show that some self-organizing system should be a moral guide, for instance, claiming that free markets lead to "efficient" (whatever that means) outcomes, then necessarily this self-organizing system has to have a stable unique outcome (which pretty much rules out chaotic behaviour that dynamical systems love to exhibit). If it had two different outcomes, then it couldn't be a unique source of morality (someone would have to come and decide which outcome is better).

For example, that's why economists, who believe in free market, cling so much to idea that there cannot be endogenous unemployment (and instead explain it as some sort of reaction to external "shock" which will eventually pass). If existing unemployment was endogenous, it would mean that at some point in the past there was a choice (bifurcation), which would set us to path of either unemployment or full employment, and the self-organizing system of free market "made" the morally wrong choice, or at least it was indifferent (meaning it is not a good moral guide).

asgard1024··on Economics Has a Math Problem
No, it's an artificial distinction (or perhaps better would be to say, there is an artificial distinction where you decided that physics is not a social science). In both cases, you can analyze two scenarios:

1. Car continues and hits the person / investor won't move money out before stock market crashes

2. Car is stopped / investor will move the money out

In both cases, the physics or economics is no less applicable whatever the circumstances of the actual decision. And just like physics cannot tell you whether the car stops, economics cannot tell you whether investors will actually move the money out. But what economics can tell you, under certain assumptions, say, investors want to make money with this and this horizon, whether or not are they likely to move out.

Let me give another example. Water flows downhill due to gravity. Yet, people can decide to build water pump and aqueduct to get water uphill. In doing so, they didn't break any physical laws. But if you ignore the pump, it may seem that the water flow downhill anymore and so the laws are incorrect. What happened is that now our model of the situation should include the pump, and within the expanded model, physical laws are again preserved.

Similarly for instance, if the society decides to regulate markets, the behaviour of the people can be changed, but they don't necessarily have to break some universal economic law. The new behaviour can have a perfect economic explanation, it's just that the frame of the model changed.

It seems that this "infinite regress" confusion (also called Lucas critique, if I am not mistaken) is caused by ignoring the fact that every model of reality only includes a portion of it and is never a perfect description (for example we ignore the physics of human brain when we model the car hitting the pedestrian).

Also, you should note there are situations where knowing more doesn't actually change the behaviour (under assumption of certain rationality) - for example, getting to know the exact odds of casino wins won't entice me to play.

asgard1024··on Economics Has a Math Problem
> Economics is a social science, taking measurements / accumulating data and theorising on that data causes changes in behaviour. Just sitting around talking about economics, or your weekly budget, drives changes in behaviour.

Funny - you could say the same about physics. For example, knowing that the coming car may kill a person causes the human behaviour to change, namely the driver will stop the car. Does that invalidate Newton's laws?

Yes we probably cannot predict universe totally. But we can do scenarios (of complex emergent systems of interacting agents with bounded rationality), just like in physics. In fact the whole point of doing that analysis is to change behaviour of people, one way or another.

asgard1024··on Economics Has a Math Problem
The book I got recommended from Steve Keen, when I asked him a similar question, was J.M.Blatt: Dynamic Economic Systems. Although he has beautifully simple approach, it is really outside the standard economic theory and apart from Keen and perhaps few other individuals, sadly no one really follows in Blatt's footsteps.
asgard1024··on Economics Has a Math Problem
I think, if you want to truly understand where Yanis Varoufakis is coming from in that comment, read the book Debunking Economics by Steve Keen. Although Varoufakis is probably even more critical to economic theories than Keen, the two guys agree a lot and admire each other.

Besides, Keen (and other postkeynesians) truly shows how the mathematical economics should be done, that is, by having a fully dynamic macro models with time and debt/money. I am afraid machine learning the article talks about is a similar distraction as econometrics. Unless mainstream economists will be willing to rework the theoretical foundations (give up on equilibrium, at least), and base it more on empiricism, mathematical approach, no matter how fancy, will always be a quandary.

But as other have said, the problem is that many economists are pretty much the prophets of the free market (or status quo in general). If you want to somehow claim a moral basis of society, then you can't have a model which allows multiple different solutions, and so you need to stick to equilibrium instead of allowing a dynamical solutions.

asgard1024··on Pylsy: Python library to represent tabular data in ASCII tables
I agree - perhaps there should be an option to control where and if you want to have the vertical and horizontal lines?
asgard1024··on Thinking too much: self-generated thought as the engine of neuroticism
I am quite neurotic. But if this is indeed true (and there are some indications that I am more creative than other people), then I think I would rationally prefer to stay more creative even if neurotic.

Some people think high intelligence is a burden (together with the above, it may also be the realism of skeptical thinking that makes people a little depressed). But I believe, even assuming it carries this burden, it is still a wonderful gift worth accepting.

asgard1024··on All evidence points to OOP being bullshit (2013)
I believe OOP gained such a foothold in programming world because it was (and still is) very useful for building GUIs on the PC. Since PCs have taken over the world, so had the OOP. But in other areas the OOP model is questionable. For example, you have transaction processing applications that have been built for years on mainframes with different models.
asgard1024··on The Best Jobs Now Require You to Be a People Person
> If humans are being replaced with computers, then there will be need for fewer managers, supervisors etc. This would cause a decline in demand for people with "human skills" also.

Here's my answer to this paradox. The humans vs machines is just another "good old boys club". Of course humans don't want to relinquish control and be managed by machines, they are not silly. So they create another layer of "soft skills" which prevents from machines (or people who understand them) taking over.

Take a high-frequency trading company as an analog. The job is done by computers and technicians running them. Still, the CEO and investors into this are probably better paid than those technicians, and make all the important decisions. (In fact, today you could probably create a completely self-managed HFT company that would just put all the profit into hiring more technicians who manage its algorithms.)

And I think this was always the case in human history (although not against machines, just against other social groups); and many technical people here seem to be in denial of this reality. What we can do though is to attempt to change this, but it will require political, not technological, solutions (that is people skills).

asgard1024··on Literary Magazines for Socialists Funded by the CIA, Ranked
> Being a minority in a referendum leaves you with being exactly that -- the minority in a referendum.

The point is, if there is reasonable number of referenda, you're (unless your views are extreme) unlikely to be always in the minority, and vice versa, you're unlikely to be always in the majority. So you get quickly exposed to "being on the other side of the fence". This IMHO doesn't happen in the U.S. because it is deeply divided according to party lines.

> we should similarly not forget that Proposition 8 was the result of referendum

Similar thing to Prop. 8 happened to Switzerland, you just need to give people time, because they are generally conservative (meaning "cautious", not in political/religious sense). I think this was case of some benefits for disabled people, first it was shot down in the referendum by similarly thin majority, but few years later the referendum was repeated and the proposal passed.

asgard1024··on Python Extension Proposal 498: Literal String Formatting
For all the (little) work I have done with JS I used the same technique of string concatenation, and I don't really see an issue with writing "+ instead of { (respectively +" instead of }).

Ruby has a different philosophy than Python, was originally intended to be Perl replacement, and is more open to cryptic shortcuts like this.

While in Python, the presumably better format() syntax was a step to actually longer code, character-wise, than old C-style % interpolation. Python simply tries to be more explicit, because it is used in more domains than just text processing; similar arguments can be raised against Python's treatment of regular expressions.

asgard1024··on Literary Magazines for Socialists Funded by the CIA, Ranked
Well, practice shows that people in direct democracies understand this. Because for them, being minority in referendum is a common thing. Most people are mostly in the majority and sometimes in the minority. It has been shown that (semi)direct democracy actually decreases the polarization in the society and increases willingness to compromise with others.

So you may have a valid complaint, but unless the society actually practices democracy it won't get better - you will just continue to live with the imaginary fear of "majority".

asgard1024··on Python Extension Proposal 498: Literal String Formatting
This is a straw man. If you want to evaluate expressions inside a long string, you can as easily write:

"The sum of a and b is " + (a+b) + "!"

This is completely analogous to your examples. The only disadvantage of this method is the extra quotes, but that's just syntax. You could think that having the literal string split is a disadvantage, but it really isn't - since in the proposal the string has to be literal anyway, so in either case it cannot be a variable.

In general, in what I would consider good language design (syntactic-wise), you either interpret expressions by default and then quote string literals (like most languages do), or you interpret literals by default and then quote expressions (this is the method regular expressions language, or templating languages, use). But you shouldn't do both, it's just a can of worms, especially for code highlighting tools (although in a language with Lisp-like design philosophy - which Python is not - why not, you can do it today with reader macros and whatnot).

asgard1024··on Python Extension Proposal 498: Literal String Formatting
Security was not my primary concern, but even if the design can be made secure, it is still a concern (because bugs happen). In any case, you just stated another counter argument - it breaks orthogonality of the language (string being interpolated must be a literal), just to make one assignment not explicit.

Maybe it is popular in other languages - their call, but the fact is, it goes quite wildly against Python design philosophy.

I would also like to note that the are templating systems that let you evaluate arbitrary Python expressions. Perhaps these would be a better choice for users who feel need for this proposal.

asgard1024··on Python Extension Proposal 498: Literal String Formatting
I am against it, because it allows arbitrary Python expressions inside format strings. It's too complicated and lets user have two different ways of doing things (not Pythonic) - one to calculate expression inside string and the other to calculate it outside (which should IMHO be preferred). This should maybe go to the standard library, but please not into the language.

I think a better approach would be to just add special formatter operators (if they aren't already there) that would just call str() or repr() or ascii() to whatever is presented to them (and maybe take some optional arguments such as length or padding).

asgard1024··on Literary Magazines for Socialists Funded by the CIA, Ranked
It is a straw man, here's why. There is no case in history where the decision of majority would be significantly, from the moral perspective, worse than the decision of the elites from the same culture. The problem of your argument is that you compare real democratic decision with some moral ideal. But in real world you have to compare democratic decisions to decisions of elites inside the same culture (because these are the options you have).

It was studied and we know, normal people will be more conservative than elites. But they don't make worse moral decisions, quite the opposite. People also tend to spend less money in government than elites, for better or worse.

I don't downvote or upvote in threads I discuss in (that's Slashdot habit). Btw, I was downvoted, I suspect because someone thought I attacked personally. And I did, because the person is fair game - saying majority is making life hell-hole is a personal attack on 3.5 billion people.

asgard1024··on Literary Magazines for Socialists Funded by the CIA, Ranked
It indeed means majority rule, in a certain sense. The majority is adhoc, unlike in dictatorship, where the decision makers are defined independently of the issue. This distinction is also lost on many. :-)

Regarding democracy/republic distinction. This is a non-issue, mostly invoked by people against democracy. Of course functioning democracy needs republic, constitution, and protection of rights of others, especially the right to vote (which is btw one of the first things stripped to people before genocide happens). Democracy by definition includes all minorities. You cannot have people democratically voting to take democratic rights away from someone - that's kind of a Russell's paradox.

And I believe that U.S. would be much better off (for normal folks) if it actually were democracy on federal level, which it isn't, I agree. On state level U.S. is often more democratic (these are remnants of progressive movement from the beginning of 20th century) and some decisions are lot better; there are even studies that show that.

asgard1024··on Literary Magazines for Socialists Funded by the CIA, Ranked
> I've never understood the difference

You are not interested in understanding, you only seek emotional comfort from fear of "mob rule", which is actually a straw man. If you truly were interested, the answer is obvious.

Switzerland, United States (some states) and Iceland sure don't sound like hell on Earth. These are some of the most democratic countries on Earth.

asgard1024··on Don't be a UN intern
> That doesn't help much for folks who read with their browser window maximized.

They should install proper window manager, then. (I use GridMove.) I for example use only half of the screen for the browser and sometimes it's annoying, because the content is exactly couple letters too wide. Why should web designers force their width of screen on everybody?

asgard1024··on Errors and Exceptions
I have to disagree. Historically, conditions and restarts came from Multics and PL/I. There is also similar thing in IBM z/OS, descendant of MVS (ESTAE recovery routines). When ESTAE is invoked, you can decide where you want to recover (since it's assembler you may unwind stack if you have one), or you can "percolate", which means to pass processing on the next error handler. Unix signals is probably another descendant. So in the 1960s, recovery by error handler (the option 2) was very common thing. It only got a bit forgotten later due to them not being properly supported in C, so it didn't get into C++ and Java due to cultural disconnect.
asgard1024··on Errors and Exceptions
Regarding what he calls "soft errors" (a better name would be environmental errors, I think), it's unfortunate that option 2 (error handlers) is so often neglected by programming language designers (for example Code Complete doesn't mention option 2 at all).

In my view, just like option 4 (exceptions) is more general than option 3 (return values), also option 2 is more general than option 4. The biggest advantage of 2 compared to 4 is that recovery is much easier. However, more generality also unfortunately means more complexity (both for programmer and runtime). That's why many people here prefer 3 to 4 or 2, and neither one of them is really better than the other.

Common Lisp is a good example of language that has good support for all three. It can return multiple values which facilitates option 3, it has usual exceptions as option 4, and most importantly, it also has signals and restarts that serve as option 2.

I would classify what he calls hard errors into two categories. One is inconsistent input and the other internal (logic) error. This depends on level of view, if you are looking only at one module or a bigger whole (inconsistent input into one module from the other can be considered internal error in the whole).

Now, I don't think inconsistent input should be dealt with asserts. If it's worth checking the inconsistent input at the module boundary, do it and return an error (in any of the three ways mentioned above). The caller should decide whether or not this is a logic error (it may also be bad input from the user), and how to handle the failure.

While I agree with the statement that on logic errors one should generally fail hard, sometimes it's not desirable, for instance in server you may want to just restart the wrong thread instead of shutting down the whole server.

Finally, I think asserts are very much underrated in the current development practices, compared to tests. I wish the effort spent on testing frameworks would be spent on frameworks that would let you add lots of asserts into the code and turn them on/off as needed (for example based on required tradeoff between reliability and performance).

asgard1024··on July 2015 was warmest month ever recorded
> Of course, but more profits encourages people to create more businesses which create more innovation. Sorry, I thought that was obvious.

It isn't obvious at all. In fact, there are some indications that the opposite is true. For example, there are some simple economic models in Blatt:Dynamic Economic Systems where rate of profit and rate of growth are inversely proportional. Also, data from Piketty aren't very optimistic in this sense either (it seems that economic states with lots of private capital correspond to low growth and vice versa).

asgard1024··on July 2015 was warmest month ever recorded
> The question I would like answered is "What is the optimal mean surface temperature of the Earth?"

I think I can answer that: the way it always was. Adaptation is always a cost, regardless of the direction. Not only human cost, but also cost for the ecosystems. If the change is fast enough it may cause migrations or extinctions.

asgard1024··on The Ashley Madison Database Was Leaked
> This is a company that just a few months ago was thinking of an IPO and of raising $200 million

"Life is short. Have a boom!"

asgard1024··on Technology has created more jobs than it has destroyed, says 140 years of data
There are some sources that claim that medieval peasants in agricultural economy worked around 6 hours a day, and it was less than is standard today in the developed world.

Seeking leisure is a human nature, true. But maybe also human nature is to compete for resources, get more for your family, and make yourself more attractive to the other sex, even if that means working harder. If the alternative is unemployment, this may drive people to work in (or even create) services that they know are not really that useful.

asgard1024··on Technology has created more jobs than it has destroyed, says 140 years of data
> People have less they are required to do and use time they would have spent tending to their farm to ensure their survival, to pursue novelty and comfort instead.

Are you sure? Maybe what they are actually pursuing is trying to convince other people that some new job is sorely needed in the "new economy"?

asgard1024··on Technology has created more jobs than it has destroyed, says 140 years of data
Creating jobs is easy - you can always add more people monitoring if other people are following the rules - add more security guards, inspectors and managers.

AFAICT the article doesn't make this distinction, and it is difficult - we don't have a standard way to consider this problem.

The question is if it's worth it, and if it wouldn't be more useful to just let people work less and have more free time (for example through basic income).

asgard1024··on Immortal ZX Spectrum games
I wish some retroprogramming fan would do Civilization, The Sims and Minecraft (isometric) on ZX Spectrum. It would be interesting to see how well these would be doable...
← PreviousPage 8 of 22Next →