Earlier quoted context omitted.
Java is faster than C#, that's not "bike-shedding farce", that's a documented, and benchmarked fact JSon serialization: 20+% faster: https://www.techempower.com/benchmarks/#section=data-r21&tes... Single query: 20+% faster: https://www.techempower.com/benchmarks/#section=data-r21&tes... Multiple query: 20+% faster: https://www.techempower.com/benchmarks/#section=data-r21&tes... Data update: 15% faster: https://www.te…
Why is this being downvoted? Sure the opening line isn't the most gentle, but these are some crazy benchmarks. I never saw this website before. First link: How is it possible that Java can achieve same perf as C??? I write a lot of Java, and none of my stuff is close to C. I guess about 50% the speed -- which fine for my needs. One reason (totally unscientific, of course) I think Java is faster: The virtual machine h…
Show HN: Python can make 3M+ WebSocket keys per second
61–70 of 75 posts
Re: Show HN: Python can make 3M+ WebSocket keys per second
#62Earlier quoted context omitted.
> Why is this being downvoted? Sure the opening line isn't the most gentle, but these are some crazy benchmarks. I never saw this website before. I guess people don't like getting fact checked
because you should really look into these frameworks if you really think its a good comparsion. if you exclude all the unserious java frameworks you will be stuck with vertx, after that there is a huge list of c# and than there is the rest of java. I mean yes, these frameworks might be the next big thing in the java world, but once they are there, they will at least loose 20% of performance. (p.s. you can also remove…
Developers nowadays seem stuck in a box for some reason
Re: Show HN: Python can make 3M+ WebSocket keys per second
#63Earlier quoted context omitted.
Why is this being downvoted? Sure the opening line isn't the most gentle, but these are some crazy benchmarks. I never saw this website before. First link: How is it possible that Java can achieve same perf as C??? I write a lot of Java, and none of my stuff is close to C. I guess about 50% the speed -- which fine for my needs. One reason (totally unscientific, of course) I think Java is faster: The virtual machine h…
Techempower benchmarks are web framework benchmarks, not language benchmarks. It's hard to compare language performance from these benchmarks as there are so many other factors here that affect performance.
Re: Show HN: Python can make 3M+ WebSocket keys per second
#64Earlier quoted context omitted.
Why is this being downvoted? Sure the opening line isn't the most gentle, but these are some crazy benchmarks. I never saw this website before. First link: How is it possible that Java can achieve same perf as C??? I write a lot of Java, and none of my stuff is close to C. I guess about 50% the speed -- which fine for my needs. One reason (totally unscientific, of course) I think Java is faster: The virtual machine h…
Techempower benchmarks are web framework benchmarks, not language benchmarks. It's hard to compare language performance from these benchmarks as there are so many other factors here that affect performance.
A framework is not representative of a language performance, it is representative of the framework's performance, they might not use newest language features, they might use outdated dependencies, developer might have wrote poor code, they might have bugs
Re: Show HN: Python can make 3M+ WebSocket keys per second
#65The hardest part of debugging Python is "hitting the wall" when you come to a native library (compiled C code). And Python has achieved a lot of speed-ups from Py2 to Py3 by adding more compiled C code. This is a real blocker for understanding the foundation library. On the other hand, in Java, with a few exceptions around Swing (native painting for GUIs) in Java, almost everything is written in pure Java, so you can…
"Debugging a Mixed Python and C Language Stack" (2023) https://news.ycombinator.com/item?id=35710350
Re: Show HN: Python can make 3M+ WebSocket keys per second
#66Earlier quoted context omitted.
If you asked me, Python not only shouldn't rely on (third-party) C library code, but it shouldn't even be used for cases where pure Python is not optimal.
Right, Python is the new Perl and people are misunderstanding what that means.
Always was, always will be.
Re: Show HN: Python can make 3M+ WebSocket keys per second
#67Earlier quoted context omitted.
Right, Python is the new Perl and people are misunderstanding what that means.
Python is Bash++. Always was, always will be.
Re: Show HN: Python can make 3M+ WebSocket keys per second
#68Earlier quoted context omitted.
Do you think that relying less in C code could be better for Python and it’s community? I mean less focus on being “glue” between C code and more focus con optimizing the interpreter?
If you asked me, Python not only shouldn't rely on (third-party) C library code, but it shouldn't even be used for cases where pure Python is not optimal.
Python’s optimal use case does not relate to speed.
Re: Show HN: Python can make 3M+ WebSocket keys per second
#69Re: Show HN: Python can make 3M+ WebSocket keys per second
#70Earlier quoted context omitted.
because you should really look into these frameworks if you really think its a good comparsion. if you exclude all the unserious java frameworks you will be stuck with vertx, after that there is a huge list of c# and than there is the rest of java. I mean yes, these frameworks might be the next big thing in the java world, but once they are there, they will at least loose 20% of performance. (p.s. you can also remove…
If vertex's json serialization is too slow, you swap that part for something faster, that's how you use languages in the real world; what is this language capable of, and how i can fully exploit it Developers nowadays seem stuck in a box for some reason
you swap that part for something faster
FasterXML (Jackson)?