[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [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


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1622490605645.jpg (878 KB, 900x1200)
878 KB
878 KB JPG
Old thread: >>101311641

What are you working on, /g/?
>>
>>101341573
Releasing a payload in the region inbetween Satania's mounds
>>
Staring at satania
>>
Making a Satania AI
>>
i have a really retarded idea i think i might try for practice
NES emulator on the GPU where each vector thread is its own NES
>>
Plotting electricity price with esp32.
Still need to install it to a wall.
>>
itoddlers...
>>
>>101341573
>>101341611
>>101341621
>>101341626
That time of the day, huh?
>>
File: 1720219085102917.jpg (108 KB, 650x1199)
108 KB
108 KB JPG
>>101341573
I have never written any code and I don't own a computer. I just came here to maidpost.
>>
>>101341573
i am in pain.
>>
>>101341855
What, from stroking too hard?
>>
File: 1710522436896406.jpg (102 KB, 596x646)
102 KB
102 KB JPG
>>101341573
>>101341611
>>101341621
>>101341626
>>101341781
>>
OCaml my Camel
>>
>>101342593
original character camel
>>
>>101342575
satania milk
>>
There have only been 2 serious programming posts out of 14 in this thread so far.
>>
the latest version of FidelityFX is out including FSR 3.1 and brixelizer (actually really useful for retooling for voxel games)
https://gpuopen.com/fidelityfx-brixelizer/#brixgi

>>101342789
so why not make one you'reself
>>
>>101339885
>No sane person should ever use C in 2024. Even the congress said to avoid using it.
Congress, like most of these """""sane persons""""", is completely incompetent and wouldn't recognize good code if it slept with their wives. If you adhere to their opinion you'll never ever escape mediocrity
>>
how can i detect libc++ automatically using cmake? currently doing it just manually.

if (ENABLE_LIBCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -fexperimental-library")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")
endif ()
>>
>>101343060
This
Lawmakers and politicians in general are incompetent shitheads and if anything, their endorsement of Rust makes me *not* want to use rust.
I'm sticking to C++98 and you will *like* it, Uncle Sam.
>>
Of all the C language versions, what is your preferred one? Mine is C11 because it introduces so many nice little things that make using C even more fun, such as variable arrays and anonymous structures and unions.
>>
>>101343179
latest standard+compile compiler from git master
don't touch libc since i am afraid to mess things up
>>
>>101343179
C language versions aren't something I'd get too passionate about, because they're good at not fucking up the core of the language between versions.
I don't care about microslop, so I just use $latest version. C23 has some neat things, but yeah, it's still earlier adopter pains at this point.
>>
>>101343179
C++, the latest one (because i use arch by the way)
>>
>>101343179
ANSI C
C++98
Next question.
>>
I only use pre-standard C and pre-standard C++.
>>
File: firefox_axTIAueXIs.png (71 KB, 996x945)
71 KB
71 KB PNG
Google:
<your favorite programming language> before:<year it was standardized, minus 1> file:pdb
Share with the class what you find in them pdfs.
>>
>>101343537
*fuck, filetype:pdf, not file:pdb
>>
File: a5egh2vx5u271.jpg (225 KB, 1242x1341)
225 KB
225 KB JPG
>>101341573
I want to work on a project so I can get good at SQL
Anyone have any ideas that might be fun?
>>
>>101343537
interesting idea anon. lots of stuff to read into here.
I chose 1994 because that's when the final ANSI standard came out I think.
>>
>>101343643
Local webserver, Perl, MySQL.
>>
>>101343643
whatever you want and just use sqlite for config, settings, and data
>>
ChatGPT terminal user interface
>>
>>101343699
More like ChatGPT terminal brain cancer
>>
File: vomit.jpg (90 KB, 650x650)
90 KB
90 KB JPG
>>101343687
>just use sqlite for config, settings
>>
>>101343643
>homer
this is reminding me how much I miss classic (seasons 3-7 in particular) simpsons.
God. Fuck.
>>
>>101341573
which RFC/docs should I follow for making an IRC server from scratch? Looking at RFC1459 is quite obtuse to follow and there are 5 other RFCs that update it
>>
File: me.jpg (128 KB, 768x1024)
128 KB
128 KB JPG
!
>>
It's my day off.
>>
How do I start graphics programming? I want to make a demo of some sort
>>
File: eating.jpg (5 KB, 179x168)
5 KB
5 KB JPG
>>101341573
>What are you working on, /g/?
I'm thinking about learning GTK to make my own MS paint clone
>>
>>101345323
You could contribute to Pinta
>>
>>101345333
>Pinta
https://github.com/PintaProject/Pinta
I was not aware about this, thank you anon
>>
>>101345214
https://ircv3.net/
This is one of those things that unfortunately isn't completely adopted, but at least it links to a bunch of relevant specs.
>>
>>101345282
learnopengl.com
vkguide.dev after that for vulkan
this is a great place to learn some of the math behind graphics programming
https://iquilezles.org/
and this is a site for writing shaders in the browser by the dev of the previous site
https://www.shadertoy.com/


https://gpuopen.com/learn/how_do_you_become_a_graphics_programmer/
this is AMD's open source graphics programming site and there's a ton of useful stuff all over it
>>
>>
>>101345443
Sorry, but I love my eyes too much to read such miserably small fonts.
>>
>>101345607
https://www.pbm.com/~lindahl/real.programmers.html
>Back in the good old days-- the "Golden Era" of computers-- it was easy to separate the men from the boys (sometimes called "Real Men" and "Quiche Eaters" in the literature). During this period, the Real Men were the ones who understood computer programming, and the Quiche Eaters were the ones who didn't. A real computer programmer said things like "DO 10 I=1,10" and "ABEND" (they actually talked in capital letters, you understand), and the rest of the world said things like "computers are too complicated for me" and "I can't relate to computers-- they're so impersonal". (A previous work [1] points out that Real Men don't "relate" to anything, and aren't afraid of being impersonal.)

this whole thing is gold
>>
>>101341573
Adding a contact form for people who visit my site, and learning node.js to get an old project up and running.
>>
>>101345623
Oh man, this article sounds like garbage. The first paragraph is already enough for me to never look back.
>>
>>101345649
actually read it, it's a shitpost from 1983

>Real Programmers do List Processing in Fortran.
>Real Programmers do String Manipulation in Fortran.
>Real Programmers do Accounting (if they do it at all) in
>Real Programmers do Artificial Intelligence programs in Fortran.
>Real Programmers aren't afraid to use GOTOs.
>Real Programmers can write five page long DO loops without getting confused.
>Real Programmers like Arithmetic IF statements-- they make the code more interesting.
>Real Programmers write self-modifying code, especially if they can save 20 nanoseconds in the middle of a tight loop.
>Real Programmers don't need comments-- the code is obvious.
>Since Fortran doesn't have a structured IF, REPEAT ... UNTIL, or CASE statement, Real Programmers don't have to worry about not using them. Besides, they can be simulated when necessary using assigned GOTOs.
>>
>>101345681
>Some of the concepts in these Xerox editors have been incorporated into editors running on more reasonably named operating systems-- EMACS and VI being two. The problem with these editors is that Real Programmers consider "what you see is what you get" to be just as bad a concept in Text Editors as it is in Women. No, the Real Programmer wants a "you asked for it, you got it" text editor-- complicated, cryptic, powerful, unforgiving, dangerous. TECO, to be precise.
>It has been observed that a TECO command sequence more closely resembles transmission line noise than readable text[4]. One of the more entertaining games to play with TECO is to type your name in as a command line and try to guess what it does. Just about any possible typing error while talking with TECO will probably destroy your program, or even worse-- introduce subtle and mysterious bugs in a once working subroutine.
>For this reason, Real Programmers are reluctant to actually edit a program that is close to working. They find it much easier to just patch the binary object code directly, using a wonderful program called SUPERZAP (or its equivalent on non-IBM machines). This works so well that many working programs on IBM systems bear no relation to the original Fortran code. In many cases, the original source code is no longer available. When it comes time to fix a program like this, no manager would even think of sending anything less than a Real Programmer to do the job-- no Quiche Eating structured programmer would even know where to start. This is called "job security".
>>
File: mistress.jpg (3.38 MB, 3000x2600)
3.38 MB
3.38 MB JPG
In xlib, is there any way to move a window across multiple xinerama monitors?
I tried using xdotool and xlib calls to move windows around but I couldn't move them past the boundaries of the window they're currently on, and it only moves to where I want it if I drag that window to the monitor I want first.
>>
>>101345900
*past the boundaries of the monitor they're on
>>
>>101345900
>xinerama
Did you just wake up from 2005? Anyway, I'm pretty sure Xinerama monitors are separate and can't do that.
You use the modern way (by X standards), Xrandr, where you have all of your monitors treated as one big monitor.
>>
>>101345900
drag and drop without the dropping?
>>
File: rux5byyhw4171.png (552 KB, 800x600)
552 KB
552 KB PNG
I use python because I enjoy it.
>>
>>101346280
Brave for you to admit. I'd have too much shame.
>>
>>101346363
Yeah actually enjoying yourself is so shameful.
>>
>>101346560
The problem isn't the enjoyment so much as it's its underlying action.
>>
>>101346560
let us get to the actual issue:
Do you know anything about computers?
>yes
ok keep doing what you are doing
>no
think about computers, read the atmega328p manual
>>
What should I name this function?
static int
f(x, match, follow, v)
long x;
unsigned match, follow;
NODE v;
{
if (x%2 == 0 && has_branch(x/2, match, follow, v))
return 1;

return has_branch(x, match, follow, v)
|| has_branch(x*2, match, follow, v);
}
>>
anyone done ebpf programming here? looks interesting, might have to take a look. already have the oreilly downloaded, any other good sources for learning it?
>>
>>101346861
f is the perfect name already
>>
>>101346861
I didn't even know that was valid syntax
>>
>>101347036
not valid in c23 anymore
>>
File: cgif1_4c.webm (2.13 MB, 1920x1200)
2.13 MB
2.13 MB WEBM
I started defining a simple status change protocol and ended up on several weeks of polishing an interface around it
>>
>>101346861
>K&R style function declaration
He doesn't know...
>>
File: 109473905_p0.png (1.18 MB, 1276x2157)
1.18 MB
1.18 MB PNG
Added array serialization to my DBus client library.
struct thing {
uint32_t array1[10];
uint16_t *array2;
uint8_t array2_len;
};

static const struct cdbus_serialization_info info[] = {
{
.type.sig = CDBUS_TYPE_ARRAY,
.type.struct_offset = offsetof(struct thing, array1),

.length.sig = CDBUS_TYPE_SIZE_T,
.length.flags = CDBUS_FLAG_DIRECT,
.length.direct.usize = 10,

.array_stride = sizeof(uint32_t),
.array_type = &(static const struct cdbus_serialization_info) {
.type.sig = CDBUS_TYPE_UINT32,
.type.struct_offset = 0,
},
},
{
.type.sig = CDBUS_TYPE_BYTE,
.type.struct_offset = offsetof(struct thing, array2_len),
},
{
.type.sig = CDBUS_TYPE_ARRAY,
.type.flags = CDBUS_FLAG_ARRAY_IS_POINTER,
.type.struct_offset = offsetof(struct thing, array2),

.length.sig = CDBUS_TYPE_BYTE,
.length.struct_offset = offsetof(struct thing, array2_len),

// Read every other element
.array_stride = sizeof(uint16_t) * 2,
.array_type = &(static const struct cdbus_serialization_info) {
.type.sig = CDBUS_TYPE_UINT16,
.type.struct_offset = sizeof(uint16_t),
},
},
{},
};
struct thing t = {
.array1 = { 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 },
.array2 = (uint16_t[]){ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 },
.array2_len = 6,
};

cdbus_serialize(info, &t);

array of 'u': length 10 {
uint32_t: 0
uint32_t: 1
uint32_t: 1
uint32_t: 2
uint32_t: 3
uint32_t: 5
uint32_t: 8
uint32_t: 13
uint32_t: 21
uint32_t: 34
}
uint8_t: 6
array of 'q': length 6 {
uint16_t: 2
uint16_t: 4
uint16_t: 6
uint16_t: 8
uint16_t: 10
uint16_t: 12
}
>>
Any powershell niggas that can check if this will nuke my house or something https://gist.github.com/ericchansen/68485e96f8c17abf388cb4a58ebe5ef3
>>
>>101348568
looks fine it just calls Get-PnpDevice every 5 seconds until you close it
>>
File: .png (17 KB, 818x413)
17 KB
17 KB PNG
Is it just me, or is the whole MLKit docs 404'ing?

https://developers.google.com/ml-kit
>>
>>101348691
sars
>>
>>101341573
why would I need appimage if I want to deploy a application? Can't I just copy the libraries and then adjusted the LD_LIBRARY_PATH/rpath zip the dir and ship that?
>>
>>101348678
Aight, thanks
>>
>>101348912
In theory yes, but it's pretty hard to stay entirely self-contained like that.
You're almost going to want to link against libc, and bundling that really isn't the greatest idea. It could also be something large like GPU drivers, which itself is going to link to libc.

So you decide, "fine, I'll just let it resolve the system's libc", but then you've got the whole glibc vs musl vs whatever other alternative which probably aren't going to be binary compatible.
If you have some kind of container, you push the maintenance of that problem onto someone else who's probably already provided a "clean" environment for you.

But I still think containers are a meme most of the time. The real 999 IQ play is to not distribute your software at all, and trick other people into doing it for you, by making it as easy as possible to build.
>>
How do I force myself to code before they fire me? It's COBOL btw.
>>
published the linux framebuffer backend for my window creation library which allows my gui programs to run as an overlay on fbcon
currently terminal input only, no "real" keyboard or mouse support yet
>>
File: pain.jpg (209 KB, 1088x833)
209 KB
209 KB JPG
>>101350113
I miss winter.
>>
>>101348568
it makes mustard gas
>>
File: 006.jpg (106 KB, 777x901)
106 KB
106 KB JPG
>>101350482
It doesn't.
Picrel makes mustard gas.
>>
I'm trying to learn C. I'm wondering whether there is a better way to concatenate a string and int before assigning the value to the member of a struct.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define NAME_MAX_LEN 64

struct cat {
char name[NAME_MAX_LEN];
};

int main(void)
{
const int count = 10;

struct cat *cats = calloc(count, sizeof(struct cat));

for(int i = 0; i < count; i++) {
char cat_name[NAME_MAX_LEN];
snprintf(cat_name, NAME_MAX_LEN - 1, "Cat %d", (i + 1));
strncpy(cats[i].name, cat_name, NAME_MAX_LEN - 1);
}

for(int i = 0; i < count; i++) {
printf("%s\n", cats[i].name);
}

free(cats);

return EXIT_SUCCESS;
}
>>
>>101350851
No need to call calloc unless you actively rely on values being zero (which you don't).
No need to call malloc either; the struct array easily fits on the stack (640 bytes ought to be enough for everybody).
And you can snprintf directly into cats[i].name without the temporary store into cat_name.
>>
>>101350891
Thanks, Bill. I've fixed my code as you suggested. Would it be a retarded idea to dynamically allocate the space needed for the names instead of #defining it to be 64 bytes long?
>>
>>101350851
>a better way to concatenate a string and int
Admittedly, I'm not too familiar with C to definitely say: I would've rolled my own implementation instead of using the standard library.
But for what you're trying to do, it looks good.
>>
>>101351102
Depends on your requirements and competency. With a static size you're not only potentially wasting space if the strings are smaller than expected, but you're also limiting yourself to exactly that amount of bytes. On the other hand it never hurts to have a couple extra bytes on standby, and if 64 is the absolute max you will ever need ... why not?

Also, if the strings all have more or less the same lifetime, then you can use an arena rather than mallocing/callocing memory for every single string you store: https://www.rfleury.com/p/untangling-lifetimes-the-arena-allocator
You should avoid malloc/calloc in general: >>101343060
>>
is there a reason I shouldn't just use huge static buffers for everything and let demand paging take care of memory management for me
>>
>>101351368
-using much more memory that you need, or using not enough.
-no control over the allocation in the first place (different page sizes).
-multithreading can drill you a new one because you might not know how many threads you end up with.
>>
>>101351125
>I would've rolled my own implementation
What I meant by this is the following:

#include <stdio.h>

#define COUNT 20

// Int size checking from: https://stackoverflow.com/questions/2584937
#if INT_MAX == _I64_MAX
// "Cat " (4 chars) + maximum digit count for int64 (19 digits) + string terminator
#define NAME_MAX_LEN 24
#elif INT_MAX == _I32_MAX
// "Cat " (4 chars) + maximum digit count for int32 (13 digits) + string terminator
#define NAME_MAX_LEN 18
#elif INT_MAX == _I16_MAX
// "Cat " (4 chars) + maximum digit count for int16 (5 digits) + string terminator
#define NAME_MAX_LEN 10
#else
// Assuning int8
// "Cat " (4 chars) + maximum digit count for int8 (3 digits) + string terminator
#define NAME_MAX_LEN 8
#endif

struct cat {
char name[NAME_MAX_LEN];
};

void initNameOf(char name[NAME_MAX_LEN], int i) {
name[0] = 'C';
name[1] = 'a';
name[2] = 't';
name[3] = ' ';

if(i < 0) {
// Nope, we're not handling negative numbers
name[3] = '\0';

return;
}

if(i < 10) {
// Special case: Single-digit number (including zero)
name[4] = '0' + i;
name[5] = '\0';

return;
}

int numberOfDigits = 0;
for(int iCopy = i; iCopy > 0; iCopy /= 10, numberOfDigits++);

name[4 + numberOfDigits] = '\0';

for(; numberOfDigits > 0; numberOfDigits--, i /= 10)
name[3 + numberOfDigits] = '0' + (i%10);
}

void main() {
struct cat cats[COUNT] = { 0 };

for(int i = 0; i < COUNT; i++)
initNameOf(cats[i].name, (i + 1));

for(int i = 0; i < COUNT; i++)
printf("%s\n", cats[i].name);
}
>>
>>101351644
name[0] = 'C';
name[1] = 'a';
name[2] = 't';
name[3] = ' ';

Yikes.

*(uint32_t*)name = *(uint32_t*)"Cat ";
>>
how can I make a thin tmux client? I just want to be able to run commands through the tmux unix socket
>>
>>101351696
>
*(uint32_t*)name = *(uint32_t*)"Cat ";

Interesting. I would've thought strcpy-ing from a static template would've been the better way to go.
I would've thought, that that'd be equivalent to
name = &"Cat ";
; but testing both out, yours works and mine doesn't.
I (partially) understand, why mine doesn't work; but why is your casting of pointers any different to assigning it an address directly?
>>
>>101346280
It suck just use nim
>>
>>101353074
Nim is too hard for most Pythonbabs
>>
>>101341573
actually read the manual and finished paging
for the third time now
>>
>>101351857
Yours isn't dereferencing either pointer so you are assigning a "derived declarator type" object whose value is an address, rather than the object being pointed to.
*(uint32_t*)name = *(uint32_t*)"Cat ";

"Cat"
evaluates to an object of type pointer to char whose value is an address that the compiler understands to be the location of a char-sized object. Note that the actual type of the string literal is actually char (*)[5] not char*, so this isn't actually correct but I'm simplifying.
(uint32_t*)"Cat "
tells the compiler to ignore what it thinks the type of this value is, and instead to treat it as the location of an object of type uint32_t.
*(uint32_t*)"Cat "
dereferences that pointer to an unsigned 32-bit integer and the expression evaluates to the object it points to.
(uint32_t*)name
does the same thing to the lvalue pointer. "Treat this pointer to char as a pointer to an object of type uint32_t."
*(uint32_t*)name
the complete evaluation of the lvalue tells the compiler that the evaluated rvalue expression, which is a uint32_t, should replace the current uint32_t value stored at (uint32_t*)name.
Also remember that arrays decay to pointers in (almost) every expression, so "name" could be a proper array, but its place in an expression is represented by a pointer to its first element. The array is decaying to a pointer as of being passed as an argument to the function anyway.
name = &"Cat"
would be changing the value of "name", an address, not the value of the object it points to.
Attempting to modify a string literal is undefined behavior in any case. It may work but every time the string literal "Cat " is evaluated it's probably the same address each time to the literal data in .rodata
The autist you're responding to has been going on about compiler string read/write code generation optimizations for weeks now.
>>
>refreshing myself on Java
>have a class with a field/method I want subclasses to access but no one else
>no access modifiers achieve this
What do?
Also, why? That sounds really common.
>>
>>101354028
Stop using pOOP
But doesn't Java have protected?
>>
>>101351857
You can do that or assume you're on a little endian machine and assign the actual uint32_t for the string.
>>
>>101354042
Protected in java is internal in C#, it's public to all within the package.
>>
Recommend me some old programming books
>>
File: modifiers.png (6 KB, 288x151)
6 KB
6 KB PNG
>>101354072
>>
>>101354104
Programming the Z80 by Rodnay Zaks
Or, if you prefer, Programming the 6502 by the same author
Or be more specific as to what you're looking for
https://www.retroreversing.com/books
>Books published around the same time as retro games
>>
>>101354028
the only use case I can think is that you want people to edit your package's source but somehow not access parts of it

if you're gonna distribute a library for people to import, it makes no difference if your methods are visible within the package
>>
>>101354104
Waste of time, it's like asking to read an old construction book that still tells you to use asbestos for insulation, we know better now. If you want to learn old techniques you should go look at things that were actually built in the time period you're interested in to see what people were actually doing, not what peoples opinions were.
>>
>>101354390
I want subclasses to access it, I don't want the whole package to (really just for cleanliness at that point desu).
e.g. I have a class, it's important to set some specific variables if you extend it, those variables aren't known at the start of the constructor so I can't just slap a super(args) and deal with it in the base class constructor, this means either I need an init(args) that's visible to subclasses or I need the variables themselves to be accessible. Obviously I don't want either to be accessible to other classes.
From what I can gather my assumption of packages is wrong, they must expect you to create a package for fucking everything.
>>
>>101354539
you are the only person editing inside the package, just don't access the things you don't want accessed. I know proper encapsulation feels cleaner and better, but... your package is yours man, you don't need to protect you from yourself
>>
>>101354152
not that anon but thanks i needed a z80 book i want to do dumb shit with my ti-84 calculator
>>
File: 1716512016666449.jpg (82 KB, 1024x494)
82 KB
82 KB JPG
What's the most pleasant to use language you've tried?
Why don't you write all your projects in it?
>>
>>101354852
rust. I do.
>>
>wanna make c++
>think of project
>it's more efficient to do it in python
>it's more educational to do it in assembly
okay what now
>>
>>101354884
>wanna make
wanna learn
>>
>>101354852
ruby is nice if you dont care about how it runs
>>
>>101354896
If you want to learn something then how can it be more educational to do it another way? If it has elements that probably should be assembly, then just do those bits in assembly.
>>
>>101354884
prototype it in python, i usually write stuff in Blender so I don't have to mess with rendering libraries
then port it to C++, this step is nice because you can refactor at the same time
learning assembly is just a matter of looking at compiler outputs, you don't want to be writing that stuff from scratch unless you plan on never finishing anything
>>
>>101354926
>language is either really enjoyable to write but performance is fucking dogshit
>or the performance is good but writing the language is about as pleasant as passing a kidney stone
I want to be free of the C++/Python hell
>>
>>101354852
>What's the most pleasant to use language you've tried?
C#.
>Why don't you write all your projects in it?
It's C#.
>>
>>101354852
C
>why dont you write all your projects in it
because oop is too good to pass up.
>>
I'm programming in C++98 and earlier (pre-standard) versions of C++ using old compilers running in VMs and targeting the OSes on those VMs and NO ONE CAN STOP ME
>>
>>101355078
>because oop is too good to pass up.
Good morning, saar
>>
>>101355092
why
that's so dumb
like i downloaded VS97 disc 3 to take a look at the pipes screensaver source code and even just looking at c++ from that era is gross
>>
>>101355103
Good morning, babyduck
>>
>>101355155
>Good morning, babyduck
Excuse me, saar. It's not the 90s. Only we know OOP is perfect for good looks
>>
File: Scanners.gif (231 KB, 200x161)
231 KB
231 KB GIF
>>101353988
>>101354045
>assign the actual uint32_t for the string
Oh, I see it now.
I've just tried using different casts (uint8_t, uint16_t and uint64_t), confused why I sometimes get "C" or "Ca", and I just needed to reread the explanations for it to click.

"Cat ", assuming char is 8 bits, can also be represented as a 32-bit integer (without the null-terminator).
What's being done is, that 32-bit integer's being copied over into the memory space of name.

>Attempting to modify a string literal is undefined behavior in any case. It may work but every time the string literal "Cat " is evaluated it's probably the same address each time to the literal data in .rodata
That was exactly my concern with
*(uint32_t*)name = *(uint32_t*)"Cat ";
, but I see now that, with all that casting and dereferencing, that's avoided.
>>
File: 1704054139725327.jpg (46 KB, 500x500)
46 KB
46 KB JPG
>>101354852
datatype exp
= True
| False
| Int of int
| Not of exp
| Add of exp * exp
| If of exp * exp * exp

fun eval True = True
| eval False = False
| eval (Int n) = Int n
| eval (Not e) = if eval e = True then False else True
| eval (Add (a, b)) = (case (eval a, eval b) of (Int x, Int y) => Int (x + y))
| eval (If (e, t, f)) = eval (if eval e = True then t else f)

for me it's SML
>>
>>101355312
>SML
Based, if only there were implementations that people actually used. OCaml and F# both fall short of SML
>>
>>101354852
Python
Can get slow, and not easy to package into a standalone binary
>>
>>101355312
>not a GADT
yikers
>>
File: movabs.png (3 KB, 720x60)
3 KB
3 KB PNG
>>101353988
>The autist you're responding to has been going on about compiler string read/write code generation optimizations for weeks now.
I mean, if it works ...
>>
>>101354852
Nim kings wwa?
>>
Anything like godbolt but for old compilers?
>>
>>101355417
Not denying that. I just wish compilers were not such black boxes so things like this would not even be noteworthy. C has so many idioms for manual optimizations that are all considered bad practice because "the compiler can do it for you"
>>
>>101355500
gdb
radare2
hexdump
>>
File: real.jpg (159 KB, 750x742)
159 KB
159 KB JPG
Anyone have any tips for reverse engineering? I'm trying to build some development tools for a proprietary dbms (similar to Access) but keep getting tripped up by new discoveries. I change one thing and suddenly a rule my code is based on changes, tables are saved in mixed up order for every schema write to the file, etc.

Is there a better way to uncover all these besides stumbling over them?
>>
scriptlet here, i need a bit of help structuring a loop (?)

i have a vertex, it has neighbours. i loop over the array of neighbours, get their positions, average it and that becomes my new position.
i would like to add a depth parameter. if set to 1 it does what i just described. if set to 2 includes the positions of the neighbours for each of the vertices in the neighbour array. if set to 3 it dives another level further.

how do i set it this up?
>>
>>101355511
>I just wish compilers were not such black boxes
Is this even possible when chips have 3 layers of backwards compatibility and your asm ops get shredded into micro ops.
>>
>>101356327
https://en.wikipedia.org/wiki/Level_structure
>>
File: file.jpg (64 KB, 645x729)
64 KB
64 KB JPG
>>101356338
th...thanks.. i think...
i'm not sure this is what i need, since i already have the neighbour arrays. if you tell me this is what i need tho then i'll think harder about it
>>
>>101356422
you want the average of nodes at level <=n (i.e. within n edges) maybe excluding 0
>>
>>101356422
>>101356443
honestly its really simple, just keep a set of visited nodes, recursively go out up to N putting everything you touch in the set to prevent issues with cycles and accumulating total position for things newly added
then divide total position by no. elements in the set
>>
>>101356332
I can't remember a time when relying on memory fetches was faster than using immediate operands, even if the references happened to be satisfied by L1: https://uops.info/table.html?search=add&cb_lat=on&cb_tp=on&cb_ADLP=on&cb_ADLE=on&cb_ZEN2=on&cb_ZEN4=on&cb_measurements=on&cb_base=on
>>
>look at code I've done a long time ago
>looks better than anything I've done in recent years
Am I getting worse?
>>
>>101356479
No you always sucked
>>
>>101356327
Probably easier to not try to use a loop and just do nine lines of (x-1, y+1), (x, y+1), ...
>>
File: 119048320957.png (26 KB, 637x234)
26 KB
26 KB PNG
>>101341573
>C++ Code Like you are in MATRIX : Mastering C++ in 12 Hours
https://www.udemy.com/course/c-programming-for-everyone/?couponCode=2024_JULY_SALE

12h C++ course free for next 24h
>>
File: hackerman.jpg (63 KB, 960x540)
63 KB
63 KB JPG
>>101356522
>Mastering in 12H
Good morning saar
>>
>>101356522
Not durgasoft not interested
>>
>>101356556
>12h
skill issue
Should take you about an hour unless you're brown (which you are)
>>
>>101356522
Does it teach me how to use std::pmr::memory_resource without it ending up being a thinly-veiled layer around much more intuitive C interfaces?

You know what, scratch that, I'm not interested either way.
>>
>>101356581
Yes, saar, please teach us about the pointer smarts
>>
>>101356574
akshually
instructor sounds russian\slavic
>>
File: 1713985171709697.png (7 KB, 800x858)
7 KB
7 KB PNG
>Haha guise I made another saar joke am I in the cool kids club now?
>>
>>101356443
>>101356453
i.. i think you guys might be overestimating what i am capable of... i think i just needed the structure of a recursive function for diving into those arrays. i can throw out duplicates pretty easily since verts have identifiers. thanks tho.

>>101356511
tb h i'll probably never dive more than 2 levels deep so i could just do the retard thing.
>>
File: 1717016097448359.jpg (1.37 MB, 1920x1080)
1.37 MB
1.37 MB JPG
>>101356655
... joke?
>>
>>101356582
Cniles are beyond saving
>>
File: 1662092219609405.png (786 KB, 478x795)
786 KB
786 KB PNG
>>101356332
"Microcode" is not a programming interface, nor an abstraction of one, so I don't see why this is ever relevant
>>
>>101356678
>tb h i'll probably never dive more than 2 levels deep so i could just do the retard thing.
I think you want something like this to start
total = verts[y-1][x-1] + verts[y-1][x] + verts[y-1][x+1] +
verts[y ][x-1] + verts[y ][x+1] +
verts[y+1][x-1] + verts[y+1][x] + verts[y+1][x+1]

and then add the extras like average/depth/etc
>>
>>101356705
I would rather eat a bullet than be """""saved""""" by C++'s atrocious memory management.
>>
>>101356327
function dive(me, level) {
if (level is 0) return me;
next_me = average_pos(me.neighbors);
return dive(next_me, level - 1);
}


function rec_dive(nodes, me, level) {
if (level is 0) return;
for each n of me.neighbors {
if (n not in nodes) nodes.add(n);
rec_dive(nodes, n, level - 1);
}
}
function all_dive(me, level) {
return average_pos(rec_dive([], me, level));
}
>>
File: 1695549175638.png (558 KB, 1648x1010)
558 KB
558 KB PNG
>>101356801
Based
>>
File: snapshot_06.20.635.png (2 MB, 1920x1080)
2 MB
2 MB PNG
>>101341573
huge oppai
>>
>>101356985
When will you get tired of posting the same debunked meme over and over again?
>>
>>101356795
>>101356948
bless u lads
>>
File: 1569358911432.png (462 KB, 1907x825)
462 KB
462 KB PNG
>>101357012
Copemax
>>
File: final_version.png (35 KB, 1530x968)
35 KB
35 KB PNG
>>101357115
Why don't you already prove me wrong with your own custom-made registry dumper in Rust?

><insert excuse for not doing it>
Yeah, thought so.
>>
Is there a version of the "roll for a programming project" image that replaces every project idea by a Windows registry dumper?
>>
File: double_regger.png (304 KB, 571x525)
304 KB
304 KB PNG
>>101357242
No, but I could use more memes made about me. They feed my ego.
>>
>>101357150
here is a registry dumper in haskell
main = pure ()

it doesn't work on winblows
>>
File: dump.png (89 KB, 1894x989)
89 KB
89 KB PNG
>>101357260
Doesn't even produce an approximation of the actual data. Discarded.
>>
>>101357278
winblows isn't supported botanon
>>
>>101357348
>winblows isn't supported
Another reason for rejection.
>>
File: throw_beary_maybe.jpg (32 KB, 412x500)
32 KB
32 KB JPG
I have this class that would like to inherit from two classes but i need it to fit into an array of members of one of the classes (yet another layer of dereferences is out of the question), is this doable in sepple? I am obviously not using all members of each class
>>
File: rust community.png (1.75 MB, 1880x1124)
1.75 MB
1.75 MB PNG
>>101357115
>>
>>101357375
std::variant? Seems silly to use multi inheritance but then bitch about pointer dereferences, you're already being stupid might as well go full retard
>>
>>101357406
i just dont want to use templates and bloat up my binary and also dont want to rewrite the same function for this thing man
>>
File: police_helicopters.png (91 KB, 1627x555)
91 KB
91 KB PNG
>>101357393
>mfw I shave better than people who experience a complete breakdown if you tell them they don't pass
>>
>>101357406
>A variant is not permitted to hold references, arrays, or the type void.
sadly useless.
>>
>>101357440
vtable dereferences is not a template what are you on about
>>
>>101357458
>A variant is not permitted to hold references
neither can an array?
>arrays
use std::array
>or the type void.
void is not a useful type
the more you talk the more retarded you sound
>>
>>101357459
If the classes are not the same the offsets are different, no matter what trickery you use if they are not the same class the compiler will write another function
>>
>>101357506
oh so it's an imaginary problem that doesn't exist and you're just insane, sorry for enabling you.
>>
>>101357483
get your head out of your ass you fucking faggot, i have already said that i cannot use ANOTHER fucking layer of dereferences, what kind of shitlang would force me to waste megabytes this way? If you are going to be a faggot then fuck off.
>>
>>101357523
you are a complete fucking retard
Daily larpers thread, stupid of me to even bother asking
>>
>>101357540
>proceeds to not fuck off right whence he came
>>
>>101357540
>>101357531
You're the one trying to find a way to store an array of references to type void in another array without using pointers, functions or templates, have fun, don't forget to take your meds!
>>
>>101357595
LOL, this would be doable in assembly, fuck you and your shitlang.
>>
File: dpt.png (79 KB, 1291x528)
79 KB
79 KB PNG
>>101357242
>>
>>101357724
for me it's 36
>>
>>101357724
>web frontend
Lol
Most people here wouldn't even know how to get a basic HTTP server running.
>>
>>101357822
>i am le proud of using le frameworks
kek, you are literally flaunting about beating your meat in a cuck chair
Crazy.
>>
File: feel_okay.png (73 KB, 1280x800)
73 KB
73 KB PNG
>>101357867
>he thinks basic HTTP server includes frameworks
>>
>>101357822
oh please i've made utility web servers in c++ for talking to my phone
i had to set up a reverse proxy to bypass restrictions on mobile data
it was trivial
if you're a webdev, you aren't smart, your nonsense is just needlessly complex
>>
>>101357904
>unironically implementing a parser for http
you are insane.
>>
>>101357924
>reverse proxy
Pathetic. I said "basic webserver". No proxy or upstream server, no Unix sockets, no IPC.
>>
>101357115
Rust cultists/shills aren't bringing their best today I see
>>
>>101357967
>thinks this is hard
jesus christ brother this is getting embarrassing, you read the manual for accept() and now you think you are some kind of God programmer kek
>>
>>101354852
Go, I do (except when I want to use C instead).

Really enjoyed M too, but it’s not practical for much and practically has RCE for poorly sanitized inputs as a language feature.
>>
File: 1640587155353.png (410 KB, 850x463)
410 KB
410 KB PNG
>>101357984
I love how you just attempt projection after projection after projection, and they all fall flat because you don't know what you're talking about.
>>
File: C++98.jpg (32 KB, 432x324)
32 KB
32 KB JPG
*Ahem*
>>
>>101358024
fake
>>
File: stroustrup_is_a_crybaby.png (59 KB, 1174x436)
59 KB
59 KB PNG
>>101358024
Yes?
>>
File: boxart.gif (226 KB, 406x500)
226 KB
226 KB GIF
Gentlemen, the adult has entered the building.
You may now bow down.
>>
>>101358047
Source?
>>
File: real.png (283 KB, 603x324)
283 KB
283 KB PNG
>>101358042
>>
>>101358065
>no AVX support
Nice try, grandpa.
>>
>>101358082
https://harmful.cat-v.org/software/c++/coders-at-work
>>
>>101358103
Who needs AVX? You shouldn't have to rely on SIMD for your code to run well.
>>
>>101358124
Why not, grandpa? Would that make you feel old and useless?
>>
>>101357867
turbo retard
>>
>>101358119
Hmm, interesting. Though that site is run by the creator of Go, so I'd say he's a hypocrite. Go is poop.
>>101358150
>g-grandpa!
For the record, I'm 24. How old are you? 5?
>>
>>101358184
>answering a question no one asked
>>
>>101358017
honestly, you are completely retarded
Go back to writing fizzbuzz or whatever flavor of the week text parser in whatever flavor of the week instruction set, maybe you will get a raise at the NSA job your granny got you if you parse jewish text faster this time.
>>
>>101358200
>no one asked
You called me grandpa, so it was only fair I shattered your weak attempt at an insult.
>>
I've spent the last couple days confusing myself from spurts of "cool idea" moments and ended up in a nostdlib debugging hell. It's almost over.
>>
*Ahem*
Gentlemen.
>>
>>101358218
cant relate, it has never been more begun
>>
Gentlemen.
>>
>>101341573
standing paizuri
>>
>>101358209
Looks like I broke the bot.
All they can do is repeat the same pattern over and over again.

>>101358211
>it was only fair I shattered your weak attempt at an insult
Oh yeah, you totally showed me by never explaining why AVX shouldn't be more readily deployed.

Grandpa.
>>
>>101358223
oh the joys of near and far pointers
>>
File: (You).jpg (8 KB, 229x250)
8 KB
8 KB JPG
>>101358258
>Grandpa.
>>
I accept your concession.
>>
File: firefox_jf2kRkb6wY.png (9 KB, 776x95)
9 KB
9 KB PNG
>>101358306
>I accept your conces--AIIIEEEEEEEEEE MY PC IS ON FIRE
>>
>>101358268
>retards cant into segmentation
kek, as expected of a textparser nigger
>>
File: decimal_writer.png (10 KB, 800x270)
10 KB
10 KB PNG
>>101358330
Wrong: https://gist.github.com/rygorous/32bc3ea8301dba09358fd2c64e02d774
>"Regular" lets you use any 128-bit wide instructions and "light" 256-bit instructions (shuffles and integer adds/logic/shifts OK, no FP, nothing that powers on the 256-bit multiplier whether int or FP)
>"AVX2 heavy" lets you use all 256-bit wide instructions and "light" 512-bit wide ones. Base and turbo frequencies are about 15% lower than baseline.
>"AVX512 heavy" lets you use anything. Forces the frequencies to be about 25-30% lower than regular.

>inb4 what good are shuffles and shifts
More than the likes of you can imagine.
>>
>>101358393
k
>>
>>101358403
>>101358306
>>
>>101358417
k
>>
>>101358417
No no no, I accept yours.
>>
>>101358438
>literal no u out of thin air
Looks like the bot caught AI dementia.
>>
>>101358393
>still schizoing out because he can use some instructions on an fpga someone else made
kek, you are not smart for figuring out pshufb, (You) are pathetic.
>>
>>101358450
>bot
??????
How am I a bot?
Look buddy, I think you confused me for someone else.
>>
>>101358450
>everyone who replies to my bait out of boredom is a bot
kek
Drink a beer.
>>
>>101358456
>AVX is FPGA
Source?
>>
File: theyre_waiting.jpg (126 KB, 341x512)
126 KB
126 KB JPG
>>101358461
>look buddy
go back
>>
>>101358463
To be honest, I'm not really that bored. Pissing this "AVX is good, I'm smart you're not" retard off is pretty entertaining.
It's hardly bait when he's the one who's going for the hook.
>>
>>101341573
What do you think about Data Centric Introduction to Programming

https://dcic-world.org/

It's from the same authors of How to Design Programs.
>>
>>101358486
>>look buddy
>go back
You first, buddy!
>>
>>101345420
Thank you!
>>
>>101358478
microcode.
>the sky is blue, source?
>>
>>101358461
>>101358463
>reverts to Turing-test levels
Truth be told, I'd deny being a bot too, if that's the best I could do.
>>
File: firefox_4fmSKEvDOD.png (5 KB, 469x121)
5 KB
5 KB PNG
Fucking lmao this schizo's gone off the deep end
Further proof that C++98 is king and anyone who seethes at it is a mentally deranged lunatic.
>>
>>101358506
you are like a bird looking at my posts bro, you dont get my text parsers and shifting operations bro
>>
>>101358504
https://en.wikipedia.org/wiki/Microcode
>not a single mentioning of FPGA
>>
>>101358487
>l-look, m-mate, I was j-just pret-tending to be r-retarded
I smell your cold sweat.
>>
>>101358527
>intel distributes microcode updates
>noooo bro it is not fpga
whatever nigger
>>
>>101358543
>I smell your cold sweat
Whatever, you weirdo, that's kinda gay.
>>
>>101358523
>reverts into complete schizo-talk
Alright.
>>
>>101358527
the wiki article on that is fucking nonsense by the way
What microcode is about is RAM driving, the mmu, shit like that
Instruction decoding is all hardware
>>
>>101358564
nta but you should look in the mirror before calling someone a schizo thoughbeit
>>
>>101358546
I don't care for your leaps in logic, sorry.

>>101358562
Not my fault you don't shower out of conviction.
>>
>>101358562
never said he liked it you closeted peadophile
>>
>>101358574
>N-not my fault I'm smelling y-your c-cold sweat! It's not like I enjoy it or anything.
Sorry Anon, but unlike you I'm not gay. You'll have to bring your fetishes elsewhere.
>>
>>101358573
... just out of curiosity: what mental illness causes you to think I give a shit about your assessments?
>>
>>101358574
>Didnt deny enjoying anons cold sweat
topkek you are a faggot
>>
>It's not like I enjoy it or anything.
... it really does sound like dementia, doesn't it? Where they just make up a complete alternative reality? Scary.
>>
>>101358596
>.... just out of curiousity

Xir is a woman isnt zhe?
>>
File: Hypocrite!.png (4 KB, 442x71)
4 KB
4 KB PNG
>>101358607
>... it really does sound like dementia, doesn't it? Where they just make up a complete alternative reality? Scary.
>>
>>101358607
>this degree of projection
sir the flight is about th fall of sir the boaing isnt holding sir
>>
I want a plankalkül-like
>>
>>101358618
You remind me of Trump. You both refuse to acknowledge reality, no matter how many times you're being corrected.
>Pissing this "AVX is good, I'm smart you're not" retard off is pretty entertaining.
is textbook "I was just pretending to be retarded".
>>
>>101358650
>You remind me of Trump. You both refuse to acknowledge reality, no matter how many times you're being corrected.
Didn't ask but okay. I hate the guy too but you sound like him more lmao
>>
>>101358658
You hate yourself? Makes sense.
>>
Also
>brings up Trump out of nowhere and compares me to him
This fella might as well be a /pol/tard or a rusttard
>>
>>101358670
>brings up Trump out of nowhere and compares me to him
Yeah, I've been fascinated by his total disregard for reality ever since his conviction.
>>
C++98 wins again.
>>
>seething so hard about the trump comment he started samefagging
>>
We had the greatest economy in history.
>>
Gitlab or github?
>>
File: firefox_9so42CsYV1.png (40 KB, 876x662)
40 KB
40 KB PNG
>>101358730
???
>>101358747
Whatever you like more.
>>
File: wearesocooked.png (79 KB, 455x146)
79 KB
79 KB PNG
>>
File: _resize.jpg (44 KB, 640x480)
44 KB
44 KB JPG
*Ahem*.
>>
>>101358747
myproject.zip
>>
>>101358747
for me it's
>Project/OLD1/OLD2/OLD3/OLD4/OLD5/
>>
>>101358747
git is retarded, private repository over the internet (aka own servers, own esstablishment) and doing manual backups
>>
>>101358747
self-hosted gitea instance
if you really want to rely on something non-hosted by you, then gitlab
if you want to join the popularity contest or want to have the small chance to be besieged by some minority then github
>>
Does gitlab require fucking money?
>>
>>101358997
Yes
>>
>>101358997
No service should require you to have sex with money.
>>
File: gitlabpricingfullhd.png (40 KB, 575x493)
40 KB
40 KB PNG
>>101358997
not really, it's free but unless you require the epic devops features or some limit enhancement it's really not worth it for the average programmer
you can also selfhost gitlab as well for free with the community edition
>>
>>101358065
I had VB6 when I was a teen. My first real language to toy with
>>
>>101341636
is this even possible?
>>
>>101359355
Possibly: https://dolphin-emu.org/blog/2017/07/30/ubershaders/
>>
>>101358784
I have a physical boxed copy, it's cool
comes with a couple reference textbooks in the box.
>>
>>101341573
removed a layer of abstraction, feeling happy.
Tomorrow reading about pci host bus programming in an old intel manual and writing a driver for it, which is probably pointless (mps only mentions apics being standardized in *that* way) but whatever
>>
>>101359355
yes, from what i can tell it shouldn't be that hard overall
especially if you're doing it in a compute language with actual access to the hardware (i.e. CUDA, SYCL, or HIP)
i haven't been feeling well enough to really start start (COVID, everything fucking hurts) but i've been reading NES emulator info for a little bit in prep

>>101359447
that's something else, a monolithic shader that handles a lot of decisions dynamically, that's actually useful and is actually modern best practices as recommended by id
what i want to do is just fucking retarded but there are things i want to test that make it useful for practicing
>>
>>101359652
actually scratch that is is a little bit like what i want to do in that it's handling emulation of the rendering pipeline with that style of shader
i must have skimmed over that bit when i first read that article a while back
>>
Looking to build my own CMS. I don't want to use Wordpress. Would Node.js be perfect?
>>
>>101357724
Rolling for groceries
import Control.Monad.Loops; import System.IO
import qualified Data Map as M; import Text.Printf
main = pp . grp =<< untilM getLine isEOF
grp = unionsWith (+) . map (\k -> M.singleton (map toUpper k) 1)
pp = mapM_ (\(k,v) -> printf "%d %s" v k) . M.toList
>>
>>101360231
>>>/g/wdg
>>
>>101360273
moist
>>
>>101358184
>Though that site is run by the creator of Go
no, it isn't
>>
>>101360432
>trying to necro an argument that already died out
anon no
>>
>>101360504
this isn't reddit
>>
i am once again reminded that unfamiliar is not the same as unreadable
>>
>>101360534
Have you once again forgotten to drain off the methanol of your moonshine?
>>
>>101360740
Meds time.
>>
>>101360752
I don't think meds will restore your optic nerve.
>>
>>101360432
I think he means that ken thompson is a creator of go
though its pretty gay to fallback to such a cope after asking for a source as if you disbelieved it.
>>
>>101357822
import flask

wow that was hard
>>
>>101357724
rolling for fizzbuzz
>>
>>101360842
>requires WSGI
So the best description I could find on how that works is https://ivory.idyll.org/articles/wsgi-intro/what-is-wsgi.html:
>it's similar to the CGI environment
That couldn't possible be true, right? There's no way that they launch a fucking process every single time a request comes in, right?!
>>
>>101360923
of course not. It's more similar to fast cgi really.
>>
>>101360957
Source?
And even if that's truth: that's still garbage because it requires communication with a backend server.
>>
>>101358650
>>101358658
>>101358687
>>101358670
>two TDS retards arguing over nothing and accusing each other of being orange hitler
When are you guys going to admit you're over-integrating politics into your daily lives? You have a poor grasp of rhetoric and can't convince anyone of anything without trying to shame them. It's cope for having technical beliefs you don't know how to substantiate and, thus, a tenuous grasp on reality itself.
>>
>>101361085
>two TDS retards
Why are you counting yourself into this?
>>
>>101361095
I'm not. You're intentionally misreading what I said so you can continue deluding yourself into thinking your position is the normative one so you can try to shame me. You have to assume samefagging because the perception of ideological popularity is central to why you believe what you believe, and why you think other people should agree with you.
>>
File: 1645726844024.png (636 KB, 757x696)
636 KB
636 KB PNG
>>101361188
>>
>>101361230
Aye. You are intentionally illiterate.
>>
>>101361357
Whatever helps you sleep at night.
>>
PROGRAMMING
Is there no way to explicitly access or use xmm/ymm registers on bare metal c/c++ without intrinsics and the STL?
>>
>>101361391
I guess.
>>
>>101361380
I'm primarily nocturnal just like a bat or your mother's employment.
>>
>>101361487
You're both bloodsuckers?
>>
>>101361391
>Bare metal
>C/C++
lmao
>without intrinsics
You can do inline assembly but that's probably harder.
You could also link assembly objects you write separately.
There's also Vector extensions in GCC which you might be most interested in.
https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
>>101361525
No, your mother's a whore. I called your mother a whore.
See, this is why you should learn how to read, you'll pick up on more.
>>
>>101361577
So you're both whores?
>>
>>101361612
No, because nocturnal employment specifically is what makes your mother a whore, not merely being nocturnal.
You realize you have the reading comprehension of like a 3rd grader, right?
>>
>>101361649
Sounds like you're a whore too ngl.
>>
>>101361657
You have 80IQ, don't you?
>>
>>101361666
I'm not the one who needs to whore himself out, unlike you.
>>
>>101361692
Thanks for answering my question.
>>
>she doesn't deny being a whore
>>
i cant only code on 1 thing. i have ADD and have to smoke weed and multi task on 10 projects

trying to finish these next
1. wayland extension for adding
Infra for Training / Fine-Tuning, Benchmarks / Metrics, Hardware / Devices, Function Calling¸ Long-term Memory¸ Agentic Workflows and RAG
2. emacs mode
3. firefox extension
4. teleop for multi-robot control
5. continuous-eval for Vision transformers on custom tasks
6. simulation-pixel-streaming
7. auto-labeling
8. goroutine = agent managed by llm - table + logging
9. bumble-automater
10. robotic nurse for mom and dad when they get old
>>
>>101361803
It's funnier to watch your parents break every single bone in their bodies. It's their just punishment for being unable to not procreate.
>>
>>101361750
Stop projecting your homosexual fantasy onto me.
You need to go back >>>/lgbt/
>>
hey guys i have a desktop at my mom and dad's house with a 3090

i want to run my machine learning homework for a class im taking on it, but i dont have space in my apartment here and i dont want to fly there yet to set it up.

is there something i can install on the computer so that i can run software on it and use it like a raspberry pi or homelab self hosted server?? tyvm

my mom can probably operate virtual box + a nixos VM
>>
>>101361822
Stop projecting your homosexual projections onto me.
How many tricks could you have turned by now?
>>
>>101361839
And this has to do with programming ... what?
>>
>>101361857
i will be programming jupyter notebooks using julia, openAI triton, and pytorch
this computer back at my parents house has a better gpu than i have in arizona :(
>>
Have you FUCKING read your SICP today?
>>
>>101361850
Biden moment lmao you have actual dementia
>>
>>101361868
Then come back once you actually do the programming. Or don't come back at all.
>>
>she cannot follow the simplest instructions
>yet calls others demented
Aren't you supposed to hit the meth AFTER your work shift is over?
>>
>>101361839
>>>/g/sqt
>>
>>101361876
i think everyone's busy hashing out their discord drama or something
>>
>>101361839
You might be able to just port-forward your PC and ssh into it but you'd need a constant way to update the IP address without bothering your mom every time it updates. Maybe a script that messages you on discord or something every day with what your external address is.
>>
>>101361904
I wish, but I'm too scared for pedophilia.
>>
>>101361391
in GCC/clang (which is enough, clang can larp as MSVC on windows) inline assembly, you can specify which registers you want to use and also make variables that map to specific registers through a compiler extension using the register keyword and ASM labels
otherwise no, the "standard" way of doing things is supposed to be the intel intrinsics which in all compilers' headers are actually just compiler specific code, sometimes builtins, sometimes things known to compile to a specific instruction
sometimes the types are things like the clang __ext_vector_type__ attribute or the GCC __vector_size__ attribte, sometimes they're just unions of all the various data types SIMD registers use like in MSVC
>>
>>101361893
If I accepted orders from gay retards like you, which I don't, I couldn't cease doing something I haven't done and am not doing. That's logically impossible.
You're the one that so desperately wants me to be a whore - frankly I'd appreciate it if you weren't such a faggot but you keep disappointing, both me and your parents.
>>
>words words words
>>101361230
>>
>>101361928
Also, you should probably encrypt the external address when you send it.
>>
>>101362018
It's not my fault you're gay and retarded and cannot read. In fact, yapping seems like it makes you less able to form a coherent response and I'm good enough at it that responding this verbosely isn't a problem.
>>
>It's not my fault
Now it is. Deal with it.
>>
>>101362038
Contrarily, it isn't a fault and your assertion otherwise is mere cope. The inability you exhibit to both read and write with sufficient competence to rival a goldfish creates your misconception that verbosity, and not density of meaning or flair in phrase, accurately describes my responses. To the willing moron, intelligence seems useless and vain.
>>
>it isn't a fault
>>101362038
>>
>>101362077
Aye it is no fault and no measure of sissy hypo "you are this" bullshit will change that. That it seems to have worked on you is not evidence of its potency.
>>
>it is no fault
>>101362038
>>
i think this thread confirms that generation z was a mistake
>>
And you ain't gonna do shit about it, kvetcher.
>>
>>101362145
Do you realize that catatonic repetition indicates you've resigned the point and are, in fact, wrong but won't admit it?
>>
Heh, as long as you keep replying.
>>
>>101362200
>>
Yeah, like that.
>>
>>101362216
>>
EXACTLY like that.
>>
>>101362225
>>
Like THAT.
>>
>>101362236
>>
And like that.
>>
>>101362258
>>
And even like that.
>>
>>101362270
This is extremely homoerotic. Are you this desperate for male attention? What's going on in your life that this is so fun to you?
I don't get it.
>>
>male attention
Manwhore confirmed.
>>
>>101362296
Yes you seem to be one. Why are you so desperate for male attention that you'd say something like >>101362193
- and then overact reply like its a porn scene.

It's very gay of you.
>>
>>101362334
Meant this quote >>101362200
>>
>Yes you seem to be one
Not my problem.
>>
>>101362383
see >>101362038
You seem to be disagreeing with yourself.
>>
>>101361886
ok i have the code done. what do i do now
>>
Denial is easy.
>>
>>101362427
Post it.
>>
>>101362430
Sure denial is easy if you hate yourself and reality - which is the state you seem to live in. Many such cases amongst you faggots.
>>
There's also indifference.
>>
Indifference is to not post at all.
>>
Unless it makes you mad.

You specifically.
>>
>>101361928
ok so i can port-forward SSH so i can ssh in.

i can install tailscale on it and then use that to ssh from userland.


I was thinking of either using proxmox or WSL to use the box as a runner for scripts that i can run locally on my laptop or to a cloud GPU for like $1 an hour

still should save like 700 a month

thank you
>>
>>101362483
Bro I just like to style on a nigga rhetorically.
You have any idea how hard it is to find someone that will keep replying like you do, giving me perfect prompts to practice calling people retarded over? It's people like you that allow me to crush the souls of those that aren't already dead inside. For that alone, you get one last (You).

From the bottom of my heart: thank you.
>>
>>101361230
>>
>>101362499
Yeah I didn't even know about tailscale but it looks like that would work.
Anyway, glad to help.



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