39 karma · joined September 3, 2010
Are you sure it's only the technological advance that's responsible for that? I've always written search terms like that because I figured the search engine isn't some ai that's answering my question. Instead it's a program searching a database of sorts and by searching for what I think other might have searched for I'm able to get similar results.
Personally I write all my makefiles from scratch. I'm always baffled by other makefiles though. They always look so huge and for some unknown reason just overly complex.
Any feedback, if even to say your site sucks would be greatly appreciated.
* What is my favourite programming laguage...?
I don't hate anything about it because, you know, if I found it annoying then it wouldn't be my favourite language anymore. Maybe it's just a personality thing, but I personally don't settle just so I can say iI have a favourite.
Most of the time I would spend answering that question would be taken up by me thinking which language I liked the most and that'd (at the moment) be Lua and only because it's very small and I can feel like I understand most of it. The only thing I find annoying about it is that it's standard library is small which means I have to rely on third-party libraries but that I think is necessary for me to actually like it more than Python which is so huge that it just doesn't feel very fun to write anything in. Many people might say the fact that it doesn't have classes. It does however support OOP via prototyping, I just see it as different, not a disadvantage and it actually fits very nicely with the laguage, possibly better than classes would.
* I'd say write a couple short stories. I have enough unfinished projects, why would I want to waste a week either starting a new one that I won't finish in a week or continue on an old one that I also won't finish in a week.
Python:
real 0m12.775s
user 0m12.636s
sys 0m0.037s
Nuitka: real 0m7.096s
user 0m6.930s
sys 0m0.093s
Lua: real 0m2.641s
user 0m2.410s
sys 0m0.010s
LuaJit: real 0m0.613s
user 0m0.600s
sys 0m0.000s
from experience experimenting with a toy scripting language where tried to make it as minimal as possible, essentially every operation was a function call so it just figured out what the right function was and called the corresponding function directly via a C++ function pointer. In the end it was slightly faster than LuaJit at doing some math for 100,000 times. It was a file with the same operation pasted 100,000 times which tested parsing speed... anyway...TL;DR If you want to know why Python and Nuitka are so much slower, run the test through callgrind or something that reports the number of functions calls being made. You will find Python(possibly Nuitka as well) making billions of functions and allocations while lua's count in maybe a couple hundred million at most.
Also, I tested my Lua code converted to Python but it only shaved less than 1 second of fastest so no difference.
test.lua:
local sqrt = math.sqrt
num_primes = 0
for i = 2, 500000 do
n = 1
for j = 2, sqrt(i) do
if (i % j) == 0 then
n = 0
break
end
end
num_primes = num_primes + n
end
print (num_primes)When I have to write things like:
strstr($str, $delimiter)
and explode($delimiter, $str)
Netbeans ctrl+p comes in very handy in re-enforcing my choice of arguement order because if I make a mistake that's a very subtle bug waiting to happen.or when I have to wrote things like:
g_file_new_for_commandline_arg
who wants to type that out when they don't have to?or this over and over:
AStudpidlyLongName::
when I can just type `ast` and press ctrl+[space] and get the name in a completion list highlighted every single time.or:
m_ui->tooBar->addWidget
when I can m_ui.t... and have to automatically figure the correct sequence, this comes in pretty handly when you're working code written by other and they decide to use hard objects as opposed more common pointers.To sum up, if you get banned for adding too many friends too quickly regardless of whether or not you were spamming, i.e adding real friends then you're an idiot. Also, throwing a bitch-fit about how you left before you could get banned is silly, all it does is draw attention to you for being one of the people that are ruining Facebook for people who use it. For the record, I log on to Facebook approximately 15 minutes every couple months on average but I still find it annoying when people add you when the have no intention of being your friend.
EDIT: I should maybe point out that I haven't any stability issues here though Firefox from time to time decides that it needs to become laggy(not Flash related).