[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]

I started learning programming to fix some known issues in Linux/BSD

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: 31
Thread images: 7

File: 1479111494120.png (118KB, 1192x513px) Image search: [Google]
1479111494120.png
118KB, 1192x513px
I started learning programming to fix some known issues in Linux/BSD apps. So I had to learn C.
C is a great language and I have been told to use C++ as a complementary to C.
However as I am digging deep I discovered that while there is a performance gap (arguable) between C++ and Java, C++ and C tends to produce insecure programs more than Java does.

Can you give me an honest perspective of becoming a C/Java developer instead of C/C++? And why don't people like both C and Java. I think Java is actually better than C++ if you have enough Java tuning and good practices.
>>
>>58741834
I think Python is better than Java
>>
>>58741843
Python is great but it is very very slow
>>
>>58741851
And so is Java.
>>
File: 1392663406574.jpg (63KB, 500x600px) Image search: [Google]
1392663406574.jpg
63KB, 500x600px
>>58741834

Learn C++17
>>
File: 1472716714340.png (6KB, 450x280px) Image search: [Google]
1472716714340.png
6KB, 450x280px
>>58741862
That is honestly a false equivalency
>>
>>58741865
Are you a C programmer?
I'll have you try this >>58725257 and realize how hard it is to
1. Come up with a working code in time
2. Then making it secure
>>
File: 1485535318236.jpg (40KB, 720x602px) Image search: [Google]
1485535318236.jpg
40KB, 720x602px
>>58741877
>posting a graph without a source
It would be better to post nothing at all, fagman.
>>
>>58741912
http://elliottback.com/wp/ruby-vs-php-performance-revisited/
>>
>>58741851
>very very slow
I've seen a lot of people saying that but they never say what kind of software they want that having faster execution is a must.
>>
>>58742029
What if I write an IDE?
>>
>>58741834
>C++ and C tends to produce insecure programs more than Java does.
what ? no, shitty programmers do.
>>
>People hate java
Learn Scala or Groovy

>JVM performavce
>Java libraries
>>
File: 1485165681431.jpg (68KB, 431x450px) Image search: [Google]
1485165681431.jpg
68KB, 431x450px
>>58741924
>9 year old blog post from Mr. Nobody who doesn't specify which method he uses for benchmarking and admits he just ran random code 10 times on his craptop
>everyone in the comments calling him out on how his benchmark is bullshit and that a byte-compiled language like Java could never perform better than C++ on any sane benchmark
>>
>>58742041
I can understand more elaborate and corporate stuff like VMs, runtimes and real-time shit but some common day-to-day stuff?
>>
>>58742137
>>58741862
Welcome to /g/ where memes become forced into reality.

Today's episode: "Python is faster than Java :D"
>>
Learn them all. I like learning languages, it's pretty easy and I feel like I've accomplished something.

What you don't want to do is spend lots of time "researching" pros and cons of different languages. That shit is a black hole of time and energy.
>>
>>58742170
>VMs
It's a job for C and ASM. Not Java.
>>
>>58742205
Never said it was.
>>
>>58741834
Making insecure applications is the programmers own fault, there have been books about how to write safe code and test it.
Also bit of math involved if you want to write correct code, go back to assembly and learn how memory works.
>>
>>58742226
I'm good at maths but looking for security is a journey that never ends.

Even good programmers like Linus will produce insecure codes.
>>
>>58742243
Because Linus doesn't like security, he has shown that multiple times.
He doesn't think security, and that's the problem.
Reminder that grsecurity patches could already be in mainline if devs actually thought about security.
>>
>>58742366
>Because Linus doesn't like security,
Most of the security flaws in Linux are not because Linus wanted it to be that way.
>>
Java is fine for most things; yes native code is by nature faster most of the time, but unless you're writing something extremely performance critical java's sufficient. Yes it has a fat runtime but it's not orders of magnitude slower for most cases (like the mergesort comparisons linked above)
>>
>>58742405
The problem is there have been safe applications/kernels written in C.
Security costs time and money, developers don't like wasting time.
It's that someone started the KSP project otherwise nobody would have done it, and even KSP is having a hard time.
>>
File: 1469730903718.png (181KB, 936x1986px) Image search: [Google]
1469730903718.png
181KB, 936x1986px
>>58741865
>That picture
I don't think you understand my superiority
>>
>>58742455
The JVM really is pretty damn fat though and the "ecosystem" tends to be fat as fuck as well. You have to try really hard to write lean Java, especially if you have to touch anything related to EE.
>>
File: Untitled2.png (27KB, 1888x422px) Image search: [Google]
Untitled2.png
27KB, 1888x422px
>>58742487
no, software has bugs
period
nothing you can do about it
Another example would be NASA and other space agencys, which validate code similiarly if not more extensively. Yet several rockets have crashed due to software bugs.
>>
>>58741851
Python is utter shit.
>>
Long-lived processes are important.

If you want long-lived processes, particularly if they're going to be public facing, you want memory management. Sure, there are some C projects with great uptime - Apache and the various Unixy kernels - but they are few and written by programmers far better than you.
>>
>>58742635
I love scala
Thread posts: 31
Thread images: 7


[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.