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


[Advertise on 4chan]


What are you working on, /g/?
Previous: >>108307184
>>
Declarative looks good on paper but becomes very bad very fast when you start adding dependencies.
>>
>>108355732
I miss the maidposters.
>>
>>108356192
>Declarative looks good on paper but
What do you mean by declarative exactly?

>but becomes very bad very fast when you start adding dependencies.
Very strange statement because declarative systems are the only possible solution to complex dependencies. If the declarative system can't deal with that it means it's not expressive enough to express the minimum amount of logic requried to deal with dependencies.
>>
>>108355732
What’s that empty looking glass dome thing? Anyone know?
>>
>>108356378
You shouldn't making a declarative system into another pseudo language, just write the code.
>>
>>108356429
Maybe a speaker?
>>
>>108356459
Declarative systems/language exist for a reason. They are a good thing to have when the logic is complex enough and/or when the logic is likely to be changed or extended.
>>
>>108356429
Guessing it's one of those hologram light things. 3D volumetric light or whatever it is.
>>
in practice, declarative is only good for defining queries

>>108356564
>They are a good thing to have when the logic is complex enough and/or when the logic is likely to be changed or extended.
that's OOP
>>
File: wireless.webm (3.63 MB, 1326x994)
3.63 MB
3.63 MB WEBM
I can do wireless gaming now.
Gotta clean up a few things, get my old clock back up running again, attach SNES controllers with the same esp32 wireless setup and then write some more games
>>
>>108356429
if you turn it upside down you could fill it with cum like the coke bottle man
>>
In order leaf generator:
struct Node {
char c;
Node* l{};
Node* r{};
};
// In order leaf generator
class LeafGenerator{
static constexpr auto maxHeight = 40;
const Node* cur;
const Node* v[maxHeight];
int size;
struct It{
LeafGenerator* p;
const Node& operator*() const {return *p->cur;};
bool operator!=(const It& o) const {return p != o.p;}
void operator++() {p = p->next();};
};
public:
LeafGenerator(const Node& root) : size{} {
v[size++] = &root;
}
LeafGenerator* next() {
while (size) {
if (size >= maxHeight) /* out of stack */ break;
cur = v[--size];
if (cur->r) v[size++] = cur->r;
if (cur->l) v[size++] = cur->l;
if (!cur->r && !cur->l) return this;
}
return nullptr;
};
It begin() { return It{next()};}
It end() const { return It{nullptr};}
};

extern "C" int putchar(int);
int main() {
Node tree[] {
{'D', tree + 1, tree + 2},
//
// ───────────────────────────────
//
{'B', tree + 3, tree + 4}, {'F', tree + 5, tree + 6},
//
// ────────────────────── ────────────────────────
//
{'A'}, {'C'}, {'E'}, {'G'}
};
for (auto& node : LeafGenerator{*tree}) putchar(node.c);
}
>>
// In order leaf generator

struct Node {
char c;
Node* l{};
Node* r{};
};

class LeafGenerator{
static const int max = 40;
const Node* cur;
const Node* v[max];
int size;
struct It{
LeafGenerator* p;
const Node& operator*() const {return *p->cur;};
bool operator!=(const It& o) const {return p != o.p;}
void operator++() {p = p->next();};
};
public:
LeafGenerator(const Node& root) : size{} {
v[size++] = &root;
}
LeafGenerator* next() {
while (size) {
if (size >= max) /* out of stack */ break;
cur = v[--size];
if (cur->r) v[size++] = cur->r;
if (cur->l) v[size++] = cur->l;
if (!cur->r && !cur->l) return this;
}
return nullptr;
};
It begin() { return It{next()};}
It end() const { return It{nullptr};}
};

extern "C" int putchar(int);
int main() {
Node tree[] {
{'D', tree + 1, tree + 2},
// |
// +---------------+----------------+
// | |
{'B', tree + 3, tree + 4}, {'F', tree + 5, tree + 6},
// | |
// +---------+-------------+ +-----------+-------------+
// | | | |
{'A'}, {'C'}, {'E'}, {'G'}
};
for (auto node : LeafGenerator{tree[0]}) putchar(node.c);
}
>>
>>108356970
>>108357010
man I need to study trees more, I cant remember the differences between inorder / preorder / postorder traversals...
>>
Oh thank god it's on windows now

https://github.com/marlocarlo/psmux
>>
>>108356429
it is something the AI thinks humans have on their tables for human reasons. What concerns me more is that it does not appear in the screen reflection. It may be a vampire dome.
>>
>>108356755
Steady progress.
>>
>>108356692
lol no. OOP is good when you want to replace a subsytem by another, replace a data structure by another, replace a function by another, for composing stuff in the FP sense at best. None of that qualifies as "complex logic".

OOP's abstractions doesn't help with this kind of stuff:
https://github.com/netwide-assembler/nasm/blob/master/x86/insns.dat
https://github.com/golang/go/blob/master/src/cmd/compile/internal/ssa/_gen/generic.rules
https://github.com/gcc-mirror/gcc/blob/master/gcc/config/i386/sse.md
>>
>>108357295
which order do you process the parent node compared to its children
>>
>>108356970
What is a leaf exactly? Is this C++?
>>
>>108357508
>OOP is good when you want to replace a subsytem by another, replace a data structure by another, replace a function by another, for composing stuff in the FP sense at best. None of that qualifies as "complex logic".
strawman

>OOP's abstractions doesn't help with this kind of stuff:
another strawman
>>
>>108357727
A leaf is a node in a tree that doesn't have any child nodes
>>
File: file.png (21 KB, 408x246)
21 KB
21 KB PNG
I'm learning NTR logic
>>
I recently went through a tutorial and now want to code like a free range code monkey. Do you think asking ChatGPT for help is going to stymie my learning or just supercharge it? The logic of what I want to build is simple. It's the package install stuff and configuration that's killing me.

I know it's stupid but I see Googling as something to learn and do but using AI (not to blindly write code, just to get past blockers) as too easy, though I know I need to someday get out of this mentality.

>went through Odin Project over long period of time
>last touched React a year ago
>decided to create a basic to do list website in React as a first post-tutorial project, without looking back at Odin Project's React tutorial section
>started off React repository by installing React Router and Vite without really realising what they are since it's not clear what the hell a "build tool" is
>create basic to do boxes in JSX files that work offline
>know I want to store backend logic and data in Node/express and postgres, which I've used before
>don't know if Vite is a server or what (later realise I'd been installing React Router with its own Vite variant)
>no idea what the difference is between installing vite and selecting Vanilla > Javascript and selecting Vanilla > React, since they both give react files, though the latter option wasn't producing html files in the build
>don't know what Node and Express are, apart from a bunch of functions I've used to set up a server
>don't know how I'd host JSX files for users to see (without separate frontend and backend servers)
>installed Node and express in same folder as git and everything looks like a mess
>took me a few days to realise React is for single page applications

