Better HN
topnewbestaskshowjobs
Log inSign up

never_inline

897 karma · joined Aug 26, 2022 (4y ago) · 561 submissions

Submissions

comment 3y ago · link · parent

Well chatgpt is often framed as an information retrieval tool or coding helper.

I don't have deep knowledge about these things I asked, I am just an undergrad student, and still I rarely find a technical answer by chatGPT satisfactory or helpful. I just don't see it as useful as it is framed.

comment 3y ago · link · parent

Yeah right nothing about hashcode either.

comment 3y ago · link · parent

> I myself shall certainly continue to leave such research to others, and to devote my time to developing concepts that are authentic and trustworthy. And I hope you do the same.

Haha.

Maybe someone with GPT-4 access can check if it has improved. But I find it essentially regurgitating its sources.

I am by no way an expert in questions I ask it. But I find the answers generally speculative and not helpful.

I have been asking bard and chat gpt once in a while "What's the internal representation of strings in Java"?

This is a good question to test its information retrieval capabilities. because your average blogspam site or tutorial doesn't cover the this.

They both somehow fail to convey me that it's a combination of char array and a cached hashcode.

At best, chat GPT told me a 3 paragraph sentence that java String was an array of UTF-16 characters, which is not quite the case since JDK 9 as I know. There's no mention of compact strings.

Other day I asked what's the GCC pass which deduplicates similar function definitions. Both chat gpt and bard made up their own pass name.

I am no expert in these topics, nor in ML or IR. But I don't believe LLM is the way towards information retrieval.

If it's ingesting everything it reads, it would be worse than pagerank, right?

Granted, it does normie stuff pretty well, like writing a data class or making HTTP request. But as soon as you need something deep, it is worse than useless, because it confidently claims incorrect stuff.

comment 3y ago · link · parent

Out of curiosity, do they have junior engineers too? I would love to work on docker or jetbrains for example.

comment 3y ago · link · parent

> it causes a bunch of copying and pointer indirections.

That's correct. As you said elsewhere, lot of it pins down (!) to design of Java. There's direct byte buffer, but you have to architect your code around nio APIs to utilize it.

But we were talking about working with native threads.

comment 3y ago · link · parent

> Julia library using threads created in the calling C++ code.

I understand Julia is much more dynamic language. But Java JNI can do this too. You have to attach the thread manually, and take care of pinned references.

comment 3y ago · link · parent

This is very specific case though.

Many times compiler tooling will do just fine with good old visitor patterns, enums etc..

Sure there may be small amount of errors missed, but that's not always as critical as availability of libraries and integration.

comment 3y ago · link · parent

I used to think like this. Then I had to use `thread_local` where it was so much more convenient and portable (and likely faster) than pthread_getspecific. I think it's good quality of life features get added and standardized.

Even Linux kernel uses lot of GNU extensions. Computers are there to abstract stuff for us.

comment 3y ago · link · parent

Fitness? It's called GymRunOps in 2023.

comment 3y ago · link · parent

Java interop for Dart / Flutter through JNI.

https://github.com/dart-lang/jnigen

It's rough around the edges, but I hope it will make to beta by end of the year.

comment 3y ago · link · parent

This would be a great meme if they fired 16% people to make an chatgpt microsoft bob.

comment 3y ago · link · parent

I can't see this being their moat though.

Google and Microsoft can do much outcompete them with their storage SaaS products.

comment 3y ago · link · parent

In this particular case, even if performance is not concern I would use the hash map. It just reads better.

comment 3y ago · link · parent

There are tools which overwrite linked libraries, eg: chrpath.

comment 3y ago · link · parent

> I barely ever use commands other than the basic ones - git pull, git commit, git add/remove, git push, git merge

I routinely use checkout / switch, rebase, diff, cherry-pick, stash, revert, git status (on CLI). They are very useful. I don't know where "5 commands" meme comes from.

comment 3y ago · link · parent

I am from a rural region where IIT-JEE is not that popular, and I liked working these physics and maths problems initially.

Unfortunately the competition has become so intense you practically need coaching (which is expensive) and dedicate lot of time, at that point it becomes grunt work. There are many "tricks" and "shortcuts" taught in these coachings which doesn't exists in normal NCERT syllabus. Needless to say I didn't do very well.

comment 3y ago · link · parent

> maybe patenting the algorithm itself actually is necessary to avoid big tech companies like microsoft from forcibly strip mining the ideas of independent creators

a. Independent discovery of same algorithm is very likely before 17 years.

b. Big companies abuse such systems by patenting trivial ideas.

comment 3y ago · link · parent

The "why" aside, if you have an android, check out Termux.

That's a UNIX-ish shell environment.

I wish there was a way to use Android APIs from a scripting environment in Android phone. I tried a bit during last semester, but didn't get anywhere due to lack of time. What I wrote was a beanshell environment which lets you evaluate statements like REPL. But since Android and Java bytecode is different, it can't even pass lambdas properly.

comment 3y ago · link · parent

> Especially legacy hardware.

OTOH, when you buy a new laptop from a budget vendor or with slightly obscure HW, you have to wait 6month - 1year for all drivers to work well.

> the problem is that the UI experience is fragmented across several different toolkits

On windows also, most applications use their custom UI.

> client-server architecture is inefficient for a locally rendered UI.

Never a problem in practice. KDE is much faster and lighter than Windows 10.

comment 3y ago · link · parent

Can you elaborate what more function you were expecting?

There's appImage and a variety of home directory package managers on *NIX platforms. None of them caught up.

comment 3y ago · link · parent

> coming away with the same skills for free from YouTube

How can I become high energy physicist on YouTube ?

comment 3y ago · link · parent

> mixed together at absolute locations

There is DT_RUNPATH probably since before I was born. The problem is it's not always utilised, distributions prefer to share libraries over isolating applications, and loading shared libraries isn't the only host-dependent thing done by application code.

Also you realise that docker provides more functionality than a tarball, right?

comment 3y ago · link · parent

Going by this logic, most of these shut-down projects should be coming from India (and possibly eastern European countries?), where the bar of DSA problems is much higher due to competition.

I too dislike the pervasiveness of the narrow type of DSA problems (because it comes at the cost of other computer science topics, scales linearly with practice after some point, and selects for people who have time to practice them). But DSA puzzles aren't what you should be blaming for closing down stadia.

comment 3y ago · link · parent

Hardware & Application support is what challenges Linux adoption on Desktop (well, Laptop, because people hardly use desktop these days).

Major desktop environment UIs are just as fine, if not better. They're just unfamiliar.

1
1516171819