Stefan
When everything is safe it's boring. Also small is still small and has some cool and some shit features.
LOL. being safer is boring. all hail my software bug overlords that shitstacked over the last 30 years thanks to C. Microsoft should never adopt rust in windows because it is safe and boring
Mar!o
For companies it's different
Mar!o
Still Rust has many problems
Mar!o
But the general idea is good
Mar!o
I Rust and C++. Rust for an VM and C++ for a engine.They are like brothers
Stefan
This was more meant from a usage as hobby developer for hobby projects lol
https://github.com/cloudflare/boringtun yeah right and learn more kiddo
Mar!o
lol
Stefan
also facebook libra, small right?
Mar!o
I've said the language is small
Mar!o
Especially the std library
Mar!o
Also with all the creates there is so much dependency bloat. A simple logging crate depends on 20+ others.
Mar!o
Often they are outdated or not required
M__
Nothing will replace C/C++ Not even rust Because the c++ is larger than you can even imagine
Mar!o
It's just a hype which will be over in some years
Stefan
Also with all the creates there is so much dependency bloat. A simple logging crate depends on 20+ others.
rust is based off of composition so no worries for a lot of bloat like in c++
M__
rust being memory safe means it must have sacrificed some execution speed
Mar!o
rust is based off of composition so no worries for a lot of bloat like in c++
Doesn't matter. I had many problems with outdated crates. I do not care about the size of the final binary. I just like to overlook my 3rd party crates. And with rust it's a spam.
Stefan
rust being memory safe means it must have sacrificed some execution speed
hmm true. atomicity, borrow checking and result matching are the three major problems right?
Mar!o
We need a crate for chrono, for bitmasks. Wow thanks Rust
Mar!o
hmm true. atomicity, borrow checking and result matching are the three major problems right?
Compare assembly of them. Rust is a bit slower sometimes and a bit faster sometimes
olli
rust: haha safe system programming go reeeeeeee
might happen eventually, but rust doesn't even have a formal spec and is hence not suitable for safety critical software. Even if it had a spec, a rust compiler would need to be 'certified' as well.. which would probably take even longer.
Mar!o
It also has one compiler
Mar!o
We might see Rust overtake in 10 to 20 years and there will be still lot's of C++ code
Stefan
We need a crate for chrono, for bitmasks. Wow thanks Rust
i guess its fine...they did it for zero cost
Stefan
It also has one compiler
MIR backend is on the way *cranelift
Mar!o
i guess its fine...they did it for zero cost
No it's not. That should be a basic language feature. Try programm with Rust on a render server without networking xD
Mar!o
For game development C++ is still king by far because of the libraries like unreal engine 5
Mar!o
can you transfer by UART/serial?
No the connections are always full from the data pipeline. I had to copy the fucking crates to a USB
Mar!o
I'm not saying that. I use both. I like both. I think C++ is a better choice for most projects. I like C++ syntax and keywords more except from the integers. Rust has potential but some things are not tested enough or just annoying
Mar!o
😂bake the execuable before it
How should I compile for the server's architecture on a laptop it will never optimize it as it would be compiled on the server. It can easily detect all instruction sets and extensions, cache size etc and do the best?!
Mar!o
I really like the integer keywords in Rust. u16, i8 and i64 names are much better than unsigned short etc...
Mar!o
cross compiler, use xargo
It was 4 years ago I think. There was no real option
Mar!o
The crate Spam is just not always great
Mar!o
And rust has no fancy template meta programming.C++ ist just a monster with tools for everything. And I love that variety. I also understand that n00bs and beginners don't like that because it's more to learn
Mar!o
calling ue5 a library? huh
Sorry meant engines. C++ has excellent libraries and engines
Mar!o
Most of the people should just stop crying about C++ and make little project's in it. Learning by doing is the key.
V01D
most of the fundamental software around us is written on C
Well C is very old, and geared toward kernels and drivers. I can see C being obsolete for a large spectrum of cases, but never fully obsolete because C is the base of any lowlevel stuff we know.
Anonymous
you know.. import OS;
Well you can include an OS Really https://github.com/includeos/IncludeOS
V01D
Bruh.
V01D
V01D
Since I only know ROP, who can tell me if OOP or ROP is better? When is either one better? Is either one faster?
V01D
(Learning C++, so I got curious.)
Anonymous
Since I only know ROP, who can tell me if OOP or ROP is better? When is either one better? Is either one faster?
Both have their own pros & cons Return-oriented programming (ROP) is a computer security exploit technique that allows an attacker to execute code in the presence of security defenses such as executable space protection and code signing. Object-oriented programming(OOP) is a programming paradigm based on the concept of "objects", which can contain data and code: data in the form of fields, and code, in the form of procedures. A feature of objects is that an object's own procedures can access and often modify the data fields of itself. Java is pure OOP language and C++ have both the features Procedure oriented programming(POP) And Object Oriented Programming (OOP)
Francesco
Hello
R
Which language is more widely used C++ or Java
Anonymous
java is in over 3.1 billion devices
Anonymous
What is the wrong pointer reference in the code ?? myfunc (const int** a) { . . } main () { . . int a[][] = {{ 1..2..}}; myfunc(a); }
Daniele
What is the wrong pointer reference in the code ?? myfunc (const int** a) { . . } main () { . . int a[][] = {{ 1..2..}}; myfunc(a); }
you are declaring a double pointer, not an array of pointers. you need to use int* a[SIZE] or int a[][SIZE]
Anonymous
If i take input during runtime ?
Stefan
java is in over 3.1 billion devices
which is recently removed
Daniele
If the size is unknown?
pass a size variable to the function and use int* a[][size], but this won't work in C89
Daniele
If i take input during runtime ?
I don't think you can do it, but maybe I'm wrong
Daniele
maybe you can in later standards because you put const int instead of int, but I'm pretty sure you can't in C89
Anonymous
maybe you can in later standards because you put const int instead of int, but I'm pretty sure you can't in C89
Thank you I understood Is there any way i can pass the parameter if i don't want to pass the size in the function argument ?
Anonymous
In C99
Daniele
I don't know about that unfortunately, I'm sorry
Could I send a link
Hi
Hamed
Hi
$ VISHNU KUMAR D S
How can I started learning c++
$ VISHNU KUMAR D S
I need full basic of C++
$ VISHNU KUMAR D S
Can you give
$ VISHNU KUMAR D S
Please
Anonymous
Yess.
silver
Hi everyone... So I've need doing some research on data compression and I came across something called the Huffman tree and how it reduces the number of bits in a set off data... But I have two questions... Does the Huffman tree itself take up storage space since it's included on the file once it's compressed and if it does how much space would it take. Thank you in advance.
V01D
Btw from where did you learn ROP ?
Thanks. ROP is present in C, or not?
Emir
The output of this code “i’m in scope” why?