I think the next step is hosting the react app on one of those easy to use websites and setting up the Node backend, and setting up fetch function But it took me about 5 hours to get here and I still don't really know what I'm doing with Vite and so on.
>>
>>108357881
this poster is japanese
>>
>>108357881
just name all of your functions and variables some variation of "nigger" and "faggot" like a normal person
>>
>>108357795
I knew you wouldn't get it.
>>
>>108357850
Thanks. Are you talking about binary trees? Are there other types if trees?
>>
>>108358078
NTA, leafs are leafs no matter what kind of tree it is. Binary trees are tress where each node has up to 2 childres, but you can make other kinds of trees with other constrains.
>>
>>108355732
Just imagine what kind of stress-free life these people are having; even the sunlight in this room looks rich.
>>
>>108357881
Don't use Prolog for this degen heresy
>>
>>108356755
what kind of display is it? do you have any specific goal or just coding for fun?
>>
File: waifu_battle.png (272 KB, 1132x651)
272 KB
272 KB PNG
waifus.progchan.com finally got this thing up and running. I rewatched the social network and have been wanting to do a facemash clone for a while. I'm really liking golang for simple web stuff.
>>
>>108358008
you have to be delusional to "get" such fallacious points
>>
>>108357881
in Mercury this is just
:- module ntr.
:- interface.
:- import_module io.
:- pred main(io::di, io::uo) is det.
:- implementation.
:- import_module solutions, list.

:- type boy ---> val; markus.
:- type girl ---> lydia; alice.

:- pred crushing_on(boy, girl).
:- mode crushing_on(out, in) is semidet.
crushing_on(val, lydia).

:- pred having_sex(boy, girl).
:- mode having_sex(out, out) is multi.
having_sex(markus, lydia).
having_sex(val, alice).

:- pred getting_fucked(girl).
:- mode getting_fucked(out) is multi.
getting_fucked(X) :- having_sex(_, X).

:- pred someone_else_inside_girl(girl, boy).
:- mode someone_else_inside_girl(in, in) is semidet.
someone_else_inside_girl(Y, X) :-
having_sex(P, Y),
P \= X.

:- pred heart_aches(boy).
:- mode heart_aches(out) is nondet.
heart_aches(X) :-
crushing_on(X, Y),
getting_fucked(Y),
someone_else_inside_girl(Y, X).

main(!IO) :-
solutions(heart_aches, Solutions),
( if Solutions = [] then
io.write_string("Wholesome romance.\n", !IO)
else foldl((pred(P::in, !.IO::di, !:IO::uo) is det :-
io.print(P, !IO),
io.nl(!IO)), Solutions, !IO)
).

gave val a sex partner to keep the logic from collapsing into determinism (not an error, but Mercury whines)
>>
>>108358615
STFU, the examples I have shows that NASM, Go and GCC devs themselves use declarative programming and for good reason, nobody would "just write the code". >>108356459

You've been utterly BTFO, don't @me again faggot.
>>
This thread is fucking trash, always disappointed.
>>
>>108358763
Not our fault you were born retarded, ugly AF, and with a micro penis.
>>
>>108356692
>in practice, declarative is only good for defining queries
in practice, (You) are only good for sucking cocks

it's useful in other places too, but tends to be rather domain and application specific, especially when the underlying logic follows some sort of pattern
doesn't make it bad at all, just situational; yeah, that means low-functioning autists can't understand it at all
>>
>>108358896
kys nigger
>>
File: 1771993235579829.png (534 KB, 1200x630)
534 KB
534 KB PNG
Anyone bought one of these? Are they helpful?
>>
I implemented MDI / multiple document interface in pure Tcl/Tk.

I wanted to post it to the tcler's wiki but they banned me without any kind of feedback about why, so I guess I'll post here instead.
>>
I'm writing a couple applications for my SOC that need input from the same device. As it happens that device has a linux kernel driver that implements it as a "keyboard". I've enabled it as such and now I have it populating events into the system, however 'global input' programs (is that what they are called?) are reading my inputs.

How would I go about 'delisting' this device's events so that a program has to specifically request it? or alternatively is there some other input device type that is not global and I could just edit the driver to feed the events into that queue instead?
>>
>>108359119
What kind of botnet is this
>>
>>108359129
Is tclr a noun. I didn't know anyone had used this since about 1998
>>
>>108357508
  "vpshl<ssemodesuffix>\t{%2, %1, %0|%0, %1, %2}"
[(set_attr "type" "sseishft")
(set_attr "prefix" "vex")
(set_attr "prefix_extra" "1")
(set_attr "mode" "TI")])

(define_expand "<insn><mode>3"
[(set (match_operand:VI1_AVX512 0 "register_operand")
(any_shift:VI1_AVX512
(match_operand:VI1_AVX512 1 "register_operand")
(match_operand:SI 2 "nonmemory_operand")))]
"TARGET_SSE2"
{
if (TARGET_XOP && <MODE>mode == V16QImode)
{
bool negate = false;
rtx (*gen) (rtx, rtx, rtx);
rtx tmp, par;
int i;

if (<CODE> != ASHIFT)
{
if (CONST_INT_P (operands[2]))
operands[2] = GEN_INT (-INTVAL (operands[2]));
else
negate = true;
}
par = gen_rtx_PARALLEL (V16QImode, rtvec_alloc (16));
tmp = lowpart_subreg (QImode, operands[2], SImode);
for (i = 0; i < 16; i++)
XVECEXP (par, 0, i) = tmp;

tmp = gen_reg_rtx (V16QImode);
emit_insn (gen_vec_initv16qiqi (tmp, par));

if (negate)
emit_insn (gen_negv16qi2 (tmp, tmp));

gen = (<CODE> == LSHIFTRT ? gen_xop_shlv16qi3 : gen_xop_shav16qi3);
emit_insn (gen (operands[0], operands[1], tmp));
}
else if (TARGET_GFNI && CONST_INT_P (operands[2])
&& (<MODE_SIZE> == 64
|| !(INTVAL (operands[2]) == 7 && <CODE> == ASHIFTRT)))
{
rtx matrix = ix86_vgf2p8affine_shift_matrix (operands[0], operands[2],
<CODE>);
emit_insn (gen_vgf2p8affineqb_<mode> (operands[0], operands[1], matrix,
const0_rtx));
}
else
ix86_expand_vecop_qihi (<CODE>, operands[0], operands[1], operands[2]);
DONE;
})


This is what I was talking about. You start piling code on top of code on top of a pseudo language, now the pseudo language needs to support the main language as well. Is this even debuggable?
>>
>>108358122
>NTA
Nondeterministic Trellis Automata?
>>
File: no.png (74 KB, 939x571)
74 KB
74 KB PNG
>>
>>108359317
The confident audacity of these machines is hilarious every time I see it.
>>
AI made me enable sudoless mode, I regret all the years I spent typing my password, life is so good now
>>
File: rgb-matrix-p3-64x32-5.jpg (42 KB, 560x560)
42 KB
42 KB JPG
>>108358256
Those are 12 hub75 64x32 ledpanel. pic related, but with 5mm pitch.
Goal is/was to build a big time and score panel for a game that we are playing with frens once a year.
So the goal was actually achieved already. Now it's time for fun. Make it better, cleaner and introduce games for the evening.
Also solve some issues with refresh rate and actually learn how to modulate all that crap to get the highest refresh rate on a as long as possible chain.
>>
File: 1752354743542008.mp4 (577 KB, 480x768)
577 KB
577 KB MP4
>>
>>108359270

