HNHacker News
TopNewBestAskShowJobs

asgard1024

1,234 karma · joined July 27, 2013

submissionscomments
asgard1024··on What every programmer should know about memory (2007)
What every programmer should know about memory:

Even though it may not seem so at first, memory is very lossy, especially in old age. So, write comments, write documentation, make notes. Diagrams help too.

It's best to acquire these skills at early age, since at older age memory stores also require more cycles.

There are also ways to boost memory. One option is that emotionally charged events are very well remembered. Thus, don't be afraid to experiment; the bigger mistake you make, the better you will remember it.

Edit: Ah, nevermind. Apparently this is a different type of memory that programmers have to deal with. Still, I hope this advice was useful.

asgard1024··on DRM in TIG welders
Yeah, that paragraph was just an aside, but anyway.

> Those future market segments affects his current decision to spend (go into debt) $150k+ for his medical degree.

I think the problem here is that we let him make the decision which should be really responsibility of the whole society to make. If he didn't go to debt (and got a salary instead while is he studying), it would be IMHO perfectly OK for society to say "we changed our minds, now you have to work for minimum wage" (and he would have replied "F Y" and perhaps got a better arrangement). This is normal acceptable order of business (that things change). And in sane countries, degrees are for free (well obviously you have to work, and you can even get a stipend) for that very reason.

So in case of market segmentation, we are trading off some efficiency in the future for the fact that the whole society doesn't bear the risk of the investment. But is it really needed, to make this trade-off? What is wrong with society bearing that risk as a whole? That's what I was questioning in that paragraph.

I think the real problem though is that the whole idea of investment is not very compatible with the theoretical description of the free market (perfect competition). So to recoup investment, you need to introduce some inefficiency. And it can be abused - you can produce more inefficiency than is needed to recoup it.

asgard1024··on Leave Work Unassigned and See Who Steps Forward
> If nobody steps up then it's quite likely that work never needed to get done in the first place.

Seriously? Consider this: You have all people tied up in work for one month. A customer issue comes up. Who should step up to take it? Because you're not seriously suggesting it should rot there one month, do you?

It's a classical coordination problem (and that's why preemptive scheduling was invented). I, as a developer, have no idea if I should step up. I would have to asses importance of all the other work that is being done by others, just to get a boolean value out of it. So everybody has to switch context to examine the issue, and the everybody's tasks to see where it fits in the grand scheme of things.

Now you can say, OK, we will have priorities on things, easy. But then you actually find out that the low priority work doesn't get done at all. OK, so you start to calculate time slices, fair scheduling, all that jazz. And all of sudden everybody is forced to execute these overcomplicated scheduling algorithms and no real work gets done. It's a bureaucratic nightmare (because people are really bad at executing algorithms correctly, and have high task switching overhead), and I have seen it. While this could be sanely done by a single responsible person, project manager, who has an idea about:

(1) what is the priority (and required latency) of each work item

(2) how long things are going to take (estimate)

(3) what are the dependencies

(4) who prefers what kind of work

Furthermore, if he needs any help with these points, he doesn't need to ask the whole team. Only one person can assess importance of an issue; the others do not need to care.

asgard1024··on Leave Work Unassigned and See Who Steps Forward
Not sure why are you replying to me, it's entirely different question.

I don't have a problem with people working on new things. The question of leadership - I think it's a little fuzzy. OS kernel decides what process gets to run and what not, but it's not like you can call it a "leader". He just does it on basis of processes' priorities, which may well be set by individual processes themselves or something else entirely. (And I am actually fan of direct democracy - where the leader designation is pointless, but that doesn't mean - in such system - you can't have project manager telling you what you should work on, as is obvious from the OS analogy.)

asgard1024··on Leave Work Unassigned and See Who Steps Forward
While I quite agree with the idea, it rests on the assumption:

"leaders also need to create a culture in which employees do not have every waking moment of every day committed to project work"

Unfortunately, I am currently in situation where is lot more project work than people (and I wonder, is it different elsewhere?). In that case, I don't think the approach the author describes quite works unless you have a dedicated person who keeps track what needs to be done and prioritizes (i.e. project manager).

