#programming

1 messages ยท Page 53 of 1

stark needle
#

It's a completely different thing

#

Also "skill gaps" skill issue man u need effort what did u expect

#

And pretty sure no one wants videogames with ai music and live performances with some ai generating everything

#

What i think is these companies are trying to make people as useless and reliant on ai as possible to then sell them random shit cause they don't know better

wary rover
#

I think you will like this song
https://www.youtube.com/watch?v=1400fzt0SHU

"OPENED UP PANDORA'S BOX, NOW BEHOLD ITS SHOCKING CONTENTS"

https://linktr.ee/keepthechangepls

Produced by Rav, mixed by Scuare.
Single cover art by Leslie (@lesliesuperr).
Lyric video by Deemust and Rav, with additional 3D modeling and animation by MITCH!

โ€ข Kill Bill: The Rapper Linktree โ€ฃ https://linktr.ee/iamkillbill
โ€ข Rav Linktree ...

โ–ถ Play video
inner pike
wary rover
#

Doesn't look like much based on thumbnail, but the music video is a work of art and the song itself is good af and topical too

inner pike
#

Those use cases are so stupid

wary rover
#

Imagine if use cases were AI generated

stark needle
#

There's no way they are not

wary rover
#

The only thing they lack is the word "delve" somewhere in the text

#

You guys know the thing with AI and word delve?

stark needle
#

Ye

#

Nigerian raters

#

This must be the conversation of all time

wary rover
#

Wonder if our kids will become as good at telling apart people and AI on the internet as we are now at noticing advertisements in media

#

Cause like 50 years ago people valued ads as a genuine deciding factor on purchasing something

#

And now we just dont give a crap

stark needle
wary rover
stark needle
#

Ai is so dumb

#

I know people who can't write a letter anymore

#

And people in school who only survive cause of ai

wary rover
#

I've heard people in US don't write in cursive which blows my mind

#

Like writing in printed letters font is 10 times slower

#

How can you keep up with a lector when taking notes

#

Also English cursive is so pretty and sexy looking, I sometimes just write random stuff in English on paper because it looks cool

ruby timber
#

My handwriting is so bad

#

Always has been

wary rover
#

Mine is only good when I write for the sake of writing. When I use it for practical reasons it's crap

opaque sigil
wary rover
#

A lot of lectors here require you taking notes

#

Didn't write anything on "Mechanical principals" course, because I have a natural affinity towards that stuff, and just good at it. Had to write down 60 pages by hand in one night

opaque sigil
#

Bruh

#

Why would they care

wary rover
#

Lector is a human version of d6. If you roll 6 you are good even if you don't show up for a year. Roll 1 and "Show me notes for every lecture"

#

I think he is a bit afraid of me ever since that happened

#

It was first year and he was teaching us general rules of bleuprint making and such. I was very bad at time managing and screwed up with his course completely. Had to do a semester worth of work in 5 days. Didnt lay down for 5 days, slept only when passing at the desk or in the bus. Go to exam room, model the part I was assigned with in cad-like software, hallucinations of spiders are crawling in my peripheral vision. Go to him, he starts asking questions. I look him in the eyes, because that's what my father told me to do to build trust with people. He is more and more timid at his questions, answer them, get an A. Go out of the building and look at myself through frontal camera of the phone for no reason. My eyes are red. Not a spec of white. Just iris and blood

#

Imagine his pov

velvet juniper
wary rover
#

60 pages of text by hand as notes, 12 assignments in software and a folder of blueprints made with pencil on paper (very simple entry beginner noob blueprints, but still)

velvet juniper
#

Compulsory handwritten notes are the bane of human existence

wary rover
#

He also cuts the corner of notebook with scissors when you submit them (to avoid you giving it to your friend and allowing them to resubmit your stuff as theirs)

velvet juniper
#

Thank god for my all of my uni professors not giving a single fuck about what we do as long as we pass the exams after the freshman year

#

Aside from one demented old man

wary rover
#

Most of lectors at my uni dont give a fuck too, but that one is a 75yo conservative man who's soul is still in soviet union

velvet juniper
#

Funnily enough, the old man was literally a professor in the soviet union

#

If I remember correctly

wary rover
#

soviet education moment

velvet juniper
#

He wasn't the only one, but the others just weren't mentally ill

wary rover
#

We have an even more decrepit man, who is 83, but he is so decrepit, that all his quirks are easily negated by an ability to easily gaslight him into thinking that he forgot to write down the score he gave you on the assignment that you definitely showed him

velvet juniper
#

He was one of the reasons I didn't properly learn theory behind electronics

wary rover
#

You gotta build trust. I have a weird talent of making friends with old people, so now I am like a walking Get out of the Jail Card for people that didn't do his assignments. They ask me to come with them to convince the old man, because he only trusts me and a couple of other guys unconditionally

#

I also get a take out order of my choice as payment

#

I call in dementia farming

velvet juniper
#

That's a good one
I usually try to become cordial with professors, but with that one I just really didn't like him and couldn't bring myself to feign affection

wary rover
#

A lot of my early childhood was spent with my grandma, maybe that's why I am so good at this

velvet juniper
#

My feels really distant the last, I dunno, 10 years
Sometimes it seems like it didn't happen to me, and I just have somebody else's memories

wary rover
#

Same. Feel like I am living my third life tbh with how different my environment and inner state of mind was through out chilhood, teenage years and now

velvet juniper
#

I personally don't feel like I changed since I was, like, 16
But I also don't really have clear memories before high school, so it could be just an illusion

wary rover
#

I was blessed with a very good memory, so I remember almost everything since I was 6 with distant echoes of memories before that

#

A friend of my dad would come as a guest from time to time and play chess with me, and every time he would come and wipe the floor with me on a chessboard he would be like: have you ever noticed how your brain does this thing when... Then he would teach me some sort of mental technique and it would be immediately integrated into my thinking

#

And after that my memory have improved and I almost never forget stuff

velvet juniper
#