you are not allowed until given order
>>
File: PXL_20240819_113239150.jpg (3.74 MB, 4032x3024)
3.74 MB
3.74 MB JPG
>>108359548
pic related is actually from 2 years ago with my very first version.
As you can see, if it's bright outside then you can see it refreshing on your camera. It actually just looks fine irl, but i gotta solve that so frens can make cool instagram photos, no??
Since we play with effective time I also have a bunch of remotes with esp32's and esp-now. Also a web interface that is served with reverse proxy via my VPS :^)
I got a little obsessed with this project, sorry
>>
>>108359354
s/machines/humans/
The machine is just imitating it
>>
>>108359250
>code on top of code on top of a pseudo language, now the pseudo language needs to support the main language as well. Is this even debuggable?
Bullshit, this is a simple pattern-action thing, where the action (the C code) is parametrized (<MODE>, <CODE>, etc..). The only thing hard is knowing what those weird AVX512 instructions do. The difficulty comes from the problem, ie x86's fucking mess, not from how it's programmed.
>vgf2p8affine
>gf
>Galois Field something
>>
>>108359575

time being 10:40 neighbor yells at you?
>>
>>108359768
No, we are oldfags. No one yells at us.
The newfags don't even dare to call the cops even tho they call the cops on everything
>>
>>108357727
A Canadian?
>>
>>108359778
>The dark Knight joker heath ledger 03/13/26(Fri)05:30:41 No.108359778▶
>>
>>108358754
>functard gets mad someone doesn't fall for his shitty strawman
lol

>>108358942
>it's useful in other places too, but tends to be rather domain and application specific, especially when the underlying logic follows some sort of pattern
and pretty much all those places and situations, it takes shape of a query
>doesn't make it bad at all, just situational
didn't say it's bad. that's your own implication

that's just inherent from the declarative paradigm: you write _what_ to get, not _how_ to get it.
real "low-functioning autism" here is you screeching at a statement just because you don't like it

>more ad hominem
lmao
>>
>>108359143
maybe create a virtual device that follows the "keyboard" device but the virtual one only triggers events when requested
>>
>>108357452
This. One step at a time.
Now we got menu and ahmed's clock is back up.
>>
>>108355732
>she needs to join our startup
>>
File: pruty.png (81 KB, 613x455)
81 KB
81 KB PNG
today I'll try to fix an annoying bug in a project built with esp-idf. occasionally an http request in the middle of a transfer crashes the entire network stack and debugging it with only uart logs is a pain
>>108360295
nice, this is display buffer sent over websockets or runs all code locally?
>>
>>108360893
>nice, this is display buffer sent over websockets or runs all code locally?
it runs locally, I don't want to upload the binary to the SBC everytime, so I have built a tiny websocket frontend to be able to run it on my desktop.
The code running on desktop and actual hardware is not the same yet, but almost. At least the important logic is the same, so i can see if it should work in theory
>>
>>108356429
Might be a charging base for a mini drone. Drone folds up and sits inside the jar.
>>
>>108360935
Like this.
>>
>>108360948
can it help program like >>108359119
>>
>debug function
>constpropped
>actually makes the function worse because it's now shifting values in registers

You cannot tell me these people know what they're doing. They're like retarded children.
>>
>>108355732
This guy ain't getting done anything
>>
>>108360191
What strawman faggot? The discussion is about declarative programming. You claimed that OOP could replace it and I've posted examples of declarative programming where OOP would have no use in expressing the particular logic at hand.
>>functard
Are you implying that declarative programming == FP? lol lol ol

>query
How *does* OOP helps with queries?
>>
>get invitation to new project repo at work
>CLAUDE.md in the repository root
>>
karly has ugly feet and probably an ugly plossy, 3/10 would not
>>
>>108362226
>You claimed that OOP could replace it
wrong
the claim was that OOP is good with complex logic and/or logic likely to be changed or extended
any additional claim or applying specific context you made up yourself, thus strawman

>Are you implying that declarative programming == FP?
no, you just argue nonsensically and emotionally like the typical functard
the only implication about declarative was declarative == defining queries
>>
File: IMG_6622.jpg (873 KB, 1206x1754)
873 KB
873 KB JPG
>>
>>108364072
>any additional claim or applying specific context you made up yourself, thus strawman
What kind of mental gymnastic is this? The examples I've give qualified as complex logic that can be modified or extended.
>the only implication about declarative was declarative == defining queries
I'm not sure that this statement is wrong, I certainly agree that it's part of it. You did not claim that OOP was good for queries but I will say nonetheless that OOP is inadequate for making queries, ie for logically composing predicates (very bare minimum of queries).
>>
>>108364252
>The examples I've give qualified as complex logic that can be modified or extended.
you just linked to three huge files with no reference to anything specific in them, making it seem your definition of complexity relies mainly on sheer volume of it and not things like abstraction or interconnectivity

>OOP is inadequate for making queries
i'd say it's adequate (good enough) but not optimal
that's why OOP languages add functional/declarative elements like lambda expressions in Java or LINQ in C#
>>
>>108364857
>you just linked to three huge files with no reference to anything specific in them
The purpose of the NASM and Go ones are obvious if you take 30s to glaze through them.
The GCC one I'm not entirely sure but it's either declaring facts about the archicture that can be used for either assembly, disassembly or optimizations, or like the Go file it's expressing dataflow/peephole optimizations. There is nothing else it could be.

>making it seem your definition of complexity relies mainly on sheer volume of it
Mainly? no, but yes the large size of them shows that if you would write the logic they express with normal code you would have to repeat yourself thousands of times and therefore the only sane thing to do is to declare the essential parts of the logic and then transform this into code, or data structures to look up.
>>
>>108364112
How do I get a very spicy "pipe burrito"?
>>
File: trash.png (679 KB, 1169x1001)
679 KB
679 KB PNG
>>108364857
>>108365018
Watching you two midwits going on about this is getting boring. STFU already.
>>
>>108365713
participate or stfu
>>
>>108365713
Rude.
>>
If you make your own string struct in C, what's the general consensus on how to manage the buffer? Would you have a string_init and string_destroy functions?
>>
Messed around with bqn crate some. Debating on trying to make something with WinUI3 and C# or thinking if I should stick with Java
>>
>>108366846
BQN is really fun. I enjoyed solving AoC with it.
>>
File: 1768053437945521.png (71 KB, 674x676)
71 KB
71 KB PNG
rape this faggot to death
>>
>>108366818
Yes, the common way is to have functions like that. The init/create function would take a pointer to the struct string, allocate the internal buffer and initialize the lenght/capacity or pointer fields. The exit/destroy function would free the internal buffer. You can also have a reinit function that initialize the length to 0 so that you can have reuse the struct string and its buffer. If you want to do it differently then do as you wish.

In general, in C you always have functions like that for data structures of all kinds, for initializing fields and for allocating memory.
>>
>>108356429
it's the bot pod
>>
>>108356429
Her holographic ai waifu materializes in there when she calls for it
>>
File: 75821-0-medium.jpg (166 KB, 1120x1500)
166 KB
166 KB JPG
>>108356429
probably an attempt to make dystopian spyware electronics appear soulful
>>
File: 1760953937296219.png (707 KB, 1893x806)
707 KB
707 KB PNG
>>
>>108366818
There are a ton of trade offs to the ways you do it.
struct my_string {
size_t length;
size_t capacity;
char *data;
};

