What are you working on, Jow Forums?
Last thread:
What are you working on, Jow Forums?
Last thread:
Other urls found in this thread:
codeproject.com
youtube.com
docs.microsoft.com
gcc.gnu.org
github.com
twitter.com
Why do people say programming graphics in assembly is hard?
nothing in assembly is hard
but programming using modern graphical apis is tedious without assembly
W O W cpp faggots sure are salty
Haskell is a meme because it introduces difficulty (a new language to learn) yet solves no real world problems.
Why would I be salty about using a more powerful, modular language over cniles?
I want to add a specific SDK to my opencl project and I want to do this using a property page.
When I bring up the property page properties box, I don't see any configuration properties like pic related.
How do I bring them up?
I want the general c++ one.
Go make a modern 3d game engine with ray tracing in pure assembly.
I'll wait.
you need at least one .cpp file in your project
How is this for an arugment?
*shows you the middle finger*
I have one saved when I set up the program.
Thats what i am asking, i dont know much about how graphics work and how assembly work, why are graphics so hard on assembly?
Bros how do i make my linux VM into a router? Need it for a lesson but i dont know please help me
a triangle render != a full engine
it's just 1000x more tedious. Especially for debugging.
Ok, I accept your defeat. Have a nice day.
Well, /dpt/?
stfu pedo
what do you actually want to do and where
additional include directories are under C/C++ while additional library directories and libraries to link to are under linker
if you want to make a property page you can use for general opencl projects you're going to have to make it yourself
it's an xml file using the msbuild schema
graphics APIs are tedious to use, most are badly designed, except vulkan which is tedious on purpose
they are also very heavily abstracted from machine code
and assembly, while better designed than most things by virtue of being fucking simple, is tedious under normal circumstances
Anime girls have always been allowed on 4channel. Perhaps reddit is more your speed.
kys pedo
Pedo website.
Correct but frogs aren't so fuck off.
So what? Any benchmarks or anything? How is that better/faster? What does anyone gain from doing it that way?
>What does anyone gain from doing it that way?
intellectual satisfaction
?????
I was following this tutorial:
youtube.com
At the two minute mark he has the handy quick common properties but I do not.
I want to just do what he does and link my Intel opencl Sdk into the property page.
the guy himself, whose whole trick is assembly, and has been doing it for decades, says it took him 40 hours to draw a fucking triangle
>ask incredibly niche question on stackoverflow
>get like 10 views, no upvotes after a day or two
>some guy actually replies with a long example and explains everything
feels oddly good, I almost gave up hope, my saviour came
those 40 hours were spent overcoming the bullshit of trying to use 64-bit com calling conventions in assembly.
>intellectual satisfaction
Cringe overload
>window title is opencl.props
he made a custom property sheet then applied it to the project
docs.microsoft.com
probably something along the lines of
$(SDK_INCLUDE);%(AdditionalIncludeDirectories)
$(SDK_LIB);%(AdditionalLibraryDirectories)
also you can add conditionals via the attributes to check for stuff like debug/release and do different things depending
Hum. That's a name I didn't expect to see in an official documentation.
QUICK, EVERYBODY SWITCH TO KOTLIN!
named arguments are pointless fluff just have object literals with terse syntax and default initializers
i completely forgot
$(SDK_LIB_FILENAME);%(whateverthesyntaxisfordefaultlinkedlibs)
you also have to add the specific files to link to
though i usually just use #pragma comment to specify that
it's more explicit, and i know clang supports it, which is portable enough for me
if you haven't and doing so won't break everything, i recommend switching to the llvm toolchain btw
it's much better than mscv
you can install a visual studio extension for it that just works, though you do have to disable whole program optimization
guys how do I make quad precision
Just use two doubles lmao
I don't use gcc or touch anything that has gpl on it.
that's apparantly legit but I can't find any information about how to actually do it.
using f32 = float;
using f64 = 2*float;
using f128 = 4*float;
you need the first two lines to trick the compiler
and what prevents you from reading the source code of that library to figure out how it's Done?
Why would you ever use std::tuple instead of making structs?
you want to pretend to be a cool guy
the types in a tuple can be queried at compile time without significant effort
magic_get and visit_struct exist but i'm not sure how much compile time overhead they have
Anonbody else stuck in /langhopping/ loop?
Literal thigh highs, buttplug in ass discord using tranny here, Im looking into getting into coding for the possibility of working from home, what would you guys recommend I have just basic webdesign concepts from highschool that never ammounted to anything.
What has been your worst brainlet moment?
I just spent 20 minutes trying to come up with a series of logical operations equivalent to adding two binary numbers together
(Spoiler: it's + )
>want to learn language
>don't know what to use it for
Why do even want to learn a language if you don't have any use for it?
...
To flexx on Jow Forums
I have a function that takes in several integers and outputs a NxN table where each number is between 0 and N.
I want to find the combination of integers that gives the table the values closest to N/2,N/2,...,N/2,N/2.
The generation of table from input isn't deterministic, but it depends on the input integers. By calling the function multiple times and taking an average, I get a more accurate value.
What's the fastest way to do this? I suppose it has something to do with bayes' theorem and statistics.
My current solution is to do a fixed number of iterations and record the mean value, but this clearly isn't optimal.
What is the optimal solution?
Post your plugged up butt and hanging cock
take your homework problem and shove it up your own ass
I don't even get the question
for fun
How do I become a good programmer as a degenerate drug addict
stop being a degenerate drug addict
Why are programmers so afraid of saying "golden ratio"?
I have seen algorithm books where they say "this c constant is around sqrt(5) over 2" or "it's about 1,618..."
If it was pi or e, they'd just say pi or e
start liking anime
doesn't come up often, a lot of people haven't even heard of it
tldr fuck off back to greece
Rate my website guys
Less lines make it load better right?
Yeah, there's nothing wrong with minifying your code for production. Did you want to make some point?
>a lot of people haven't even heard of it
If you dropped out in elementary
Is this a commonly done thing? I've never seen it before (Though not worked much with web development).
guarantee you did nothing where it was vaguely relevant, only brought up for woke smarter-than-thou retards who can't do add numbers but at least they know the name for one
yeah? saves banDwiDth, especially for large traffic websites
>my website
>twitch
haha you're so funny and self aware EXDEE
eat my dick and go fuck yourself
Isnt golden ratio when you piss on someone
write recursive fibonacci methods in 10 languages as penance for this post please
No, that's putting open source software then making money from it
It's not homework.
I get a table out of the function, like this:
16, 16, 16, 17, ..., 18, 19, 16, 16
...
16, 15, 16, 17, ..., 14, 17, 18, 16
Every cell has a mean of N/2 (in this case N=32) and a standard deviation of unknown.
I want to find out what parameters I should pass in to get the lowest possible deviation from such a table where all cells are 16.
literally every programming language out there
how the fuck do i read this gay ass intel manual to convert
addl $-5, %esp
to the machine code 83C4FB
i realize i just go to the add section and see we are adding an sign extended immediate so the opcode will be 83/0 ib
then i see that the mod is 11 and the r/m is 100 with the ib portion being 000 so the entire thing is 1100 0100 which total gives me 83C4 but where do i get the FB portion from?
>new language to learn
for you, boomer, for most programmers in the history of mankind it will be old
#include // Robert Nystrom
#include // @munificentbob
#include // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
t+w; i t= y u+
h; m[y] [x]= s &&t? '!'
:s^t ?'#' :'.'
;}if (d>0)m [f][
e]=g(2 )?'\'':'+';for(i j=0;j
Python question
I have two instances of a class
I want to compare the a property of these two instances and depending on which one is greater perform a series of operations to both starting with the greater one.
What's an elegant way of doing this (inelegant would be something like
if foo.prop > bar.prop:
foo.prop = ...
bar.prop = ...
...
elif bar.prop > foo.prop:
bar.prop = ...
foo.prop = ...
...
apologies if I used incorrect terminology
something like max([foo, bar], key=prop) too lazy to look up the exact details
>working through a book on c++17
>getting all kinds of weird errors on compilation even though code is written exactly as it is in book
>Have to hunt through reference websites and the c++ spec just to learn what certain keywords are so I can hack together something that compiles and then works
>finally get completely stumped on one part
>on a whim, change compilers
>code compiles cleanly with no errors, works fine
I'm sort of mad because I was going through this book much slower than I could have been, but on the flip side I did learn a lot reading all the extra stuff.
I'll look into it, thanks
0xFB == -5, aka your signed immediate
I don't understand auto-close plugins on Vim
You type a parenthesis (or quote mark)
(|
The editor inserts a closing, matching parenthesis
(|)
But after typing your code inside the brackets
(hey faggots|)
You need to retype the closing parenthesis yourself
Why the fuck can't you escape it with tab or enter like every IDE ever.
sick
dont use msvc
I was using mingw, but it seems like the book wants to use msvc. What should I use instead?
Any tips on learning assembly? I am making my game on C++ but there are some parts of the code i want to do in assembly for optimization.
Dont
bravo
Install Linux and use GCC. Nobody cares about windows.
Let's design a language, /dpt/. It's name is thot++. What does the syntax look like?
Nobody cares about desktop operating systems, 90% of all OS's are phone OS's. Do you guys even have phones?
only global variables allowed
lua but singletons instead of tables
Cisc was a mistake
>github.com
>Worship Carrie's feet
based