/dpt/ - Daily Programming Thread

Old thread: What are you working on, Jow Forums?

Attached: 1558333089730.png (703x716, 459K)

Other urls found in this thread:

godbolt.org/z/duIZUS
dangerousprototypes.com/docs/The_Logic_Sniffer's_extended_SUMP_protocol#Proposed_meta_data_format
automatetheboringstuff.com/
boundanna.com/html/en_software_list.html
twitter.com/AnonBabble

Me on the right

i-i'm home

me on left

REMI!
FURAN!

Proceeding my studies on WebGL. It's starting to look really easy. Stuck on how to do skeletal animation without crashing mobile browsers.

I am working on a school project. It's a unity game that should help help elementary school learn math. Any bright ideas what else I should put in there?

anime

make it a touhou project

Why is this thread allowed in the first place?
You have no right to exist, pedo degenerates.

...

I won't poison the youth

I just wanted to hear some funny ideas how is that making me a pedo.

ask reddit

Here you go, user!
If you wanted us to post more cute anime images, you could've just asked directly.

Attached: 1558321524195.png (800x1184, 1.09M)

Hey, user. May I use your JavaScript library in my project?

Attached: 7b7c2c16488601a48776f07005c3bbb6.jpg (1080x1350, 101K)

>my javascript library
What do you take me for? Some kind of shit-eater?
You can use my C libraries if you want to.

Attached: 1407303094615.jpg (588x588, 58K)

"iddqd" should activate a secret ultra-violent mode where you kill all natural numbers, one by one, until you understand that you need transfinite induction gun to kill them all. ω ordinal will be the last boss.

A very fun and exciting adventure into the land of set theory.

Of course, you may use my shotgun to PUT A BULLET IN YOUR STUPID HEAD YOU DISGUSTING ATTENTION WHORING ANIME PEDO SCUM

>using libraries at all
What are you, some kind of faggot?

Attached: 1541673992862.jpg (492x399, 38K)

Not liking lolis is pretty degenerate.

Attached: 1529128644595.png (805x720, 553K)

I'm not too keen to reimplement the 2M SLOC in Mesa.

Attached: 1541772533323.jpg (1024x1024, 240K)

C++
template
Population::Population(std::vector initialIndividuals)
{
individuals = initialIndividuals;
}

It gives me a "no matching function for call to T::T()" error, why the fuck does it do that? I also tried
template
Population::Population(std::vector initialIndividuals):
individuals(initialIndividuals)
{
}

And same shit

Cute Remi.

Attached: 1523189958402.jpg (1084x1362, 479K)

>Sepples
Why don't you try using a language that isn't pure shit?

Attached: 1458386812984.jpg (1280x720, 73K)

>tfw been enterprise dev for a month now and now I hate programming

Attached: 1540746655913.png (1200x675, 992K)

C++ isn't Java.
And why the fuck are you copying around the vector twice?
Anyway it's probably because whatever type T is lacks a default constructor. Either default it or define it.

T. javalet

Works for me godbolt.org/z/duIZUS
And you really shouldn't be copying vectors around like a brainlet.

Remove from population

Don't do this

Is it Java?

welcome to the club user! A few more weeks and the depression will kick in, followed by daily suicidal thoughts. You will lose all will to do pretty much anything so you won't even be able to save yourself from that hell because it'll feel like too much effort.

You've never written a single program without using libraries either.

What the fuck. I've already entered that stage and I'm still in uni, never had a job before.
Should I just kill myself now?

.net

Not her but yes I have.

yes, but I might be biased since I long for death as well

Lisp is the most powerful programming language.

How can I concatenate a C-String and Some 32 bit unsigned integer into one single C byte array?
I am being retarded on this one, sorry.

Attached: bodado:D.jpg (480x640, 169K)

You can find some jobs which are actually good. But yes, some jobs are as soul-crushing as that user described.

I'm sure C# is almost just as bad. But if you're doing F# then I'm confused, F# is comfy

>her
What is it? Mind showing it?

Fuck off, you retarded frogposter.
You're not fucking welcome here.

Attached: 1375670617230.jpg (503x503, 213K)

C# with WPF

>meme langs in enterprise environment

Why post frogs when you can post cuties?

Attached: 1558396387756.png (1500x1500, 829K)

fuck off, children. Better help me with my homework

Well, I meant to click the option box to press sage instead of clicking the name box being a fucking namefag. I can't be fucked deleting the post, though.

Attached: 1431432030106.jpg (228x238, 13K)

Says the pedo

be happy that youre not doing webshit in .net with razor views

It's just a shitty bootloader.
Everything else links at least with libgcc.

Attached: 1546147669667.png (721x299, 40K)