- Requires 2 allocations
- 16 bytes wasted per string
- Handles pushing stuff to the string gracefully
struct my_string {
size_t length;
size_t capacity;
char data[];
};

- Basically the same, but 1 allocation
- The way you pass this around might be different
struct my_string {
size_t length;
char data[];
};

- More compact
- Less efficient when resizing a bunch
struct my_string {
size_t length;
char *data;
};

- 2 allocations again
- But now it can represent a string view, ie it doesn't own the string

You don't even necessarily need to stick to 1. How your initialization etc should look depends on what you pick.
>>
>>108366818
I took the Jaipill and made all array/string creation/append functions take an allocator as the last parameter.
>Allocator &al = TEMP_ALLOC
>>
>>108352794
>>108353219
Yes it was this, good spot. What is happening is X11 filters through a gamma ramp for how bright each of the colours will be, so ramp[0] will be 0 and the colour will be fully off, ramp[1023] will typically be 65535 so the colour is all the way on. The way I had set it up you could only get the colour up to 2/1024, so effectively it turned all colours completely off. There's no way to restore either you just have to do a hard reset.

I can't figure out for the life of my why I put that as sizeof, maybe just to remind me that it should be the max value of that number of bytes? But in any case it took me an embarrassingly long time to realize that was what I'd done.
>>
>>108367602
You mean C++ pill?
>>
>>108367772
Jonathan Blow came up with the idea in Jai. It kinda works in C++ too.
>>
>>108367824
Containers and string types in C++ accepting an allocator template parameter existed since 1998.
>>
>>108366818
Dynamic array with custom allocator + string view is the superior way by far.
>>
>>108367682
>There's no way to restore either you just have to do a hard reset.
Man, when I was doing some kernel mode setting stuff in the past, that shit was always a massive pain in the ass.
You could have another computer or laptop nearby to SSH into yourself to fix things, but that's not exactly great either.
>>
Poker hand evaluator. (Javascript)
The function takes an array of five numbers, and returns a number that allows to compare hands against each other.
Cards are encoded as a number from 8 to 59, the number modulo 4 gives the suit, and divided by 4 gives the value.
function evaluateHand(cards) {
const isFlush = cards.every(s => (s & 3) === (cards[0] & 3));
const values = cards.map(c => c >> 2).sort((a, b) => b - a);
const freq = new Uint32Array(15);
values.forEach(v => ++freq[v]);
freq.forEach((v, i) => v && (freq[i] = v << 4 | i));
freq.sort((a, b) => b - a);
let hv = 0;
for (let i = 0; i < 5; ++i)
for (let v = freq[i] & 0xF, k = freq[i] >> 4; k--;)
hv = hv << 4 | v;
const checkStraight = a => a.every((v, i) => v === a[i - !!i] - !!i);
const isStraight = checkStraight(values) || values[0] === 14 &&
(values[0] = 6, checkStraight(values) ? (hv = 0x5432e) : 0);
const c0 = freq[0] >> 4, c1 = freq[1] >> 4;
if (isStraight && isFlush) return 0x800000 | hv; // Straight flush
if (c0 === 4) return 0x700000 | hv; // Four of a kind
if (c0 === 3 && c1 === 2) return 0x600000 | hv; // Full house
if (isFlush) return 0x500000 | hv; // Flush
if (isStraight) return 0x400000 | hv; // Straight
if (c0 === 3) return 0x300000 | hv; // Three of a kind
if (c0 === 2 && c1 === 2) return 0x200000 | hv; // Two pairs
if (c0 === 2) return 0x100000 | hv; // One pair
return hv; // High card
}
>>
>>108368175
>isStraight and isFlush are one bit
>isStraight is a different one
>isFlush are two bits
You do not understand bit fields. Or branch overhead, if there's such a thing in JS.
>>
File: dunkru.gif (22 KB, 697x500)
22 KB
22 KB GIF
>>108368220
>>
>>108368310
I'll break your spine and make you eat it.
>>
File: stare.jpg (3 KB, 125x118)
3 KB
3 KB JPG
>>108368331
>>
>>108368368
Good thing frogs have spines.
>>
File: nobrain.png (4 KB, 505x572)
4 KB
4 KB PNG
>>108368220
>>
File: 1625875060176.jpg (14 KB, 500x332)
14 KB
14 KB JPG
I had the idea of writing my own emulator, and basically record something like a video recording of me playing a game, but is a savestate recording of ram memory, and then also link that to the pc position in the rom binary. Which i basically could rewind frame by frame like a 2d animation editor, but of savestates and data dumps, to basically manually tell the emulator a binary opcode block it's meaning with my own tag label, which are used to tag and map the binary of the rom.

It seems nobody has made a similar tool.
>>
>>108368529
Nice self-portrait. Did you draw it yourself?
>>
File: 1773478594677.jpg (2.51 MB, 2319x3479)
2.51 MB
2.51 MB JPG
>>108363552
>plossy
lmao

She tall, though.
>>
File: tard.jpg (3 KB, 125x124)
3 KB
3 KB JPG
>>108368331
>>108368388
>>108368540
>>
>>108368656
She's a solid 0.
Not ugly, not attractive.
I would still hang out with her.
>>
>>108368671
Non-verbal, I see.
>>
File: 1747408770124378.jpg (26 KB, 500x360)
26 KB
26 KB JPG
>"I created this program"
>huh that looks interesting
>look inside
>it's just another clanker slop
I'm so tired bros. I can't get excited about projects anymore.
>>
>>108369223
at work I use Claude to prototype ideas for product improvements that aren't under my teams scope to other teams. It's pretty standard practice here, anyway I've started using the term "slop". "I slopped out this thing over the weekend to see if there's interest". I just use it because I personally respect the art of programming but it seems to make my coworkers very uncomfortable, especially as the product is being stuffed with AI.
>>
I'm tired of wageslaving goys.
What can I do in my free time? I'm tired of making the jew richer.
Maybe I should just read instead of programming yet again in my free time.
>>
>>108370099
The "Vague" On-Call Handover: During handovers, they downplay the complexity of "their" systems, making others feel incompetent when something inevitably breaks and they have to "step in and save the day."
>>
>>108370099
Start a family? Duh.
>>
>>108369223
>I created this wireless product
>Look inside
>Wires
>>
File: shekel.jpg (132 KB, 666x666)
132 KB
132 KB JPG
>>108370099
Every shekel anyone pays in taxes makes them richer. Take everything from the system, give them nothing.
>>
Is there a language with good cross compilation for desktop and Android/iOS? Crossplatform GUI working on both would be good too.
>>
>>108371249
Javascript
>>
File: 1768054320603441.png (349 KB, 548x553)
349 KB
349 KB PNG
>>108371249
thankfully no, otherwise id be out of a job
>>
>>108371249
javascript + html
>>
So what's the modern way to have a fully hardware accelerated desktop GUI? Raylib? Glfw?
>>
>>108371416
Vulkan.
>>
>>108371416
QML
>>
>>108370099
human interests are harmonious in the long run, and all economic activity anywhere ultimately benefits your enemies as well.
this is also the case in the short term: all trade is mutually beneficial and all trades happen in a context with all other trades, so even a rule like "I will only sell oil to China" reduces China's demands on oil from other sources for oil, thereby lowering the price for that oil.