My friends sometimes tell me that I have a good memory, but that only started around the end of high school
But it does help, since you have to keep a lot of stuff in mind at my job sometimes

#

It would've been really nice if stuff was actually documented and I didn't have to hunt down info by asking a bunch of people every time
I probably should write it down, but it feels a huge bother

wary rover
#

Ah yes, the laziness paradox. You know the path of least resistance, but taking this path is not aligned with the path of least resistance

tender river
#

lub coffee SMILE

velvet juniper
unkempt citrus
# stark needle I know people who can't write a letter anymore
wary rover
#

Oh, wise elder chayleaf, may I bother you with a question?

unkempt citrus
# unkempt citrus https://arxiv.org/abs/2506.08872

https://x.com/itsalexvacca/status/1935343874421178762
Or in a more memetic way for those of use whoc an't read papers

BREAKING: MIT just completed the first brain scan study of ChatGPT users & the results are terrifying.

Turns out, AI isn't making us more productive. It's making us cognitively bankrupt.

Here's what 4 months of data revealed:

(hint: we've been measuring productivity all wrong)

stark needle
stark needle
sick owl
opaque wharf
#

See, he was praising you first

#

You said you've a lack of praise lately no?

tender river
#

no. worship

opaque wharf
#

Welp, you've heard the person then Mushroom

olive sable
#

the the

opaque wharf
olive sable
#

sure

wary rover
tender river
wary rover
#

It is a part of default rust library and doesn't use any extra dependencies? (apart from rng ofc)

tender river
#

its all part of the rand api

wary rover
#

Aah... Thank you very much

tender river
olive sable
#

i have figured out private vs public class objects neuroHypers
im guessing python has everything set as public which is bad for some reason?

tender river
olive sable
#

ah

tender river
#

its a hint to the programmer "dont touch this its subject to change"

noble zodiac
#

there is also protected and friend

olive sable
#

ive heard of protected, but what is friend?

tender river
#

if you declare a class as your friend, it can access your private/protected fields

olive sable
#

sound like its useful, but only in very specific cases

tender river
#

its useful when designing libraries

#

so you can forbid access to certain fields externally but still have access to them from within your library

opaque wharf
olive sable
opaque wharf
#

I doubt irl friends would let you touch their protected property tho

maiden geyser
opaque wharf
#

Wait, friend could access private? I need to re-read c++ man

olive sable
olive sable
noble zodiac
#

and yes, you most likely don't want to just declare everything as public. Especially when it can bypass internal logic

olive sable
opaque wharf
noble zodiac
#

lowercase class name SMH

tender river
#

use global functions instead

olive sable
#

wdym with fields?

tender river
#

if you want some kind of scoping you can use namespaces

opaque wharf
wary rover
opaque wharf
#

And if instantiated, can have different value between each instance

opaque wharf
#

Let's say a class looks like this

class Alpha {
  int some_number;
};
olive sable
tender river
opaque wharf
#

When you access some_number, it will be different between instance. An instance is basically this

auto instance_a = new Alpha();
auto instance_b = new Alpha();
olive sable
#

ye thats how it worked in python too

opaque wharf
#

Chay here trying so hard to make it not OOP

olive sable
#

is oop that bad?

opaque wharf
#

No, it has its uses. But also most people tend to overuse it

#

And I agree, if it can be made a functional style, I'd go with that

#

Its easier to reason when a function doesn't have internal state

tender river
#

its not functional style lol

#

its procedural

opaque wharf
#

Dangit my mind is all over the place

tender river
olive sable
#

fair

tender river
#

do you use inheritance, polymorphism, encapsulation, is every "object" in your code a separate self-contained heap-allocated entity? if no, thats not really oop

#

well, its not always heap-allocated, but the further away you go from my description the less oop it gets

olive sable
#

i am planing to use inheritance, idk what polymorphism is, idk what thwe rest means erither

#

heap allocated would be the meshes i guess?

tender river
#

heap allocation isnt directly connected to oop, but objects being heap allocated means they are interchangeable as they're just a pointer

#

anyway, oop is code design focused on self-contained objects that have public interfaces that do stuff and that have a hidden underlying implementation. This means you can freely exchange implementations, but it also means each object has to be self-contained, which can in some cases limit what you can do with them.

olive sable
#

so like this i guess?

tender river
#

this still isnt oop, this is just a wrapper around a gl texture

#

i mean, you could argue about it i guess, but imo it would be oop if you also had some other objects that could be used the exact same way image is used and would go to the same place but would be implemented in different ways

olive sable
#

ah

#

so interchaangeble objets

tender river
olive sable
#

why wouldnt it need a class? it has to store the texture no?

tender river
# olive sable why wouldnt it need a class? it has to store the texture no?

so, first of all, its just a single field, you can just pass it around to function inputs. (void use(GLuint texture);)

second, this has bad typesafety, so you can wrap it in a container (this still isn't OOP, you can easily do it in C)

third, whether you do texture.use() or use(texture) is entirely preference and, again, is not related to whether it's OOP, also different languages may make the one or the other approaches more ergonomic

#

also you should learn about constructors

#

and destructors too

opaque wharf
#

Oh right

#

I forgot about that overhead

olive sable
#

what is the bad typesafety about?
i thought i was declaring the types properly?

tender river
#

i'm not talking about your code

#

i'm saying that if the function use was not part of a class

#

it would have to take the GLuint somehow

#

and it's easy to make it just take it

#

but then you have bad type safety

#

since you can accidentally pass it some other uint

#

but if you wrap it in a new type (this concept is literally called "newtype"), this problem disappears

olive sable
#

i get that the GLuint is just a unique number, but is it not preferable to not have to pass it around manually?

tender river
#

its better to use wrapper types to protect yourself from typos

#

the underlying in-memory representation will be the same

#

you will still be passing it around obviously, just not in the form of GLuint but something like TextureHandle or however you call it

olive sable
#

so instead of attaching the texture object to the mesh i just attach the typedef Wrapper<GLuint> TextureUint; then

#

ok

olive sable
#

fuck

tender river
#

then if you have two different wrappers around GLuint, they will be the same type

#

but the point is to make them have different types

#

anyway the idea is, at some point everything is just a bunch of bytes, but that doesnt mean all data can be treated the same way, some of it is integers, some of it is pointers, some of it is texture handles, and if you just deal with raw ints you will have the equivalent of python type safety but with all of C's potential of something going wrong

opaque wharf
#

Chay, I think you are better off giving him an example

olive sable
#

i cant find this newtype thing

opaque sigil
tender river
#

oh does C++ allow creating new types like that?

opaque wharf
#

Yes

opaque sigil
#

ye

tender river
tender river
opaque wharf
olive sable
#

oh. i was googling the word newtype and couldnt find anything

opaque wharf
#

Here we go again, structural vs nominal

opaque sigil
tender river
opaque wharf
#

So yea, chay solution it is

olive sable
#

glGenTextures(1, &texture); does not like receivign a non GLuint

#

i guess ill need to cast it afterwards?

tender river
opaque wharf
#

Is texture type TextureHandle?

olive sable
#

that is the point ye

tender river
#

but also you dont really need two wrappers around a texture, sorry if i'm confusing you, image in your code was already a wrapper around GLuint

opaque sigil
#

if you're feeling extra lazy you could also add a lil

operator GLuint() const { return handle; }

to the struct NeuroClueless (i think?)

olive sable
#

this works probably

opaque sigil
#

don't use pointers then neuroPogHD

tender river
#

true!

sage crag
#

never use pointers

#

what are pointers good for

#

i cant eat them

tender river
#

pointing

#

probably

opaque wharf
#

What it means is to accomplish something like this

struct TextureHandle { GLuint value; };

void someFunct(TextureHandle data)
{
  glGenTextures(1, data.value);
}

So whenever you use someFunc you will not confuse GLuint for other function that needs another GLuint but not for texture

tender river
olive sable
#

pointers are more bits than my gluint so they're actually more nutricious. im guessing tis just cuz konii is small she cant do 64bits

tender river
#

i cant believe it, after defeating speedlines i have to fight my own brethren (leaves)

#

life is cruel

olive sable
#

lmao

#

what leaves you fighting?

tender river
#

green

olive sable
#

like the pokemon game?

tender river
#

no

#

green

opaque wharf
#

It's me. I'm green

olive sable
#

sure

opaque wharf
#

Toast is also green

tender river
olive sable
#

is that green?

tender river
#

its light green

maiden geyser
tender river
olive sable
#

i am still red-green colourblind, but that is yellow

opaque sigil
#

yeah pls don't eat me i still have a paper to submit

#

after that maybe

tender river
#

no sorry

olive sable
#

toast has been objectified

#

huh, toast is actually an object

#

i never connected the dots before

opaque sigil
#

what a lovely email to receive on a saturday

olive sable
opaque wharf
#

a.k.a, not your problem

olive sable
#

i mean, if you're infra is down that is kinda still your problem

opaque sigil
#

thankfully not my problem indeed

#

i don't need the cluster atm

olive sable
#

ah

rough bloom
#

there's quite a few degrees between "temperature is a bit high" and "emergency shutdown"

opaque sigil
#

i'd love to know the same

olive sable
#

didnt pay the lawnmover guy

opaque wharf
#

80 degree and the monitoring guy just said not great not terrible

olive sable
#

i do wonder, do they mean dirt from inside or outside?
cuz ive been asuming its a big hvac unit on the side or something but thats probably not how that works

opaque sigil
#

i'm not 100% sure i just know that most of the newer gpu nodes are watercooled

olive sable
rough bloom
#

tbf they might not have noticed any issues before now because of lower outside air temperature

opaque sigil
#

i don't like going there it's loud

rough bloom
opaque sigil
#

that's only the newer cluster, the old one (that is about to be torn down) is purely air cooled afaik

rough bloom
#

that is about to be torn down
neuroHypers silence

opaque sigil
#

i think the cpu nodes are also mostly air cooled? with some exceptions

opaque sigil
#

i can't wait for the upcoming cluster to overheat on the regular neuroHypers

#

too bad i probably won't be there to witness that

rough bloom
#

the only dc I was ever in is fully air cooled
can confirm that it's hard to have a conversation in there Pepega๐Ÿ“ฃ

tender river
#

i was at yandex's presentation of their dc in finland (lol i doubt its still a thing) but never been in an actual dc

opaque sigil
#

is nice but i can't imaging working as a technician in one, that sounds awful

#

i just like seeing and playing with cool new hardware neuroPogHD

#

they're currently in the process of ordering a ton of 5090s and some B200s for the new cluster neuroPogHD

#

(thank god it's largely funded by the state neurOMEGALUL )

nocturne olive
opaque sigil
#

yes neuroPogHD

nocturne olive
#

Silly

opaque sigil
#

the things we do for speeeeeeeeeeed neuro7

olive sable
#

-# bzzzzzzzzzzzZZZZZZZZZZZZZZZZZZZ ๐Ÿ”ฅexplosion2

#

is all caps constants still aplicable in c++?

opaque sigil
#

yeah

olive sable
opaque sigil
#

constexpr is your best friend

olive sable
#

that cant be changed by the program tho. so while useful i cant use it in this case

opaque sigil
#

wdym

olive sable
#

tbf the question was misleading, but im specifying the width and height

int WIDTH = 1920;
int HEIGHT = 1080;
#

these should be changable in the settings so im not makign them actual constants

opaque sigil
#

ah

#

yeah fair enough

warped narwhal
olive sable
#

i dont see the easier part

warped narwhal
#

aka:

const struct FramebufferSettings
{
  size_t width = 640, height = 480;
} DEFAULT_FRAMEBUFFER_SETTINGS;
#

same way a static array is easier than manual variables

olive sable
#

i feel like this just adds unnecesairy complexity

warped narwhal
#

how are you changing the settings? is it a compile time thing?

olive sable
#

rn im not actually changing the settings, but its meant to be in a menu ingame

#

once i make the gui

warped narwhal
#

then it will be easier as it is less to pass to each function that uses the settings. especially if you add more settings in the future

#

instead of going: void do_something(int width, int height, int setting, int ...); you just do void do_something(FramebufferSettings settings = DEFAULT_FRAMEBUFFER_SETTINGS); and it will either use the default, or any value you've given it

olive sable
#

wdym pass?
its a global

warped narwhal
#

neuroDespair it's what?

olive sable
#

its a global

#

i get that you shouldnt have too many globals, but it just makes sense to use it here

warped narwhal
#

Ideally you should have 0 globals.

olive sable
#

why?

warped narwhal
#

they are a crutch that work now, but when you move on to bigger projects (or this one grows larger) you will be shooting yourself in the foot by having them

olive sable
#

i dont see how ill be shooting myself with a widht and height variable

rare bramble
#

imo globals are fine for constants or overarching settings, but that's very situation dependant

warped narwhal
#

for instance, if you split your code into multiple files, you now have to have a "globals.hpp" that just contains all the definitions, which means that they then have to be statically defined, and then you will struggle when different parts of the code need different values for those globals and you'll end up with WIDTH, WIDTH_FRAME, WIDTH_WINDOW etc

#

if anything, but constants into the main function, so that you at least know the path they take

olive sable
#

im just passing it to the other file window = InitGLContext(WIDTH, HEIGHT, 1);

opaque wharf
#

There are use cases for globals. I think config is one of them. You could abstract it to a singleton or something if you want, but a config being a global poses no issue

opaque sigil
#

config.h neuroPogHD

olive sable
#

fair

#

but i dontt hink i should use a header file for 2 variables

#

mayb once the code grows

opaque wharf
#

Wait, it does pose a risk when reading on multi threaded applicatiion

olive sable
opaque sigil
#

this is a problem for future sam that uses a proper build system

opaque sigil
opaque wharf
opaque sigil
#

throw a lock at it neuroPogHD

olive sable
#

it doesnt for now so no problem

#

i wont be making a settings tab for a while

opaque sigil
#

can always just refactor when the time comes

olive sable
#

we love refactoring

opaque wharf
opaque sigil
opaque wharf
#

But honestly, yeah. For game engine its okay to cobble up something that works first. Designing everything correctly from the ground up is hard

tender river
opaque wharf
#

kebab if you're doing HTML

opaque wharf
#

this-is-like-a-skewered-word

olive sable
#

oh

tender river
#

as a bonus it's guaranteed (i think) to be evaluated at compile time

olive sable
#

it is according to toast ye

#

but im planning to make the width and height changeable so it shouldnt be an actual constant

maiden geyser
tender river
# olive sable why?

if you have more than one thread, and both write to the same global, the program may crash
if you only have a single thread, not using globals is still better for testability because now you can run multiple instances of the same program for testing purposes without worrying about globals clashing with each other
finally, global access is always "hidden", you dont know which code does or doesnt need certain globals, while passing these as parameters makes it clearer what each piece of code does

olive sable
olive sable
#

this is getting more complex each time

opaque sigil
#

Singletons are just globals for people in denial

olive sable
maiden geyser
#

@patent walrus hello, that thing is happening again

nocturne olive
#

Scammer/bot/hacked account spotted

olive sable
#

its some type of bitcoin scam

sage crag
nocturne olive
#

Average idiot bait

olive sable
#

i havent seen the last times so this is new to me

sage crag
#

its not just bitcoin, its gambling bitcoin evilStare

maiden geyser
olive sable
#

did you not remove it?

sage crag
#

they got disappeared

#

dont worry

maiden geyser
#

why is it mister beast again, though

tender river
sage crag
stark needle
maiden geyser
#

i know there is a meme about mr beast depositing people's houses to gamble them away, but it's a russia-only meme

olive sable
#

im not using a class

sage crag
tender river
tender river
tender river
opaque sigil
#

It does ReallyInnocent

olive sable
tender river
olive sable
#

oh

#

hmmm

#

just dont multithread the settigns menu NeuroClueless

opaque sigil
#

atomic width/height neuroPogHD

tender river
#

and by "may crash" i mean "it literally can do whatever the compiler makes it do because if you have a single instance of UB the compiler has the permission to run any code it wants"

olive sable
#

oei

tender river
noble zodiac
#

actually you might want to read the GoF book

olive sable
#

okay

noble zodiac
#

whats its actual name again

olive sable
#

this thing no?

tender river
#

eah

noble zodiac
#

yeye

olive sable
#

lots of text

noble zodiac
#

doesnt mean that you actually have to use all those pattern. But at least gives a good overview over stuff out there

#

including singleton

opaque wharf
olive sable
#

no it isnt

#

i would know

#

these c++ things are way more complex than the actual engine

opaque wharf
#

It's exactly because you use higher level language that it hides the complexity neuroHypers

#

But is python still has problems with global lock or whatever that is?

#

GIL?

tender river
#

gil just means everything is single threaded mhm

olive sable
opaque wharf
olive sable
wary rover
#

I have a question that I'm not sure I can formulate properly. If I implement a function that gets user input and then sends it to other function that handles input by matching (Like a hub function essentially. "catch" => catch_function", "collection"=> collection_function) do I need to "clean" user input for the function that gets input? Like input.trim().to_lowercase() or something like that?

tender river
olive sable
wary rover
#

No

olive sable
#

then ye make it lowercase ig

wary rover
#

Like during the run of the program it will give you a window to input stuff into and as far as I understand the fact of pressing enter after typing the command makes computer see it like "catch/n" for example, and if I am matching for "catch" it won't work

#

So I must trim it

#

And preferably to_lowercase it

olive sable
#

checks out ye

wary rover
#

Based on my current understanding

#

So trim and clean, ok

#

Thanks

olive sable
#

thats just what im thinking based of what you said, im no expert

wary rover
#

Literally anyone with more then a week of coding experience is an expert for me rn

maiden geyser
#

what if i'm a programmer-theoretist

wary rover
#

You can make a theory

olive sable
#

but thats just a theory

wary rover
#

A CODING theory

olive sable
#

thanks for nothing

wary rover
#

thanks for nothing is crazy

olive sable
#

the ussual "watching" jus didnt fit

wary rover
#

Are there actually people who study coding but do not code?

warped narwhal
opaque wharf
tender river
opaque wharf
#

Or more broadly, sanitize input from anything outside of your program. Even from database

wary rover
#

mhm mhm

wary rover
#

I like how there are conversations that I can vaguely understand here, like "don't trully understand the underlying issue, but atleast the subject is clear". And then two people would just come in to cast spells upon each other

opaque wharf
wary rover
#

I don't prefer anything, I come here to scoop some wisdom from the wise people. It's just entertaining to witness totally legit convos where people actually exchange ideas and understand each other, but i can't understand a single word apart from "a" and "the"

warped narwhal
gritty dust
#

Good morning

warped narwhal
#

it's 5pm

gritty dust
#

neuroBwaa I'm tired

olive sable
#

the more i use it the weirder it gets

#

its barely more tolerable than python

warped narwhal
#

oh you want some weird c++?

#

look into curiously recurring template patterns

maiden geyser
#

should've wrote some OOP on c instead

gritty dust
#

I love python, kinda like c++, hate java script, and yeah...

opaque wharf
olive sable
tender river
sage crag
opaque wharf
#

hblang incoming

olive sable
#

no konii, dont make main a void

sage crag
olive sable
#

what in the fuck is that?

gritty dust
warped narwhal
#

template <typename T>
class Base
{
public:
    void say_hello()
    {
      std::cout << "Hello, " << T::name << "!\n" << std::flush;
    }
}

class Derived : public Base<Derived>
{
public:
    static std::string name = "World";
}

CTRP in action

maiden geyser
sage crag
#

i just ate an ice cube

opaque wharf
#

He hasn't encountered templating yet

warped narwhal
# maiden geyser why not a void\*

semantics, a void* can only "safely" be converted between the original type and a void* (no math allowed) whereas uintptr_t allows math to be "safely" done on it,

opaque wharf
#

Templating is its own can of worms

olive sable
#

i dont fancy worms

warped narwhal
#

C++ Templates are turing complete

opaque wharf
sour harness
opaque wharf
#

Return of the mov turing-completeness lol

warped narwhal
#

Templating also causes this ^

olive sable
#

huh

gritty dust
#

Oh Sam do you have any idea of coding stuff I can do now that my school is done after Monday?

#

Idk I need ideas lol

sage crag
#

you should see hblang iterator errors

#

lol.

warped narwhal
olive sable
#

make hblang webgl compatible please

maiden geyser
tender river
#

useless errors is not a problem if you dont write code with errors in the first place

olive sable
#

ah yes

gritty dust
tender river
#

i would never

sage crag
warped narwhal
wary rover
sage crag
wary rover
opaque wharf
#

Ohhh someone gonna get crucified

sage crag
tender river
#

pascal case (LooksLikeThis) is basically only used in struct/enum/trait names

wary rover
tender river
#

most stuff is written using snake_case

opaque sigil
tender river
#

it'll probably take like a year or two ngl

sage crag
warped narwhal
#

In my humble opinion:

Types: PascalCase
Constants: SCREAMING_SNAKE_CASE
everything else: snake_case

olive sable
#

i like camelcase on most things

opaque wharf
sage crag
tender river
tender river
olive sable
#

snake case means i have to find the squigly line each time tho

#

no thats the other line

#

idk anymore

warped narwhal
#

like with (), it will come with practice

#

oh did you mean the tilde?

#

~

tender river
wary rover
warped narwhal
tender river
#

this isnt lisp

#

its nix

warped narwhal
#

close enough ๐Ÿ˜‰

sage crag
rough bloom
warped narwhal
sage crag
sage crag
opaque wharf
#

Higher order vibes

olive sable
#

oh

opaque wharf
#

And the thing is, I don't know if higher order vibes are satire or not

tender river
warped narwhal
#

do you guys want to see the worst 200 lines of rust code to ever exist?

opaque wharf
#

No

tender river
#

how did you get it from my pc

sage crag
warped narwhal
tender river
#

not hardcoding the token neuroSadge

olive sable
#

what

#

idk how i feel about that

tender river
#

multiple imports in one line

sage crag
warped narwhal
wary rover
#

Looks good to me

opaque wharf
warped narwhal
#

instead of going the java route of every import being it's own line

olive sable
#

its more readable tho

rigid snow
#

? no it's not

#

300 lines of imports

sage crag
rigid snow
#

very readable

warped narwhal
#

ah yes, 500 lines of includes mhm

olive sable
#

weve gone over this, i dont mind line usage

opaque wharf
#

Turbo Fish goes brrrr

sour harness
#

org.com.its.also.super.annoying.to.read

sage crag
#

i would rather have 300 lines of imports than glob imports

#

globs make me uneasy

tender river
#

glob imports are bad true

#

and they make lsp devs angry

rigid snow
#

fuck it, import *

opaque wharf
#
import * as Utils from './utils'
sage crag
tender river
#

C# uses globs by default

olive sable
#

wait, thats illegal

sour harness
#

import crate::prelude::* obviously

sage crag
opaque wharf
sage crag
#

modname.{item0, item1, item3: .{subitem0}} := @use("mod.hb")

tender river
#

nix has globs in this form:

let
   x = { a = 5; b = 6; };
in
   with x; a + b

(evaluates to 11 of course)

sage crag
#

how do i do 5 + 6 on my fingers

#

while using decimal

wary rover
tender river
#

this is not preferred anymore, nowadays this would be preferred

let
  inherit (x) a b;
in
  a + b
rigid snow
opaque wharf
sage crag
#

ษ“

#

oh i forgot to say

#

hblang while loops

tender river
#

you didnt

sage crag
#

damn

tender river
#

konii dementia....

sage crag
#

i forgot that i didnt forget to say

#

or did i

rigid snow
sage crag
opaque wharf
#

The error is from unused import

tender river
opaque wharf
sage crag
tender river
#

thats effort

#

i prefer just using more fingers

olive sable
sage crag
tender river
sage crag
olive sable
#

you're an oxymoron

opaque wharf
#

interface doesn't exists in JS runtime, but it exists in TS type to make sure something is adhereing to the interface defined

wary rover
#

10 jointed fingers? Have you considered playing piano?

sage crag
sage crag
olive sable
#

i have no clue what an oxymoron is and im coding in c++ so im the actual moron

wary rover
sage crag
olive sable
#

@grok play moonlight sonata

sage crag
#

do doo do doo

#

bwaa i had a can of sugary carbonated water and now i am

olive sable
#

i am

#

so true

sage crag
#

ants

olive sable
#

ants?

#

you are ants?

sage crag
#

i dont like carbonation

nocturne olive
#

How the game engine going?

wary rover
#

Oh, by the way, about unit must be lowercase or something

sage crag
tender river
olive sable
sage crag
#

mod fishies;

opaque wharf
#

WTF IS UPPER CAMEL CASE?

tender river
nocturne olive
tender river
sage crag
rigid snow
# opaque wharf You are importing just the type, not the "implementation". Example of type only ...

but that's confusing af because "just types" refer to types, what i'm thinking of is if you have

// server.ts
export const server = new Server();

// index.ts
import { type server } from "./server";

server.start(); // err: server not defined
let s1: server; // err: server is not a type (!!!)
let s2: typeof server; // ok, no err

super confusing especially with classes, a class can be a type and a value but then it can just be a type if you import type it

wary rover
#

I was almost crucified for following syntax smh

opaque wharf
olive sable
#

i would need either a global or a class variable

#

and chayleaf hates when i use either

tender river
opaque wharf
olive sable
#

fuck it, it shall be a class variable

tender river
olive sable
#

i might be misremembering, sometihn about my objects class

tender river
#

globals are bad, but if variables are scoped within a single object that you explicitly pass around theres 0 issues with that

sage crag
olive sable
#

wut

wary rover
sour harness
#

How to capitalise stuff

sage crag
rough bloom
rigid snow
tender river
olive sable
wary rover
#

I see, ok, thanks

sage crag
#

or something

#

i dunno

#

forgomt

olive sable
#

forgor

sage crag
#

im going to drink another sugary carbonated beverage

rigid snow
tender river
#

couldnt finish it

sage crag
#

my blood pressure is rising neuro3

opaque wharf
sage crag
olive sable
#

these ifdefs are getting more cursed each time

#

anyways gotta go

tender river
#

i drank korean, czech, polish, american dr peppers and they were all fine

#

the british one was so bad for some reason

sage crag
tender river
#

and i know a person from the uk who liked british dr pepper but said he couldnt drink czech dr pepper neuroCry uk is so cursed

sage crag
#

im from ermplanet

rigid snow
#

Erm ๐ŸŒ !!!

sage crag
#

time zone 1

opaque wharf
# olive sable wut

FPS. Reciprocal of (meaning 1 divided by something), mean of frametimes (meaning average of frame time)

opaque wharf
olive sable
sage crag
opaque wharf
opaque wharf
sage crag
#

ehhh

opaque wharf
#

I forgot what is the group operation called?

sage crag
#

i generally think of inverse in terms of functions

opaque wharf
#

as in mathematical group

olive sable
opaque wharf
#

Like, the inverse of matrices A is -A

warped narwhal
#

downside is that now both are included in the object files, but any competent linker should be able to deal with that

sage crag
tender river
opaque wharf
warped narwhal
sage crag
opaque wharf
sage crag
opaque wharf
sage crag
wary rover
#

It just dawned on me that people were trying to crucify me because my file name started from capital letter and not enum and was snarky about it. I apologize and will accept my crucifixion whenever it is convenient for crucifiers

tender river
olive sable
#

๐Ÿ˜‹

wary rover
#

Wrap me in aluminum foil and throw into ambers atleast

#

Some salt and pepper too

olive sable
wary rover
#

Mismatched types.
Expecting: String.
You have: String.
wtf

ebon basin
#

no this is not what it says

warped narwhal
#

what is the line throwing the error?

#

oh, remove the semicolon on the last line

#

or add return at the start of it

desert wave
#

The error messages tell you exactly what is wrong and how to fix it

rigid snow
#

implicitly returns () as its body has no tail or return expression

minor crag
#

I broke git

opaque wharf
wary rover
#

I might be dumb

opaque wharf
#

But the error is indeed clear, just not how to resolve it

desert wave
#

consider returning the local binding input

opaque wharf
wary rover
#

I understood the error of my ways

opaque wharf
#

As I said, the error is clear even for first timer, not so much on how that could be resolved

rigid snow
#

would you want the lsp to check if the last expression returns the type the function is supposed to and to point to the semicolon

rough bloom
#

rustc trying to be too helpful neuroSMH

opaque sigil
#

Weird, it's usually pretty good about detecting the extra semicolon

wary rover
#

Ok, I really tried to be a big boy and understand everything by myself, but I fail miserably. Can you please say a semicolon in which line is extra? If the whole entirety of code is shit tell me "start anew"

nocturne olive
#

You have some issues like inconsistent indent levels
And you should add empty lines between functions

rough bloom
wary rover
#

Ok, thank you very much

#

I am really thankful for help

warped narwhal
wary rover
#

It shouldnt but Ive been informed that I accidentally defined it within

#

So I am fixing it

warped narwhal
#

looks like you missed the } after trimming the input

minor crag
#

MY THINGY IS WORKING!!!!!!!

warped narwhal
#

does vscode have the equivelent of jetbrains ctrl+alt+enter?

#

to format the document

nocturne olive
warped narwhal
minor crag
#

I'm turning da weird safetensors file into da aurora format and it is actually working

rough bloom
olive sable
hoary lion
#

Wow crazy eep

wary rover
hoary lion
#

10hr

minor crag
olive sable
warped narwhal
olive sable
nocturne olive
warped narwhal
#

(also don't do the no-ping replies with me pls, I'd like to know when someone messages me)

nocturne olive
#

The entire terminal instance?

minor crag
#

Yep

nocturne olive
#

Whuh

minor crag
#

I'm amazing at python

minor crag
#

I think it died since I'm manually extracting tensors and la index from the file in pure python

olive sable
minor crag
#

It died again

#

I'm gonna try a 3rd time

warped narwhal
#

I'm not going to eat you

-# yet

opaque wharf
warped narwhal
opaque wharf
#

Oh, yeah I forgot about that lol

jolly pond
#

Hello Programming chat, I was wondering if anyone has any tips on an RVC voice sounding flat

opaque wharf
#

Then I'll do no-ping reply just to annoy you

wary rover
wary rover
#

Radeon something something software

#

It took priority over vs code

warped narwhal
#

oh lmao, when I used windows I had all of those hotkeys disabled

opaque wharf
warped narwhal
#

alt + r was really annoying in DCS

opaque wharf
wary rover
#

I will figure it out, it was just very funny to me

#

Like you expect your compiler to do something and then
screenshot saved!

minor crag
#

Turns out its being killed because it uses too much ram

opaque wharf
#

Alternatively, just add this to your workspace setting

wary rover
#

There must be a cargo command that autoformats

#

Will just find it and use

minor crag
#

Apparently loading 7 billion tensors into ram is too much

#

Or maybe its the fact I'm doing it all in pure python

opaque wharf
#

How much RAM do you have?

minor crag
nocturne olive
opaque wharf
#

If each tensor took 1 byte, that's 7GB at minimum

nocturne olive
#

You need to do a streaming approach

minor crag
opaque wharf
#

So, unless you do 4-bit per tensor, then it will require 3.5GB at minimum

#

To load it all onto memory at once. Streaming approach is processing the data in chunk somehow

minor crag
#

I'm trying to do it at FP32 since that's what my code wants

opaque wharf
#

So you can load the first 4MB, process it, do the next 4MB, etc.

nocturne olive
# minor crag I'm not that smart

You need to load a set of tensors, convert them to the new format, write them to the file you're creating, then unload them and repeat

minor crag
#

I'll be back in maybe 43 hours

nocturne olive
#

If both file formats are streamable it should be

opaque wharf
nocturne olive
#

If they aren't you're gonna need a custom disk cache

minor crag
#

I'm gonna just add 8gb of fake ram before changing my code

opaque wharf
#

You mean using swap? despair

nocturne olive
#

7 billion parameters at FP32 will take up 28GB when fully loaded into memory

stark needle
#

do not load in fp32

#

why would u need fp32

opaque wharf
nocturne olive
minor crag
#

So it crashed

#

But it died at the same point so its just being killed by the os

minor crag
nocturne olive
minor crag
#

I think it just kills stuff once it uses a certain amount of ram

olive sable
#

i may or may not be installing random exe's to get a music player in the taskbar

minor crag
#

Rip

opaque sigil
#

Don't let azaka see this

olive sable
#

im sure its fine NeuroClueless

#

im sure its fine

stark needle
#

bf16 is good enough

#

in 99.9% of use cases

#

if model is not learning ur data or optimizer or learning rate or something else sucks

nocturne olive
wary rover
#

Guys, me again. Need to borrow an outcome of input_processing into input_hub. Read borrowing syntax over and over and can't understand the issue. Every time I follow compiler's suggestion on fixing it just identifies it as another mistake. Tried to specify type and almost everything that was reasonable to try. How

opaque sigil
#

call input_processing
let input = input_processing();

opaque wharf
# stark needle ???? wym details

Don't you want to be able to get as much precision as you wanted? Imagine all the difference between 1 and 1.0000000 you could get! (/s If you still doesn't catch my drift)

wary rover
olive sable
#

taskbar has a console option apparently. taking a screenshot of it made file explorer crash tho

#

"dump memory leaks" option is not what you want to see in an os program catdespair

opaque wharf
#

Windows?

olive sable
#

yep

opaque wharf
#

Wtf

olive sable
#

classic windows

opaque sigil
olive sable
opaque wharf
# olive sable

That is not 3rd party apps? Where is that? I've never seen those menu before

olive sable
#

right click taskbar and press properties

#

im pretty sure this isnt 3rd party?

#

i do have a decent amount of external programs tho

opaque wharf
#

Huh, I think I never noticed there's a "properties" when right clicking the taskbar (my last windows version is 10)

nocturne olive
olive sable
#

waht?????

nocturne olive
#

Yep, there was at least once a memory leak in the news process that starts when you hover over the weather and news button on the task bar

olive sable
#

the worst part is that its off by default
so it knows there are memory leaks but does nothing about it

nocturne olive
#

I was just playing Terraria one day and then suddenly everything became slow, I go into task manager and see that the news process is using up 32GB + pagefile

olive sable
nocturne olive
#

Isn't that quite crazy?

rough bloom
olive sable
#

truw

#

i changed "disable modern searchbar" to true and no my taskbar is gone

#

dont think it changed anything tho

opaque sigil
#

welp i was looking through windows settings and accidentally clicked on the beta insider channel, guess i'm changing channels for a couple months or so neuroPogHD

olive sable
#

what is a beta insider?

#

liek a beta tester?

opaque sigil
#

yea, they have a couple different channels

opaque wharf
#

That was so funny wtf. "Disable modern searchbar", and MS just say "Hocus, pocus, your taskbar is now no more!"

opaque sigil
#

beta is the second most tested one

olive sable
opaque sigil
#

idk if you're aware but you can turn off web search in the registry

rough bloom
opaque wharf
olive sable
#

ye but i cant be bothered to figure out what the actual fuck microsoft has done witht hat ungodly registry

opaque wharf
olive sable
#

i do have explorerpatch

opaque sigil
#

what, you don't go hunting inside the registry

olive sable
#

no

#

i liek hunting the setting but microsoft handicapped the settings neuroSad

opaque sigil
#

there's also group policies if you're not running the home edition

olive sable
#

im running the pro version coolfumo

opaque wharf
#

gpedit.msc should be available then

olive sable
#

the what?

opaque wharf
#

Group Policy Editor

#

GPEdit, don't know why the msc extension tho

olive sable
#

didnt know that existed

opaque sigil
#

have fun

opaque wharf
#

Happy hunting

opaque sigil
#

there's a lot in there

opaque wharf
#

I am forced to buy windows because OEM

safe path
#

oi

opaque wharf
#

The French has arrived

olive sable
#

hello neuroWaveA

safe path
#

that is piracy evilStare

olive sable
opaque wharf
#

Vanor here thinking every activation server is piracy

uneven pulsar
olive sable
#

i actually didnt pirate it

opaque wharf
olive sable
#

oh

#

ughhh

safe path
#

OhISee my bad then, but local server activation is sus

#

typically your school should be hosting their own activation server

#

it being local isn't normal

wary rover
#

Guys I cannot express my joy due to joy value exceeding joy expression limit

opaque wharf
#

It's still local no in the context of networking?

olive sable
#

they dont have an actual server, they're poor

hoary lion
#

lol

safe path
#

???

opaque wharf
#

Then...

hoary lion
#

something is not right

uneven pulsar
olive sable
#

no

hoary lion
#

how can a nonexistent server be a server

uneven pulsar
hoary lion
#

by making it local

safe path
#

chat icl i think bro's school participated in piracy

opaque wharf
#

Alright sam, stop

olive sable
#

bro i didnt know

safe path
#

ya no problem

olive sable
#

the closest thing they have to a server is a ubiquity network switch

safe path
#

(real) activation servers have legit legal uses, so i did catch it slightly too early by assuming things lol

olive sable
#

nah its fine

safe path
#

but that being said, your school putting an activation server on your pc is PepeSus

uneven pulsar
#

tbh the school doesn't know admin management

olive sable
#

half the teachers use pc's with unactivated windows so ye...

uneven pulsar
uneven pulsar
#

i told you

#

my school used to have pcs with rtx 3070s๐Ÿ’€

olive sable
#

bro what?

uneven pulsar
olive sable
#

based

#

i mean

#

no you should have been working

hoary lion
#

niuh

uneven pulsar
olive sable
#

on one hand the principal has a curved ultrawide and is decent with tech, on the other hand their networking is in a dire state

#

all the teachers pc's use liek a celeron n3020

#

that doesnt exist so it was probably a n3050

opaque wharf
#

If they run Linux, honestly that's enough for office work

olive sable
#

nope

#

full windows 11

#

and it lags during powerpoints

#

moral of the story i didn't do piracy, my school did neuroHypers

inner pike
#

windows 11 is ass

olive sable
#

facts

#

im probably changing to linux in a bit

#

maybe

#

ill keep the windows install as a dualboot just in case

warped narwhal
#

lmao that's like the polar opposite of what my old work had.

#

They had I7 13700T's for the computers that do nothing but display the diary of who is still to come into the restaurants

nocturne olive
warped narwhal
#

the PC's that could really have been a raspberry pi, cost $1000 each

#

better yet, they used the kiosk mode of windows, so it was super locked down

#

although they made the major blunder of blocking command prompt, but not powershell, hence how I got it's specs

opaque wharf
#

If you don't need any specific software in windows, then I think you'll be fine in linux

warped narwhal
#

just don't use like arch or gentoo, stick with a stable beginner distro like ubuntu lts

opaque wharf
#

Like, Adobe, or MCAD or any other proprietary program

rough bloom
warped narwhal
#

the only logical solution

opaque wharf
#

I always wonder wtf did people do with their arch setup that it breaks

warped narwhal
rough bloom
#

yeah, having outdated packages is a common one

warped narwhal
#

or sudo pacman -Syuw followed by sudo pacman -S [package]

opaque wharf
rough bloom
opaque wharf
#

Or was is -Su?

warped narwhal
#

-Sy

#

-Su is fine (although a bit weird)

opaque wharf
#

Because I always do pacman -Syu to update, and just pacman -S [package] to install

warped narwhal
#

nah, I always use -Syu even when installing packages

opaque wharf
#

Is it because I'm on a laptop? But my NUC and server doesn't experience instability too

warped narwhal
#

PSA to arch users to run pacman -Qe every once in a while and remove the packages you no longer need

rough bloom
#

not reading the Arch Linux news is also a potential cause for failure, though actual breakage is rare

With the recent split of kwin into kwin-wayland and kwin-x11, users running the old X11 session needs to manually install plasma-x11-session, or they will not be able to login.
from yesterday LULE

opaque sigil
#

informant my beloved

warped narwhal
opaque wharf
#

RIght, X11. I don't use it so maybe that's why

#

My thought process is "if valve is using it, there will be more demand for it" lol

stark needle
#

why did i name it like this

olive sable
#

since you censored it i guess its for work?

stark needle
#

Lmao

#

swear word

olive sable
#

oh lmao

opaque sigil
#

it clearly says Buhh

olive sable
#

i have seen commit messages for companies before

#

some are clean but some are...

maiden sentinel
#

Anyone here knows why Google Forms has a different entryID compared getting it from a JSON?

olive sable
#

i love my search not being above the windows logo

nocturne olive
#

Windows 11 icons with Windows 10 start menu looks so weird

olive sable
#

it does ye

#

but i need the win10 version to use toolbars

nocturne olive
#

Windows 11 really is just a downgrade

tender river
olive sable
#

i think i might just put it left or it breaks

#

i got used to it being centered too

#

when i press search it opens the win11 search aquacry

olive sable
warped narwhal
#

no low bitrate funk music?

#

I'm dissapointed

olive sable
#

the low bitrate music is reserved for my project showcases

#

i should add elevator music for the rest lmao

#

this is basicly windows 10.7 now

opaque wharf
#

I love it when Sam is doing cursed shit

olive sable
#

what is this red in apo?

nocturne olive
#

Is that an audio curve?