Because when I work on something I want to work on it with highest possible focus, not being bothered to asses what other work has to be done. So I would prefer (which is not my current predicament, sadly) some other person tracking everything and telling me - hey, this thing has higher priority than what you're doing right now, perhaps you should switch tasks. The point is, he should make the calculation that I should switch, not me.

(Perhaps this is a reason why preemptive multitasking won over cooperative multitasking on the OS level?)

asgard1024··on An obsession with safe spaces is not just bad for education
I can't relate to the experience of being black in the U.S., but I was once being loudly called names for being a nerd in the subway (by some probably drunk guy). (We were discussing Forth with a coworker and the guy apparently took it personally.)

I just laughed it off (which probably didn't help), and I didn't feel threatened by it at all (but my coworker didn't, so we went out next station, which looking back was probably a good idea).

To get to the point, I don't think insults from someone (words) can hurt unless one of the two conditions is satisfied:

(1) The words (or circumstances) indicate that the insulting person may escalate from words to actual physical attack

(2) The words may cause the bystanders to stand with the insulting person

In my case, I didn't felt threatened by (1), which was probably a little risky. It seems to me that we consider case (1) hurtful because it's a potential risk and we want to avoid it. The real emotion here is fear of being attacked.

In case of (2), I didn't worry about that either (in fact, there was a girl sitting next to me who was apparently very sympathetic to me laughing it off), because the person that did the name calling had obviously low social status.

But I think the reason we find (2) hurtful is a slightly different one; it's a status problem. If we want to be part of some group, we may be disappointed by that group rejecting us. It's not just a question of pure survival as in case of (1), it's our own emotional projection (of our status) that makes it hurtful.

Another example, I can imagine a girl being more hurt by somebody criticizing (with a sexist insinuation) her at work than somebody low status catcalling her on the street. The latter is much more risky, but the first can hurt lot more because that's where her aspirations are.

I wonder if you agree or not and what you think context of your situation was?

To sum up, I think there are two very different reasons why we consider words "hurtful", and each only happens in specific circumstances, which should be recognized (although they might be subjective). And while I do think people should be protected by law from potential risk in case (1), I am not sure if people should be protected from finding that they have low social status in the group they want to belong, as in (2). If anything should be protected at all then it's the potential to gain social status.

asgard1024··on Software development: do good manners matter?
> Abusive is when that conversation turns into name calling.

I don't think so; it depends on context. If someone calls you names in context of you doing something stupid, then it's not abuse, it's just being abrasive. Abuse would be had he done it without you giving a reason. And I think we should save the word abuse for the latter (and also perhaps for something where is a profit motive).

I mean, every post from Linus where he uses harsh words has some context like that. He just doesn't randomly throws insults to his colleagues. You can read the insults as an abuse or you can read them as a big yellow warning signs - your choice.

> When those complaints let fly to other ears, they should be phrased a little better.

Here the "should" is a cultural choice. It's a universal, safe option. It's like being polite to people you don't know, or being diplomatic in diplomacy.

But in the cultural context of kernel development, you're already part of the in-group. And in that particular in-group, being called names is normal and accepted by the insiders. That it happens on the Internet, for the outsiders to see, doesn't change the fact that the cultural choice was made freely by insiders.

And people who prefer the former to the latter (as per my previous post) probably don't care to much about being called names when they do stupid thing (being abused, as you call it, but they actually don't want to be really abused or tolerate it either) - because with that mentality, it's results or your own improvement that matters, not so much who is polite. I think Linus would be OK if other people called him names when he does something stupid, however it doesn't happen mostly because people respect him and he doesn't do stupid things very often.

asgard1024··on Software development: do good manners matter?
Interesting. I guess it comes down to personal preference. Would you rather work with somebody exceptional but abrasive, as opposed to somebody average but nice? I think many people would choose the former.

I think the reason exceptional people are abrasive is that they are primarily harsh to themselves, and that's the reason of their success. Being harsh to others is merely a side effect.

And there are people like that in every profession, for example in modern magic Dai Vernon (one of the most respected magicians that ever lived), who was also infamous for being very critical to bad magicians.

asgard1024··on New Research Finds That Algorithms Are Better Than Humans at Hiring
OK, so it seems to me that you pretty much agree with my argument, but you don't like my assumption that even if there is subjectivity, there can be a learning algorithm. Is that correct?

I think even for 100% subjective decisions we can construct an algorithm as follows. Take the same inputs that a person (making the decisions, for example to hire) takes as input to the algorithm (well, at least try to take in reasonable number of parameters). As an example outcome, take the subjective decision that would same person (or committee, what you have) make after a certain period of time, say 3 months (when it becomes more obvious whether the original decision was good or bad). Then you can train your algorithm (but then it will, obviously, depend on specific people involved). And I think it can possibly perform better than the person for the reason I outlined.

asgard1024··on New Research Finds That Algorithms Are Better Than Humans at Hiring
This is your human anti-algorithm bias showing. When it is more subjective that doesn't mean that algorithm still cannot do a better job than human. :-) You have just assumed that it can't, because you don't know how to measure it. In other words, it's an argument from ignorance (which is not surprising - AfI is often used to justify unwarranted beliefs).

It's actually quite possible that algorithms learns the actual preferences of some person better than the person himself; for example, due to exponential discounting of future, person may make hiring decision based on immediate impression and discount other warning signals, which is going to be wrong in the long run.

(Downvoters, can you please explain yourself? Maybe we can have an interesting discussion. Thanks.)

asgard1024··on DRM in TIG welders
Yes, you're right, it was the case in Intel 486 SX/DX.

All I am saying here that this is of course a waste of resources, even though I don't know how to prevent this sort of waste in our society.

(IMHO, bigger problem is for example throwing out foods by restaurants and supermarkets, which is also OK by doctrine of economic liberalism, yet wasteful.)

asgard1024··on DRM in TIG welders
> it's morally wrong to demand that people who build things should be expected to share the thing they build

They don't have to share them! If you want to invent something and keep it secret, by all means, be my guest! This only concerns people who specifically build things for others (i.e. already sharing them).

asgard1024··on DRM in TIG welders
That's a good and interesting point. I guess I have less moral problem with it if the item in question is a final product (such as work of art) than a tool, and if the price difference is not large (say up to half of order of magnitude).

But I actually think student discounts are wrong for moral reasons, because they discriminate against non-students, but I do find discounts for young people and older people (in most cases) acceptable.

asgard1024··on DRM in TIG welders
> the guy who wrote the education curriculum ought to be paid

He absolutely should be!

> how are they supposed to get a reasonable amount of money without denying non-payers access to their works

Good question! But I don't think there is a good answer to it that doesn't involve society at large, in one way or another. Why is enforcing DRM in order to protect some monopoly by society at large better than community investment into the technology by society at large?

> the "other ways" that we're trying to steer manufacturers away from are not a clearly delineated set of behaviors

I think that's case with all laws and all human behaviors. That's why we have judges, to make judgements.

> they'll cripple them in hardware

I think they should try that. So far they didn't - that's why they are doing it in software, because they now can.

> two different products with different features at two different prices

Yep, and if that happens, it's bad for economy overall, that's what I argue.

asgard1024··on DRM in TIG welders
Not sure if "principle" is the best word, but I wanted to keep the post short. Better would be to say that it's against assumptions which make free markets at least theoretically efficient.

The other response to you is correct, and on top of that:

When you have discrimination, you're effectively making multiple different "equilibria" on the demand curve (instead of one intersection with supply curve). Once you admit multiple equilibria, all the bets about efficiency (and also fairness) are off.

Alternatively you can look at it as follows: The free market can be characterized by existence of market price, on which the participants converge... If you have discrimination, they won't converge on market price and so you don't really have free market (free as in speech).

> Due to one time expenses, some kinds of goods cannot exist without discriminatory pricing.

I don't think it's true. Linux does exist, for instance.

asgard1024··on DRM in TIG welders
I do find market segmentation to be morally wrong (at least, it's against free market principles, even though I don't agree with those always).

Why shouldn't everyone deserve access to the best tools, and by extension, best things? (Taking the production costs into account.) Best tools save time and make everybody more productive, which should be in everybody's interest.

Imagine you would say something like that in education - that some children do not deserve the best education, simply because they may never use it. How do you know they will not find some use for it?

Yet, when it comes to tools (and stuff in general), it is readily accepted as a principle (that it is OK to intentionally cripple someone else's productivity). Neither the fact that there are business models around market segmentation doesn't make it a good choice.

You will probably now follow with the standard argument about how they need to make profit and recoup their investments and so on. Guess what - the investment was already made, and it can't be undone! And frankly, I am sick of this lazy ass market god which requires investors to get return on profit so they would do something at all. (It's kinda like you're probably not a very good human if you need threat of hell and promise of heaven to make you not bad!) Just like everybody else, an "investor" should get a good salary (for the work done in decision-making) and that's it.

Also, the argument "if they didn't do it this way, they'd do it some other way" is interesting. In this nebulous form, it's often used to justify something morally fishy. Note that you can also use it other way around: Why should there be laws to protect DRM, if people who want to break will find some other way? The correct answer is, of course, the laws and regulations (legal system) are the correct resolution of this argument - we have them to steer people away from "other ways".

asgard1024··on Google Open-Sourcing TensorFlow Shows AI's Future Is Data, Not Code
I think the data can be, and should be, crowdsourced, like Wikipedia or OpenStreetMaps are. However, I have no idea how to do that. How to take two learned neural networks (or whatever) for a specific application (like image recognition) and merge them efficiently? I think it needs to be figured out first.
asgard1024··on The War ISIS Wants
I think you are assuming consciousness (of the group) where can be none.

Shouldn't be in the interest of the majority to make sure that minorities are not marginalized?

asgard1024··on The War ISIS Wants
> It's hard to imagine any effective strategy that doesn't involve killing people

I disagree, one is actually described in the article:

"[For] the youth of the nation are closer to the innate nature [of humans] on account of the rebelliousness within them."

Do you think capitalism/democracy/whatever mix we have in the West does a good job of preventing these people fighting for "Jihad"?

We don't really give young people (say ages 15-25, before males are fully emotionally developed) a chance to "rebel safely". We don't even have a definition of what it could be! I'll just leave it here, there are many options where to go from there, I think.

It actually reminds of "drug education" we had in high school. The guy was a social worker who worked with people on drugs, gave them clean syringes, put them on methadone, etc. His idea basically was, it's perfectly cool if you want to try it, but it's better to understand the risks and wait a little bit, until you grow older. I think it was very sane approach (and very counter-intuitive to people who support war on drugs and "say no" and similar things). Maybe the same should be done with weapons and war, and if someone still wants to try the war, send him as a journalist to war zone.

Recently I had another related weird idea: Someone should write a sci-fi story about a society which puts its youths through a very strict, military like institution. It would then be revealed that the whole purpose of the institution is to make young people rebel against authority, in a safe environment. That would be akin to a successful graduation exam, because the society would believe that those people who do that are going to be the best citizens.

(You can also read my earlier comment on the topic here: https://news.ycombinator.com/item?id=10572797)

asgard1024··on [dead]
We need to do a better job at integrating them (both from social and policing point of view). This is an expense but is less an expense than doing war at foreign country.

Unfortunately, multiculturalism has often been used as an excuse for not doing enough. Many times I have heard police to say (about some atrocity that happened in some subculture) that this is "how they do things in their culture/community". It's unacceptable excuse for not doing the job.

Appeal of radicalism is ultimately a social issue like many others (say, appeal of drugs, appeal of violence), and it should be dealt with as such. People on the right don't like the idea of telling somebody what to do at someone else's expense, but I am afraid that good prevention (access to education, having good job) is the only thing that really works here.

Whether citizens will accept the above is of course up to them, but I am convinced (from empirical evidence) that this is the best way to handle the problem in open society. If, on the other hand, the goal is to remove as much terrorism as possible, then the open society is perhaps no good. If you close off borders, have isolationist foreign policy, and establish a semi-totalitarian regime, you will probably get less terrorism (this was case of Czechoslovakia in the past). But this strategy probably comes with its own set of disadvantages (according to this list https://en.wikipedia.org/wiki/List_of_countries_by_immigrant..., the only country that seems to be worth immigrating into with low amount of immigrants is Japan).

asgard1024··on The Great Statistical Schism
I don't know about you, but I found Bayesian approach much more intuitive than frequentist one. The only reason to use frequentist approach is to have a procedure that you can do with pencil and paper on real problems (and unlike Bayesian methods only under some often weird assumptions). But with computers and statistical packages, that need is going away.
asgard1024··on [dead]
The solution is very simple - support the immigrants, and instead of waging a war outside the country, focus on police/social work inside the country.

I was born in a country that (somewhat) supported terrorism - Czechoslovakia. Eventually we switched sides (and later also somewhat supported terrorism again). Why did we switch sides? Because our emigrants received support from the West (while we were receiving very little terrorism). The West didn't engage the Warsaw pact directly (or semi-directly through terrorism), but through cultural war. That's why (at least I think) the West was successful in the Eastern Europe, but not in the Latin America, or in the Middle East.

In my opinion, immigrants are the key to successful foreign policy. The reason they are coming is because you're doing something better than their home leaders. And they will tell their relatives in their home country that, very passionately.

The terrorism is short-term strategy of states or other groups that are massively losing the cultural war (kinda like firing employees to boost profits). The long-term strategy is outlined above (and as every long-term strategy it entails element of getting better). So don't worry about the culture; if your opponent resorts to terrorism, your culture has already won!

asgard1024··on Turing Tarpit
I don't think FPLs by themselves are (Turing) tar pits. On the other hand, there are lambda-calculus tar pits - for example SKI combinators. This shows that even a language that has referential transparency and lazy evaluation can be a tar pit; so these qualities by themselves are not a way to avoid complexity.

I hope one day we will be able to mathematically formulate what is "unnecessary complexity".. but so far, no idea.

asgard1024··on The Most Intolerant Wins: The Dominance of the Stubborn Minority [pdf]
So, the "tyranny of the majority" is an illusion of those who are highly intolerant?
asgard1024··on English is not normal
I think you could find the similar problems with many languages (for example, my native Czech has a unique sound that's quite difficult to learn, and all the different declensions and conjugations will make your head spin).

But I also take the issue with: "Spelling is a matter of writing, of course, whereas language is fundamentally about speaking." I think with English it's not the case, English is like modern Latin, more people write/read in English than those who speak it.

asgard1024··on The Psychology and Neuroscience of Curiosity [pdf]
I assume everybody here is familiar with the feeling when you suddenly understand something; it's as if pieces of a puzzle suddenly click together and create the whole picture. So, my question, what is this feeling? How does the brain recognize that it should have this feeling? (Because we can feel it in so many abstract things...) Maybe curiosity then can be just explained as a craving for this feeling; but actual cognitive basis behind this feeling, at least to me, seems lot more interesting.
asgard1024··on How to minimize procrastination
How to improve it? Make it into one big HTML page so I can save it and read it without having to click like crazy! :-)
asgard1024··on The Case Against the Universal Basic Income
Facepalm. It's not an explicit contract in the sense of them coming to one table and agree with it, it's implicit in them having the common interest. Steve Keen did models where independent agents can become oligopolists even without any communication whatsoever, just by virtue of seeking maximal profit. There are many similar dynamical systems.
asgard1024··on Corporations and OSS Do Not Mix
> How come the choice to keep my sauce secret is less than any other choice?

Because this "choice" restricts freedom of other people. You don't just want it to be a secret (then all you have to do is not to tell anyone), you demand that other people to respect and enforce it to be a secret (restricting other people's choices by restricting information).

If I give you three choices A/B/C, and don't tell you which is which, do you have a choice or not? I would argue that you don't. You need to understand what's behind each choice to be able to "have" a choice.

asgard1024··on The Case Against the Universal Basic Income
Well, here's a model I propose. So-called "market equilibrium" is actually a steady state of various powers at oligopoly-oligopsony price point (therefore, there are non-zero profits and above-subsistence wages, unlike in the ideal free market, which predicts zero profits and subsistence wages). This implies some sort of "social contract" about profit sharing which can be enforced by strikes of either party, because they essentially need each other.

So capitalists to pay less means breaking that contract (with consequences, that's why you cannot easily do it). However synchronized breaches of the contract may take some time before this settles into another steady state, because of information asymmetry - the information about contract breach takes time to propagate to all interested parties.

← PreviousPage 2 of 22Next →