as long as you refuse to learn economics, you will only ever cut off your own nose to spite a big-nosed enemy, and it's meaningless for you to say you don't want to make anyone richer. So step #1 is to fix that.

Step #2 is to arrange your economic activity so that it benefits Epstein's enemies more than Epstein's friends. You don't have to worry that you will also necessarily benefit Epstein's friends, because conflicts are by relative rather than absolute strength. The big point is to fix your focus: you should care more about directly strengthening your friends than about reducing the strength of your enemies. Since the Epstein coalition is evil, and vicious, and short-sighted (these are all synonyms), the Epstein coalition actually benefits a lot less economic activity than you'd think. Trade between a more efficient and virtuous party, and between a wasteful and vicious party, is still mutually beneficial, but the benefits simply go farther in the first case. You need only look at military production (amount and costs) across the world for a few moments to see how stark this difference is.
also learn OCaml
>>
>>108371645
>human interests are harmonious in the long run
only within what those particular humans consider their "in group"
>>
>>108368220
C++ compiler will take your booleans and optimise them into bit fields. I dunno what other languages do that as well
>>
>>108373132
Go post the assembly code.
>>
>>108373132
rather not, bitfielded bools are slow
>>
>>108373132
I don't think any compiler actually does that. It's not necessarily faster.
>>
File: 1763535551708230.mp4 (402 KB, 480x852)
402 KB
402 KB MP4
>>
>>108368113
The funniest part was that I only made that function because if something crashed the process then the filter stayed on, if you opened the app again it treats the current settings as the default. So in other words you could only re-filter your already filtered display, not unfilter it. You had to reboot to get the true defaults back.

So this was like a failsafe to stop me having to reboot when I fucked something up, and it caused me to have to reboot every time I used it.
>>
>>108374114
w-what do you think it does
>>
Want to make GUI in c with sdl3 and make the widgets look like win98. What libraries should I look at to learn how GUI works. Is declarative GUI a meme or legit?
>>
>>108374114
is that fucking swift?
in VScode?
what the fuck
>>
>>108374354
just use win32 and run it in compatibility mode
>>
File: wth.png (387 KB, 2084x1560)
387 KB
387 KB PNG
leetcode questions in 2030:
>design google
>>
>>108355732
test
>>
>>108375526
"I know what a trie is" question.
>>
if the C standard library is so bad why don't cniles just write a good one?
>>
File: 1771098869638373.jpg (175 KB, 735x639)
175 KB
175 KB JPG
>>108375838
Writing a true stdlib replacement, you are required to do a bunch of non-portable stuff (which is really the point of a standard library) and you're basically committing to writing and maintaining it on a bunch of platforms and compilers.

Much of the C library has plenty of alternatives, but a good chunk of it is considered 'fine' (e.g. stdio) and most people wouldn't be bothered trying to replace it, or just some old/niche shit you generally ignore.
The true horror mostly stems from locales, but nobody sane wants to try their hand implementing their own version of that.
>>
>>108375972
>a good chunk of it is considered 'fine' (e.g. stdio)
You didn't have to work with different encodings like ASCII, UTF-8, and UTF-16 in a multi-threaded environment that would not, could not lock, did you?

Nothing against you, but no - I don't consider it 'fine'.
>>
Why is Go the most fun language that exists right now?
>>
erlang is KING
>>
Doing AI-driven coding for the first time, previously I've just given my own code for review via web interface.

So I started with a 32-bit multi-platform OS project with Rust, Rust because it's promising a lot but full of boilerplate. After a week of not much progress, been shifting to using nested sandboxes for various-tier AIs and layers of the OS. Have been working on it for 10 days in total. Peaked at running busybox listing the applets in a mouse-movable terminal window, but this time I'll do git commits more frequently and won't give Gemini Flash any major restructuring jobs.

also, Gemini Flash is retarded, but probably very useful for building the userspace environment. Rust seems to be the language to use with Gemini Flash, when it tried to create a demo in C++ for a Rust SVG rendering library it just wrote, the demo kept crashing and address-sanitizer reported 700 memory leaks.

it's all so very cool
>>
File: pkmonbg.webm (797 KB, 599x517)
797 KB
797 KB WEBM
Fixed all my cpu instruction bugs finally and then finally worked out why the pokemon on the title screen were rendering wrong (ram bank switch was switching rom banks instead).
Gotta implement the sprite and window layer rendering now, then we will see how playable it becomes. I'm at 4500 lines of code but I think the biggest chunks are done. Probably will finish up under 5000 lines unless I decide to unroll some of the instructions.
And unless audio takes up a lot. No idea how to approach that yet.
>>
>>108355732
whats that robot for?
>>
Anyone else here using AI?
>>
>>108376486
it writes the code
>>
>>108376489
>Anyone else here using AI?
and who doesnt
>>
>>108355732
>no ass
>no hips
>no tits
>man face
>man hands
absolutely, 100% a tranny
>>
>>108376687
but enough abotu yourself
>>
>>108376476
based af. Keep on going
>>
Do you have any trust issues with the software you use these days? Anything you use could be more or less vibe coded.
>>
>>108376978
that's why i dont use any software nowadays.
Cancelling RMS was a mistake
>>
why did windows decide wsl launching into system32 by default was good ergonomics
>>
>>108377807
because most people love system32
>>
>>108377807
systemd32*
>>
I'm taking a massive dump and India came to mind.
>>
File: file.png (59 KB, 732x872)
59 KB
59 KB PNG
I did it again. I went on an unhinged 12 hours coding spree without even thinking about what I was doing, whether what I was doing was good or bad, or even useful.
ECS in UE5 with runtime reflection and no type safety whatsoever, all running on flecs
I feel like an alcoholic after a binge. I should not have written 2k+ loc of code like this
>>
>>108376476
Is that... a gameboy emulator for the PS1?
>>
>clients developer keeps making pull requests of slob that nobody should ever merge
>co-worker merges everything straight from client
I don't know bros, I try to distance myself from that project but my manager tries to put me in the directing role.
I know I should just quit but in this economy I would rather not. What can I do?
>>
Why is it called a pull request and not a push request?
>>
>>108379217
somebody needs to approve that master "gets" that faggots "branch"
>>
>>108379217
You're requesting the other person pull from your branch into theirs. It makes more sense in git's original workflow, where there are no central forges and everyone has their own copy of the repo.
>>
>>108379201
Suicide or homicide, the choice is yours.
>>
>>108379217
>There is no such thing as "ad blocking". The web is a pull medium, not a push medium. I merely decline to request ads.
t. anon
>>
File: 1678046344978461.jpg (85 KB, 1019x689)
85 KB
85 KB JPG
>undefined and null are different
>if(var) checks for both, therefore they're treated as the same shit most of the time
>type|null cannot be assigned to type|undefined
I hate typescript so much it's unreal
>>
>>108379083
idk c++, whats the problem with this code
>>
>>108379086
No, it's for PS2.
>>
File: file.png (20 KB, 730x339)
20 KB
20 KB PNG
what the fuck is this retardation
>>
File: file.png (974 B, 291x52)
974 B
974 B PNG
>>108379915
holy fuck
>>
>>108379927
nvm the comment works it just shows it for some fucking reason
>>
File: file.png (110 KB, 804x859)
110 KB
110 KB PNG
>>108379725
the code is fine in the sense that it works, the problem is that it's ridiculous, it's doing runtime reflection of c++ types, getting the name of the properties and storing them with the sizes + offsets and absolutely disregarding any sort of type safety
it's turning C++ into either python or C, depending on how you see it
you're essentially telling the compiler "trust me on this" and C++ just replies back "sure, don't blame me if it crashes" which is a very C approach to C++

