HNHacker News
TopNewBestAskShowJobs

asgard1024

1,234 karma · joined July 27, 2013

submissionscomments
asgard1024··on Several types of types in programming languages
> The arithmetic operators in x86/x86-64 are certainly polymorphic

I disagree - at least in machine code, the instruction code determines the type of the operands. If they were to be polymorphic, the type of operands would determine the specific instructions that are to be used (and so you could for example reuse the same code for different word lengths). Maybe modern assemblers can do that (and have a generic instruction name for addition, for example), it's been 20 years since I programmed in x86, I only recently used mainframe assembler where it is as I describe.

Polymorphism is all about names. You want the same name (and by extension, the same code) to refer to potentially different operations on data.

> I think the distinction is that #3b-types

I am still not sure how it is different from #3a in your definition. When I say 16-bit signed integer, I can also mean this as an encoding of abstract "integer number". The whole point of declaring type in sense of #3 is to be specific about encoding. In mathematics, you (typically) don't care about that; but you sometimes care about use case #2, which is typically dealt by mapping to more abstract concepts with some morphism.

asgard1024··on Show HN: Arguman – Argument Analysis Platform
It's interesting, I thought about it.. It seems to me that agreement can break when you aren't forced to reveal your model of the world. (For example, you may not even agree to use Bayesian statistics or logic.)

I think it could be useful if we forced the opponent in the debate not just to present argument, but also to reveal their model of the world. That way, they couldn't just poke holes into the argument from an inconsistent position.

asgard1024··on Show HN: Arguman – Argument Analysis Platform
> There is this misconception today that you can argue everything, including the laws of nature.

I just wrote a comment about this, responding to global warming debate. Perhaps what this platform needs to address that is an ability to separate facts (that is, sources) and opinions (that is, synthesis or analysis of the sources).

asgard1024··on Show HN: Arguman – Argument Analysis Platform
I would say, based on the number of supporters of the existing arguments, it is not really a good example of weakness..

But yeah, the debate here lacks some good arguments. For example, one of the main reasons why we know global warming is not caused by the sun (aside from direct observation) is the fact that nights/winters/poles are getting warmer than days/summers/tropics, and that stratosphere is cooling.

Perhaps the weakness of the platform is that it doesn't distinguish between rational (thoughts) and empirical (facts) arguments?

asgard1024··on Show HN: Arguman – Argument Analysis Platform
I think you're assuming bad faith here. Of course some people who don't want to be convinced. But I think there are many people who engage in debates and are open to be convinced by counterarguments. Or they just joined the topic and just have naive questions. After all, it's in our interest to understand reality.
asgard1024··on Several types of types in programming languages
While you are right that standard arithmetic operators are typically polymorphic, but that doesn't mean there is another use case. Another example I had in my head was little and big endian integers, or binary and decimal integers. A language where arithmetic operators are not polymorphic is for example assembler.

What I would say perhaps is that #2 and #3 are in a way complementary. In 2, we describe a common operation with a more abstract type, while in 3, we describe the specific representation with a more concrete type. So both #2 and #3 address issues of naming things on different levels of abstraction, which aren't directly related to the program specification or its correctness (use #1).

asgard1024··on Several types of types in programming languages
I have realized for quite some time now that there are at least three different uses of types in programming languages (with different goals), namely:

1. Specification of constraints on data - the function arguments and return values. This corresponds to usage of types in logic. The goal here is the correctness of the program (and ease of reasoning about it).

2. A way to define polymorphic functions, i.e. functions that do the same or similar operations with different kinds of data. Here we classify data as of some type so that we can define two functions with the same name, but different types, where the correct one is selected either during compilation or run time based on the parameter type. The goal is conciseness, to avoid explicit conditional statements everywhere or other ways of code duplication.

3. Finally, to specify way how the computer is to store data, or generally how to model abstract concepts (such as integers) within the computer. This becomes less relevant with time (as languages increase in abstraction), but is important use historically. For example, integers that can be modeled with many different types in C. The goal here is to have type as a reference to concrete and efficient representation of the abstract concept.

I think this is pretty much what the paper is suggesting, although IMHO not so clearly.

asgard1024··on Great 15-Year Project to Decipher Genes Stirs Opposition (1990)
I thought about your comments a bit and I think what's actually interesting in projects like HG or BB (or "Man on the Moon") is perhaps not scale as much as the fact that they are open ended. We don't know how the solution will look like. And that means that the solution may look really difficult or complicated today, but it's also possible that it won't be that difficult in the end.

So what I mean, I think, is not ambition in terms of resources, but rather ingenuity.

asgard1024··on Global coalition tells Facebook to kill its Real Names policy
> Facebook's counterargument is money. Which argument do you think they support and will listen to?

The heavy hand of law! I don't understand why people are so worried about introducing regulation. Asking to argue against money is like asking to argue against gun. You can't have a meaningful argument with such an entity, because convincing on arguments assumes the other party is not a psychopath.

