HNHacker News
TopNewBestAskShowJobs

knuthsat

774 karma · joined September 22, 2020

submissionscomments
knuthsat··on Ask HN: 27, accidentally became wealthy, lost drive. What should I do?
Yeah, maybe if you find the drive to care about your wife and children. But that's a big maybe. Especially for a person that does not care about themselves.
knuthsat··on Ask HN: 27, accidentally became wealthy, lost drive. What should I do?
How can a marriage and having kids move you out of depression?

How can you be a good partner and a good parent if you can't even find the drive to live?

Feels like one could get into even more difficulties when relationships and parenting get hard, even with money.

I see this advice everywhere, "Just have children.". I do not understand how this is sensible advice for people that are obviously not fit to be parents at their present moment.

knuthsat··on Omicron largely evades immunity from past infection or two vaccine doses
Or, another hypothesis, your immune system is busy dealing with the vaccine and just ignores the omicron virus in your noes and this stops the spread?
knuthsat··on Two custom React hooks
Hooks are great!

Although, when I see code snippets on the internet I always wonder how do people test this.

The fact that dependencies are declared as imports and all the logic is inside the component function, it feels like you have to shuffle things around just to make the thing runnable outside of React.

knuthsat··on Nim 1.6.2
I always thought of Python as being a massive language. If it was simple, it should be easy to compile and optimize.

I mean, I would feel like an idiot when someone would point out a feature that makes Python code faster. Python classes are quite massive and complicated (with a bunch of tweaks one can do through attributes).

knuthsat··on Ask HN: Are most of us developers lying about how much work we do?
This is the case for other parts of the workforce. I admire those in service that really work their ass off (drivers, cleaners, cooks, etc.)

From my work experience, about 90-95% of people do barely any work (have tasks that take months). I would get in a team of 15 people and I'd be the only one doing something, everyone else is just making some slides for weekly presentations and not even that. The amount of part-time people that do nothing is even greater. The amount of consultant experts that work for consultant agencies and get loaned to other companies that do nothing is massive.

I think it's the standard way of life in most cities. I do not quite understand why that percentage of the workforce won the work lottery.

knuthsat··on Facebook exec blames society for COVID misinformation
Whenever I see toxicity, I always assume it's a young individual. I remember myself in teens, always up for some trolling on forums.

Today, I just don't have a need to do such things. Whenever I encounter this weird behavior, I just stop interacting, because I have a feeling it's some 13-16 year old wasting my time.

knuthsat··on Why the demographic transition is speeding up
There are belief systems that promote making children (Amish, Islam, etc.). Populations that practice these systems will eventually take over.
knuthsat··on Is Web3 anything?
This boils down to the basic problem of a ruleset.

It's nice when everyone abides by the same ruleset. But there will always be individuals that will behave outside of it.

Like, we can all play capitalism and try to outcompete each other, but eventually there's going to be someone that just abandons that ruleset and murders all competitors.

Smart contracts are just a better ruleset, still not enough.

knuthsat··on Why do antibiotics exist?
It's been this way for decades. IMO it's the main source of antibiotic resistant bacteria.

You have billions of chickens being raised every year, each a Petri dish ready for evolution of resistance.

You have at least 10 billion fresh "Petri dishes" every year. That obliterates human antibiotic use.

When chicken is given an antibiotic, how exactly is that distributed over the body, especially for a sedentary overweight chicken that can hardly walk?

There's no way you can tell that a high dosage will result in no bacteria alive when there can be a pocket of sick flesh where antibiotic might not reach its full potential.

Similarly, the massive rise in UTI infections in women over the years is a side effect of this problem. I do not believe UTI infections in women were that debilitating in the past. Today you can't even get rid of them with antibiotics and a lot of women develop a decade long recurrent UTI infection problem.

Human antibiotics use is not an issue.

knuthsat··on Ask HN: Software Engineer hitting 40: what's next?
The only place where I really met high expectation is in finance. The amount of ten-seconds-for-the-answer-or-we-stop-the-interview questions was enormous.

Last 5 places I interviewed, 2 didn't ask LC at all, and I still failed at 4.

Also, for LC, you should work on it for 15-30 minutes and then look at the solution. It's the most efficient way. If you don't even understand the task, just don't do it. Similarly, sites like codeforces allow you to group tasks by algorithm and to sort them by number of people that solved them (and you can look at the solutions). This also simplifies the knowledge acquisition.

