HNHacker News
TopNewBestAskShowJobs

ernst_klim

1,304 karma · joined April 5, 2017

submissionscomments
ernst_klim··on Coding is not solved
Today I turned no-flicker-mode on and it broke scrolling in tmux
ernst_klim··on Writing Efficient C++ Code (2013)
> Array-based solutions are able to guarantee that an element is never relocated

This is an array of pointers, I mentioned it in the post you're replying to. It completely obliterates the "cache-friendliness" argument, making it worse than linked list (now you have same indirection overhead plus overhead of copying minus benefits of being able to CAS your value atomically into a list making it lock-free)

ernst_klim··on Writing Efficient C++ Code (2013)
> Vector of pointers almost always wins

In what way? It's the same thing with additional overhead on copying the vector when adding/removing elements.

Not to mention you can have a lock-free intrusive list, and with vector well, you just can't.

> Copying the whole vector is usually better

With linked list you don't need to copy anything when you add/remove.

ernst_klim··on Writing Efficient C++ Code (2013)
It's pretty useful, just not as a "sequential container" as people are usually taught. And definitely now with an interface C++ provides. There are two main cases for linked lists:

  1. When you need a persistent version of sequential data structure. I.e. you need addition not to change the previous version of list. Very useful in traversals which can fail and/or have multiple routes. C++ list obviously fails here because it's a mutable data structure and each addition is mutation. The proper interface is cons(head, old_list) -> new_list, where old_list exists after new_list is constructed.

  2. When you need the values be never moved in memory. Aka intrusive lists. Can be optimized for more cache friendliness by having lists of big chunks of values instead of just lists in some cases. Useful in operating systems and many low level apps. Alternative is usually a vector of pointers which still gives you indirection.
ernst_klim··on Devices with GrapheneOS support should be available in 2027
Pixel itself is very mediocre hardware, it's not hard to surpass. The battery is my main problem with it, my current pixel can't barely survive half a day of usage.
ernst_klim··on Meta's blockbuster trial draws parallels to big tobacco
> It could, for instance, do so on the grounds that it is protected by Section 230 of the Communications Act, which safeguards platforms from legal liability for content posted by third parties.

But then the platform decides what to show and to whom. It's not an impartial medium anymore, not since the engagement algorithms become a norm.

ernst_klim··on Is the Industrial Revolution a good precedent for explosive growth today?
I did live before internet bc widespread internet came quite late to my country, and I must say it wasn't all that different. Dating, job search and social interactions were actually easier and more pleasant.
ernst_klim··on Is the Industrial Revolution a good precedent for explosive growth today?
> I can bank from my pocket

My opinion on that is, it's not such a big gain compared to legacy banking with checks, phone calls etc. All the operations you can do now you could do with legacy banks, just a bit slower. Given banking is not something you do every second, the overall speedup is tiny.

ernst_klim··on Is the Industrial Revolution a good precedent for explosive growth today?
Exactly. I believe that growth caused by the rise of IT, be it Internet or LLM, will be marginal, because the benefits for humanity are very marginal compared to that caused by steam engine, wing, antibiotics or telegraph.

Everything IT does is slightly simplifying things we already could do. We could already telegraph someone across Atlantic, we could extract knowledge in library, we could do accounting. The speedup is small compared to horses vs steam power for transportation for example.

ernst_klim··on A graph that should be front-page news
> The economic system itself is incompatible with the physical reality of a finite planet

The economic reality is perfectly compatible with finite reality, because growth is not a function of resources.

An email is more economically valuable than a paper mail despite requiring much less resources (and leading to a much less CO2 emission)

ernst_klim··on Shepherd's Dog: A Game by the Most Dangerous AI Model
When you say €20 worth of tokens is it fair direct API call price or subsidized claude code?
ernst_klim··on Failing grades soar with AI usage, dwindling math skills in Berkeley CS classes
Or when the Internet came and made memory kinda obsolete. Why remember facts if you can simply index them and then lookup on demand.

But now we delegate thinking itself, so I wonder what is left.

ernst_klim··on GitHub's fake star economy
> Is 'reading the code' really an option? You need a proxy.

100k is small, but you're right, it can be millions. I usually skim through the code tho, and it's not that hard. I don't need to fully read and understand the code.

What I look at is: high-level architecture (is there any, is it modular or one big lump of code, how modular it is, what kind of modules and components it has and how they interact), code quality (structuring, naming, aesthetics), bus factor (how many people contribute and understand the code base).

ernst_klim··on GitHub's fake star economy
I think people expect the star system to be a cheap proxy for "this is a reliable piece of sorfware which has a good quality and a lot of eyes".

I think as a proxy it fails completely: astroturfing aside stars don't guarantee popularity (and I bet the correlation is very weak, a lot of very fundamental system libraries have small number of stars). Stars also don't guarantee the quality.

And given that you can read the code, stars seem to be a completely pointless proxy. I'm teaching myself to skip the stars and skim through the code and evaluate the quality of both architecture and implementation. And I found that quite a few times I prefer a less-"starry" alternative after looking directly at the repo content.

ernst_klim··on The future of everything is lies, I guess: Where do we go from here?
> to eliminate "useless eaters"

It can't. It can't even deal with emails without randomly deleting your email folder [1]. Saying that it can make decisions and replace humans is akin of saying that random number generator can make decisions and can replace people.

It's just an automation tool, and just like all automation tools before it it will create more jobs than destroy. All the CEOs' talks about labor replacement are a fuss, a pile of lies to justify layoffs and worsening financial situation.

