897 karma · joined Aug 26, 2022 (4y ago) · 561 submissions
comment 3y ago · link · parent
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
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
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
Even Linux kernel uses lot of GNU extensions. Computers are there to abstract stuff for us.
comment 3y ago · link · parent
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
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
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
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
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
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
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
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.