As for being a principal/staff engineer. This is all new to me and I have no idea how much these individuals code or what exactly they do (although I'm currently starting a principal engineer role in a company of around 300 engineers). So I assume either I'm silly or the title inflation is rampant. Although, the interview required operating systems, networking, algorithms, hardware, people skills, low/high level programming language knowledge that I guess I have. The questions were: "How does a UI library work?", "Describe this networking protocol?", "How many syscalls are triggered by npm install?", and whatever other question that they ask you to go as deeply as possible as you can.

knuthsat··on Ask HN: Those who quit their jobs without anything planned. How did it go?
I quit my great first job because I wanted to move to a new country. My plan was to not work at all (my partner would support me). Then the lockdown started.

I realized it might not be a good time to not work, so I applied to a bunch of remote websites (Toptal, Upwork and others) and after 2 months I had a full-time remote position.

That year I earned a bit less, living in a high life-standard country than I did at my first job.

Figured out remote work sucks and most companies aren't as great as my first job. Also, figured that it's hard to find meaningful programming work. Work that pays seem to be mobile apps and the teams are much less experienced that the one from my first job. No idea how to get back to something that pays more but on-site (no one can match remote US/UK salaries).

I would say it was a mistake. Probably wouldn't be if the pandemic did not start. Wasted 18 months earning money doing silly work and not showing my full potential.

knuthsat··on Ask HN: I feel so shallow and dumb when I see what other smart people are doing
This attitude is nice, but unfortunately in most cases it does not apply.

Many people have different sensibilities and tastes. Those that become great alone are extremely talented, gifted and innately know what to filter and how to improve.

Most of us do need some guidance and there's not enough hours of piano playing for us regular folks to discover all of the learning tricks with which we become insanely good.

Programming is hard and just putting in the hours won't help that much, especially now when the whole internet is polluted with unnecessary stuff.

knuthsat··on Netlify Drop
I don't find it powerful at all. Very hard to map through structures in templates.

Much easier to write templates in a real language.

Most of the time I need to map data to something else suitable for rendering. That mapping goes from markdown frontmatter to some nice form.

I ended up not using templates at all due to how cumbersome it is to write any kind of data transformations inside the template language.

Might as well just generate html myself.

A nice example is generating menu contents from a list of menu items with their sort weight and links. Ends up being very cumbersome.

knuthsat··on Chocolate from Bean to Bar
Sounds a lot like annealing.
knuthsat··on Ask HN: Looking for a book on algorithms and data structures
+1, Erik Demaine is a great lecturer.
knuthsat··on Sweden no longer stands out in pandemic, says architect of ‘no lockdown’ policy
I'm just completely astonished by the level of incompetence. I really can't imagine how human powered moon landing occurred and if it can occur under current leadership again.

I don't really understand what happened in the last year?

We got the vaccines at the beginning but why no new vaccines? Why no lifelong protection vaccines? Where are all of the incentives to accelerate the r&d of new ways to handle this?

I mean, the current wave is worse than the worst and the strategies are still pure incompetence.

Is everyone just faking competence currently?

knuthsat··on Study finds a difference between neurons of humans and other mammals
Nothing of the sort of "rationality" exists in the history of early humans or their ancestors.

I'm not even sure what is this rationality that you're talking about. Because the main narrative of early humans evolves through giant leaps of irrationality.

Even today, most humans are irrational.

knuthsat··on Why and how to use service injection in Node.js
With JS, you can easily mock a whole module implementation so to use DI so that you can mock the injected entities during testing feels unnecessary.
knuthsat··on Why and how to use service injection in Node.js
Well, similarly, you might not need that singleton instance if you just import it where needed. Maybe then it's enough to just pass the data from the singleton instance to all the things that need the data.

I think dependency injection is mostly a tool to allow multiple people to work on a single codebase. Rarely would you need it when you're doing stuff alone.

knuthsat··on Poor parents receiving universal payments increase spending on kids
Then you have private schools charging more for a straight A education that is guaranteed and suck the cash.
knuthsat··on Female African elephants are evolving without tusks due to ivory poaching
If humans can modify the animals in the environment this fast, I see no reason why we just cannot assume that most of the living wild animals are already a result of humans doing the selection.

I was always quite confused by the fact that most animals look quite nice but given these results I guess humans can extinguish the ugly and leave the beautiful.

knuthsat··on This word does not exist
Hungarian and Croatian are very different. There's only a few things that might match (like vegetable/fruit names) but verbs and nouns are very different.

The words that I was surprised by were with proper declension (taking gender into account) and sometimes there were very unique verbs that felt right in Croatian but if you search any form it just doesn't exist anywhere.

knuthsat··on This word does not exist
I was reading some reviews on Google of rave clubs in Budapest and Google translated them from Hungarian to Croatian.

The translations were quite funny and bad but I noticed a bunch of new Croatian words that do not exist in any dictionary.

There were a couple of reviews where I found myself laughing because I implicitly understood the review but the Croatian words were completely made up (Googling the word you won't get any results).

So I guess the translation systems might already create words, especially for language pairs that don't have enough data.

knuthsat··on Leaving Google
Highly doubt it. It's the nature of monopolies that do not have an army (real guns and blood).

There are employees that will create pressure out of nothing and will ruin the cushy possibilities just out of their own boredom and misery due to not being able to progress the hierarchy of the monopoly (most old monopolies don't really give big raises and it's very hard to reward employees because most don't really have any impact). (managers that start micromanaging employees that somehow do something productive, regular workers that overdo it at the task managing platforms and then stress over the backlog, etc.) But it's not the monopoly that's taking the cushy from them.

knuthsat··on Leaving Google
Sounds like a job in a bank. Or any other monopolistic entity.
knuthsat··on Brave Search replaces Google as default search engine in the Brave browser
I usually can barely browse the internet using VPN through OVS, Digital Ocean, Scaleway and others. All websites assume my traffic is not from a person but from an automated server.
knuthsat··on Imitating Deep Learning Dynamics via Stochastic Differential Equations
Yeah, handling 100k paths on CPU means the problem is in the PDF reader, not the PDF. Although I must admit that calculating 100000 paths and getting polylines still shouldn't take very long.

Why wouldn't you be able to send an array of stuff defining the curves, and an array of stuff defining the draw order to the gpu and just render it in a simple?

knuthsat··on Imitating Deep Learning Dynamics via Stochastic Differential Equations
I'd say this is a problem with the PDF reader, not the paper.

Why is PDF reader having trouble displaying 30MB of data?

It's even better than a 30MB of images, because images have to be decoded but vector graphics is just bytes at some point and you decide how to render them.

It's probably some accidentally quadratic behavior that struggles with 10000 vector objects.

knuthsat··on Tricks I wish I knew when I learned TypeScript
Does rust have Mut annotations on functions?

I mean, when you look at a problem that monads solve with types is that every function has an “annotation “ of what it uses (IO or mutable state). Similar how async in JS allows await, a state annotation would allow put get or IO annotation any of the IO capabilities.

Of course monads are much more but Mut does not look like it pollutes everything with Mut, including function definitions and results

← PreviousPage 2 of 13Next →