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

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor acceptance emails will be sent out over the coming weeks. Make sure to check your spam folder!


[Advertise on 4chan]


> just two more weeks edition ;
>>>/g/sqt stupid questions thread
>>
first for go
>>
>>109098112
I prefer opus 4.7 - It just works a lot better for me.
Especially if you run like 100 agents at a time
>>
>>109098112
link the previous thread now op
>>
>>109098112
>>109098574

PREV
>>109067480
>>109067480
>>109067480
>>
>>109098693
today op was not a faggot
though he didn't post an anime girl op so maybe he was
>>
/deadpt/
>>
Just stabilizing the tests for the release. They're running fine in CI, but we want them to also be error-free in weird configurations we don't test all the time (because that's a great way to blow $$$$ very fast while getting little for it; worth it only on a release branch).
>>
File: 406.jpg (11 KB, 227x294)
11 KB JPG
>>109098736
>>
>>109101017
who's your face fucker
>>
File: IMG_6849.jpg (137 KB, 1206x698)
137 KB JPG
>>
File: 1780802055576083.jpg (17 KB, 515x716)
17 KB JPG
>>109101027
>who's your face fucker
>>
File: 1768407207381750.png (144 KB, 825x1151)
144 KB PNG
late because this was yesterday's POTD, but it sucks and it's more of a mathematical iq test than a programming challenge
>>
Had a good day with graphs. Dijkstra's all over the place. Made a forest of trees. Finally made the trickiest part of my program my absolute bitch. Now I just have to tinker with a few values, check all my tests, and I can finally move on to the creative side of things.
>>
File: 1763443565937973.png (91 KB, 841x617)
91 KB PNG
>count sort
what's the point of these useless inefficient sorting algorithms? this shit is almost as bad as bubble sort
>>
File: 1772067716840562.png (197 KB, 1750x1019)
197 KB PNG
holy nightmare problem
https://leetcode.com/problems/block-placement-queries/
>companies are actually asking this in interviews
lmao
>>
File: IMG_3066.png (195 KB, 509x694)
195 KB PNG
You should all learn to vibecode and turn yourself into a vibeGOD
Don’t be a fucking snailoid catoid luddite
>>
File: snAIlcat3.png (1.39 MB, 1254x1254)
1.39 MB PNG
>>109101900
I don't really have to. I am fine by myself
>>
>>109102441
>unused variable
ngmi
>>
>>109102441
Trans
>>
>>109102466
I have to admit, i don't really like bipolar trannies. I am more into mostfet's myself
>>
>>109102469
Coding manually is for trans "people"
>>
>>109102471
Ok no problem.
I bought a membrane keyboard. The chink mechanicals feel good, but they are just too loud
>>
>>109102520
I don’t care
>>
>they are just too loud
Autism.
>>
>>109102520
Use what you're happy with.
>>
>>109102559
your*
>>
>>109102550
ADHD*
>>
>>109102471
I'd rather be trans than lobotomize myself.
>>
File: 1782020270507540.png (187 KB, 1920x1054)
187 KB PNG
>>
why is this not working anymore with clangd???
vim.keymap.set('n', '<leader>fi', builtin.lsp_incoming_calls, {})
>>
>>109102627
ok just had to generate a new compile commands xD
sometimes i am such a dork LOL!
>>
>>109102569
I'm ADHD and I don't give a shit about my mechanical keyboard being load.
>>
>>109102763
>load => loud
Case in point, it's the same as doing/going.
>>
>>109102766
Case and point*
>>
>>109102807
Cease in point*
>>
>>109102826
Point on start.
>>
>>109102869
if you translate 67 to german you get 67.
Isn't that crazy? That's the proof. We got them!!
>>
>>109102883
Actually you get seven-and-sixty.
>>
>>109102991
retard
>>
>>109103051
You said translate not write literally exactly the same.
>>
>>109103051
>>109103069
If you ask anyone to "translate" numbers to another language where everyone knows the numbers are the same, it is fair to assume that you're not being completely retarded and that you actually want to know how it's written out in that language.
>>
how long until the massive surplus of software engineers die down, and people who actually know what they are doing become heavily in demand again (as everyone realizes AI is useless without experts to guide them)? is it realistically happening within our career times?
>>
>>109103106
When the investors start asking for a return on investment. Right now the revenue is as artificial as the intelligence.
>>
>>109103081
Cope, autist.
Feed the cows.
>>
>>109103106
Anyone who prompts AI can be replaced by an AI prompting another agent. This is just a hobby now and let's accept that and move on.
>>
>>109103081
are you stupid?
I would've written
>if you translate sixty seven to german you get siebenundsechszig
But that's not what i wrote
>>
I wonder if autists will finally feel sorry once the cows break their skulls, or if they're completely empty until the very end.
Would be nice to know if, at the end of their miserable existences, they at least had one moment of humanity.

>my money's on no, you can't fix autism in the same way you can't fix psychopathy or pedophilia
>>
>>109103269
As canadian kermit once said, learn to greentext before critisizing the world.
>>
File: 1606931977309.jpg (90 KB, 1024x576)
90 KB JPG
>canada
>>
>>109102441
I am going to delete the thread if you post another snailcat ITT
>>
File: 1730878296155579.jpg (95 KB, 1040x585)
95 KB JPG
>>109103399
>>
File: entourage-ari-gold.gif (327 KB, 220x112)
327 KB GIF
>>109103474
>>
>>109098115
first
>>
File: snAIlcat1.png (1.21 MB, 1254x1254)
1.21 MB PNG
>>109103399
>>
>>109098394
> 100 agents on opus? you're either rich or lying
>>
>>109103551
You are just poor or desperately wanting to fall behind
>>
>implying the world needs YET ANOTHER hydration app
Yeah, you go getem, vibeguy.
>>
>>109103585
I am having a brand new concept.
A hydration app, but when it reminds you it also shows you your todo list with tasks that can be done in <10 minutes
And you have to check off 1 task before you are allowed to check that you hydrated.
It will increase productivity and hydration by 100.
Well actually claude came up with that idea and is already wokring on it. Release is tomorrow
>>
>>109103597
Revolutionary.

... no, wait, wrong word. "Revolting", that's it.
>>
File: file.png (301 KB, 1235x668)
301 KB PNG
being more conservative than not, how much or what of this can I reliably skip?
>>
>>109103626
e.g. I don't care much about maths I just want enough discrete knowledge in order to read algorithms books
>>
Fucking AI man.
DuckduckAI search response:
The f_open function will fail if you try to open a non-existing file with the FA_OPEN_EXISTING mode flag. Instead, you can use FA_CREATE_ALWAYS to create a new file if it does not exist.
elm-chan.org discuss.python.org

(actually links the wrong docs)
pic related is the fucking reality.
>Files cannot be created; only an existing file can be written to
>Files cannot be expanded in size

HAVE. TO. STOP. CHECKING. AI.
This fucking slot machine is just producing frustration. I have absolutely no idea why people praise it so much. Are they THAT brain washed?
>>
>>109103546
you were warned
>>
>>109103626
>>109103632
>>
>>109102621
nice magic numbers bro is that the microwave time function?
>>
File: snAIlcat10.jpg (169 KB, 1024x559)
169 KB JPG
>>109103839
of what?
>>
>>109103932
keep doing it and see what happens
>>
>>109103791
I've read this post 3 times now and still have no idea what it's about. what did he mean by this?
>>
>>109103849
too advanced for me still I think. I am not into maths so I probably need a prerequisite for this, right?
>>
>>109105661
I asked AI how to create a file with petitfs.
AI said it can be done with setting some flag.
But it just quoted the bigger library.
Petitfs does not support creating or extending files. AI is so profound, even more profound than fire or electricity, that it couldn't even quote the correct source
>>
File: images (11).jpg (48 KB, 402x497)
48 KB JPG
>>109105714
>>
>>109105903
you know that's not how LLMs work, right?
>>
>>109105920
If that isn't autism-coded I don't know what is.
>>
>>109103626
https://gamemath.com/book/
>>
>>109105958
They said they work like that.
I ask them questions like a human and they give answer.
That's how they are advertised to work.
>>
File: fem#.jpg (138 KB, 1170x724)
138 KB JPG
Why did it fail?
>>
File: fem.png (189 KB, 1366x650)
189 KB PNG
>>109106382
>>
>>109106382
Is Haskell a feminist language? It has a lot of moanads
>>
File: images-2.jpg (39 KB, 447x447)
39 KB JPG
Am I the only one who finds it odd that the coding world is actually in less of an existential crisis than one would expect.

Within basically 2 years, most people got to a state where they'll barely look at much code anymore, and this will even be moreso with future generations, who thus nobody has an idea how to properly train.
People react to it like any other innovation like "oh yeah i guess we all use git now". But in reality, it has basically nuked the essence of the field, hasn't it?
Weird world.
>>
File: patient_gamers.png (62 KB, 972x432)
62 KB PNG
>>109106444
>implying autists will change
>>109103269

The customers are changing though, and they no longer tolerate slop.
>>
>>109106422
Haskell is pure, whores wouldn't like it.
>>
should i listen to AI feedback on my code ? Not sure what the most idiomatic practices are and it beats having to watch hour long videos
>>
>>109106880
nigger, people write books about this shit
>>109106444
ai shill kys

fucking ad board. worse than instagram
>>
>>109106444
Not really, the essence of software development is not writing code, it's developing software.
>>
modern C is so unbelievably comfy

Once you've built up your own abstractions it unironically feels as ergonomic as a scripting language. I think I might switch to C11 permanently.
>>
Working on a Java problem on codewars and a modifying a script so it adds two columns to a csv instead of one. Nothing crazy aha. I need to start adding tests and documentation.
>>
>>109107231
>typedef struct job
there are no jobs, anon
>>
>>109102807
Would of.
>>
>>109107231
I want C to steal jai's "build system" and "macros". I don't mind using make and scripts or cmake or whatever but it would be nice to make the tools needed to build a (real) project included in the compiler since it's already necessary for a target platform. the macro system I just hate, not being able to write 'native' code is not fun and debugging is a PITA
>>
>>109107369
>build system
>it would be nice to make the tools needed to build a (real) project included in the compiler since it's already necessary for a target platform
nob.h is fine

>macros
yeah, that's a harder problem. I try to avoid them as much as possible. When I need macros for some generalized interface, I do everything I can to just generate the functions themselves so they're actually type safe rather than relying on in place substitution bullshit from macro functions.
>>
>>109101589
Count sort (and the related radix sort) are useful when sorting real physical objects, like punch card decks, and also in niche cases for certain restricted data sets. For general purposes, not so much.
>>
>>109107405
>nob.h
isn't that the thing made by the trans russian neet?
>>
>>109107545
>trans
?

A good idea is a good idea. I don’t really care who makes it if it’s good.
>>
>>109106938
ad for what

obviously future taught kids won't ever look at .css files in their work
>>
>>109107977
>this is what retards actually believe
>>
File: 1782091905817.png (730 KB, 1080x2112)
730 KB PNG
been rounded off the edges on AQ

https://ayasequart.org/ck/catalog
https://github.com/sky-cake/ayase-quart
>>
>>109108019
>Python
No thanks you.
>>
>>109108101
No problem
>>
>>109108019
Why archive pedophile website?
>>
>>109108013
she's just a paid shill. She doesn't believe it either. It just gets her good money
>>
>>109108802
Evidence against your crimes.
>>
>>109107231
>function keyword
what is this?
>>
>>109108836
it's just a macro so you can apply whatever attributes you want to all the functions. some people use it to auto generate header files as well
>>
File: 1782108272947.png (333 KB, 712x566)
333 KB PNG
>spend the last month working on a project
>need to think of a name
>lose all interest and abandon it right at the end
>>
>>109107231
I've been wanting to try out the new defer TS in Clang, but I haven't been bothered to program anything at all lately.
>>
>>109107231
C23 exists.
We have auto and bool now and a lot of other stuff.
>>
>>109108998
I usually come up with a name first
>>
>>109109439
I thought people regret auto now.
>>
>>109109439
I don't need C to turn into C++. It's fine where it is. Anonymous structs/unions without compiler extensions is really all I wanted. Atomics are nice too.
>>
>>109109639
>>109109439
Type inference in C is definitely far less impactful than in other languages. You're not smashing a std::boost::chrono::milliseconds_to_foot_pounds_const_iterator into a for loop.
It's much more limited in C, and I believe the main intended use is for macros, but I guess you could save a little bit of typing if you REALLY wanted to, but I imagine most C programmers wouldn't.
>>
>P5R
>for some retarded reason cannot create system data
>debug
>breakpoint at NtCreateFile
>hit
>follow the call stack
>calls CreateFileTransactedW on SYSTEM.DAT
>actually that's a lie
>it calls CreateFileTransactedA, which then calls CreateFileTransactedW
>which are so shit that MS has deprecated the calls and is actively warning against using them

>japanese engineering :DDD
>>
>>109109799
>works on Windows
Get fucked.
>>
>the autistic version of calling people "racist"
>in that both groups don't understand it doesn't work anymore
Hmmmm.
>>
why does rust get so much shit its genuinely pretty nice.
>>
>>109110412
It's far less nice in practice.
>>
Being nice doesn't matter.
>>
>>109110412
There is a lot of midwits in systems programming who got false sense of competence and superiority thanks to cope techniques like "using C++ as C with classes" or just never using these languages for anything but collage level projects. And this status quo was left unchallenged for decades. Rust challenged it and it is uncompromising. No more easy modes for programmatically challenged folks. And that filters people hard, left and right. Blaming the language is just natural reaction.
>>
File: 1767661434893599.png (205 KB, 640x640)
205 KB PNG
>>109110503
>>
Any disassembler/decompiler out there that doesn't suck ass?
>IDA
This little shit's been busy analyzing a 300 MB file for four hours now. Completely fucking retarded.
>Ghidra
Java + C++, nuff said.
>>
swift is so convoluted who wants to write this shit
>>
>>109110677
I never used it but it looked decent, what's wrong with it?
>>
is this niggerlicious?

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

struct client {
char name[16];
bool active;

static client *zero() {
static client client_zero;
return &client_zero;
}
void *operator new(unsigned long sz);
void print();
};

const size_t max_clients = 100;
static size_t next_client_id = 0;
static client client_pool[max_clients];

void *client::operator new(unsigned long sz) {
printf("nigger\n");
if (next_client_id >= max_clients) {
return client::zero();
}
return &client_pool[next_client_id++];
}

void client::print() {
if (this->active) {
printf("this is %s\n", this->name);
} else {
printf("inactive\n");
}
}

void print_all_clients() {
for (size_t id = 0; id < next_client_id; id++) {
client_pool[id].print();
}
}

int main() {
client *steve = new client{.name = "steve", .active = true};
client *bob = new client{.name = "bob", .active = true};
client *andrea = new client{.name = "andrea", .active = true};

print_all_clients();
bob->active = false;
print_all_clients();

return 0;
}

// compile with: g++ -nostdinc++
>>
>>109111981
Ask AI. You could literally start 5 agents reviewing your code rn.
>>
File: 1779855690941459.png (45 KB, 824x236)
45 KB PNG
>>109112000
AI's mean ;(
>>
>>109110503
I'm not really sure what Rust challenges you to do though. I guess it challenges you to understand the abstract machine that it wants you to use, but I think the hard part is understand the actual problem, and all languages make you do that.

What I think really happened is novice programmers like Primeagen introduced a lot of web developers to Rust, and then they rabbit-holed for a while and learned about C and C++, and now they feel superior or something, even though Rust really isn't any easier or harder than existing options. I guess we all crave the one true tool.
>>
>>109111981
>operator new
>no VAS management
Yes, it is niggerlicious.
>>
>>109112117
>we all crave the one true tool
No, and especially not a tool that wants me
>to understand its abstract machine
, because that abstract machine is literal autism-bait.
>>
I kinda want to go balls deep into c++ but it probably isn't worth it at 29. I don't even have a use case
>>
>>109112960
The thing about c++ is you're not meant to go balls deep into it. You should only learn the parts you need. Though if you don't have a use case then yeah you might as well not bother.
>>
>>109111981
Too much voodoo for our purposes.
>>
>>109112978
>You should only learn the parts you need.
That explains so much, especially with regards to
>the abstract machine
>>
>>109112199
I wasn't talking to you, shut the fuck up nigger.
>>
>>109112018
The amount of times I have posted code into AI with variable names like faggot, nigger and cunt.
>>
my executable is 60k when I compile with -Os

I am linking with libc, linux-vdso.so and ld-linux-x86-64.so. I am only using a few system headers for pthreads and mmap and out of libc I'm just using threads.h for thread_local and a few stdio functions, namely fopen, fclose, fread, fseek, ftell and fprintf. When I compile statically, again with -Os, my executable jumps up to a megabyte in size. Is the compiler just including a bunch of extra trash I'm not using or is it really just that bloated? If I start using raw syscalls for io, how much fat will that realistically cut?
>>
>>109114109
Don't statically link libc, you dumb fuck.
>>
>>109112117
>I'm not really sure what Rust challenges you to do though.
I didn't said it challenges you. I said it challenged the status quo of systems programming being just C/C++.

>What I think really happened is novice programmers like Primeagen introduced a lot of web developers to Rust, and then they rabbit-holed for a while and learned about C and C++
Most people who complain about Rust are C and C with classes programmers. Webdevs have very few reason to even touch Rust unless they want actually want to learn systems programming and that already gives them way better motivation to overcome the initial steep learning curve than cniles who primarily just want to find any reason as to why Rust is not as good as people make it look so they can justify sticking with what they already know without need to learn anything new. These tend to bounce off at the very start from borrow checker or even non strictly C like syntax and then come back with amusingly superficial criticism.

>even though Rust really isn't any easier or harder than existing options
Rust is initially more difficult to learn than C++ but is easier to master and use in practice. C is obviously easier than both.



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