if I ever end up using it I'll refactor most of it

cniles would probably think there's nothing wrong with it though
>>
>>108376687
no she's just european
>>
>>108368220
Anon, you are wrong.
Javascript is a high level language with just in time compilation and heavy optimization. It can effectively generate branchless code for those comparisons involving short circuiting operators when is possible to do such a thing.
You could add code to reduce the value to either 0 or 1 to use bitwise and, but the final code being executed will be the same because the compiler knows how to do such trivial optimization.
>>
>>108380438
>>108373315
>>
>>108380506
Do it yourself, you are the one doing such ridiculous claims.
>>
>>108380547
The ridiculous claims come from your side:
>just in time compilation
>heavy optimization
>branchless code
>involving short circuiting operators

So get to it.
>>
File: 1748034037800019.png (763 KB, 959x867)
763 KB
763 KB PNG
https://leetcode.com/problems/maximum-profit-from-trading-stocks-with-discounts/
>>
>>108379657
They have different meaning. Undefined is the value of uninitialized fields, values, empty returns and such. Null has no such use and you can assign meaning different than unassigned field. For example imagine you are making a method that lets you search users which many optional named arguments for specific filters. There, you might want to differentiate between { organization: "uuid", name: null } which means get all users from organization that has no name and { organization: "uuid" } which would just get all the users of an organization.

>>if(var) checks for both, therefore they're treated as the same shit most of the time
>type|null cannot be assigned to type|undefined
That would also suggest that "", 0, null, undefined and false are all same thing. That's just falsy values. When compared using === null and undefined are different values.

For example in Rust you can defined as many unit types like these as you want. Many error types are like that. They all are just singletons with no runtime data, but are actually different types.
>>
>>108380561
Go away, you low effort troll.
>>
>>108380561
LMAO, do you even know how to code?
>>
I was considering learning rust. Opened up its handbook and started going through it from the start.

It's a great idea to make a guessing game! But then...
>no random generator in standard library
>already doing package managing on basically hello world
>compile times are noticeable on an application that doesn't do anything. It somehow seems even slower than C++
>comparing numbers:
match guess.cmp(&secret_number) {
Ordering::Less => println!("Too small!"),
Ordering::Greater => println!("Too big!"),
Ordering::Equal => println!("You win!"),
}


Instead of using something easy to understand like if they use the above. Isn't this going to cause callback hell?

Is this actually a serious language or have I just been memed? I thought this was going to be "C++/Java/C# but with enforced immutability".
>>
>>108359575

It's a very nice project and i can feel the joy you have from it and i'm really happy for you. Well done anon ,you'll amaze your friends ;) (and girls héhéhé)
>>
>>108381783
>>108381903
>autistic projections
Ah, just imagine how wonderful the world could be, if your ilk was but to be forced to live in cages for the rest of their lives. People could even poke you through the bars with sticks for your crimes committed against actual humans.
>>
Ok go is based, but also go is fucked. When I write C nowadays I forget semicolons everywhere reeeeeeeeeeeeeeeeeeeeeeee

>>108382214
I already did 2 times and now I feel the pressure if it having to get better every year lmao. But I'll try to """""""finish""""""" it this year, because I actually have other fun things i wanna do.
>>
>>108355732
cd code, now there's a classic.
>>
>>108382767
I have to pee hard rn
>>
>>108356194
This board died when the maidposters got banned.
>>
>>108382172
>>no random generator in standard library
There are tons of different schemas for generating random numbers, many are platform specific. Generating anything but integers also comes with many nuances and you rarely only ever need to generate random number from 0 to the maximum value. Just write your own shift xor random, read from /dev/urandom or use rand.

>>already doing package managing on basically hello world
If you need package manager for hello world it's literally a you problem.

>>compile times are noticeable on an application that doesn't do anything. It somehow seems even slower than C++
Hello world (with incrementally compiled rand) compiles in 100ms on my machine. C++ hello world takes 300ms.

>>Instead of using something easy to understand like if they use the above.
What is hard to understand in simple match?

>Isn't this going to cause callback hell?
There is no callbacks in your code.

>Is this actually a serious language or have I just been memed?
You should be able to answer this question.
>>
>Hello world (with incrementally compiled rand) compiles in 100ms on my machine. C++ hello world takes 300ms.
I hate trannies so fucking much
>>
>>108383570
Why so selective? I despise all autists equally.
>>
>>108383741
Some autists are based.
Rust trannies need to be culled.
>>
>>108383773
>Some autists are based.
I need references. The track record has been abysmal, to put it lightly.
>>
>>108383788
>>
>>108383788
I'm autistically writing a gameboy emulator in MIPS assembly for the PS2. >>108376476
Can I be based?
>>
>>108383812
>Carmark
Doom Zone Memory Allocator, or his rendering engine nonsense. Next.

>>108383814
If you use recompilation for the GB emulator like the PS2 emulator you're using, yes.
>>
>>108383814
Why do you even bother replying to nocoder shitposters?
>>
>>108383907
Because normal people don't have canned responses, like autists.
>>
Nice I added an SNES controller to my ledpanel (no video)
And tried to make my snake smoother. It looks kinda neat now. The trajectory of the head is still a bit chunky and wrong, but ill fix that soon (tm)

I will most likely not care about making the corners better, because I should move on and make a real gayme
>>
>>108384792
fixed it. Nice.
Lets move on to the next game then
>>
File: snake.webm (3.98 MB, 480x270)
3.98 MB
3.98 MB WEBM
>>108384792
>>108385089
brainlet forgot the webm
>>
>write 95% of project in 2 weeks
>stuck on debugging stupid third party thing for next 2 weeks
this is me right now
>>
>>108384792
this run on esp32?
>>
>>108355732
trying to ship more code for clanker cloud

it's been a while since my last time here
>>
>>108385118
>write
Weird way to spell "glue".
>>
>>108385126
No, just the snes controller is connected to an esp32. Pic related.
It sends the buttons to another esp via esp-now such that I can have it wireless on my ledpanel ( >>108385101 ). The first webm is just my mockup that I use to test it on my desktop. That takes js input.
I could also connect the esp32 receiver to my desktop via uart and have the controller working there. The ledpanel backend is a polarfire soc with an FPGA and a quad core risc-v running linux
>>
File: PXL_20260316_175205627.jpg (2.15 MB, 3024x4032)
2.15 MB
2.15 MB JPG
>>108385210
wow, i am such a good influencer, i always forget the pics

