[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / 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

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: IMG_8092.gif (409 KB, 220x229)
409 KB GIF
>start a project in C
>go on constant tangents writing data structures from scratch
>start a project in C++
>get bogged down by the bloated pile of shit that is std
>start a project in java/python/haskell/whatever
>it’s slow as shit
>>
>>110233934
You know, if you just stick with either one of C/C++ you'll eventually end up with your own standard library of things you find useful that you don't have to reimplement for each new project.
>>
>>110233934
Java C# and JS aren't slow THOUGH
>>
>start a project
>it's unfinished
>>
>>110233964
good morning saar
>>
>>110233934
Use Zig or Rust. Or Lua with LuaJIT.
>>
by slow you mean that you didn't even try and dismissed it from the start because you are too lazy, right? java is literally the bell curve meme, currently you are stuck in the middle
>>
using namespace std;
>>
>>110233934
>get bogged down by the bloated pile of shit that is std
How exactly do you "get bogged down"?
>>
>>110233934
i havent written any computer code since 2013
>>
i'm 99% sure the "slow"ness of something like java doesn't matter to your dumb use cases. This type of shit is for low level god tier devs micro optimizing some shit, not some newbie who has difficulties writing C/C++ code.
>>
>>110233934
>I don't use libraries like a true luddite
>>
>>110233934
>start a project in english
>performance is kinda shit
>ask it to rewrite whatever it used in C++ or Rust, whichever looks like a better fit
>performance is good
it just works
>>
>>110233934
You know you dont have to use every single thing std offers, who cares if its bloated
>>
>>110234121
He gets bored and looks at pictures of the Bogdanoffs instead of programming.
>>
>>110234142
No you don't understand I HAVE to find some way to use every class in the standard library in each program I write, if only it didn't have so many classes I could use C++ so much more easily :(
>>
>get bogged down by the bloated pile of shit that is std
Explain in depth what about the stdlib is "bogging it down".
>>
>>110234205
>bro you don’t use raw pointers bro this isn’t idiomatic C++23
>you need to use std::unique_static_ptr in this case
>just don’t confuse it with std::static_unique_ptr, completely different use case
>>
>>110234445
Your analogy makes the smart pointer system in C++ seem more complicated than it actually is. There's only three smart pointer types to actually give a shit about

unique_ptr, which owns an object and can't be copied.
shared_ptr, which owns an object and can be copied, and every time you copy it, it increments a reference count
weak_ptr, which is how you copy a shared_ptr without incrementing the reference count so you don't end up with a memory leak from the cycle.

And if you think about it, there's only two categories here. Shit you're gonna copy and shit you're not gonna copy. Wow, so hard to remember. Also, if you don't need ownership, use a reference instead of a raw pointer.
>>
>>110233934
Use lisp
>>
>>110234530
>statements dreamed up by the utterly deranged
>>
>>110233934
>start a project
>its slow
nigga, how shit is your code that you're hitting performance bottlenecks early? how embarrassing
>>
>>110234530
if I wanted to hear from chatgpt, I'd ask it
kill yourself
>>
>>110236575
slow is a relative term. 100ns is slow when a well-optimized raw assembly can run it in 5ns
>>
the only project that could later on benefit other project is the project written in an extendable runtime.

you use low kick (lower level language like C) and high punch (higher level language, a glue code of runtime).

you put in the bag by growing your own extension to that runtime, its modular, therefore it is small and doesnt need a debugger, when it grows, you make another extension/module.

you put in a bag by growing your glue code wraps for extensions you made.

that is the way to preserve and improve. your binary loops (#include <stdio>) are going to extinct
>>
>>110238465
I'm sure mouthbreathing op is optimizing for nanosecond gains.
>>
>>110233934
>start project
>create commission
>security approval
>okr, kpi targets
>500k party for CEO
>>>>>Approve German intern
<get a 800 page thick book on the dsl
<use Bach stack
>it's actually just a simple python project
All me!
>>
>>110233934
>start a project in C
>go on constant tangents writing data structures from scratch
>start a project in C++
>get bogged down by the bloated pile of shit that is std

Literal skill issue
Git gud
>>
File: c cat.jpg (83 KB, 640x640)
83 KB JPG
>>110233934
For me, it's C.
>>
>>110233934
I like this:
>start a project in C (with a C++ compiler)
>Every time C gets annoying, i use C++ moderately, (no retarded multifile giant family trees)
>only use the 10 or so STD things i like
>if it's a library it better be talking to the OS, or i'm looking for a simple "just insert into the code" solution instead.



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