Talk:Square form factorization: Difference between revisions

Content added Content deleted
(→‎Raku (ping Hkdtam): pathetic excuses on sloppiness ..)
Line 209: Line 209:
There is something ''very'' wrong with (the performance of) the Raku example. I know Raku is the slowest computer language ever written (don't worry I'm just kidding) but... Seriously, just copy (say) the 2nd C example into (say) repl.it and run it. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 23:39, 25 March 2021 (UTC)
There is something ''very'' wrong with (the performance of) the Raku example. I know Raku is the slowest computer language ever written (don't worry I'm just kidding) but... Seriously, just copy (say) the 2nd C example into (say) repl.it and run it. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 23:39, 25 March 2021 (UTC)
: Hi Pete, thank you for bringing this up. I was just trying to be playful on making it look as close to the algorithm and pseudocode as possible, for example, the floor and sqrt routines were replaced with operators which add unnecessary layers of operation. Also many recalculation of values like √𝑁, √(𝑘*𝑁) and √Q, among others, can be avoided by using temporary variables. Above all that I didn't apply any optimization like the other entries (TBH I am too slack to understand them and fit them in :-P). Anyway, thanks again and have a nice day. --[[User:Hkdtam|Hkdtam]] ([[User talk:Hkdtam|talk]]) 17:37, 26 March 2021 (UTC)
: Hi Pete, thank you for bringing this up. I was just trying to be playful on making it look as close to the algorithm and pseudocode as possible, for example, the floor and sqrt routines were replaced with operators which add unnecessary layers of operation. Also many recalculation of values like √𝑁, √(𝑘*𝑁) and √Q, among others, can be avoided by using temporary variables. Above all that I didn't apply any optimization like the other entries (TBH I am too slack to understand them and fit them in :-P). Anyway, thanks again and have a nice day. --[[User:Hkdtam|Hkdtam]] ([[User talk:Hkdtam|talk]]) 17:37, 26 March 2021 (UTC)
:: No worries, if it was 20 or 100 times slower I wouldn't have said anything, but two and a half million times slower... --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 19:48, 26 March 2021 (UTC)