/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?

Previous thread:

Other urls found in this thread:

stackoverflow.com/a/4446085/6636609
github.com/enfiskutensykkel/ssd-gpu-dma/tree/master/benchmarks/cuda
twitter.com/NSFWRedditVideo

>ESR
Has gone completely retarded nowadays

fuck opengl

fuck directx

fuck openvg

Really? What is he up to these days?

like most C tards

He looks like your friendly neighborhood pedophile.

>If compiler is a metaprogram is compiling metaprogramming?
Never change, /dpt/.

Linear types will save systems programming

Well?

>this is what /dpt/ actually believes

If that was an actual thought formed by what you call your brain, why do you argue? If you think 1+1=11, why do you try to argue about math? Have some self-awareness, user, sweetheart.

>you can't use structured bindings with previously declared variables
wtf!

use std::tie sucker

std::tie is a hack

all of sepples is a hack

you live with it or you reject it

one of its inventors

Perl 6 is on the rise and soon it will be a standard everywhere.

doing some opengl tutorials, lads

post your first triangle

How do you guys sell your software?

This is MatLab-chan. She is very self-concious and hates it when people say she isn't a real language. Say something nice about her to make her feel better.

>not open sourcing it

some people open source their shit for non-commercial use and make people contact them for commercial licensing but i think they're a bunch of chodes and they should at least list a price up front on their website so you can know if their shit is worth looking into

Saw her deepthroated by NumPy once.

i ask for patreon donations :^)

That's depressing.

>How do you guys sell your software?
>sell
You mean you don't use your skills to program ransomware and malware?

c++ is the greatest language of all time

it is, yes.
any kind of program that manipulates other programs is metaprogramming

got a job as a c++ programmer
still no gf

>not using structure bindings

The absolute state...

What do you guys think about competitive programming

what's the coolest or most clever piece of code you've written?

prove it

Realistically speaking, what's an Enterprise software engineer day to day like? I'm learning C++ and Java right now.

Why's she called MatLab chan?
How about MatKitchen chan?

Kaggle is pretty cool

Without software hardware is useless.

>musheen learning meme

nice argument

Without hardware software is useless.

Without pleb users, hardware and software is useless.

>i named random pic as C++ therefore I made a joke about C++

got an ugly cube

>the pic is named "C++" therefore there must have been an attempt to make a joke about C++
>even though C++ wasn't even part of the discussion
This is how autists actually reason...

whomst the FUCK are yall QUOTING

try multiple lights

What kind of comments do you guys leave in your programs for others to find?

>others
n-nani?

Don't you have a github filled with stuff, user?

I make sure the comment sections in my code real like a short horror story about a programmer losing his mind.

read*

yes, but a private one.

Threadly reminder that SICP shills are full of shit.

>comments
int width; // plane's width

vs
int plane_width;

Why is this place so negative and hostile?

>a private github repo
>he actually paid to hide his code
>as if anyone was looking for it
Sounds legit.

well technically it's a gitlab.

>Why is this place so negative and hostile?
>this place
You mean Sup Forums, or the internet as a whole?

why would you do the first one but to trigger people?

This has a different focus, and MIX assembly is kinda stretching it. Still a great book on algorithms.

>he thinks you have to pay to have a private repo

lmao

Depending on the surrounding function, you could get away with
int w;

>he thinks you can have a private repo hosted on github for free
Last I checked, it wasn't.

>Last I checked
5 years ago?

get with the times

pls halp

I got some project from github and I want to include it into my project in visuaids studio

I followed this:
stackoverflow.com/a/4446085/6636609

now including the dependencies works but when I want to use the appropriated namespace it doesnt find it.

in java such things dont happen. just saying.

>visuaids
in intelij is import from git repo

>have to import it into something for it to work
>it's a process
Just saying C doesn't have this problem

What's the point of FizzBuzz? What's the 'correct' solution? Is it a trick question?

>What's the 'correct' solution?
No one knows

>What's the 'correct' solution?
To get up and leave. Real programmers don't do fizzbuzz.

for (int i = 0; i < size; ++i /* Advance to the next index. */);

the answer depends on i

It can't be solved, just like the Halting Problem

It works as a filter. People who fail at fizzbuzz actually exist.

this is a (reference) book about design, analysis, and implementation of algorithms. sicp is about the practice of programming itself.

god i wish i was that banana

that doesnt help riii

kys

>caring about trivial shit
comments are used for sections that aren't initially obvious what the intent goal of the section is, so when something does go wrong in a program and another person is looking through it they know what the original programmer's intent was and see if it's correct. No one cares that you're commenting a variable name.

a quick test to filter out brainlets.

don't split

Supposedly the point is to weed out liars and non-programmers. I literally cannot fathom any applicant who could fail a FizzBuzz-tier question, but apparently those people exist in significant numbers. Wherever they are, I wish they lived near me so I could land an easy job.

also used to check out if a candidate is able follow instructions. for example, you ask for numbers from 1 to 101 instead of 1 to 100 and see if the guy notice.

>from 1 to 101 instead of 1 to 100 and see if the guy notice.
I'm not sure it's a good filter.

>What are you working on, Sup Forums?
Finished a GPU benchmark for my NVMe library, demonstrating that you can initiate disk IO directly from a GPU kernel with little overhead compared to repeated kernel launches and memcpy'ing from an mmap'd file.

github.com/enfiskutensykkel/ssd-gpu-dma/tree/master/benchmarks/cuda

small changes like that are a good idea though
otherwise you'll get people who don't know how to program but cram a lot for interviews and simply memorize a fizzbuzz solution

>cram a lot for interviews
How do you cram for a technical interview without knowing how to program?

You'd be surprised.

nice

Haven't see you in a long time

You should also ask for variations, for example:

>write fizzbuzz without using iteration, only recursion
>the above without declaring any variables except function arguments
>the above without any arithmetics except addition or subtraction
And so on.

No, You're just testing attention to details in a test situation. Nothing related to real life.

Been busy the last days trying to get it to work. Also, I discovered that IOMMU peer-to-peer support is just broken on intel and the lower-level Nvidia driver API doesn't implement it at all.

Sure thing, user. Keep telling himself that his inability to follow instructions or solve fizzbuzz without repeatedly running and correcting the code doesn't say anything about "real life", your programming skills and your overall intelligence level.

By being a tricurious genderfluid metasexual Papuan who racially identifies as a reaperbinder.

But now you're just adding arbitrary programming restrictions that don't map to any job-related work. Your variations should be variations of the problem itself, not variations of the implementation of the problem.

>who racially identifies as a reaperbinder.
Lost!