/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Previous thread:

Attached: 1568229037210.jpg (473x496, 105K)

Other urls found in this thread:

youtube.com/watch?v=Fq9chEBQMFE
twitter.com/SFWRedditVideos

Reading C++ Primer.

Currently on page 107.

I'm assuming by the way the question is set up they don't want counter examples.

This shit is too hard for my dumb self.

Kill me.

Can you guys give me some project ideas to work on?

Why is C considered simple if it takes people a year and 12k lines minimum to write a C compiler?

Oh who am I kidding, I've been dabbling in C++ for close to 15 years now, but I'm still a brainlet. I like to read beginner-level books, going through the first few chapters and shout "hey, I know this! I'm so smart!!!!1!".

A 3D MMORPG.

>if it takes people a year and 12k lines minimum to write a C compiler?
It doesn't.

simple = language has bare minimum features
C actually has a lot of hidden semantic complexity.

>what are you working on
working up the courage to kill myself
im past any redemption

Because most programmers wouldn't even think about doing something so dumb as to write a compiler when there are already existing ones.

Reinventing the wheel is for retards.

Good luck user, don't give up and don't listen to the retards that will tell you "nooooh, dont do it, life is preciousssss, youre spitting in gods face!!1!". They're retards that want others to suffer.

Nenecchi?!?

Attached: A78149DF-FA37-4B67-8D4E-932F48874317.jpg (1280x720, 112K)

I want to nakadashi Nenecchi.

thank you. I hope to do one thing right in life: ending it.

>no one ever writes a compiler just to learn about them
please get back to work wagie

Making new programming languages is reinventing the wheel. fucking rust trannies

char *demand_memory()
{
char *m = malloc(4294967296);
if (!m)
demand_memory();
return m;
}

Attached: hmm.jpg (1024x576, 53K)

I know not many typescript fans here, but maybe somebody can help me because I can't find shit in google about it.

Why does typescript not infer types implicitly for object properties like it does for everything else? I hate that I cannot (without `any` or *type assertion*) assign object properties. Or do I miss something?

How many 8GiB sticks are you asking for here?

How long until WPF becomes platform independent?

So if 8bit machines could only address 8bit bytes, can 16bit machines only address 16bit bytes?

He's asking for one, plus one more for every time he's denied the first stick.

Pretty dumb if you ask me. Or even if you don't.

youtube.com/watch?v=Fq9chEBQMFE

Honestly, you should browse his entire catalog of videos.

Meant for

Because other languages take three times that

I just want 4gb, and I'm going to ask for it thousands of times a second until I get it.

8-bit machines like the 6502 often had 16-bit address lines, you would just have to load 2 registers to do it.

Attached: aum.jpg (533x300, 156K)

Come with me, Anone! Let's learn some JavaScript!

Attached: c187c233821d9a2b0d8e7d26b3792d99.jpg (1365x2048, 340K)

any recommend QT tutorials? finna get some UI experience, already have a small project in mind

What is the difference between x86 and x64? Is it just the size of pointers, 64 bit for x64 and 86 bit for x86?

Precisely
If you read 8 bits into a 16 bit register it will either put 0s or garbage data into higher bicimals (binary decimals)

checking a malloc is pointless, modern operating systems will always return a pointer even if there isn't space. the safest thing you can do is just crash

Technically yes. In practice though, they extended it to 20 bits with segmentation.

Hello there cutie, let's learn C++ together!

How the fuck do I actually progress? I know syntax, and basic algorithms and data structures, but I still can't make anything cool. I'm trying to make the most normie project possible and build a gtk mpd client in python, but I'm too stupid to figure out how gtk works. The stupid python tutorial barely taught me anything and I can't figure out how to do stuff just by reading the docs because there's too much and I don't know what I need.

kind of, 86 is 32 bits long though

But how do you know that you don't have enough memory if you get a valid pointer either way?

>Decide I can multithread this part of the application to make it faster
>Run time doubles

I completely expected this

Nenecchi is intellectual and cute. Baka!

