General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Luredreier
The Daily Blob
comments
Comments by "Luredreier" (@Luredreier) on "The Daily Blob" channel.
Previous
1
Next
...
All
Simon WoodburyForget I'm fairly sure quite a few of them would disagree with you on that...
2
Why php over python as the first?
2
William Ocoró Don't worry about it. =)
2
+Simon WoodburyForget Hum, last i heared the best you could get with python optimization was half the speed of C++ and not equal to C (nonplussed) And that optimization essentially takes away most of the advantages of python anyway) No if I'm to run fast python code I'd use python and add a bit of C, C++ or Rust for the more performance critical parts of the code, possibly a tiny bit of assembly for the very worst parts...
1
Simon WoodburyForget I'm not even talking the default implementation. I've yet to hear about any implementation at all that is faster then half the speed of C++ (something that's actually quite fast) A newbie using the language with the default implementation is more likely to have give or take 1/10th of the performance of a C++ code intended to do the same job. The point though is that as a high level language the computer won't necessarily know what's the fastest way to achieve the goal you have for a program unlike in a low level language. Sure you can create binary code that's closer to optimal then a virtual machine, but still... You can change what parts of the code you use and use a more limited part of the language like in pypy so it's easier for the computer to "understand" your intention. But even pypy isn't really quite at C speed for the most part, and you'd be changing the code so much that it's not really the easy to learn and easy to read language that python is that you're using anymore... That said, don't get me wrong, pypy and other fast implementations are great too. But unless things have changed a lot since last I heard about these things then you'd still have quite a bit of potentially performance to gain from picking a lower level language.
1
Simon WoodburyForget Fair enough, I haven't heard about Numpy, but a quick search shows that it's not faster then C... http://wiki.scipy.org/PerformancePython?highlight=%28performance%29#head-a73fa06d3c4f3bda71b3526d30d51c492d8f80df That's just one example. Granted the performance boost is impressive, but it's still not up to par with a traditional system language. Even when compiled you're not going to get the same performance from python that you'll get from pure C. As for never choosing a language for its speed... That's not strictly true, although you're right that other concern is more often the main reason for choosing a language then speed is... And I'm not disputing that Python is a great language, I'm just arguing that saying that Python is faster then C is a claim that's extraordinary enough to warrant proof.
1
Simon WoodburyForget Well, C++ is ften slower then a well written C program (when both are coded well for speed and given the same task) Also: "Simon WoodburyForget26. jul. 2015 1 Svar Java instead of Python? Someone must be on drugs, Python replaces Java, its not superior or inferior..... Java is a language with a large amount of overhead just like Python. If you put python in a cage and make run to Cython its going to run has fast has C does. Python isn't slow it's CPython that is the bottle neck and restrictive, which you can fix by running it differently. But that's when you get to 'why are you using Java or Python anyways' , it's certainly not because of performance. Are you seriously going to add complexity just for performance? It's most likely due to multiple factors." You're essentially saying that it's running as fast as C. (no mention of plusses as far as I can see) If we look at cython it compiles to C so an equal performance would be a best case scenario, however what's the chances of having best case scenario for the majority of your code? As the test illustrated pyrex (another one of the fast options) was slower then C++ (that itself is a tiny bit slower then C) I'll admit that I'm impressed by the optimization though given that last I heard you wouldn't get any faster then about half the speed of C++ code. It's still not the same speed though. Notice, you said "as fast as" not "at a similar speed" or "almost as fast as" But onto another topic do you still have the ease of readability in the cython code? What compromises are made, and how what differences would a newbie have to learn to use cython? I mean, I very much doubt that cython is able to turn all the abstractions of python into zero cost abstractions somehow... I imagine that either some layers of abstraction is removed or some more then zero cost abstractions are accepted...
1
Simon WoodburyForget Right, did you notice that he mentioned the embedded community? Ever done any embedded programming? ;-)
1
Simon WoodburyForget Hum, web development... Ruby on rails?
1
***** Hum, heard about Rust yet? I think you'll like it's features.
1
***** Give it a try. =)
1
Simon WoodburyForget There's already a couple made. =)
1
***** You do. =) I have no idea if those kernels are any good though. They're probably bug riddled work in progress software but still...
1
+William Ocoró (Demondzeta) Python is way more popular then php according to some sources. Deployment... I don't know much about that...
1
+William Ocoró (Demondzeta) Still that's somewhat domain specific. Python is a general purpose language used in a number of programs out there. While you can write applications in php that's not Web related I can't say that I have heard about any major ones. With python I can mention the original bittorrent client, Dropbox, Civilisation IV, GIMP some CAD tools and so one and so forth... Especially in the open source community you'll find a lot of code in python... So I'm afraid that I still don't quite see the argument.
1
William Ocoró Hum, fair enough. All the languages that still exist do so for good reasons. I'm just surprised that php was picked by him as the first language. But like I said, fair enough. Anyway, thanks for your reply. =)
1
William Ocoró Not that it's really any of your business but 28... Done insulting me?
1
+William Ocoró (Demondzeta) Fair enough. But still not a fan of addressing anyone that way regardless of what they're saying.
1
William Ocoró True. I'm considering several languages to learn. Python is meant to be easy to learn and a lot of the stuff I've been reading about it (including a 1 k pages book I've been reading about the language) makes sense to me. But the default implementation don't seem to be all that great for multi-threading and I'd really like learn to do some concurrent programming though.
1
Previous
1
Next
...
All