HNHacker News
TopNewBestAskShowJobs

ahf8Aithaex7Nai

364 karma · joined July 28, 2022

submissionscomments
ahf8Aithaex7Nai··on Microsoft blocks Israel’s use of its tech in mass surveillance of Palestinians
What kind of pressure campaign are we talking about here? And what kind of reward? Are we now buying Microsoft products because Microsoft's cloud storage is no longer allowed to be used in genocide, only Office and email? That's absurd. What this is about is public opinion, and that takes years and decades to change. And that's a good thing. If you change your tune after every Microsoft PR release, it's not you who's holding the carrot and the stick, it's Microsoft.
ahf8Aithaex7Nai··on Microsoft blocks Israel’s use of its tech in mass surveillance of Palestinians
Search for "Embrace, Extend, Extinguish".
ahf8Aithaex7Nai··on Microsoft blocks Israel’s use of its tech in mass surveillance of Palestinians
That's a very dishonest framing. The article contains some not particularly subtle relativizations in various places, e.g., “ability to use SOME of its technology,” which make it clear that Microsoft is not reacting decisively here in any way, but is trying to muddle through somehow and make a few publicly visible concessions.

Furthermore, why do you think the reactions are knee-jerk? That implies a rather biased attitude on your part.

ahf8Aithaex7Nai··on Terence Tao: The role of small organizations in society has shrunk significantly
I have to say, I like that much better than the Unabomber Manifesto.
ahf8Aithaex7Nai··on Big Tech Killed the Golden Age of Programming
How is this framing unfalsifiable? It is up to you to demonstrate that. Otherwise, I question whether you even understand what falsifiability means and why it is relevant.
ahf8Aithaex7Nai··on Never write your own date parsing library
> and i don't want to pay my employees to learn, i want to pay them to produce output i can sell.

This can be a bad local optimum. It probably depends on what exactly your business does, but it can make sense to pay an employee to acquire knowledge and skills that are needed in the business. You can't buy this off the shelf in all circumstances. Of course, it also has to make economic sense and be viable for the company. Unfortunately, I often see employees doing things quite badly that they don't really understand because they are not given the opportunity to learn properly. I can't imagine that this burns less money in the medium and long term than giving paid employees adequate space to learn.

ahf8Aithaex7Nai··on Why Is Fertility So Low in High Income Countries? (NBER)
I am 40 and live in Germany. In my 20s I was too poor to start a family. Now I live with a woman who has no desire to go through pregnancy and become a mother. There are personal reasons for this, and I do understand them. I like children and would like to be a father. But I work full-time, as does my partner. I'm always busy after work: Riding or wrenching on my motorcycle, cycling, personal programming projects, gardening, etc. Yesterday I spent the afternoon cleaning a carburetor and pressing bearings into wheels. I spend the weekends doing sports or visiting friends. Becoming a father would be like a second full-time job.

I saw a homeless man lying on a patch of grass in a dirty sleeping bag on my way to work yesterday. The idea of bringing a child into the world and exposing it to the risk of ending up in a situation like that just makes me sad. We are currently buying a house. If I could have afforded this ten or fifteen years ago, I might have kids now. Looking back, I'd say I've had enough to do with growing up and providing for myself financially. I simply didn't have the capacity to start a family.

A friend of mine has two children. She barely has enough money and is trying to finish her university studies. Another friend is a chief surgeon and earns so well that his children are not a big financial factor for him. He is divorced from the children's mother and has another partner. Another friend is a pastor and has two children. I guess, for him it was always a matter of course to have children. He is now also divorced, so he no longer lives in the picture-book family world that he probably once dreamed of.

The other people around me are grown-up children like me, who for various reasons did not become parents. One friend of mine is a gay man. His sister is a lesbian. Both much to the annoyance of their parents, who would like to be grandparents. A couple at my office in their thirties mainly play computer games after work and have pets instead of children. One of my best friends is a woman who lives with a trans man. They are currently planning to become parents via in-vitro fertilization, which will cost a total of ~20,000 euros. The world is strange and apparently no longer properly calibrated for having children.

I am glad that there is no more social pressure pushing people into parenthood. But that has to be compensated for somehow and I don't see any socio-political willingness to tackle this. Raising children is a service to society! We cannot expect children to grow like grass in an unattended meadow. If society is not committed to guarantee healthy soil and to water the gras properly, then nothing will grow.