Point at this unemplyoed NEET and laugh at him.
F# is in use plenty in fintech.

sprintf

am too dum to use libcurl

Attached: 1527021054574.jpg (600x444, 82K)

memcpy

You're the fucking child not being able to solve such a simple homework problem.
Fuck off.

Attached: 1550221804499.jpg (526x800, 44K)

sprintf(buffer, "%s%d", string, uint);

Old skool.

Attached: dec_pdp_11_by_pomorosso_d3fmh8w-pre.jpg (800x1000, 127K)

what are you trying to do?

teeheehee

Attached: kek.jpg (490x23, 6K)

what's so hard about it?

no, fuck you nigger piece of shit nigger. This makes a string out of the integer. Fucking retard mongo nigge.r

>F# is a meme lang
The denial of some people. You just can't accept that functional languages *are* in fact used in a professional setting, because that would mean your loved non-argument argument ad populum would be null and void.

LMAO

Nevermind I am retarded
There was nothing wrong with the code
I had an uninitialized T different variable in the class

Just use atoi Mr Grumpypants

Attached: chacha.jpg (190x266, 20K)

POST an image

Attached: 1526815179980.jpg (750x680, 95K)

and what's wrong with the example code on the website?

i just did it like a codemonkey

/* add the name to metadata */
msg[len++] = META_NAME;
for (int i = 0; i < strlen(DEV_NAME); i++) {
msg[len++] = DEV_NAME[i];
}
msg[len++] = 0x00; /* null terminate name string */

msg[11] = META_MAX_SAMPLERATE;
for(int i = 0; i < 4; i++) {
msg[len++] = (MAX_SAMPLERATE >> i*8) & 0xFF;
}

msg[len++] = META_VERSION; /* protocol version */
msg[len++] = DEV_VERSION;

msg[len++] = META_NUM_PROBES; /* number of probes */
msg[len++] = NUM_PROBES;

HAL_UART_Transmit_DMA(&huart2, &msg, len);
break;

Are you using the right form encoding?

This is horrible.

it's in C and not C++

Attached: 1526493596047.jpg (480x269, 30K)

Fucking so?
Are you retarded by any chance?

why? it just works.

How would you solve it? I have different metadata, some are in string format, some are unsigned int. I need to get them into one buffer. Strings have to be null terminated. See:

dangerousprototypes.com/docs/The_Logic_Sniffer's_extended_SUMP_protocol#Proposed_meta_data_format

Attached: metadatacomfy.jpg (1366x768, 151K)

slightly yes

a primejailbait crawler to stash all the pics because they're shutting down thanks to article 13

Attached: crawler.jpg (633x536, 44K)

>primejailbait.com
I'm afraid to check it out

[spoiler]frogposting is just as cringe as animeposting[/spoiler]

They’re all clothed

Trying to use spoiler tags on Jow Forums like a newfag is 10 times worse than frogposting.

Attached: 1514574089433.png (1042x753, 632K)

:^)

But I knew they wouldn't work

>How would you solve it?
typedef struct {
u32 your_gay_metadata;
...
u8 packet[BUFSIZE];
u32 length;
} metadata;

metadata message = {
.your_gay_metadata = whatever,
...
};

*p = message->your_gay_metadata;
++p;
*p = message->more_gay_metadata;
++p;

for (u32 i = 0; i < message.length; ++i) {
*p = message->packet[i];
++p;
}

Attached: kimagureor17__62574.1537834170.jpg (1280x1056, 141K)

That just makes you shitposting cancer.

you forgot to upload your waifu with that comment

neat. good anime poster

I'd say they're equally retarded

I know jackshit about programming and I'll have to learn python soon to survive at my workplace.
Any recommended resources?

You're right. They're both enormous cancer.

The official python tutorials on the site.

Are there any specific things you need to learn?
This goes through very basic programming as well as some nice tools, I recommend it if you just want to get started super quick, but if you will actually be doing more heavy work it won't be enough theory, in that case just get a book more focused on teaching *just* python, instead of python + more
automatetheboringstuff.com/

>I know jackshit about programming
>and I'll have to learn python
Ok? These two have nothing to do with each other.

When the FUCK is Arch going to update their GCC to 9

>not in burkah
Extremely haram

GCC is only going to get worse now they allowed C++.

better*

Blowjob Trainer

boundanna.com/html/en_software_list.html

Attached: 1558100153058.jpg (152x225, 6K)

If C++ is so smart, why can't it just guess constness to generate more efficient code?

Just count the number of assignments and if it's 0 make it const
Because when you manually write in const you are doing the same, just with your eyes

C++ compilers don't work that way. That would require passing through all compilation units (source files) multiple times, drastically increasing the already increased compile times of C++.

It can and does.
Also C++ is not the compiler.