[1] https://www.pcmag.com/news/meta-security-researchers-opencla...

ernst_klim··on The Importance of Being Idle
> at equivalent adjusted income levels

What is equivalent adjusted income level? PPP between Russia and USA is around 1.8. Median annual salary in the US is $57 ($1196 per week), median salary in Russia is $13200. Even if you adjust it, it's roughly two times smaller.

As someone who lived in a bunch of countries, some rich and some poor, no, living standards among the avg. Joes of the world are not even remotely the same.

ernst_klim··on The Importance of Being Idle
> Poverty levels

Poverty levels are measured relative to median. Poverty in US and poverty in Bangladesh, Russia or Vietnam are completely different things.

In the US poverty line is about $16k, while in Russia for example it is $2300. Even considering the PPP it's like 4 times the difference in living standards. I guess Vietnam or Bangladesh are far worse.

Upd: downvotes with no counterargument. Orange site is becomming more and more a reddit.

ernst_klim··on The Importance of Being Idle
> We all know the average white collar worker doesn't actually work for 40 hours despite being at the office.

Yes bc now this worker works same 3-4 hours but 4 days instead of 5.

ernst_klim··on The Importance of Being Idle
> The average person gets no benefit from this

You are proving the point. The avg. person gets an enormous benefit from it, even in countries like USA, Japan or Korea with far less generous welfare. The gap in standards of living of somebody in the US and somebody in Georgia or Vietnam are ridiculous.

ernst_klim··on The Importance of Being Idle
> I am very happy with this

I'm not. If you are european and will inherit something it's fine, but if not you'll barely be able to afford a house and a tiny investment portfolio. And at the face of the immense collapse of a pension system it's pretty grim.

ernst_klim··on The Importance of Being Idle
> Nearly no one I know in NL and DE works more than 36hrs per week. And we all have a sh”tload of holidays and irregular days off additionally.

In DE I would argue that this is due to punitive taxes and I wouldn't call it progress.

Poor people work their asses 40+ hours and up to overwork since it's always paid here. White collars work less time and often switch to 4 days because at this tax progression working your ass is not worth it. Time is more valuable, indifference curve is screwed.

It also have negative effect on women's careers in combo with 3/5 tax classes thing. And it hurts EU economies very hard since the most productive ones are disincentivized to work more.

ernst_klim··on The threat is comfortable drift toward not understanding what you're doing
It probably is still subsidized, just not as much. We won't know if these APIs are profitable unless these companies go public, and till then it's safe to bet these APIs are underpriced to win the market share.
ernst_klim··on Claude Code Unpacked : A visual guide
Well FFmpeg is roughly 1500k, but it's C+Asm and it's dozens of codecs and pretty complex features. SBCL is around 500k I guess.

I'm not saying that this is necessarily too much, I'm genuinely asking if this is a bloat or if it's justified.

ernst_klim··on Claude Code Unpacked : A visual guide
> 500k lines of code

Isn't it a simple REPL with some tools and integrations, written in a very high level language? How the hell is it so big? Is it because it's vibecoded and LLMs strive for bloat, or is it meaningful complexity?

ernst_klim··on Astral to Join OpenAI
I don't think government funded projects are any more secure. The political climate changes once in a few years and we had a lot of examples of previous decisions being scrapped. Limux in München was scrapped overnight, usaid was shut down in no time.

You get a little more stability for a lot of headache but nobody guarantees that in a few years political stance won't change drastically and the fund won't be cut or even closed.

ernst_klim··on Grief and the AI split
> Before AI, both camps were doing the same thing every day. Writing code by hand.

I would argue that the split existed before AI and these camps were not the same.

There were always "Quality first" people and "Get the shit done ASAP" people. Former would go for a better considerations, more careful attitude towards dependencies. Latter would write the dirty POC code and move on, add huge 3rd party libs for one small function and so on.

Both have pros and cons. Former are better in envs like Aerospace or Medtech, latter would thrive in product companies and web. The second cathegory are the people who are happy the most about AI and who would usually delegate the whole thing to the agents from start to finish including the review and deployment.

ernst_klim··on Many SWE-bench-Passing PRs would not be merged
Indeed. I have a few colleages and they constantly try to push these long convoluted functions which look like

    is_done = False
    while not is_done:
      if pattern1:
        ...
        if pattern2:
          ...
          if matched == "SUCCESS":
             is_done = True
             break
        if pattern3:
          ...
It's usually correct but extremely hard to follow and reminds of the good old asm code with convoluted goto's.

And the colleages tend to do reviews with the help of the agents so they don't even care to read this mess.

ernst_klim··on No management needed: anti-patterns in early-stage engineering teams
Same in Germany. That's why usually Max Mustermann (55) get's a better compensation for doing bare minimum than you for doing more work.

But in case of layoffs you will be kicked out first and he would be kicked out the last and with a far better severance package.

ernst_klim··on Do not mistake a resilient global economy for populist success
> meaningful measures of economic health

As someone who lived in a handful of countries with GDP per capita ranging from $3k to $70k I must say that GDP is a great proxy of the QoL and median citizen wealth. Not the only one and not the perfectly correlated one, but a very good one.

ernst_klim··on Resistance training load does not determine hypertrophy
Indeed. "Science-based" lifting become quite popular in the recent years, but the actual science behind it is quite loose with a lot of methodologically weak studies, small samples etc.
Page 1 of 21Next →