Better HN
topnewbestaskshowjobs
Log inSign up

randomNumber7

919 karma · joined Nov 10, 2020 (6y ago) · 894 submissions

Submissions

comment 1y ago · link · parent

Idk why such noob stuff is upvoted on HN.

The only thing this tells you that you should try to avoid a billon nested loop iterations in python. In case you didnt know.

On the other hand I would also see python as a bit questionable for bigger procejts, just because at some point a type system does more help than harm. But I have never really worked with pythons type extension so nowadays even this might be good enough.

comment 1y ago · link · parent

Now that AI based verification exists, I can just write C again and call it a day.

comment 1y ago · link · parent

I never thought driving a car is harder than editing a pdf.

comment 1y ago · link · parent

But what could I do to help people get better in the __act__ of spotting this or doing what you desribe themselves.

Idk for me it is subconcious, I just "feel" it or know that it is logically faulty.

Also the rephrasing doesnt always work imo, you could have a logic statement, that is totally valid in some context and not valid in others. And you also need to think about the validity of the premise and if it is legit to draw the conclusion in natural language.

comment 1y ago · link · parent

This misses the forest for the trees.

I understand most people have negative experiences with managers that can't code, but I would argue that the experience with these managers would also be bad if they could code.

You don't need to be able to code as a manager but you need to be highly skilled.

The only problem that arises then is that for decisions based on technical knowledge you have to trust others.

The main problem I see is that a lot of managers are too mediocre for the job and compensate it by trying to sell themselves.

comment 1y ago · link · parent

Idk. When I see something like that in real life my conclusion is that people have different levels of intelligence.

Also I don't know what or how to teach someone who falls into this pitfalls.

comment 1y ago · link · parent

You need to understand how the gpu architecture works on a abstract level. Try to understand the SIMT (Single Instruction Multiple Threads) principle. Doing some shader programming or writing a cuda kernel could be a nice exercise. In a nutshell, if you want to add two vectors with hundred elements, instead of looping from 0 to 99 you would call a function called "kernel" (or "shader" in graphics programming) 100 times and pass it different indices.

Then research how it is realized on the hardware with "warp"s or "wavefront"s (on AMD i think). How the cache works is also very important here. Sadly the information on the internet is relatively sparse here.

comment 1y ago · link · parent

I tell you a secret. Most devs do something wrong when they start rolling out their own linear algebra library. Thats why people use LAPAC, BLAS, etc...

comment 1y ago · link · parent

Smart people read a book and critically think about it. The others think it was written by a superhuman and turn everything into religious beliefs.

comment 1y ago · link · parent

Sadly its sarcasm.

What is not sarcasm, that I once lived in a region in germany where apples are grown. The local government had a project where they created some hiking trails. They wanted to call one of those "Apfelweg" (apple street or s.th. in englisch), because you know, there are apple trees everywhere. They had been sued by apple and had to rename it. Real.

comment 1y ago · link · parent

When you name a variable "apple" it will directly inform apple and you get a warning for violating their brand.

comment 1y ago · link · parent

I don't see how it is uncle Bob's fault that your friend misunderstood his book.

comment 1y ago · link · parent

I expect this guy to keep it fresh for me.

comment 1y ago · link · parent

This is absolute nonsense. Using buzzwords can not replace reasoning. There are structural problems why germany failed to build a digital economy.

comment 1y ago · link · parent

I own a Mercedes w124 Diesel from 1990. It is not a myth, but it died in the early 1990s.

comment 1y ago · link · parent

Donald Trump?

comment 1y ago · link · parent

Idk. I have seen stuff like GitHub and "pulled" open software with apt-get for years. So I got the impression that there are free usable services.

comment 1y ago · link · parent

Yet I have high IQ and life is a struggle.

comment 1y ago · link · parent

It depends what your goal is.

For example in germany, while i wouldnt trust the government, there are some decent laws the founding fathers made after ww2 that are hard to change.

So just because you use something like tor, signal is not enough. You need to be proven guilty by harder facts so using this is no danger.

comment 1y ago · link · parent

> that's not how you'd build an airplane for instance...

Unless you want it going boing boing boeing.

comment 1y ago · link · parent

Yes, lets just use pascal. Who needs dynamic memory allocation and functions that can take strings of multiple length?

comment 1y ago · link · parent

What a time to be alive!

comment 1y ago · link · parent

Usually it is a logic error, because you can check the index before.

You could argue it is ok when you use exceptions for control flow (e.g. what people sometimes do in python), but even there it looks questionable imo.

comment 1y ago · link · parent

> “can’t explain how they arrived at conclusions”

Imagine I would tell my wife, that whenever we have a discussion, her opinion would only be valid when she can explain how she arrived at her conclusion.

comment 1y ago · link · parent

You can even "leak" memory in java if you keep references to objects you don't need anymore xD

Also what is the point of .at()?

try {

    myarray.at(invalid_index);
} catch(std::exeception& e){

    // how do you handle a logic error in your code?
    // does that even make sense philosophically?
}

Yet you could also enable bounds checking for debugging on operator [] or use address sanitizer.

comment 1y ago · link · parent

ADA is really great. You can use it to safely blow rockets up in the air.

comment 1y ago · link · parent

It works as good as our energy policy.

Ah there are other well working policies in the EU like the migration of skilled workers.

All works well /S

comment 1y ago · link · parent

You could even use audio to text before that and tap all conversations in a country...

comment 1y ago · link · parent

For me the LLM does 3 things. Since it is trained on pattern matching it performs well on these. The tree like chatgpt inerface (where you can change the questions) is perfect imo.

- Speed up literature recherche

- replace reading library documentation

- generate copy pasta code that has been written often before

1
212223
30