ahf8Aithaex7Nai··on The Problem with AI Welfare
> It's not even trying to be a search engine.

I use search engines to get answers to questions and I use ChatGPT to get answers to questions. Except I can just ask ChatGPT like I would ask a person, whereas the search engine is more like a keyword search in a library catalog.

> Before either of those, we need to understand the question.

I don't think you can approach consciousness in this way. It's a bit like trying to derive Modus Ponens from propositional logic. I'm not sure if this comparison fits well, but I'm very skeptical that there is even a question to be explored that can be answered positively. Perhaps consciousness ultimately defies definition because it operates as a universal negation. It points to everything else and says: “I am different from that!”

There are other terms that defy definition rather stubbornly: Love, art, intelligence, nature, happiness, beauty, ... So it's not that unusual. My skepticism towards conscious AI comes from the fact that I don't want to take the lack of definition as an opportunity to hastily interpret the undefined into all kinds of phenomena, even if it seems tempting. In the end, it is probably an illusion.

ahf8Aithaex7Nai··on The Problem with AI Welfare
We're doing the homunculus again. Whether you wank into a test tube and add a bit of soil and grass, or sew together parts of a corpse and connect them to electricity: so far, every prospect of fulfilling this dream has turned out to be a delusion. Why should it be any different with the latest manifestation, this time in computational form?

The AGI drivel from people like Sam Altman is all about getting more VC money to push the scam a little further. ChatGPT is nothing more than a better Google. I'm happy to be proven wrong, but so far I see absolutely no potential for consciousness here. Perhaps we should first clarify whether dolphins and elephants are equipped with it before we do ChatGPT the honor.

ahf8Aithaex7Nai··on Musk-Trump dispute includes threats to SpaceX contracts
> I see it as the gateway to people realizing that the left/right 1D line, and even the political compass, are ridiculous.

When this theory is used in discourse, it is always a matter of suggesting that the left fringe and the right fringe are equally to be rejected. Stalin and Hitler, communism and fascism, class struggle and racial theory, Das Kapital and Hitler's Mein Kampf, dictatorship of the proletariat and Nazi dictatorship: the righteous liberal democrat must keep his distance from both extremes in equal measure. The golden path lies in the balanced middle. I am tired of criticizing this nonsense. It is an ideological lie.

The trident means that there is just as much ideology, corruption, political dysfunctionality and all kinds of drivers of suffering, misery and resentment in the supposed political center. But it is very well hidden because it wears a kind of ideological cloak: the horseshoe theory.

So to respond to your sentence I quoted above: the horseshoe theory IS the political compass that should be ridiculed.

ahf8Aithaex7Nai··on Musk-Trump dispute includes threats to SpaceX contracts
It should be a trident theory.
ahf8Aithaex7Nai··on Musk-Trump dispute includes threats to SpaceX contracts
That is true. But the dubiousness of the whole thing starts a long way before that. Why is Musk there at all? Because we are sliding into neo-feudalistic conditions in which a court of the richest people steer the affairs of state and shape them in their own favor. And we've known what Trump is like all along. We didn't have to deduce that from the fact that he is now quarrelling with Musk.
ahf8Aithaex7Nai··on Deregulated energy markets accelerate solar adoption
Companies cut costs to increase their profits, not to pass the cost savings on to customers. If there is price pressure, they may pass on the savings. But at the latest when the market is sufficiently consolidated, they will prefer to keep these savings themselves. And even if this were not the case, there would still be no direct implication of affordability.
ahf8Aithaex7Nai··on Deregulated energy markets accelerate solar adoption
How do we keep "the incentives [...] properly aligned" when "the government can no longer control the market due to being 'too big too fail' and because it gave all control away"? And why can't I find anything about this in your generic pro-market answer?
ahf8Aithaex7Nai··on Repeat offenders may be responsible for many shark attacks
Yes, I meant the dog's snout. I'm not a native speaker. Whether something is a crime or not is of pretty little interest to me when it comes to an aggressive dog. Last year I had to kick a dog hard and chase it away while jogging in the park. Against whom should charges be brought? I didn't leave my personal details.

Pit bulls are an exception. Most dogs are not pit bulls.

By the way, my life doesn't revolve around attacking dogs. That only happens very rarely here.

