Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Shorel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
691.
▲
by
Shorel
4y ago
Agree. This was written by someone writing code so inefficient, I would never want them to be near my code.
692.
▲
by
Shorel
4y ago
MySQL doesn't have materialized views, but it has better replication (at least using Aurora in AWS) than the big boys databases. Adding more replicas and changing the instance size scales much better than fine-tuning the big complexity
693.
▲
by
Shorel
4y ago
I moved the same system from MSSQL server to Oracle, then to MySQL. The Oracle version had a lot of logic written as SP. I migrated them to MySQL SP. So the conclusion is: SP don't make it impossible to migrate from one database to ano
694.
▲
by
Shorel
4y ago
> That database sent emails, processed CSVs scheduled jobs, etc. That's really a bad, very bad use of SP. They should only deal with and care about the data, not doing any interaction with any external systems.
695.
▲
by
Shorel
4y ago
Store procedures and functions are very good for many things. I am not claiming you should put all your business logic in the database, like old-time Oracle consultants wanted (for self-serving reasons), but some calculations are better han
696.
▲
by
Shorel
4y ago
The spelling of English definitely doesn't give enough clues about how a word is pronounced. Me, and millions of other speakers of English as a second language, will vehemently disagree with that point. The rest of your comment reads l
697.
▲
by
Shorel
4y ago
I agree so much with you, "in theory". In practice, most of the industry has been writing ridiculously inefficient code for decades, and I wish more people would pay attention to that 20%, or the 3% that Knuth described. Or better
698.
▲
by
Shorel
4y ago
I think it was the same for me. Writing fast and nice is impossible, back then and now. I learned to write nice and slow, it is completely impractical, can't do it for long texts, but it makes me feel better after so many years of only
699.
▲
by
Shorel
4y ago
It makes predictions based on incomplete and or biased information. Just as doctors do. The funny thing is not that we are holding AI to a high standard. The funny thing is that we normally do not do the same for doctors, marketers, politic
700.
▲
by
Shorel
4y ago
True that. It is replacing or complimenting some of my teachers right now.
701.
▲
by
Shorel
4y ago
How many MB per second is this? I was inserting data at 5MB/s using MySQL and C++ some years ago. MySQL was the bottleneck, the C++ part could potentially run many times faster.
702.
▲
by
Shorel
4y ago
Yep. I tried them once, in a different country. It was fun and safe. Price is the reason I have not repeated the experience. It is as expensive as a taxi, without the convenience of it.
703.
▲
by
Shorel
4y ago
Yeah, ChatGPT is so powerful that it managed to rob motivation of students from 30 years ago. It surely has nothing to do with conservative, uninteresting teachers who criticize every attempt to have an original thought different to their w
704.
▲
by
Shorel
4y ago
Kitty (the Linux one) has ligatures support, and it is GPU accelerated.
705.
▲
by
Shorel
4y ago
You are thinking about Trident cards, which had 2D acceleration. Nowadays, everything is done with the same pipeline as the 3D graphics, there's no need for two pipelines. GPUs are meant for this. Modern ones. Your knowledge is incompl
706.
▲
by
Shorel
4y ago
As a Linux DJ, I just wish the waveform scroll was jerkless. I run MiXXX waveforms at 60hz, it takes about 5% CPU, so it has lots of CPU time to spare, and even then, there are graphic imperfections. Every couple of seconds or so, there
707.
▲
by
Shorel
4y ago
If everything is stack allocated, then the never dynamically allocating memory part will be true.
708.
▲
by
Shorel
4y ago
I totally agree with your first paragraph. There should have been code reviews and new developers should have been coached. About Rust... I'm open-minded, let's see what happens.
709.
▲
by
Shorel
4y ago
Yes, and competition is good. Rust is good and I expect they keep making great things. C++ is also becoming better with every release, and C++20 is a huge improvement. In all honesty, code written in C++20 feels just like code I have writte
710.
▲
by
Shorel
4y ago
> and you don't need to wait 40 years to get networking support into the standard library This one hurts, but so true =)
711.
▲
by
Shorel
4y ago
From what I understood, clangd was not enough to make new developers write good enough code. The problem was not the seasoned core of developers, but the fresh hires. Now, this would be an interesting problem. Just as Python has PEP8 and so
712.
▲
by
Shorel
4y ago
> Modern C++ reads a bit like JavaScript strangely! I yield to your comment.
713.
▲
by
Shorel
4y ago
The part about the Rust evangelists being really toxic mirrors my own experience. I like the language. I really don't want to deal with their community.
714.
▲
by
Shorel
4y ago
Agree. The risk is losing the current user base. For this particular software: No users, no market penetration, no risk at all doing a rewrite.
715.
▲
by
Shorel
4y ago
Having seen C++20, anything less is just subpar. Orthodox C++ can be safely ignored by any sane developer.
716.
▲
by
Shorel
4y ago
No, just because it's in C++ does not mean it is automatically faster. However, with good enough algorithms and judicious coding and memory management, the possibility exists.
717.
▲
by
Shorel
4y ago
They use cosine because of performance reasons. Euclidean distance when used is squared, because even that sqrt is too expensive.
718.
▲
by
Shorel
4y ago
Pay me and I will do C++. Nowadays, I get paid for PHP and Python, so that's what I do.
719.
▲
by
Shorel
4y ago
I only have a small codebase, but I mirror the sentiment. If you care about it, it can and will be done. Same, all warnings enabled, compiles and runs in both AMD and ARM processors, it is just 20 to 40 times faster than the thing it replac
720.
▲
by
Shorel
4y ago
D-lang exists.
More ›