[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

OOP more like OOPS. No seriously though, fuck OOP.

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 126
Thread images: 6

OOP more like OOPS.

No seriously though, fuck OOP.
>>
>>59889261
OOPS? More like POOPS
>>
>>59889261
haha, what a great thread.
I don't know anything about programming either.
>>
What's the problem with OOP?
>>
>>59889261
POOP
>>
>>59889367
Poettering did it.
>>
OOP? More like POO in LOO
>>
>>59889261
ya ok.

and what do you propose to replace it?

explicit message passing inter-process communication to create segregation of states from one another?
polluted global states?
complex, hard to track, closures?
what faggot?

objects exist and are not going anywhere and oop is better than no oop, even if it's some gimped shit like javascript prototypal objects.
>>
File: 1476547519016.jpg (41KB, 336x476px) Image search: [Google]
1476547519016.jpg
41KB, 336x476px
>>59889261
"Procedural Object-Oriented Programming", or POOP for short, is a cancer in the world of computing.

FOOP is okay, POOP is pure self-contradictory insanity.
>>
>>59889261
OOP? More like POO
>>
File: 1491774444352.png (215KB, 398x370px) Image search: [Google]
1491774444352.png
215KB, 398x370px
>>59890505
ironically OOP is POO in spanish
>>
Fuck OP.
>>
>>59890515
No, no lo es.
>>
>>59890775
>Programación Orientada a Objetos
>>
>>59890989
Shit, I was thinking in another kind of poo. Proceed gentlemen.
>>
>>59889488
Apparently youve never heard of functional programming. Also F# has OOP features so you can have it both ways.
>>
>>59891252
It is a meme you dingus.
>>
>>59891329
You really think heavy-threaded OOP is the future with everyone moving to 8 and 16 core processors? Light-weight multi-threading is the future and functional languages do that best, and with far less code then your typical bloated Java app.
>>
>>59891386
What makes you think you cannot make light weight OOP applications?
Or make it multi threaded?

Obviously some problems can be overengineered with OOP, but you can easily make mistakes with a functional structure.
It can often be harder to make it multithreaded as a lot of algorithms were optimized for complexity rather than how to best divide and conquer the problem.
>>
Looks like a sound method of developing and maintaining software to avoid spaghetti unreadable code. Do you actually have a specific problem with it or are you just going to post pictures?
>>
>>59891692
I have seen a lot more spaghetti POOP than any other paradigm.
>>
>>59889261
t. brainlet
>>
>>59891715
Because you are a retard who never worked with professionals.
no wonder nobody loves you.
>>
File: 1491574253684.jpg (23KB, 320x240px) Image search: [Google]
1491574253684.jpg
23KB, 320x240px
>>59890515
its in portuguese.
We say: Programação Orientada a Objectos

Its disgusting, to me assembly its way more easy to learn and make stuff than this shit.

Teachers get surprised when i say C++ its easy. Then they say Java its way more easy than C++.

The world have gone mad, i say.
>>
>>59889488
this
functional shills say oop is bad, then offer either nothing or shit to replace it
>>
>>59889261
op kis ok?
>>
>>59889367

Using it for everything.
>>
>implying extends insinuations
>>
>>59889261
oop is poo spelled backwards
>>
>>59891252
>functional programming
>everything is immutable, i.e. S L O W
>finding behavior in an existing code base is like finding Waldo
>anyone can touch the data
>someone touches the data on the other side of the code base
>CRASH. BAD OUTPUT. NOW FIND THE BUG FAGGOT.

No. FP is fine for some narrow use cases. It's shit otherwise.

That said, OOP gets a bad rap because it's strongly associated with Java, which is slow shit, and Java frameworks, which are overly complicated slow shit, all used by Pajeet, who doesn't understand OOP and shits in the street.

GOOD OOP, proper OOP, OOP by someone who is not a moron, is pottery.
>>
File: the_smug.png (306KB, 593x540px) Image search: [Google]
the_smug.png
306KB, 593x540px
There are a lot of people in this thread who don't actually have jobs as programmers.
>>
>>59893143
>Java is slow shit
i wish this meme would die already.
java is the fastest language that runs on a virtual machine.

yes, it's slower than low level languages, but that's how you pay for portability, security and stability.
>>
>>59889261
OOP is great in a lot of situations. I'm glad you're such an edgy contrarian who doesn't conform to industry standard practices.
>>
>tfw you actually like OOP
>>
>>59893332
>i wish this meme would die already.
It's not a meme. On code competition sites Java will often run 50-100x slower than C for the same fucking algorithm. When you start to optimize shit in the C or C++ version the speed difference can grow to 1,000x or more.

>java is the fastest language that runs on a virtual machine.
JavaScript is faster. C#/VB.NET are a lot faster and the .NET runtime is pretty damn close to being a "virtual machine."

>yes, it's slower than low level languages, but that's how you pay for portability, security and stability.
Define "portability" because C/C++ will compile to just about anything in existence. Qt gives you a GUI on major systems.

And there are other options. Xojo gives you a high level language, native binaries, native UI controls, a nice cross platform framework, and it is WAY faster than Java.

Java is a meme.
>>
>>59891252
I'm aware of functional programming which is why i said closures you dingus.

you have to have some form of state and in FP closures are the way to keep state unpolluted.
>>
>>59893604
>On code competition sites Java will often run 50-100x slower than C for the same fucking algorithm

there is this thing called JIT lag tardo.
maybe you should learn it.
humorously enough, that same JIT is why java can be faster than C in some cases while still being safer.
>>
>>59893604
>Define "portability"

being able to compile a static uber jar and drop it on any machine running various OSes and potentially different CPU architectures where a JVM exists.
>>
>>59889488
>and what do you propose to replace it?
Nothing.
You just eliminate it, period.
>>
>>59893727
>there is this thing called JIT lag tardo.
Nice try but that's taken into account.

>humorously enough, that same JIT is why java can be faster than C in some cases
Never seen it in the real world.
>>
>>59893748
>where a JVM exists.
>"portable"
So C is more portable when dealing with embedded or resource constrained systems. Got it.

Also: JavaScript could fit that definition and it's faster. .NET is damn near there as well.
>>
File: oooowauuh.jpg (44KB, 640x616px) Image search: [Google]
oooowauuh.jpg
44KB, 640x616px
>>59889261
>Can't spell poop without OOP
hmmm...
>>
>>59890515
Same in French
«Programmation Orienté Objet»
>>
>>59894083
>So C is more portable when dealing with embedded or resource constrained systems. Got it.
>word padding
>different definitions of "int"
>endianness
>portable

ok, kid. and you still need at least a basic libc on the target platform just like you need a jvm on the target as well, unless you're so 1337 you can just inline assembly like some cool kid which will NEVER be portable.

>>59894063
>Nice try but that's taken into account.
ok kid, then java wouldn't be that slow.
also clearly you're retarded if you think being able to dynamically recompile to optimize for frequent access patterns won't result in greater speeds prove you know shitall about the jvm or its power.
>>
>>59889367
literally nothing
>>
>>59894227
literally this.

if you don't like OOP, no one is forcing you.

you can use shit like Erlang or Elixir if you want light weight processes and IPC, with functional twists

if you want pure FP, you have shit like Haskell, which includes a very rich meta-programming feature and strict type safety.

If you want to be a literal retard and cause the next major CVE, you have shit tier procedural ASM-like garbage such as C.

Or, you can continue using OOP shit like, java, C++, etc.
>>
>>59894427
there is literally nothing wrong with C
>>
>>59894212
>>So C is more portable when dealing with embedded or resource constrained systems. Got it.
>>word padding
Compilers generally deal with this.
>>different definitions of "int"
The definitions are of the form "guaranteed to AT LEAST be this." If you understand that it's not a problem.
>>endianness
Only really an issue if you're doing very low level bit manipulation. If you're doing this it's for performance and Java can't match it any way.
>ok, kid. and you still need at least a basic libc on the target platform just like you need a jvm on the target as well,
And which one is on more platforms?

>>>59894063
>>Nice try but that's taken into account.
>ok kid, then java wouldn't be that slow.
>"hurr durr my theory trumps observational evidence"

Java is that slow. It is consistently slower than C, C++, C#, VB.NET, and JavaScript, is often slower than PyPy, and is even sometimes slower than Python. It only consistently beats Scala and Haskell.

I was indifferent to Java performance before spending time reviewing submissions on a couple code competition sites, and would normally parrot "it's slower than C++ but still fast" because that's the meme. I would bitch any time I had to use an end user GUI Java application because they all seem slow as fuck, but I would chalk that up to Pajeets or Enterprise framework shit.

But what I've seen has blown that meme away. Java really is fucking slow. It's slow on simple algorithms. It's a fucking dog.

>also clearly you're retarded if you think being able to dynamically recompile to optimize for frequent access patterns won't result in greater speeds
>MUH THEORIES!
>WHAT...ABOUT...MUH...THEORIES!

If it helps at all, it's not enough to overcome Java's other issues. Get your nose out of some fucking book and actually test code.

And as for "access patterns", NOTHING beats understanding the CPU, caches, and cache prefetch algorithms, and writing your C function (or assembly) accordingly.
>>
>>59894451
inconsistent int sizes
>>
>>59894502
>Java really is fucking slow.
source or gtfo
>>
>>59894502
t. benchmarking pro

also you're literally wrong if you think C is more portable than a JVM. You literally need a full-blown virtual machine framework like LLVM, a strict standard and a shitload of man-hours put into compilers, standard libraries and cross-platform compatible kernel API
>>
>>59894520
Excuse me? One plus about C is you always know exactly how many bytes you're taking up and can specify. Do you use int for everything like a retard instead of uint8_t for small loop counters and size_t for array indexes etc.?
>>
>>59894661
except when struct padding comes up.

face it, if you want a consistent C experience you need some IR, like what LLVM gives you.
>>
>>59894702
>except when struct padding comes up.
It never comes up unless you're a retard.
>>
>>59894569
To pick one site:

* Sign up on HackerRank.

* If you don't care about participating or earning points: just pick some challenges, click the Leaderboard tab, and confirm that you want to see other solutions and don't care about earning points. Once you view other solutions or the editorial you can't earn points for your submission.

* Now copy/paste C, C++, and Java solutions off the leaderboard into their code editor and run them. Check the times.

Java is horrible.
>>
>>59894812
>JIT lag is horrible
not really.

to be fair, did you try AOT compiled Java?
you know that OpenJDK made this if you don't mind gimped long running performance but don't want JIT lag.
>>
>>59894617
>t. benchmarking pro
Ignore the real world all you want. It still exists.

>also you're literally wrong if you think C is more portable than a JVM.
What language can target more platforms right now today? By that definition C is more portable.
>>
>>59893143
>everything is immutable
>someone touches the data on the other side of the code
>CRASH

could you elaborate?
>>
>>59894661
>uint8_t for small loop counters
That's fucking stupid. All of the arithmetic is done as int anyway due to integer promotions, your inhibiting compiler optimisations by using an unsigned type, and it's not totally portable.
If you need a small integer, just use int. There is very little reason to use anything smaller, except for members of structs and whatnot.
>>
>>59894864
the real world rarely has to worry about speed in most cases, since there is always going to be a 40-50ms delay in almost any network and you have load balancing, caching and clustered systems to handle large traffic volume.
>>
>oh no, Java isn't in this machine
>go to the internet
>download Java
>Java is now portable
>>
>>59889261
OOP is undisputedly the best way for game programming, but beyond that, I don't see a reason for it.
>>
>>59894908
You mispelled ECS
>>
>>59894451
true
>>
OOP has been through so many iterations and re conceptualizations (remember when inheritance was its killer feature?) that it barely even means anything anymore.
>>
>>59894864
>What language can target more platforms right now today?

what the fuck do you mean?
so your hello world horse shit C can build anywhere? good for you?

Java jars can literally be compiled on any JDK--ignoring nonfree J2E bullshit, and run on virtually any major--relevant, platform that Oracle or OpenJDK have made a JVM for.

this is portability. you don't need inline asm or rely on kernel or libc specific ABI or APIs, you don't need external toolkits which have to be built specifically for your platform which have to handle shit like different window servers, DRM/DRI infrastructure, etc.
you literally go on Maven central, dl some jars/classes, and the fucking Oracle devs make it jus werk. you don't have to do virtually anything.

that is real portability kid
>>
>>59894851
>it's the JIT lag I swear!!!
God damn you are a broken record. You really believe nobody thought about that? They are either accounting for it or it's too small to be relevant. You can prove this by running a hello world app. Which is the first thing I did the first time I saw an algorithm take 100x longer in Java than C and thought "can this be right???"

>to be fair, did you try AOT compiled Java?
>muh portability means Java is best!
>did you try discarding portability???
If we're trashing Java's famed portability then why not use C++?

>>59894888
>moving the goal posts
>pajeet attitude on performance
This is why we have web pages that push the TDP limits of phones and desktop apps that take 13% of the CPU to blink a fucking cursor.
>>
>>59894921
>ECS
>used by a handful of literally whos who never published their code, automatically assumed to be good because it's not OOP
>>
>>59894954
>what the fuck do you mean?
Exactly what I said. Is English a second language for you?

>"platform that Oracle or OpenJDK have made a JVM for."
And there's your problem.
>>
>>59894874
Depends on the architecture.
x86 has a few special encoding for 8-bit operations (and even smaller for eax particularly) so you can save instruction bytes.
And on x86_64 you get unsigned zero extension to 64 bit for 'free' (on movs), so it can often be advantageous to use them over int since it's 32 bit on all x86_64 targets.
>>
>>59894661
using uint8_t for loop indexes usually doesn't do anything since the counter will likely be stored in a register and the 8bit registers are simply aliases to the lowest byte of the bigger ones anyway

>>59894874
how does it actually inhibit compiler optimizations?
>>
>>59894959
t. someone saying run some one shot java source code off some meme benchmarking/coding e-peen site.

and ya no shit AOT is garbage, which is why JIT lag is irrelevant for any real system using java.
>>
>>59894871
Immutability does not solve the same problem that data hiding solves in OOP.
>>
>>59894981
so instead you have to rely on Apple devs or GNU devs to build a compiler/VM toolkit like GCC or LLVM for you?

wow, such a shocking distinction. it's still ignoring literally everything else I said.
>>
>>59894988
That's not important. Arithmetic on chars/shorts are done as int. It's called integer promotion.

>>59894994
>how does it actually inhibit compiler optimizations?
It can't assume that it won't overflow.
>>
>>59895012
How does reading a value cause a crash? Keep in mind that the only way a function can touch a value on the other side of the code is if that variable is passed the entire way down.
>>
>>59895010
IT AIN'T THE JIT LAG FAGGOT.

There are challenges on that site where C solutions finish in 0.02s and Java solutions finish in 2s. Are you going to tell me JIT lag is 1.98s? My reply is going to be "try hello world." Now where's your JIT lag?

Java. Is. Slow. Deal with it.
>>
>>59895034
>That's not important. Arithmetic on chars/shorts are done as int. It's called integer promotion.
If it's assigned to an 8 bit variable you can use 8-bit ops, since a promotion and demotion would be redundant.
>>
>>59895043
>How does reading a value cause a crash? Keep in mind that the only way a function can touch a value on the other side of the code is if that variable is passed the entire way down.

I'm not talking about crashes. I'm talking about you doing something with a variable that ultimately gets passed to me in the wrong form or with the wrong data.
>>
>>59895063
So you're using java to make one shot software and claiming JIT lag doesn't cause any problems even though JIT plays an important role in Java's performance.
>>
>>59895030
* Count the number of targets for C.
* Count the number of targets that can host a JVM.
* Compare the numbers.

Nothing else you have to say is relevant for the following definition of portability:
"How many systems can the language currently target?"
>>
>>59895119
>* Count the number of targets for C.
this is irrelevant since that doesn't imply all of your C code is API, and very strongly unlikely to be ABI, compatible when the JVM is both of these.

thus java source code and binaries are more portable
>>
>>59895092
>trying this hard

Their timer either does not include JIT lag, or JIT lag is so low as to be irrelevant. It is not the reason Java gets blown out by so many other languages, and royally blown out by C/C++.
>>
>>59895091
>I'm not talking about crashes
>CRASH. BAD OUTPUT. NOW FIND THE BUG FAGGOT.

>ultimately gets passed to me in the wrong form or with the wrong data
Could you give me an example? This sounds like an issue with static vs. dynamic typing and unrelated to functinal vs oop.

Looking at the original comment, the language in question was F# which provides more static guarantees than C#.
>>
>>59895119
Another thing to add:

For a platform where a compiler currently doesn't exist, how long would it take to port one over?

C is gonna win over Java there as well (in fact Java has no chance since JVMs are written in C++).
>>
>>59895091
But that's the point. FP isolates the problem so that you know if you got the wrong value the problem is in that function and not on outside state. You can't expect it to prevent all bugs ever.
>>
>>59895063
>seriously using a task that executes in 0.02s for a benchmark
Try one that lasts a non-trivial time period, kiddo
>>
POO in spanish

Programación Orientada a Objetos
>>
>>59889488
Retard. Every hear about actors? There's this thing called concurrency that's all the rage.

The idea of objects (basically a dynamic struct) isn't bad its when a languages forces you to use them for everything. Sometimes only a function isn't needed. Not an interface. Not a class. Just a function. But no instead everything has to be described as a class.

I'm guessing that you've only ever programmed in Java or C#.


Every hear about object capabilities? If you were to have prototype-based objects that shared their properties vis-a-vis capabilities you could have your cake and eat it too.

Also bear in mind the fuckton of overhead that objects and classes take while simultaneously over-complicating even the simplest of tasks. Read the OOP considered harmful essay.


tl;dr you're a faggot
>>
>>59895063
>There are challenges on that site where C solutions finish in 0.02s and Java solutions finish in 2s.

This is so fucking retarded. Post the specific challenges and the code, instead of saying 'there are cases' and trying to imply it's what usually happens.
>>
>>59895161
Yes.

>>59895188
The point is it claims to solve one set of bugs...which aren't really a problem in OOP either...while making it more difficult to solve another set that OOP solves almost completely.

>>59895191
It gets worse for Java when you run the code locally and feed in test data that's larger then their limits allow.
>>
>>59895239

this, it's basically what I said here >>59892445
OOP is fine but not everything is an OOP problem
>>
>>59891628
A C T O R S
C
T
O
R
S
>>
>>59891758
I think it's the same in any SVO languages, including all Romance languages.
We say "Programare orientată spre obiecte" in Romanian
>>
>>59895239
so explicit message passing and "lightweight" processes?

Erlang is slower than Java, fact.

>The idea of objects (basically a dynamic struct) isn't bad its when a languages forces you to use them for everything.

this isn't a bad thing if your workflow demands composable modules with a strict provide and require interfaces. this is the case for actual enterprise software.

>If you were to have prototype-based objects that shared their properties vis-a-vis...

so more explicit message passing overhead. good for you.

ok kid
>>
I never programmed functionally. What is so great about clojure, Haskell vs Java?
>>
>>59895308

>this isn't a bad thing if your workflow demands composable modules with a strict provide and require interfaces. this is the case for actual enterprise software.

What is the diamond problem?

Enterprise software or any other software for that matter does not require using class-based OO. Only an idiot would think that class-based OO is a swiss army kinfe.

>so more explicit message passing overhead. good for you.

Capabilities are less overhead than class definitions. Capabilities also provide superior security via an unforgeable token. Look at the exokernel project. They made a system faster than any modern OS. Faster and more elegant than Plan9. Java can't do that.

I know that you haven't read about capabilities btw. Nice try.
>>
>>59895360
clojure is a meme. if you like writing out your own AST, like what all lisp languages are, go for it but it's not incredibly fun or useful.

haskell is super cool language that really leverages the type system to solve certain problems and ensure correctness.
plus you have stuff like guards, recursion etc.
Only downside is it's very strictly fp and any stateful laden problems are going to depend on complex "monads" to handle which is the FP way of being procedural.

a lot of system haskell is going to be loaded with shit like do, etc, as well. at the end of the day FP is just a different way of trying to abstract programming, but it doesn't mean it's very useful way of solving that problem.
>>
>>59895360
From my experience with other functional languages:
>closer to mathematical description of the problem
>universal polymorphism (contrasting with java's flawed generics)
>comfy type system
>pattern matching
>better encapsulation with abstract data types
I suppose Clojure and Haskell also should apply to those points (at least Haskell, since Lisp is a specific language family).
>>
>>59895483
no i haven't because it sounds like a meme and at best.

also yes the diamond problem is a realistic problem with class systems, using inheritance, which is why, like everything, you have to know when to denormalize. it's also why java doesn't let you have multiple inheritance.

your shitty "capabilities" problem just sounds like a reinvention of CORBA style pluggable components, which still comes to the same solution. strict provide and require interfaces.
>>
Has anyone tried AOP?

https://en.wikipedia.org/wiki/Aspect-oriented_programming
>>
>>59895483

>What is the diamond problem?
basically irrelevant because the only OOP language that people actually use which has the diamond problem and multiple inheritance is C++
>>
>>59895254
It's hard to tell what problem you are referring to. If the problem is that reading a value can cause a crash/bug, this can happen in ANY paradigm.
>>
>>59895239
Every program can be designed for OOP. If you think it would ever be a good idea for a class to have one function, you don't understand OOP. Please stop posting and do your homework.
>>
>>59895700

>If you think it would ever be a good idea for a class to have one function, you don't understand OOP
...but that's the entire criticism.
Sometimes you just need a function to solve your problem. Pure OOP doesn't let you do that.
Any programming paradigm is shit when you use it to the exclusion of everything eles.
>>
>>59895538
>>59895518
Great thank you both for your detailed answers. Motivated me to learn Haskell
>>
>>59895700
What about a calculator library which have one public function which accepts a string math expression and has multiple internal functions such as tokenizing the string, converting it from infix to postfix then finally solving it in the solve function using a stack? Not to mention all the countless math and utility functions you'll need.
>>
>>59895850
if it has many internal functions then it isn't one function
>>
>>59895779
If your program is that small then who really cares about the design?
>>
>>59895834
you might be better off just doing javascript first.

it gives you a mix of styles you can leverage. it's pretty functional nowadays thanks to ES6
>>
>>59893604
>On code competition sites Java will often run 50-100x slower than C for the same fucking algorithm
utter bullshit. it's a few times slower at worst and has similar speed in 90% of real life cases
https://benchmarksgame.alioth.debian.org/u64q/java.html
keep in mind this benchmark includes the JVM startup time and doesn't really showcase JiT optimization
>>
>>59893604
>JavaScript is faster. C#/VB.NET are a lot faster and the .NET runtime is pretty damn close to being a "virtual machine."
lol
>>
>>59895292
>romanian
ugh
>>
>>59896223
>the .NET runtime is pretty damn close to being a "virtual machine."
agreed
>>
>>59889488
You take that about prototypes back!
>>
>>59893812
>just eliminate programming

kys
>>
>>59896199
>utter bullshit. it's a few times slower at worst and has similar speed in 90% of real life cases
Go to the site and find out for yourself. It's not bullshit. It's challenge after challenge, algorithm after algorithm.

>https://benchmarksgame.alioth.debian.org/u64q/java.html
>2-3x slower
>5-6x slower in a couple cases
>"has similar speed in 90% of real life cases"
No. It doesn't. Not even by your benchmarks.

I'm seeing far worse on code competition sites. Which, admittedly, involve code more like the binary tree sample in the benchmarks you posted. And Java just gets its ass beat.

Go lookup the "Almost Sorted" challenge at HR where the C++ submissions finish the worst case in about 0.03s and Java does it in 0.65, slower than Python. There's a C submission that does it in 0.01 (so 65x faster than Java).
>>
>>59896972
>Go to the site and find out for yourself. It's not bullshit. It's challenge after challenge, algorithm after algorithm.
I'm not gonna register on some site just to see results which are meaningless without knowing the exact execution details, sever setup and the source code. Find or make benchmarks that at least try to follow some basic benchmarking rules, if you want to compare languages.
>No. It doesn't. Not even by your benchmarks.
>even
read the sentence you were referring to again. it's an extremely computational heavy benchmark code made specifically to highlight speed differences, not the code that can be found in regular software
http://blog.optionscity.com/java-vs.-c-performance-face-off-part-ii
>Go lookup the "Almost Sorted" challenge at HR where the C++ submissions finish the worst case in about 0.03s and Java does it in 0.65, slower than Python. There's a C submission that does it in 0.01 (so 65x faster than Java).
it's batshit crazy to even suggest that Python comes anywhere close to Java performance without using C library wrappers
https://benchmarksgame.alioth.debian.org/u64q/python.html
>>
>>59897488
>I'm not gonna register on some site just to see results which are meaningless without knowing the exact execution details, sever setup and the source code.
Well then fuck off. It's always going to be an excuse from you. No one gets a faster server and you can see the source code. (You HAVE to see it to copy/paste and run it for the execution times. Leaderboard only shows you that someone succeeded, not their times.)

>read the sentence you were referring to again. it's an extremely computational heavy benchmark code made specifically to highlight speed differences, not the code that can be found in regular software
Regular Java software runs like shit with a shit UI. It always has. I've never once used a Java app that was fast or that had a decent UI. We're at the point where some web apps look better and run faster.

>it's batshit crazy to even suggest that Python comes anywhere close to Java performance without using C library wrappers
I said Python was faster on that challenge (worst time of 0.44s). Because of wrapped C libraries? Perhaps. But that just reinforces which language is truly fast.
>>
>>59896541
>just eliminate programming
Where did you get that from?
>>
>>59897831
>Well then fuck off. It's always going to be an excuse from you. No one gets a faster server and you can see the source code. (You HAVE to see it to copy/paste and run it for the execution times. Leaderboard only shows you that someone succeeded, not their times.)
you should fuck off with pushing a fucking code competition site, which magically contradicts just about every published benchmark and provides not way to actually verify the results. check what a benchmark is first.
>Regular Java software runs like shit with a shit UI. It always has. I've never once used a Java app that was fast or that had a decent UI. We're at the point where some web apps look better and run faster.
>moving goalposts
we're talking about the objective language speed, not your opinions about GUI libraries design
>I said Python was faster on that challenge (worst time of 0.44s). Because of wrapped C libraries? Perhaps. But that just reinforces which language is truly fast.
no one is arguing that Java is faster than C, just with your ridiculous claim that it's 100 slower, while in fact the difference is negligible in most real-world cases. Python would have to basically execute wrapped C code without doing anything else during some very computational heavy task to be faster than Java
>>
>>59889261

abstract classes and anyone who implements them are fucking idiots java fags kys
>>
>>59891758
Must be though being that mentally challenged, I too like C++, which is all POO btw, but if you can't see where POO is useful, or if you actually think that Assembly is easier than, say C# ou C++, you're either a contrarian hipster or just plain retarded.
Aposto que e's um macaco brazuca mas Angola e' nossa e Olivenca tambe'm
>>
>>59898200
>you should fuck off with pushing a fucking code competition site, which magically contradicts just about every published benchmark
>published benchmark: a half dozen algorithms
>code comp site: hundreds of algorithms
>MUH PUBLISHED BENCHMARK!!!
If it makes you feel any better there ARE challenges where Java is "only" 2-3x slower than C++. They're rare, but they exist.

>and provides not way to actually verify the results.
Liar. As I described above you can see user submissions, time them, download them and time them on your own machine. You're a faggot to resort to lying to protect your shit language.

>we're talking about the objective language speed, not your opinions about GUI libraries design
Fine. Java is 2-6x slower on MUH PUBLISHED BENCHMARKS and 50-100x slower on generic algorithm challenges.

>just with your ridiculous claim that it's 100 slower,
I said it can be 100x slower. And that is a factual claim which you can verify any time you're done being a bahbee.

>while in fact the difference is negligible in most real-world cases.
>2-6x according to MUH PUBLISHED BENCHMARKS!
>"negligible"
>>
>>59889261
>No seriously though, fuck OOP.
That's because what most people know as "OOP" is some strapped on abomination added to a language which isn't really object oriented in the first place.

Look at Smalltalk or Self if you want to see OOP done right.
>>
>>59899462
>they exist
Yes it's basically only that fast when calling a library written in C or C++ though.
Thread posts: 126
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.