ahf8Aithaex7Nai··on Repeat offenders may be responsible for many shark attacks
My tried and tested remedy for disrespectful dogs is a hearty slap on the muzzle from above with an open hand. They don't expect it and it seems to hurt them quite a lot. I even put a rather dominant Ovcharka female in her place with this. (At the time, I didn't know how hard they can bite.)

Running away is not a good idea. Better run towards the dog. Then it will probably turn around, unless it is really sure of itself. In my experience, being convincingly dominant towards dogs is enough to fend them off. Grab something as a weapon if it helps you to be confident. If the dog bites, it will probably only bite very briefly and then let go again. Holding and shaking people like prey is unlikely if it hasn't been conditioned. I don't know what you can do in this case. Try as best you can to injure the animal. You are also dangerous and should let the dog know.

ahf8Aithaex7Nai··on The origin of the cargo cult metaphor
I'm German and I wish you wouldn't take offense at this “yo yo” word on our behalf. It's not the N-word. There is no wound or trauma here. It's just a word with a history. In the East, we are called Niemcy, Německo, Nimska, etc.: all words that derive from an old attribution that means something like “mute” or “unable to speak”. Is that relevant today? No, it is not! I understand that young people need a cause to stand up and fight for, but language policing is really garbage. Be a socialist instead. Or do something against poverty, homelessness, wars, femicide, racism, ... Take your pick. But please understand that language policing does not change anyone's material living conditions, but is a purely mastorbatory matter. It is the most low-threshold, apolitical and inconsequential way of making yourself feel progressive and standing up for something.
ahf8Aithaex7Nai··on What's functional programming all about? (2017)
This will be a bit more detailed. I apologize in advance.

> So being a "pure language" is more a case of what sort of style is encouraged rather than what sort of style is possible?