Attached: DDF6DC45-7CA3-4DE1-B60F-C3F475861955.gif (250x250, 85K)

Thank you for the real answers.

Only on shitnux with overcommit enabled.
Every sane OS returns null on failure.

Use more low level API.

I usually save multithreading for long latency tasks.

For example, I need to download a bunch of files from s3, process them, write output of processing back to s3, and send some notifications for another downstream process that takes over once everything is complete.

So I just delegate that *entire* process to a threads.

Is C++ doomed? . The trannies are worming their way in.

Attached: hmmm.png (379x298, 41K)

IT is already doomed, there is no future tense.

I think java might be fucking me, some googling suggests creating new threads might be more expensive than I expected coming from Elixir.

Or I might just be fucking retarded and a shit programmer.

Sepples is complex so it gives its users a false sense of intellectualism. Failed males like trannies are attracted to this.

Learning metaprogramming in Nim. This shit is fucking cool.

if you do that, you're a selfish coward.

It's only complex for retards. Base language facilities are fucking simple and so is the standard library. Retards like you are more likely to become wannabe trannies.

But the internet told me sepples was hard!

Fuck off, retard. He'd be a coward if he didn't kill himself. And we're all selfish. I mean, instinctual behavior and all.

Just initialize a thread pool and be done with it.

>we're all
speak for yourself

The internet wants to avoid people getting into the industry and stealing their job, so they propagate that and other myths, so they can keep being paid to vomit shitty code.

As if "trannies" getting into a language (or anything else for that matter) is the criteria for dying. Fuck off idiot. Go outside.

So you're selfless? Good! Give me your house and your car, thank you very much!

Dilate

I don't have either user, sorry

Glad to know you're an idiot, too.

trannies cant do C++, they do GO instead

dilate

Nobody does GO

It's all good, friend. It's all good.

Dilate

dilatE

ITT: Transphobes

Lol'ing at your lives

B-b-but d-dilate???!?!!

It's either that or just giving up.

I'm leaning towards just giving up.

...

Bloat adds complexity regardless of difficulty. Sepples is bloat the language.

How long would it take to write a C compiler in Python?

I acknowledge your freedom of choice and do not mind what that choice is. For me though, it's C.

Attached: 1568208377207.jpg (1110x1239, 152K)

Nice give away there buddy!

I made 5 programming related posts and got zero replies

I made one tranny post and already got 5 (you)s

This is why this general is total garbage

C programmers are infinitely more tolerant than seppleshits.

>I made 5 programming related posts and got zero replies
I'm sure they had no value.

>What are you working on
I'm trying to find a new way to hax ani using technoloy.

Proving once again Jow Forums is hot garbage.

maybe your posts were garbage.

>c
>c++
Might as well code in python LMAO, go learn a truth language NIGGERS
>dabs in assembly*

How is it bloated? The standard library is, sure, but that's because it's a multi-purpose standard library and is OPTIONAL and MODULAR. You only include what you want, and pay the processing power only for what you use. The language itself is lightweight and easy as pie.

this general is for language wars and flaming, tard

Not my fault you trannies make it so easy to identify and exclude you. It's almost like you want everyone to know that you're a tranny, like vegans and christians.

how do I post code?

Attached: 1548727132149.jpg (1024x831, 104K)

C++ is not bloated and it's getting less and less bloated with the new features.

Not that you simpleton. The fact (you) revealed you're a newfag.

>it's getting less and less bloated with the new features.

Yes, I'm glad you can read!
Need a cookie for that?

VEGAN CHRISTIAN TRANNY HERE PLOXEL GIB ATTENTIONS NOW

Attention transmitted. Awaiting acknowledgement.

STD::SORT IS FASTER THAN QSORT

ATTENTIONS RECEIVED THXEL

Yes but fuck sepples anyway.

Danm straight, Earl. We gotta teach these C programmers what's the truth!

What ya say you darn tootin C programmer? Why I should teach you why you're wrong but there isn't enough hours in the day to correct your incorrect misconceptions.

ska::sort is even faster