>>108385118
most people forget that this is literally what engineering is all about. You just glue together pieces and turn nobs until it works.
>>
>>108385223
No, that sounds like something hobbyists or autists would do.
>>
>>108385244
Well then you have no fucking clue.
That's what happens in every software engineering company that does actual engineering as in safety critical stuff or similar.
You plan for a million years, circlejerk on your block diagrams, do 10 minutes of code writing, 3 weeks of inserting that code into a already working pipeline and spend 2 months verifying that.
Welcome to engineering.
If you want more koding, you gotta make Apps (tm)
>>
>>108385260
You sound like you're coping over your life decisions.
>>
>>108385272
I do a little bit, sure. Sometimes it's exhausting, but it's also interesting af
>>
>>108385260
Do not engage with the shitposter.
>>
>>108385296
Yeah, engage with soulless autists instead.
>>
>>108385296
ok, i'm sorry. She found my weak spot.
>>
Imagine if all of humanity was a homogenous white race. You would never have to even think about encryption or cyber security. Development would be orders of magnitude simpler and programs would all run hundreds of times faster.
>>
>>108385341
I'm pretty sure white institutionalized hackers are more likely to try to seal bank account or do business espionage than any other race. This aint your typical Tyrones with a wire cutters stealing your bike.
>>
>>108385365
Yeah no problem for me. I just have to pee rn, but really really hard
>>
>>108385341
Yeah, makes it easier to think, doesn't it, autist?
Luckily reality is a fair bit more complicated.