The crucial point is that the (potentially) impure code is clearly and explicitly differentiated from pure code (IO code vs. non-IO code. Haskell uses the type system to draw this distinction.

>> (and also not referentially transparent)

> Could you explain what you mean by that? (The definition of referential transparency that I know doesn't apply to functions but to languages.)

Functions are expressions in Haskell (and in Python). Applications of functions to their arguments are also expressions. I use "procedure" as a synonym for "function".

As I understand it, referential transparency is a property of expressions. But if we understand a language as the total set of expressions that result from its alphabet and its production rules, then we can say that a language is referentially transparent if and only if all its expressions are referentially transparent. Consequently, the views are compatible.

An expression is referentially transparent if it can be replaced by its value (what the expression evaluates to) without changing the behavior of the program.

This implies that if side effects are emitted during the evaluation of an expression, then the expression cannot be be referentially transparent, because these side effects would disappear if the expression is simply replaced by its value in the program. If a dynamic (i.e. changeable) context is also processed during the evaluation of an expression, then the expression cannot be guaranteed to be referentially transparent over time either.

A function (i.e. procedure) is pure if it (1.) always returns the same return value for the same arguments and (2.) does not produce any side effects. Note that the definition is also compatible with functions that do not process arguments. The requirement is the same: the same return value must always be returned.

This implies that a function is pure if the relation between its arguments (even if they are 0 arguments) and its return value is like that of a mathematical function. I already wrote that above. It simply boils down to the fact that you can execute the function as many times as you want: it will always return the same value (for the same arguments). This is only guaranteed if the function does not operate on a dynamic context in addition to its arguments (including system time, values from a random generator, etc.). Pure functions are just stupid simple things that deterministically transform their arguments into some value. I want these things to make up as much of my code as possible, because they combine like Lego and are pretty foolproof to handle. The value proposition of purely functional programming languages is that they semantically distinguish these pure functions from impure functions. In Haskell, I only have to look at the type of a function. If it is something like `t1 -> t2 -> ... -> IO tn`, then the function is potentially impure because it evaluates to a value that is wrapped in the IO monad, so to speak. For any other function in Haskell, I know for sure that it is pure. So I can write as much pure code as possible and then add a bit of IO code to interface the pure code with the execution context, or with other subsystems of the program where it is unavoidable to work with shared state. I can also do all that in Python. But in Haskell, the language semantics ensure that my code intended to be pure is really pure, and recognizably different from impure code.

To answer your question: purity implies referential transparency. I can understand that from the definitions. Conversely, the implication does not apply. I don't understand exactly why, but so far it hasn't been a priority for me to understand this.

> is the former impure and the latter pure?

Correct. You can recognize this by the data types:

f :: IO Integer

g :: GHC.ST.ST s Integer

You use do notation in both cases, but that has nothing to do with it. You can write not only IO code with the do notation, but all kinds of other code.

foo :: String

foo = do

    s <- "hello"  

    pure s
The do notation is only syntax to avoid the bind operator. Otherwise your functions would look like this:

f :: IO Integer

f =

    newIORef 0 >>= \ v ->  

    modifyIORef v (+1) >>  

    readIORef v

g :: GHC.ST.ST s Integer

g =

    newSTRef 0 >>= \ v ->  

    modifySTRef v (+1) >>  

    readSTRef v
> ...

> Do you mean because of the type?

Exactly. I can see from the data type that f1 is pure and f2 is impure.

> what makes the conclusions invalid for Python.

Consider this code:

def add(a: int, b: int) -> int:

    print("hello")  

    return a + b;
The function is impure because of the print. Without the print, it would be pure. But the type annotation would be exactly the same. The example is a bit silly, because the type annotations are not taken into account in Python anyway (unless you use typeguard)

In Haskell you cannot simply print something in a procedure of type `Int -> Int -> Int`. The type checker would reject it. If you want to do that, you have to type it as `Int -> Int -> IO Int`. You can then no longer simply use it as if it were typed as `Int -> Int -> Int`. It is then simply a completely different procedure: an impure one.

> does a pure language have to be [statically] typed?

Very good question! I don't know. I don't think it's formally a requirement, but I only know languages that handle it via the type system (IO, algebraic effect handlers, TEA).

> But so far I have never discovered a benefit of programming "purely" in Haskell that is not ultimately a consequence of what I call "referential transparency" above. Do you know one?

I think you're right about that. Purity and referential transparency somehow seem to be almost the same thing but not 100% congruent. I have a gap in my understanding at this point.

https://stackoverflow.com/questions/4865616/purity-vs-refere...

This seems to suggest that I won't be able to close this gap any time soon. In the end, it probably doesn't matter. I assume we both mean the same thing.

ahf8Aithaex7Nai··on What's functional programming all about? (2017)
main is never pure. Your `procedure` is also not pure (and also not referentially transparent). You can write impure code in Haskell, which your example demonstrates very well. But then it is necessarily IO code. Non-IO code, on the other hand, is always pure (and referentially transparent).

> but I don't see that that changes anything

It changes everything, but I can't explain it any better than I did above.

> So what is it that makes Haskell a pure functional language and Python not?

If you give me a Haskell procedure `f1 :: Int -> Int` without showing me the content, I still know that it is referentially transparent and pure. If f1 evaluates x to y once, I know that it ALWAYS evaluates x to y. If a main program in which f1 is used generates a screen output, for example, I can safely exclude f1 as the source of this side effect. If you give me a function `f2 :: Int -> IO Int` instead, I can't draw all these conclusions. In Python, these conclusions would be invalid from the start.

Now you can say, “So what? Who cares?” But it helps me enormously when designing and structuring programs, understanding programs, localizing program behavior, etc. If you don't see any added value in this distinction (ensured by the compiler), we don't have to argue about it. But I simply cannot agree with you that this does not represent a conceptual and formally justified difference between Haskell and Python.

Of course you can program purely functionally in Python. Just as you can program in a dynamically typed language as if you were dealing with static data types. Or in Java without throwing exceptions and null references around everywhere. Or in C without segmentation faults.

These are not normative or moral comparisons, but other examples of the fact that you can of course program in such a way that the code has certain properties, even if the compiler does not secure these properties. The question is whether you want that.

ahf8Aithaex7Nai··on What's functional programming all about? (2017)
> Functional Programming” doesn't have a precise definition at all

It may be that different people mean different things when they talk about FP. I come from the Haskell corner and from my point of view that's a completely insane claim, at least when it comes to pure FP.

[ ] Are you writing a procedure that just processes its arguments into a return value? [ ] Does the procedure also operate on a non-static context? [ ] Does the procedure generate additional side effects?

If you answer yes|no|no, you are programming purely functionally.

The formal litmus test is the question of whether your procedure actually fulfills the definition of a mathematical function with regard to the relationship between the arguments and the return value. If it also does not generate any side effects, it is a purely functional procedure!

Then you can apply the principles of mathematical composition of functions to the construction of programs. Purely functional languages force you to program this way by default and to use special constructs for everything that has to do with side effects: IO monad, algebraic effects, The Elm Architecture.

How are you supposed to program like this? This is where (in addition to the concepts mentioned above) the higher-order functions that everyone knows come into play: map, fold, filter, flatMap, ... If you only know these and their use in impure languages, as if this were nothing formally thought through, but just a programming style for hipsters, then I can understand how the impression arises that there are no precise definitions here.

In practice, the concepts are often very distorted or not understood at all. For many programmers, OOP mainly seems to mean that you get the drop-down list with completions in Rider when you press “.”.

ahf8Aithaex7Nai··on Ask HN: What resources do you recommend for learning Haskell?
My biggest difficulty in learning Haskell was to distinguish the really useful from the useless. There is a lot of “academic nonsense” in Haskell (both in the language and in the code people have written) and a lot that is just broken and abandoned or unnecessarily complicated. Unfortunately, it takes a lot of time to separate the wheat from the chaff. Underneath the 50 or so language extensions, the completely outdated (and in my opinion broken) Prelude and the super frustrating and unpolished tooling and cursed lazyness hides a very beautiful and powerful, simple, productive, purely functional programming language.

To summarize, you could say that Haskell is not really made of one piece, but is something like a 34 year old, very messy academic playground.

So it might be helpful to switch to a purely functional alternative, Purescript/Elm/Gren for practical programming, or Idris/Agda to explore the more academic side.

ahf8Aithaex7Nai··on Julian Assange has reached a plea deal with the U.S., allowing him to go free
Personally, the USA has done nothing to me. I am in Germany and live a good life. The USA is simply so violent in terms of foreign policy that there is no comparison: Vietnam, Grenada, Panama, Iraq, Kosovo, Afghanistan, Iraq again. Assassinations of foreign heads of government, enemies of the state symbolically thrown into the sea from a helicopter. And all this with an unbelievably self-righteous conviction that they themselves are "the good guys". This strange view that the world is some kind of wilderness that needs to be civilized by a strong hand is completely baffling to me. Oh yes, one personal thing comes to mind: I have family in Cuba who have suffered massively under the US trade embargo for 65 years. "Communism evil!" Meanwhile, in the US, there are cities with 40,000 or 50,000 or 60,000 homeless people and people going bankrupt because of medical bills. Makes me wonder which side of that distinction lacks civilization.

I realize that other countries act similarly in terms of foreign policy when they can. Germany hasn't exactly covered itself in glory either. I'm not just referring to the Nazi era. But I am not at all as pessimistic about the multipolar future that probably lies ahead of us as some others are.

ahf8Aithaex7Nai··on Julian Assange has reached a plea deal with the U.S., allowing him to go free
I am really glad that your government is gradually losing influence and power. I wouldn't have expected it 20 years ago, but I will probably live to see you completely lose your global hegemony and your fantasies of power become nothing more than embarrassing, self-castrating nostalgia, just like in the former colonial powers of Europe.
ahf8Aithaex7Nai··on Physicists now question the fate of the Universe
With such general assertions, you really have to be careful not to end up looking like the one who is being taken in by faith. Science is not about quality of life, but about gaining knowledge. Not all scientific knowledge is based on falsifiability. Science does not float in an empty space but has a foundation that is not itself science.
ahf8Aithaex7Nai··on Superfest – The almost unbreakable East German Glass (2021)
Believing in undercomplex narratives that describe the state of the world in a pleasant way is the natural state of humans.
ahf8Aithaex7Nai··on Insects and other animals have consciousness
Not only memories but also specific intentions for action are unlikely to be well retained in the mind over long periods of time without conceptual language. There is an assumption that language did not originate as a means of communication in the first place, but as a tool to enable intentional and coordinated action in the group at a higher level. Sending someone out in search of food when they are not immediately driven by hunger, without them following another impulse after five minutes, is probably hardly possible if they cannot carry the task with them in their head in a linguistically fixed form.

https://news.ycombinator.com/item?id=40262772

ahf8Aithaex7Nai··on Insects and other animals have consciousness
Yes

https://news.ycombinator.com/item?id=40262772

ahf8Aithaex7Nai··on Insects and other animals have consciousness
https://news.ycombinator.com/item?id=40262772
ahf8Aithaex7Nai··on Insects and other animals have consciousness
https://news.ycombinator.com/item?id=40262772
ahf8Aithaex7Nai··on Insects and other animals have consciousness
https://news.ycombinator.com/item?id=40262772
← PreviousPage 5 of 6Next →