That aside, there are many options. I think "having a choice" is a good argument. Or they could allow to actually use pseudonym which you could link your real name or not (so the FB would know the connection but other people wouldn't).

asgard1024··on Theranos Has Struggled with Blood Tests
> This is the same kind of bullshit I see in academia, where a new technology is promised to replace an old technology that works fine, but now they have a 9 billion dollar valuation!

I am not sure it is bullshit, maybe it's just competition?

Over time, companies within an industry become complacent, cut costs, and decrease quality of service. Somebody (a young idealist perhaps?) comes along and says, hey, we can do better! And because she believes in free markets, it must be that old technology (and indeed newer technology may have marginal benefit) is the culprit, not human greed or laziness or other deadly sin. So she goes, touts, implements and there is some success. However, then the giants will wake up to the threat. They will magically find the way to be more effective, as they always could have been, and they may even grudgingly implement some parts of new technology. And so the margin for the disruptor quickly disappears, and things will return back to the normal state of affairs, where companies can lazily collect fat paychecks for doing the necessary minimum. It's actually win-win for everybody, customers get a small technology/process upgrade, and she is now in the club!

The only minor problem is that this economic model is far from being optimal, but no one really worries about that except academic economists, since no one really knows how to attain the optimal model in the human society anyway.

asgard1024··on It's Too Late to Save Over 400 U.S. Cities from Rising Seas, Scientists Say
> satellite data shows no meaningful warming for almost twenty years

I would like to point out that last year was a global temperature record and this year will probably be a record too.

In any case, temperature (and especially surface one) can be deceiving. Ocean heat content (which is in a more direct relation to sea level rise) actually increases quite unabated: https://en.wikipedia.org/wiki/Ocean_heat_content

As for the sunshades, well, good luck with that: https://en.wikipedia.org/wiki/Space_sunshade

It's simply a lot cheaper to not burn any more coal or oil.

asgard1024··on Stephen Hawking Says We Should Really Be Scared of Capitalism, Not Robots
> We are Not in a capitalist society.

You can't be more wrong. The term capitalism was pretty much coined by Marx to describe the system he lived in (where production capital is mostly privately owned and labor is a commodity). The definition still holds true today. Maybe you can call today corporatism on top of that, but then the late 19th century was ruled by corporations more than today...

I frankly don't understand this line of reasoning. Why don't you just accept the name capitalism for what it really is, why the need to "own" the term and twist its original meaning? We have plenty of perfectly good names for system you probably describe, such as libertarianism or anarchocapitalism or minarchism or propertarianism... It seems that you're just unwilling to accept that free markets simply tend to being not free as capital accumulates.

asgard1024··on Great 15-Year Project to Decipher Genes Stirs Opposition (1990)
But those are all engineering projects.. In a way, it's a lot easier to parallelize work on scientific project than engineering project. Competition from the industry actually helped Human Genome Project.

Anyway, my bet is that we don't actually need a very big supercomputer to emulate what brain does. We just don't yet know why it is so efficient, we don't know the trick(s). And I think, there is a possibility, as Human Brain Project will evolve, we will get better at figuring out what really needs to be simulated and what is just a fluff. And this will make possible to scale it up even on current hardware. Anyway, at least that's why I think it should be supported.

asgard1024··on Great 15-Year Project to Decipher Genes Stirs Opposition (1990)
I like ambitious projects. It's incredible how many of them actually succeed.

This reminds me of https://en.wikipedia.org/wiki/Human_Brain_Project as there is also lot of skepticism if it's doable. But maybe we just underestimate human ingenuity.

asgard1024··on Moral causes of the collapse of the Soviet Union (2011)
What has annexing to do with it? USSR didn't annex Czechoslovakia (the country where I was born) or Hungary; they just supported anti-democratic government that was more in line with their interests. You can downvote as much as you want, but the U.S. did the same in many countries of the Latin America, often with more violence. Here's a good reference: http://williamblum.org/books/killing-hope/

BTW, this is also spot on: https://www.youtube.com/watch?v=H6Vcct_g_z4 (and this insulation of the Eastern Europe is actually nicely shown now on the stance to the refugee crisis)

asgard1024··on Python wats
Maybe someone can explain better, but I don't think it's a coincidence.. In category theory, there is a general notion of "exponential object". This works like normal exponentiation in various categories of numbers, and like modus ponens (and also reversed - given exponent and power, you can deduce the base) in various categories of logic.
asgard1024··on Moral causes of the collapse of the Soviet Union (2011)
Or pacifications that were undertaken, with U.S. government support, in Central and South America.

I am not defending Russian empire either. Putin actually seems to be bend to follow the U.S. model in Chechnya, Ukraine, Syria..

asgard1024··on Moral causes of the collapse of the Soviet Union (2011)
My guess is that Ronald Reagan caused the collapse by spending billions on Star Wars program.
asgard1024··on Shinichi Mochizuki and the impenetrable proof
I agree. I am just reading through Gowers paper on automatic theorem proving. I think once the machines are capable of automatic definitions (according to some definition of beautiful which limits to what humans consider beautiful, for example one based on entropy), all the bets are off. Humans will then struggle to understand the concepts involved with their limited brains.
asgard1024··on Shinichi Mochizuki and the impenetrable proof
There is a quote from Mochizuki himself in the article: [my proof] "constitutes a sort of faithful miniature model of the status of pure mathematics in human society"
asgard1024··on Shinichi Mochizuki and the impenetrable proof
> the consensus among the mathematical community is that Mochizuki probably doesn't have a proof

If that's the consensus (and I don't think it is, it's probably what mathematicians under influence of cognitive dissonance think the consensus is), then it is sadly not based on empirical evidence, which is that 4 other people studied the proof and certified it.

asgard1024··on JAI Primer: A Programming Language for Games
I like that idea too, but what I like even more is the bold originality in it. I think hackers who make these new programming languages should try to be original, and experiment with weird things that actually help them solve whatever problems they feel they have during development, because language is pretty much a programmer's user interface.

And also this particular feature is close to my heart, because what I would like to see as a feature(s) in programming languages that the programmer would only supply the data schema, and compiler selects the actual data structure based on run time performance characteristics of the program.

asgard1024··on Europe's highest court has rejected the 'safe harbor' agreement
For example: http://www.theguardian.com/world/2015/oct/06/us-digital-data...
asgard1024··on Why Experts Reject Creativity (2014)
In my view, there are two sides of the coin.

Experts (people who have the experience) should always explain, we tried this and this and that is why it have failed.

On the other hand, creative people should be able to justify why the situation or their solution is now different compared to what was tried before.

The rejection seems to happen if this kind of communication doesn't happen. And it cuts both ways - just like there are experts who reject creativity there are creative people who reject expertise. (Typically this is a generational conflict.)

asgard1024··on Why Free Markets Make Fools of Us
It would be illegal to hide it. Everyone involved in hiding could be prosecuted, just like in any other criminal conspiracy. We try to do today pretty much the same thing with the government. The fact that it is imperfect doesn't mean that it's a bad idea.
asgard1024··on Why Free Markets Make Fools of Us
> Inequality is getting smaller in global and it is an empirical fact.

I acknowledge that inequality is getting smaller between averages of different countries, but is it truly getting smaller between individuals (that's what actually matters)? I don't think we can ascertain that, because I think Piketty would have included the historical data if he had them for developing countries.

> Anyhow, his theory has serious flaws

If I understand the critiquing author's argument correctly - is he saying that facts stated in the Piketty's book contradict his own toy model? Maybe then his model is flawed for whatever reason, but that's not a flaw of Piketty's book.

asgard1024··on Why Free Markets Make Fools of Us
In addition to what TeMPOral said, we could ask for more balance in access to information. For example, why couldn't everything that the producer knows about the product (results of internal testing, how it was produced, what were the costs involved) be available to the customer? It seems only a fair deal to me. And it could be done in manner of not "forcing" anyone to do that - for example, only companies that do that would be eligible for government subsidies or contracts.

(Ironically, the optimal price by free markets is only proven when access to information is perfect and actors are rational. But then you don't really need the price to make the decision, do you? You can already calculate everything in your head.)

But in general, there is problem with complexity of things getting out of hand. It's impossible to ask the customers to rationally evaluate everything, experts need to do that anyway.

And I think, similar to what Chomsky said in "Responsibility of Intellectuals", I believe there should be a moral code for engineers to provide good solutions. Today, technical experts to often wash off their hands by thinking that the customer knows the best (usually in indirect way - by not pushing enough against businessmen, by believing too much in individualism).

asgard1024··on Surprisingly Turing-Complete
My other favorites are Spacechem (https://www.youtube.com/watch?v=EzzLzUCRmBw) and Terraria.
asgard1024··on Boredom is not a problem to be solved, it's the privilege of a free mind
I think I agree that "boring" shouldn't be used as an excuse to avoid work required to understand the problem. Only when you understand you can determine how it can be automated.

I don't think that I agree with the idea that predictable code has to be boring. And vice versa - needless complexity may be boring too.

Anyway, I didn't mean it in derogatory way, just like the original article. What I am saying is that there is probably some smart idea, how to automate things, and you just need to look for it. Where automate really means make computer do it.

In other professions, it's more complicated. Say building a house may be considered boring, once it is designed, but it's hard to automate - some humans still have to do the actual bricklaying and plumbing and so on. Programming is unique profession in this respect (at least until we have very flexible robots).

asgard1024··on Boredom is not a problem to be solved, it's the privilege of a free mind
It kind of reminds me of my philosophy regarding programming - that it can never be boring. If it's boring, then something is done wrong. You can always automate the boring parts, and thinking about automation is less boring.
← PreviousPage 6 of 22Next →