[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: cpp.jpg (64 KB, 850x400)
64 KB
64 KB JPG
>Memory safety without garbage collection
>Readable and modern syntax
>Encourages good programming habits
>Immutable by default
>Doesn't compromise on performance
>>
>>106511980
>Hormone replacement therapy
>Gender reassignment surgery
>>
I haven't written a single C++ line since I learned Rust.
>>
>>106511980
>readable
kek
>>
>>106511980
I can tell that literally everyone using Rust has a macbook with something like 2TB of storage
Cargo generates a huge target folder and it is just not usable on my machine with 256GB storage, 240GB of which is already full.
Especially for me, because I have many small projects instead of one big project. It is virtually impossible to have a rust project that is less than 1GB when you du -sh dir_name

Meanwhile C, Zig, Odin use dynamic linking so you only install dependency once (and it is also smaller), and Go uses caching so that one dependency is reusable between multiple projects.
>>
File: 1756382726126542.jpg (104 KB, 1280x720)
104 KB
104 KB JPG
>>106512069
You haven't wrote one before either.
>>
>>106511980
Man I'm just so tired of C++/Rust threads shitting up the board. Show your github OP so we can see all your marvelous Rust creations. Sage'd.
>>
>>106512214
I think it's just a small team of transsexuals (possibly janitors spoofing traffic) with zero board specific interests making the rounds with a checklist of how to troll xyz blue board that post half the shit on the whole website.
>>
>>106512166
You can't know that.
It's kind of funny to use that image while also trying to delude yourself about the reality just because it doesn't fit your narrative.

Yeah, I have been writing C++ for about 5-7 before I learned Rust. I even saved my allowance in middle school just to buy a C++ programming book to learn it.
>>
File: 1669305477960915.jpg (33 KB, 480x360)
33 KB
33 KB JPG
>>106511980
>crap-plus-plus
>young gen-x doo-doo-pee "programmers"
>basically pascal, but for those, who eat a vegan quiche
>*sip*
and that's just sepples, don't get me started on the tranny
>>
>>106512166
good for you. i had to contribute a patch to a major C++ project in the last few days. fortunately, the relevant part of the code base was C-like and interfacing with C libraries, so my disgust was manageable.
>>
>>106512099
>It is virtually impossible to have a rust project that is less than 1GB when you du -sh dir_name
Entirely depends on what you are doing.
My current embedded project is just a little over 1GB, including 100MB of audio/video/image assets + whatever these assets contribute to target folder + drivers for everything + Lua virtual machine.
If I were to use C++ like I did before, just IDF source alone would add half a GB to project size. This, along with Rtos would blow up project size just like they blow up output binary size. There would be no chances of fitting in 1GB even if I just used C++ alone.

>Meanwhile C, Zig, Odin use dynamic linking so you only install dependency once (and it is also smaller), and Go uses caching so that one dependency is reusable between multiple projects.
This only works if you are making user space programs. If you are doing actual systems programming you very often cannot rely on dynamic linking.
And if you are making user space programs on very space constrained setting, you can configure Rust to use dynamic linking too.
>>
>>106512817
>>106512825
>deleted his post to change 100MB to 1GB
holy fucking kek, at least you're honest. 1GB is embarrassing for embedded, and lol at bringing up the Lua VM as if it isn't 100kb
>>
>>106512859
>deleted his post to change 100MB to 1GB
>holy fucking kek
I was moving the text around and forgot to put "1GB, including " between "over" and "100MB". The "100MB of ... assets" is still present in both versions.

>and lol at bringing up the Lua VM as if it isn't 100kb
Official user space lua vm implementation is:
$ du -shc lua-5.4.8/src
980K lua-5.4.8/src


>1GB is embarrassing for embedded
Like I said, C++'s esp-idf source code alone is like half of this. This is not a big number by any means when you do not have an OS to rely on and have to set up everything from scratch on bare metal.


But alright, despite your posting style I will assume you actually know what you are talking about and aren't just trying to argue in dishonest manner in order to push a certain narrative.
Let's see your embedded project and its size.
>>
I'm too lazy to learn a new langugage.
>>
>>106512947
>Official user space lua vm implementation
>posts size of the entire Lua repo
you're an incredibly stupid midwit
>>
>>106513066
>posts size of the entire Lua repo
$ ls lua-5.4.8/src
lapi.c lcode.c ldblib.c ldump.c linit.c llimits.h lobject.c loslib.c lstate.h ltable.h luac.c lundump.c lzio.c
lapi.h lcode.h ldebug.c lfunc.c liolib.c lmathlib.c lobject.h lparser.c lstring.c ltablib.c luaconf.h lundump.h lzio.h
lauxlib.c lcorolib.c ldebug.h lfunc.h ljumptab.h lmem.c lopcodes.c lparser.h lstring.h ltm.c lua.h lutf8lib.c Makefile
lauxlib.h lctype.c ldo.c lgc.c llex.c lmem.h lopcodes.h lprefix.h lstrlib.c ltm.h lua.hpp lvm.c
lbaselib.c lctype.h ldo.h lgc.h llex.h loadlib.c lopnames.h lstate.c ltable.c lua.c lualib.h lvm.h

It's not entire repo, it's just the source code.
I also couldn't find their repo, I just downloaded source code bundle from https://www.lua.org

>you're an incredibly stupid midwit
Why are you getting emotional?
We are just discussing programming, there is nothing to get upset over.
>>
File: 1753347945995487.jpg (7 KB, 250x228)
7 KB
7 KB JPG
>>106513088
Didn't know shit like lutf8lib were part of the VM
>>
>>106511980
Literally all those claims are wrong
You also deny the Y chromsome in all your cells
Weird!
>>
>>106513100
Part of stdlib since 5.3
>>
>>106512825
Systems programming includes userspace programs, such as GNU coreutils for example
But yes, I am making userspace programs only, since I don't own any embedded device and there is no reason to try and develop my own desktop OS because it would not be better than what currently exists.
>>
>>106513134
Yeah, it's true. Still, drivers, operating systems, embedded systems is more typical example of systems programming, even if it might be actually a minority if you consider total LoC.
>>
>>106511980

https://lngnmn2.github.io/articles/programming-without-vapecoding/

/thread
>>
>>106513257
>vapecoding
,?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.