Just to stress you.
>>
>>108385341
>You would never have to even think about encryption or cyber security.
wasn't this literally the plot to independence day?
>>
>>108385427
Yeah, and what did you learn about from that? Everything collapsed the second they let immigrants in.
>>
File: oj4vdbf47fog1.png (1.57 MB, 1997x2800)
1.57 MB
1.57 MB PNG
>>108383477
>>108356194
Be the change you want to see (even if you're shy)
>>
File: 1764941083142124.png (187 KB, 428x467)
187 KB
187 KB PNG
why the fuck are arrays called "vectors" in c++ and rust
>>
>>108356429
maybe because whole Image is AI generated !!!

Are you Blind?
>>
>>108367298
I was thinking about keeping my PC inside of a small glass dome in order to keep the dust out
>>
File: dragon-maid-tohru.gif (1.06 MB, 640x360)
1.06 MB
1.06 MB GIF
>>108386092
:D yay wb or welcome new maid
>>
>>108386226
you should pump the air out too so the fans run quieter
>>
>>108386155
because c defined arrays as static types
>>
>>108386290
dude I have no idea what that means, im just a javascript monkey
>>
>>108386155
Because assembly know only arrays !
>>
>>108386304
the word already has a separate meaning in C++. Jargon is jargon, it's not universal.
>>
>>108386155
I would rather ask why they decided to call them arrays and not lists. What the fuck is an array
>>
>>108386349
Lists imply linked lists. Proper name for vectors is dynamic arrays but is mouthful and doesn't have nice abbreviation.
So vectors it is.
>>
>>108385223
Arduino?

Meh!

555
>>
>>108356194
I watched dragonmaid last week and it was comfy and vaguely programming related, I enjoyed it despite "those parts"
>>
My array has 126 methods and it's still not complete yet
>>
>>108386155
Because they are mathlets and just had to make shit worse for everyone.
>>
>>108386647
The GB emulator?
>>
>>108386421
XDDDDD
>>
>>108386647
be careful there lad. Please think about encapsulation and using the object oriented programming to only make data public that should be public.
Thank you for reading my blogpost
>>
File: nb-compressed.mp4 (2.82 MB, 1920x1080)
2.82 MB
2.82 MB MP4
>>108355732
The robot programming game, but it’s not very interesting. Scripts are compiled to WebAssembly, so you can program robots with whatever language that compiles to it.
>>
>>108387181
Really cool. Are you planning on just having one game or more?

I once wanted to make a website that lets you program bots in any language and compete in games like space war, tetris, chess, poker etc. But I never really done anything but the initial prototype.
>>
>>108387228
Just one. It's similar to Robocode. The idea of the game is to program robots and run them against other player robots, making it a sort of multiplayer. There could be 1v1, teams, configurable maps, custom game rules, etc. I've had this idea since around 2019 and built a few barely functional prototypes, but nothing more.
>>
>>108355732
Please, rate my hello world done in go: https://pastebin.com/gKUSvjMx
>>
>>108383831
>If you use recompilation for the GB emulator like the PS2 emulator you're using, yes.
Shit, so now I have to write a recompiler in assembly.
>>
>>108387475
I mean this with every bit of ire and hyperbole you can imagine:
Why would we bother with Go?

>>108387487
You're telling me you don't have a compiler for the PS2 MIPS architecture?!?

On one hand: respect.
On the other hang: I feel so sorry for you, and I'm somewhat sure this isn't just the vodka speaking.
>>
>>108386421
>>108386911
what is 555
>>
>>108386155
because they are not arrays but arrays wrappers that encapsulates safe access to them
>>
    let use_fallback =
metatable.is_some_and(|mt|
!mt.get_value(ctx, MetaMethod::Len).is_nil()
|| !mt.get_value(ctx, MetaMethod::Index).is_nil()
|| !mt.get_value(ctx, MetaMethod::NewIndex).is_nil())
|| val_metatable.is_some_and(|mt|
!mt.get_value(ctx, MetaMethod::Eq).is_nil()
);

How would you format this?
>>
>>108387630
indent metatable.is_some_and and !mt.get_vlaue() so they all line up then delete the file and switch to a real language like Haskell
>>
File: 1725468792564050.png (278 KB, 750x750)
278 KB
278 KB PNG
For the first time in my life I'm experiencing the feeling of being in the zone on my project but have to stop because it's getting late and I have to get to my job tomorrow morning.
>>
>>108387665
Well, at least you're still in your twenties, right?

You ARE still in your twenties, right?!
>>
>>108387658
Haskell doesn't run on esp32
>>
File: 1724921282445266.jpg (31 KB, 654x720)
31 KB
31 KB JPG
>>108387712
33
>>
>>108387714
then maybe esp32 shouldn't exist
>>
>>108387563
>You're telling me you don't have a compiler for the PS2 MIPS architecture?!?
I said I was writing in assembly.
>>
>>108387714
https://github.com/augustss/MicroHs
>>
are system design concepts taught in uni?
>>
no gedg going on so I'm pasting my reply here hoping the guy reads it, gonna repost it in gedg next time it's made, but doing it here so i don't forget or delay my reply
>>108381707
my version doesn't manage pipeline layouts, you just describe the attachments (color/depth/stencil buffers) when starting a rendering pass and it just werks©
Under the hood is uses the dynamic rendering extension
>>
>>108386155
A vector is a dynamic array. The justification for calling it a "vector" was that mathematical vectors can have any number of dimensions (it's retarded, I know, like everything in C++).
>>
>>108388894
Good thing Java had the sanity to call it a list.
>>
>>108388894
>(it's retarded, I know, like everything in C++).
then why did rust adopt it too?
>>
File: 1745259516625889.png (784 KB, 1736x1390)
784 KB
784 KB PNG
https://claude.ai/artifacts
>>
File: maxresdefault.jpg (91 KB, 1280x720)
91 KB
91 KB JPG
>>108387590
As you can see from the circuit you can basically do anything with it, because it can be an oscillator as well as a flipflop
>>
>>108387665
Had the same feeling about 2 months ago. 34 btw.
Gladly I am NEET. I had to hold myself back to not do 16 hours of koding per day and get burned out fast. So I did 8-12h per day for 4 weeks straight. I think I have never had such a focus in my life before
>>
ok lets rewrite the algorithm. Otherwise god will not be happy
>>
>>108389650
>>108386412
>>
File: neovim-vs-vim.png (111 KB, 800x450)
111 KB
111 KB PNG
Vim or Neovim for programming? Which one is better?
>>
>>108391731
depends on your year of birth
>>
>>108391731
vscode
>>
>>108391772
>Electron bloat
No thanks
>>
>>108391731
Jetbrains
>>
>>108385223
>until it works
until it works!!!
Yeah... but you have humbly forgot mention
Tears
sweat
and
teeth grinding...
x)
>>
so how do you deal working in project with have tousens of sources using vim? or you want to check definiton of specific type or function?
>>
>>108392038
neovim has a built in lsp
>>
Trying some Java, good I already have IntelliJ installed. Task is shit so I ask ChatGPT. Put together something, it won't compile, says I need newer Java. Install it, still won't work.
ChatGPT says I need to install whole new IntelliJ, mine is from 2020. There's no way that's right, right? I can't download all this shit, and I bet if I did the old would just stay there taking up space.
>>
>>108391731
I've never used neovim. What's the difference?
>>
>>108386155
>>108388962
there is already forward_list in c++ so it would be confusing to name it that way. And arrays are of fixed size from C so can't use that either.
maybe it could've been called "dynamic_array" but i think it's fine the way it is.
>>
File: despicable-me-2-vector-14.jpg (174 KB, 1218x1658)
174 KB
174 KB JPG
>>108392469
pic related.
also `dynamic_array` would imply similarity with `array` which doesn't exist, unlike with `unordered_map` vs `map`.
>>
>>108355732
>What are you working on, /g/?
Using scikit-image to turn selfies into soijaks.
>>
File: 1756289491180173.png (52 KB, 1183x180)
52 KB
52 KB PNG
Pythonbros?
>>
if you use strncpy, you are a onions.
>>
>>108392647
reasonable take by the programmer of a very reasonable language
>>
>>108392789
Did you use a reasoning model to write this reasonable reply?
>>
>>108392647
why doesn't twitter put a fucking timestamp to tweets?
>>
>>108392387
>it won't compile, says I need newer Java
1. tell chatgpt to use the version of Java you currently have
2. check your settings, you might just have your project set to a non-newest version of Java
>>
I'm going through a big pickle.

>be me 5 years ago
>make cool software
>own it
>everyone praises me for it
>go to guy whenever anyone has questions about the soft
>made using C# as was desired at the time
>fast forward 5 years to start of 2026
>boss wants it remade in Rust
>say ok just let me learn it
>start learning Rust
>boss puts me on a very important task and tells me to pause the Rust refactor meanwhile
>alright, start working on the new project
>March starts
>boss hires guy fresh out of college
>cool a new guy
>learn he is now in charge of the Rust refactor
>don't think much of it, answer any questions he has, etc
>a week passes
>he comes monday with the whole refactor done
>he refactored it in a week
>boss can't stop praising him to everyone
>people start going to him for questions
>realize I lost ownership of the software
>realize I look incopetent for not learning Rust instantly
what do I do?
>>
>>108393663
How do you know the guy didn't knew Rust already? He might be already somewhat experienced in Rust and so it would be expected he can rewrite existing software pretty fast.

Anyway, you are an engineer. You are there to do engineering, not to be a product owner. If you did your very important task that was assigned to you, that should be good enough for now. But if your company is transitioning to Rust, it might be a good idea to just learn Rust anyway in your free time so you can keep your qualifications up to date with the changes in the company/industry just to avoid being a drag that needs to be reeducated or potentially let go because of these changes.
>>
>>108393709
nta, qrd on se vs duct owner?
>>
>>108393762
It's just scrum mumbo jumbo. He is the manager that figuratively "owns" the project.
It doesn't matter. As an engineer you are hired to do engineering. You are there to solve technical problems, write code, make shit work and stay working. Do your job well, and make others notice you and you will be praised. My point is, don't get sentimental over being moved to another project or someone else getting to lead it. That happens, you are not there to own the piece code. Instead be the guy your employee can trust to get shit done. The fact that he got assigned "a very important task" might indicate that there is already some trust established.
>>
>>108393835
reminds me of that video of the elder whale being raped by the juvenile one
>>
>>108393861
nta but the what?
>>
File: 1593669755567.gif (550 KB, 189x173)
550 KB
550 KB GIF
My autism found a new fixation
Screenwriting
So I'm considering making a screenwriting program just for shits n giggles
should I?
>>
>>108393917
no
>>
>>108393947
why?
>>
refactoring refactoring refactoring and then what? design? architecture? implementation of cool ideas? no, refactoring, refactoring, refactoring
i'm absolutely sick of it
>>
>>108355732
I literally don't know what to build, and I worry that I won't be able to do it.
>>
File: ipepe.gif (31 KB, 809x844)
31 KB
31 KB GIF
>>108393663
Saar, reputation is the foundation of social standing. To see your competence questioned and your status destroyed so quickly is deeply concerning. Do not let this slide into further decline and reclaim your dignity. A righteous battle is a sacred duty, not a personal choice driven by desire.
Saar, you must kill the sinful.
>>
>>108393663
Read the code, find mistakes, claim that the new guy did everything through LLMs without double-checking.
>>
>>108394192
>I literally don't know what to build
I'm building analysis systems for scientific instruments. No real performance requirements, but the information is full of complicated nuances that mean it's all custom processing. Pretty comfy.
>>
>>108393663
What do you mean "what do I do"? Why are you being a bitch about this? Go fuck yourself.
>>
>>108393633
Thanks. There was a skeleton given for the task with all the dependencies, my Java was older.
I downloaded the newest IntelliJ, looks like it's nice enough to remove the old one. Still a lot of space needed, Windows seems to fill the disk back up whenever I delete something. I guess it would be apt if I deleted CodeBlocks or Qt...
Have to readd the JDK so it finally recognizes it... Now the problem seems to be that it's too new? Fuck this, I'm out.
>>
>>108395035
>Now the problem seems to be that it's too new?
eclipse does not have this problem
>>
Another rest to rss server. That's my work done for the day yup yup
>>
>>108394705
and here comes the indian army
>>
>>108395109
you work at reddit?
>>
>>108395298
You are cancer.
>>
>>108395316
good morning
>>
>>108395300
github
>>
>>108395439
liar
>>
New bread: >>108395499



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