And yes if you want to play with SVE, Amazon's own ARM chip is the best one available now, maybe the only one in fact, for the general public.
Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
11–20 of 51 posts
Re: Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
#12Thanks for sharing. Is understanding how best to utilize computer hardware part of a classic CS program or is most learned on the job? I studied Econ in college and been a python guy for last 8 years but have no knowledge of how the machine actually interacts with my code. Is there a formal name for understanding that?
Of course, it can be learned on your own too. But generally this path is harder because it's hard to know what to study. The CS program will expose you to breadth of concepts.
Re: Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
#13Thanks for sharing. Is understanding how best to utilize computer hardware part of a classic CS program or is most learned on the job? I studied Econ in college and been a python guy for last 8 years but have no knowledge of how the machine actually interacts with my code. Is there a formal name for understanding that?
Re: Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
#14> char * init_out{out}; Are the curly braces in the initialization some new C++ syntax? I haven't been keeping up with C++ developments in the last decade or so. Based on the code that follows I would expect char* init_out = out;
That's been around since C++11 although it's kind of weird to see it used for a char*
Re: Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
#15The complexity almost looks like an April Fools joke.
Low level string operations happen so often under the hood in any application that 10x more code and complexity in an implementation is worth it if it increases efficiency.
Re: Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
#16The complexity almost looks like an April Fools joke.
Re: Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
#17The complexity almost looks like an April Fools joke.
But if it's hidden behind a standard library's 'trim' functions it's all fine to me; I don't need to know how it works under the hood, but want to rely on the maintainer's knowledge that their implementation is as fast and efficient as possible on whichever architecture. Low level string operations happen so often under the hood in any application that 10x more code and complexity in an implementation is worth it if…
Re: Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
#18Thanks for sharing. Is understanding how best to utilize computer hardware part of a classic CS program or is most learned on the job? I studied Econ in college and been a python guy for last 8 years but have no knowledge of how the machine actually interacts with my code. Is there a formal name for understanding that?
It's hard for me to answer, because I was learning everything I could on the internet before undergrad, following each tiny micro-architectural tweak in minute detail. It makes it hard to remember what things college really provided & what was self-taught.
Re: Trimming spaces from strings faster with SVE on an Amazon Graviton 3 processor
#19Thanks for sharing. Is understanding how best to utilize computer hardware part of a classic CS program or is most learned on the job? I studied Econ in college and been a python guy for last 8 years but have no knowledge of how the machine actually interacts with my code. Is there a formal name for understanding that?