#programming

1 messages · Page 252 of 1

hard raptor
#

idk.. it was just an example

wary stone
#

Anyone know the difference between python and micropython

obsidian mantle
#

oh i get it

opaque sigil
#

cpus have more sophisticated branch prediction, things like out-of-order execution and extra caches and run at much higher clock speeds

obsidian mantle
opaque sigil
#

gpus do have pretty smart schedulers but it's nowhere near the cpu's ability

obsidian mantle
#

branch prediction

olive sable
#

the main benefit of gpu's, is when you have a massive amount of calculations that don't need input or output from other calculations. the needed data already exists and we just have millions of outputs we want

hard raptor
#

however i wouldn't be surprised if the x86_64 spec has a thing for calculating powers either directly or semi-directly

opaque sigil
#

they go all in on parallel execution

obsidian mantle
olive sable
#

a single math operation on a cpu is an order of magnitude faster on cpu cuz of the higher clock speeds

opaque sigil
#

i should fix my chapter on gpu programming enub

olive sable
#

if you need to do that operation 10 million times you'd use a gpu cuz it gets dfone in less clocks

obsidian mantle
#

so cpu cores are higher clock speeds too

olive sable
#

yes

#

gpu has mhz, while cpu is GHz

obsidian mantle
#

yeeah but its like

#

700-900 mhz

#

vs 4 ghz

#

so not actually x1000

#

more like x5-10

opaque sigil
#

gpus aren't clocked that low Awkward

#

but it's still about half or so

obsidian mantle
#

neurOMEGALUL i just remembered numbers from that old laptop i had which i tried to overclock once

#

it has 700 mhz i did 750 and it died in a month

opaque sigil
#

okay yeah some laptop gpus will be this low

olive sable
#

my 3090 has a boost clock of 1.7GHz, my 5950x does 4.6Ghz

#

so 2-3 time more

obsidian mantle
#

so technically gpus are ghz too now

opaque sigil
#

my 5070 ti boosts to 2.8ghz or so

#

they've been making big jumps lately

#

lower end gpus sit comfortably above 3ghz too

#

either way

hard raptor
#

i wrote a controllable 3d renderer for the CPU once tho.. but i had to do some wierd complex stuff to basically calculate about 10 different things with just 1 cycle by basically merging the data and split it apart in the other function where the piece of data was needed

olive sable
#

basicly, cpus are sequentual, gpus are parallel

opaque sigil
#

i hate my dumb little processor it doesn't make sense neuroSadge

clear sedge
#

my 2080 ti is 1.35ghz, i think it boosts to ~1.5ghz?

hard raptor
#

i needed to multi thread it too cuz otherwise it still wouldn't make a difference

obsidian mantle
opaque sigil
maiden geyser
#

how do they do branch prediction

opaque sigil
#

black magic

obsidian mantle
#

what even is branch prediction

#

its not like its actually carrying boxes or something glueless and it picks up the box before it was ordered

#

or is it?

nocturne olive
opaque sigil
opaque sigil
#

speculative execution is wild

obsidian mantle
#

so it precomputes things?

#

before they were ordered

opaque sigil
#

yes

maiden geyser
opaque sigil
#

at the very least it'll prefetch the next instructions/data

obsidian mantle
#

thonk do they use ai for it now

#

or is it too slow

opaque sigil
#

lots of statistics and heuristics

nocturne olive
opaque sigil
#

and a bit of voodoo magic

obsidian mantle
#

but 70 series are upper middle level

#

4090 was jacked

olive sable
#

in pure flops performance, a modern gpu will outdo a modern cpu. my 3090 does 35.5 TFLOPS while my 5950x does 1.2 TFLOPS
its just that sending data to the gpu, using a whole SM, and getting the data back from the pgu, just isnt worth it for non parallel math

nocturne olive
#

5080 is mid-range

#

It's literally quite close to precisely half of a 5090

obsidian mantle
#

oh thats why it costs x2

olive sable
#

80 class used to be good

obsidian mantle
#

hmm

olive sable
#

they massacred my class

#

phrasing could have been better but eh

obsidian mantle
#

the main issue with 5080 vs 5090 as i see it is literally 16vs32 gb

olive sable
#

yep

#

nvidia refuses to give us vram

opaque sigil
#

dw they'll give you a 5080 super for the cheap price of 1600€

olive sable
#

5080 should have been 24GB

obsidian mantle
#

ooh so they made 6000s and some blackwell shit

#

which made 5080 become mid

opaque sigil
#

those are 2 completely different categories of cards

olive sable
#

6000s are non-gaming cards iirc

obsidian mantle
#

thonk then how is 5080 mid if its literally top2

#

gaming-wise

clear sedge
#

based cppreference

obsidian mantle
#

just because of memory i guess

opaque sigil
#

price

#

it's always the price

olive sable
#

even if its 2nd, the distance between 5080 and 5090 is too big to call it high-end

rough bloom
olive sable
#

imo

hard raptor
opaque sigil
rough bloom
#

kinda, yeah

olive sable
clear sedge
#

🐸

olive sable
#

🐸

opaque sigil
#

it's kind of a no-brainer when you can buy almost 3 of those for the price of a single rtx pro blackwell neuroCry

hard raptor
uneven pulsar
#

AFTER long think about
I decide i will upgrade my server 4 gb ram to 16 gb ram
A new gpu

rough bloom
#

you just have to deal with less VRAM + no NVLink

nocturne olive
#

Well turns out VRAM on board a GPU is very imporetant

uneven pulsar
#

I don't intrest on gaming so I will go server build

rough bloom
nocturne olive
#

That's crazy

#

I need more GPUs
But poor

#

According to Elvyn 48GB 4090D is good but it's also like really expensive

rigid snow
opaque sigil
dry charm
#

I had to refresh for it to work

rough bloom
#

same

dry charm
#

but this is nice, we finally get NTFS updates

rough bloom
#

The old read-only ntfs code is much cleaner, with extensive comments,
offers readability that makes understanding NTFS easier. This is why
ntfsplus was developed on old read-only NTFS base
indirectly calling out ntfs3 code for being shit LULE

#

Public utilities include fsck[2]
actually huge
chkdsk probably still does more than this implementation but AFAIK Linux just didn't have a way to recover from NTFS errors before

olive sable
opaque sigil
#

yeah it kind of just falls over and gives up om

#

literally just goes "hey so this drive is kinda broken, go run chkdsk and come back"

rough bloom
#

yeah

#

failing to mount a broken filesystem is still the correct behavior, but fixing it shouldn't require starting Windows just for chkdsk

#

there's ntfsfix but that will also just tell you to boot into Windows half the time

olive sable
#

i know coil whine is harmless, but it sometimes scares the shit out of me. im just moving my viewport in blender, you're getting 16 floats sent to the gpu. you don't need to make noise over 16 floats

rigid snow
#

idk what's wrong but i get automatic chkdsk each time i boot. also "restart to fix drive issues" notification spam. as far as i checked absolutely nothing is actually wrong with the drive

#

i just accepted it lmao

#

windows logs don't say anything useful either

#

haven't encountered the need to mount the fs in linux

#

would imagine it never works

rough bloom
#

I don't think it'll mount right now if it's marked as requiring chkdsk, ye

opaque sigil
#

i remember when i first used my ntfs games drive on linux it complained about the drive being corrupted so i just used ntfsfix to clear that bit and make it shut up
still hasn't blown up OK

olive sable
#

guitar is a bit high poly atm, but its fine imo

#

2907 tris total. 1637 of those in the bass guitar

stark needle
#

you've gotta be kidding me

#

openai browser

olive sable
#

they need to have some type of exceptional feature for me to use it over firefox

obsidian mantle
#

let me guess

#

voice control

#

search enhancements

#

"jarvis show me really good youtube video"

woven quail
#

and AI for everything ig

stark needle
#

all for 1 interview

opaque sigil
gritty dust
olive sable
#

i love when diagrams have measurements, and just don't follow them

olive sable
#

drums Minamhm

gritty dust
olive sable
#

🥁 neuroDrums

uneven pulsar
uneven pulsar
#

GOOGLE CHROME IS AMONG FAVOURITE OF ALL TIME

sick owl
#

Worth a vote @cosmic sphinx

uneven pulsar
#

I hate to go hardware side

#

ANYONE HAD HAIR DRYER?

olive sable
#

i have used a hair dryer before yes

uneven pulsar
#

I will use hairdryer to heat back cover of phone and remove battery

olive sable
#

be carefull

obsidian mantle
#

NeuroHuh why are "wasted tokens" a problem when you run it locally

#

i understand when you pay for tokens

#

but

#

is local version limited too?

#

or this is regarding the electricity bill

true hemlock
#

most linear algebraic math, bit shifts, arithmetic

all are done in vectors and matrices though since they're SIMD
i personally wouldn't even consider them "cores". they're just arrays of ALUs. i'd consider the actual core being the scheduler itself

uneven pulsar
#

Hard break phone okay i revive it

olive sable
#

sure, but dont experiment too much

#

lithium batteries like exploding

true hemlock
obsidian mantle
#

thonk but... cant you turn everything into matrices and vectors?

true hemlock
#

not really

#

i mean, you can but

#

if its practically 1x1 matrix

#

just use a cpu

uneven pulsar
true hemlock
#

not exactly accurate, CPU cores also have vector instructions and multi FP unit activations (IPC)

opaque sigil
#

yesn't enub

true hemlock
opaque sigil
sage crag
#
poll_question_text

which do you prefer

victor_answer_votes

9

total_votes

9

victor_answer_id

2

victor_answer_text

fn(x: i32): i32 return 101

olive sable
#

so basicly, cpu's havce optimizations so they dont have to do the full 2 million pixels / 16 cores as amount of times needed to run, but they're still slower

nocturne olive
true hemlock
olive sable
#

bro

#

how do you know?

true hemlock
# olive sable ye but so do gpus no?

nah, gpus have higher cluster and is more optimized for uniformity for each schedulers
cpus are more flexible, but their vector unit is wayyyy smaller

olive sable
#

get out my walls

true hemlock
#

avx 2 is only 256 bit

half socket
true hemlock
#

that's just 8x 32 bit unit... per one expensive core

#

whereas each SM/CU on a GPU is packed with 4 schedulers usually, each having 32x 32bit units

olive sable
#

Mods can we ban koko for spying on me?

#

im pretty sure thats illegal or something

nocturne olive
#

Every day I go more and more crazy about pitch curves AAAAAAAAAAAA

olive sable
#

ok imma watch the new spy x family episode

#

bye

uneven pulsar
olive sable
#

Explosion the new one

#

S3 ep 3

uneven pulsar
true hemlock
nocturne olive
nocturne olive
sage crag
nocturne olive
#

-# Surely I'm not crazy

obsidian mantle
#

is oil cooling a good idea for pc

#

like they do in transformators

#

i think i seen a video long ago how someone filled pc case with oil

sage crag
#

There's No Point™

obsidian mantle
#

i mean for overclocking

#

will it still burn in that single point regardless cause not enough heat being taken away

sage crag
#

you can cool things by submerging them in mineral oil yes, but its only really practical for large permanent installations

nocturne olive
#

Hopefully soon enough I'll be able to do good pitch curves one-shot more consistently

opaque sigil
#

does mineral oil even cool anything

obsidian mantle
#

thonk why wouldnt it

#

absorbs the heat and all

#

cycles

sage crag
obsidian mantle
#

like water cooling but more dense

sage crag
#

mineral oil is much less conductive to heat than water

#

like, by 5 or so times

#

additionally its more viscous

#

so its slower under convection which means that the heat isnt moved away as fast

obsidian mantle
#

nono lets say we cycle it

opaque sigil
#

i guess you just have so much of it to kind of make up for it

obsidian mantle
#

no convection

nocturne olive
#

Anyway now to take a break from NeuroSynth, osu or dataset?

sage crag
obsidian mantle
#

do i not get convection word right

sage crag
#

did you miss the part where the thermal conductivity of water is about 5x more than than mineral oil

#

additionally it being more viscous makes it impractical for usage in a heat pump

obsidian mantle
#

will distilled water work

sage crag
#

no, you cannot submerge a machine in distilled water

uneven pulsar
#

Still I'm school

sage crag
#

it will rust components and then it wont be distilled anymore

obsidian mantle
sage crag
#

and then it will become conductive and destroy all of your parts

obsidian mantle
#

what if we make it golden or smth

#

rustproof materials

sage crag
#

you cant make everything out of gold

obsidian mantle
#

for science

sage crag
#

even if you do, distilled water only remains distilled without the presence of atmosphere

obsidian mantle
#

vacuum

uneven pulsar
sage crag
obsidian mantle
#

but distilled water isnt affected by electrosis enub

#

its the whole point

#

it has no ions

uneven pulsar
#

TIME (11:46 PM ) OR 23:46
Bye

obsidian mantle
#

it must rust to get them but as i said we can use rust proof things

obsidian mantle
#

idk plastic and gold

sage crag
#

distilled water is still somewhat conductive

#

nothing is a complete insulator

obsidian mantle
#

because it has ions out of imperfect distillation

sage crag
#

no

#

because its a substance

obsidian mantle
#

who will carry the electric current

sage crag
#

nothing except a true vacuum is perfectly insulating

obsidian mantle
#

neutral water molecules?

sage crag
#

the water molecules

#

it will decompose into hydrogen and oxygen over time

#

then those will become ions in solution

obsidian mantle
#

why will it decompose

sage crag
obsidian mantle
#

but it doesnt run through the water itself

#

at all

#

no ions

sage crag
#

my god did you listen to what i just said

obsidian mantle
#

yes

#

you said that water will decompose because electricity will run through it

#

while electricity cant run through it without ions

#

contradiction

sage crag
#

no, even pure water is still somewhat electrically conductive

#

i said this 3 or so times already

obsidian mantle
#

yes because its not pure

sage crag
#

oh my god

#

either way, water self-ionises

tender river
#

eggnog

sage crag
#

The self-ionization of water (also autoionization of water, autoprotolysis of water, autodissociation of water, or simply dissociation of water) is an ionization reaction in pure water or in an aqueous solution, in which a water molecule, H2O, deprotonates (loses the nucleus of one of its hydrogen atoms) to become a hydroxide ion, OH−. The hyd...

#

it will undergo electrolysis

#

i will not say it again

sage crag
obsidian mantle
#

ook this closes it i guess you are right

#

but it cant be fast

#

i guess?

#

is it even good

sage crag
#

i would expect directly submerging a pc in water would be worse than using a heat pump

obsidian mantle
#

NeuroPoggers diamonds

sage crag
obsidian mantle
#

water is 700 times worse than copper neuroAware

stray dragon
#

water fixes both of those

olive sable
#

AINTNOWAY time to put my pc in boron arsenide

obsidian mantle
stray dragon
#

the heat doesn't move into the water super fast, but the water stays relatively cold for a LOT longer, and it can just move away when it's hot

obsidian mantle
#

dissolving the heat

olive sable
#

the future of cpus Minamhm this bad boy has all the thermal conductivity

stray dragon
#

submerging pc in oil does actually work, and quite well

obsidian mantle
#

enub im not suggesting to submerge it into liquid copper

olive sable
#

it was also neuroAwareA

stray dragon
#

also: heat pipes transfer heat faster than just a line of raw copper

#

thermal conductivity isn't everything

olive sable
#

heat pipes have gas inside them

stray dragon
#

yeah

#

they transport the heat along with the gas

olive sable
#

gas / fluid

stray dragon
#

wicking effect is neat

olive sable
#

phase changes

rough rover
amber fractal
#

Half of it is gold, so also has an electric problem

rough rover
cosmic sphinx
obsidian mantle
amber fractal
# amber fractal Half of it is gold, so also has an electric problem

The actual answer will probably depend on what mods you have, sadly. Like in silent gear it is applied to be electroplated, also the same mod somehow puts it in a glass. One of the create addons for generators (maybe both) have netherite have a higher tier (in this case coils) then gold. Nothing off the top of my head for heat.

cosmic sphinx
rigid snow
#

should i download

olive sable
rigid snow
#

so probably a good insulator then

#

so the opposite

olive sable
#

gold is like 310 and i dont imagine "ancient debris" has too high of thermal conductivity

olive sable
rigid snow
rigid snow
#

underneath

olive sable
#

ok ye, but they also have daimond underneath

rigid snow
#

yep

olive sable
#

i thought the point was netherite, not netherite sword or whatever

rigid snow
#

but the sword does not burn in lava

#

while still having wood

olive sable
#

ok but

#

cactus

#

if i throw a bucket of lava in a catus, the cactus wins

#

if i throw a cactus into lava, the lava wins

#

does netherite cover the handle of the sword?

rigid snow
#

the color of the handle is different on the netherite ones so i would assume so

olive sable
#

im having a fight with gemini about this rn

rigid snow
olive sable
#

ill ask chatgpt instead

rigid snow
opaque sigil
rigid snow
#

ICANT this looks so stupid

olive sable
#

ew

olive sable
#

chatgpt jsut agreed that the handle is in fact coated

lost hill
rigid snow
#

btw yes they want you to use chatgpt as the search engine

olive sable
#

hell no

pliant palm
#

for desktop/home computers

rigid snow
olive sable
lost hill
#

That's why they wanted to buy Chrome so bad. Scrapping Google data for ChatGPT Search

rigid snow
#

not the default option though

lost hill
olive sable
#

at least its not firefox

lost hill
#

I can see some fanboys pushing themselves to use it, see how SearchGPT fails, and then use the same browser for a Google Search query

rigid snow
#

NAAAAHHHHHHH

#

THE SIDEBAR STAYS

lost hill
rigid snow
#

see the screenshot

#

this is so silly

lost hill
#

At least you may collapse it…

#

I suppose…

rigid snow
#

ye

#

it is by default

#

but it's global

lost hill
rigid snow
#

its just global, you close it and it stays closed, you open it and it stays open

amber fractal
#

As a vertical tabs user, that is nothing new. But boy do I wish it had the option to be combined with tabs.

rigid snow
rigid snow
lost hill
cosmic sphinx
lost hill
# rigid snow

Thanks for being the sacrifice for Neurocord. We'll never use this junk

amber fractal
lost hill
#

I can imagine Sam going on the stage and saying something like:

I bet you didn't think that Atlas was actually wholly generated by GPT6! Well, guess what?

rigid snow
#

wait you can it opens the latest chat when you click the "ask chatgpt" thing

lost hill
rigid snow
#

absolutely useless

#

what's the point

lost hill
nocturne olive
#

Oh my god I just found out why NeuroSynth has been lacking range for so long

#

I got A#5 and more

rigid snow
#

SCHIZO A#5

rigid snow
#

i do not see any point whatsoever

#

comet clears because it can actually do stuff

#

ai browsers are stupid anyways. just seems like a scheme to make people use chatgpt more

#

depend on it more

sage crag
rigid snow
#

jarvis go to my block list, then for each account unblock them and send a hate reply to 10 of their latest posts then block again

sage crag
#

rigid snow
#

holy backread

olive sable
#

i dont think i have many people blocked

#

if at all

#

its only art bots or scammers

#

and scammers dont count as people

rigid snow
#

back when twitter rebranded i used to try to fight the barely related tiktok spam engagement bait slop in replies by hiding replies from those accounts

olive sable
#

i dont use twitter evilShrug

rigid snow
#

every reply section i opened was just walls and walls and walls of [This reply is from an account you muted.]

nocturne olive
opaque sigil
#

@tender river you know too much about c++ for your own good, is it even worth avoiding virtual functions assuming i don't need to call them like crazy enub

#

i'm very much tired of doing shit like this neuroCry

olive sable
#

"virtual functions"? neuroLookUp

rigid snow
#

i mean click stuff for you

#

and shi

opaque sigil
rigid snow
olive sable
opaque sigil
#

uhhh

#

i suppose kind of, it saves the pointers to the implementation in a vtable behind the scenes

olive sable
#

interesting

#

"adds runtime overhead" means i wont be using it tho

opaque sigil
#

the alternative is template hell enub

tender river
opaque sigil
#

i think i should just scrap the idea of keeping the implementation in the class and keep the kernel completely separate

tender river
#

also a lot of the time you can just hardcode the constants but idk if thats the case for you

lost hill
olive sable
#

what in gods name is youtube doing AquaCry

#

im getting sick of these AB tests

opaque sigil
#

grouping them into a struct is a good point actually though

#

oh look it's the new ui

olive sable
#

no

#

ew

#

refreshing the page made it go back to how it used to be neuroHypers

lost hill
# olive sable im getting sick of these AB tests

Get strapped because it will arrive to everyone.

They were disappointed that they couldn't switch related videos and comment sections to promote engagement because of the community backlash, so now they made it so in the new UI you cannot scroll down in full-screen mode and have to open a panel of related videos instead with comments on the right, just like on mobile

olive sable
#

what?

#

related videos need to be on the right

obsidian mantle
#

neurOMEGALUL they tried to move comments?

olive sable
#

there is no room for debate on this

obsidian mantle
#

to the right??

olive sable
#

they tried to put comments on the right and related videos underneath if i understand correctly

lost hill
obsidian mantle
#

but video is wide

#

and comments are wide too

lost hill
olive sable
#

if they move it i will find an firefox add-on to put it back

obsidian mantle
olive sable
#

im getting absolutely fuckign sick of youtube changing something every 2 weeks

#

it was good how it was

#

stop

#

i dont like changes

lost hill
#

I hate their new icons too

cosmic sphinx
#

meh

#

the only good thing about yt's new video ui

#

is that it doesnt gray out anything when you hover over it anymore

#

ui visibility is fucked, but works for me

olive sable
#

who asked for these changes?

#

literally nobody did

lost hill
olive sable
#

oops

open copper
#

unfortunate spelling

olive sable
#

i made a typo and set of automod

#

actually i made a lot of typpos

obsidian mantle
#

Its always the management

olive sable
#

my bad

open copper
#

lol its fine

opaque sigil
#

pls understand, that one manager really needed their promotion

obsidian mantle
#

nub what was it

olive sable
#

ye i cant really say it can i

nocturne olive
#

!! BAD TUNING WARNING !!
NeuroSynth holding A#5 and hitting C#6 with no dropped notes

obsidian mantle
#

Why are these notes difficult

#

Isnt it just different frequency or smth

#

Or is it something like "too high" or too low

nocturne olive
#

Well I had a config set wrong, so the training environment and inference environment mismatched

#

With this magical config NeuroSynth goes from average to insane

cosmic sphinx
nocturne olive
clear sedge
#

hmmmm.

sage crag
#

ahahahaa

#

ahahhhahhahahha

#

metaprogramming in hblang allows you to do uh

obsidian mantle
#

And they said cpp is complex

opaque sigil
#

i don't get it, is as_ref automatically set by dyn.Dyn

opaque sigil
sage crag
opaque sigil
sage crag
#

if i could it would look like this:

Test := Dyn(struct {
  a := fn(^@CurrentScope(), i32): i32;
})

Obj := struct {
  $a := fn(this: ^Obj): i32 return 101
}

main := fn(): i32 {
  a := Test.as_ref(&Obj.())
  return a.a()
}
#

and the way this could be used is for runtime polymorphism

olive sable
#

neuroCatUuh does this version have runtime overhead?

sage crag
opaque sigil
#

now that makes more sense

olive sable
#

oh

sage crag
#

its the same in principle as any kind of dynamic dispatch

rigid snow
#

3 mew messages

olive sable
olive sable
#

2

#

3

#

3 more now

rigid snow
sage crag
#

if you want no runtime overhead you have

$is_test := fn($T: type): bool {
  return @has_decl(T, "a") // pretty much a stub here
}
Test := @Any(is_test)

A := fn(x: Test): i32 {
  return x.a()
}
#

the reason to choose between runtime overhead and no runtime overhead is usually code size but it can also be for environments where you dont know the types of something at compile time

olive sable
sage crag
#

this is the same way it works in most languages

olive sable
#

so if i wanted do run either function 1 or 2, based on a bool, it could be compile?

sage crag
olive sable
#

too bad i dont use hblang

rigid snow
#

she's a 10
but she's not blazingly fast (🚀), not memory safe and doesn’t have zero cost abstractions

is a thing i willingly typed out into my notes on july 20th 2022 at 21:16 utc

opaque sigil
sage crag
#
// compile time dispatch using function values
A := fn($x: fn(): i32, $y: fn(): i32, det: bool): i32 {
  if det {
    return x()
  }
  return y()
}

// runtime dispatch using function pointers
B := fn(x: ^fn(): i32, y: ^fn(): i32, det: bool): i32 {
  if det {
    return x()
  }
  return y()
}

A(fn0, fn1, true)
B(&fn0, &fn1, true)
#

same deal really, one dispatches at compile time one at runtime

#

in principle you can do the same in c or c++

#

though it wont look as nice as this

olive sable
#

i mean, in c++

#

nothing looks nice

#

its all pain

rigid snow
olive sable
#

but i cant fully read hblang either so i have to try really hard to understand the code examples

sage crag
#

self.prehopjpokpppppppppppppppppppp

sage crag
#

do you want to read the code for the vtable NeuroClueless

olive sable
#

idk what vtable is

rigid snow
sage crag
#

yeah

#

opaque sigil
#

oh cool discord won't let me download the file deliv

sage crag
# sage crag

this sucks but its going to get better fear not

opaque sigil
#

maybe i should look into what broke after all

olive sable
opaque sigil
#

it won't open links in the browser either

#

and idk who to blame

rigid snow
#

me

olive sable
opaque sigil
#

that's a vtable alright

olive sable
#

a vtable is what a vtuber sits at to eat vburgers while watching vyoutube

sage crag
#

there is an easier way of doing this now mabe

#

soon

rigid snow
olive sable
#

its a vpaid vscription

#

vbucks

sage crag
obsidian mantle
#

Its something about runtime dispatch

sage crag
#

obsidian mantle
#

Does it contain things you can use

#

During this dispatch

#

Like a list

#

A.. table neuroNOWAYING

olive sable
#

who puts a table in their cpu?

sage crag
#

the simplest vtable just contains pointers to all the functions a type contains

rigid snow
sage crag
#

more complex vtables are used in languages with classes, like c++, to do runtime inheritance

olive sable
#

wait

#

a table

#

is jsut a matrix

sage crag
opaque sigil
sage crag
#

LUTs are cool neuroPogHD

obsidian mantle
sage crag
#

paging table neuroBread

olive sable
#

brothers i was joking

#

i put tables in my cpu all the time

opaque sigil
sage crag
#

why would you do that

#

tables are wooden and have bad thermal conductivity

olive sable
obsidian mantle
#

Who uses vtable, the program itself or the other program

#

Uuh bad worded it

olive sable
#

what

sage crag
#

what

obsidian mantle
#

The examples konii posted

#

Do they use it

olive sable
#

if a table is a matrix, then i use glm i guess

sage crag
#

what

obsidian mantle
#

Is it not an interface

olive sable
#

what

obsidian mantle
#

Why not put it inside of the program right away

sage crag
#

?????

obsidian mantle
#

Here.

olive sable
#

i dont understand what is ahppening

#

im severly confused

sage crag
#

dont worry i am too

olive sable
sage crag
#

nonsense words

obsidian mantle
#

Let me backread ill formulate it better

opaque sigil
#
  • define interface
  • implementations fill in vtable
  • interface calls functions inside vtable
rigid snow
#

explode

olive sable
#

what is a lut?

sage crag
#

look-up table

olive sable
#

oh

#

why do you hate luts?

obsidian mantle
#

So implementations fill the table, its not filled right away

opaque sigil
#

you can have default implementations but yes

obsidian mantle
#

Ooh

olive sable
#

images are just luts for your gpu yujihmm

rigid snow
obsidian mantle
#

I cant formulate it differently but you solved my question

olive sable
#

so a table is a lut?

#

no a lut is a table

obsidian mantle
#

What is lut catdespair

olive sable
rigid snow
#

i am feeling so mischievous today

obsidian mantle
#

Oh

rigid snow
obsidian mantle
#

I missed that part of chat neurOMEGALUL

olive sable
#

i thought i didnt hit my head when i epicly crashed my bike this morning, but maybe i did

obsidian mantle
#

Vtable is lookup table NeurOhISee got it

olive sable
#

so what is special about a vtable that makes it have a special name?

obsidian mantle
#

Virtual methods only or smth

rigid snow
# rigid snow

i have never heard “lut” being used to refer to anything except for these

#

which is a lookup table

#

but for colors

olive sable
rigid snow
#

basically a color grading preset

obsidian mantle
#

Virtual functions are something different from normal functions

#

I forgot why

rigid snow
#

or photo

sage crag
#

they arent type checked

obsidian mantle
#

Is it runtime vs compile time?

rigid snow
olive sable
sage crag
#

you tell the compiler "trust me this is the right function signature"

#

and then it dispatches at runtime

nocturne olive
opaque sigil
#

i love how bs function pointers are

sage crag
#

its pretending that an arbitrary location in memory is code essentially

obsidian mantle
#

So its just a pointer

opaque sigil
#

like how you can literally just cast a buffer to one and it'll happily take it

sage crag
rigid snow
#

like the exact kind i sent

olive sable
#

post processing is for people that cant make their game slook good

#

skill issue

rigid snow
#

bro

#

color grading

sage crag
rigid snow
olive sable
#

you dont need to do that

rigid snow
#

what

sage crag
rigid snow
#

do you know what color grading means

sage crag
#

i dont think so

obsidian mantle
#

Gradienting

rigid snow
sage crag
olive sable
#

you define your texture as srgb and then its not your problem anymore if the user has wrong display settings

sage crag
#

rigid snow
sage crag
#

#

its nothing to do with the display

obsidian mantle
#

What does s stand for in srgb

sage crag
#

standard

olive sable
rigid snow
#

Color grading is a post-production process common to filmmaking and video editing of altering the appearance of an image for presentation in different environments on different devices. Various attributes of an image such as contrast, color, saturation, detail, black level, and white balance may be enhanced whether for motion pictures, videos, o...

#

read ALERT

sage crag
#

how many problem are solved by people just using wikipedia

#

so many

#

In computer programming, a virtual method table (VMT), virtual function table, virtual call table, dispatch table, vtable, or vftable is a mechanism used in a programming language to support dynamic dispatch (or run-time method binding).
Whenever a class defines a virtual function (or method), most compilers add a hidden member variable to the c...

obsidian mantle
#

enub there are environments where rgb is not just 3 numbers 0..255?

sage crag
#

In object-oriented programming such as is often used in C++ and Object Pascal, a virtual function or virtual method is an inheritable and overridable function or method that is dispatched dynamically. Virtual functions are an important part of (runtime) polymorphism in object-oriented programming (OOP). They allow for the execution of target fun...

olive sable
olive sable
#

if the colors are wrong my texture is wrong

#

i fix the texture then

sage crag
#

oh my god

olive sable
#

im not gonna make the gpu do more work on every single frame cuz i fucked up my textures

obsidian mantle
#

We can wikipedia everything and then discuss nothing NeuroSip not fun

rigid snow
sage crag
rigid snow
olive sable
rigid snow
#

same vibes as superbox saying mastering songs is stupid

obsidian mantle
#

So it will change accordingly to different monitors to look better NeurOhISee

sage crag
sage crag
#

all monitors have to do it the same way

#

so that images look the same

olive sable
obsidian mantle
#

Oh so the opposite? "Do this without any postprocessing"

#

They do it the same way but it can look different

#

Since different monitors NeuroSip right?

sage crag
rigid snow
sage crag
sage crag
sick owl
#

Running some tests on a nice local model I overlooked a while ago

#

Anyone got a good proof I can run by it?

obsidian mantle
#

Different approach different result

olive sable
obsidian mantle
#

Probably depends on how the artist sees it

#

Or its just faster

rigid snow
#

like

#

irl

sage crag
#

sssssssssssssssssssssssssss

olive sable
rigid snow
#

yes let’s change the color of the atmosphere and the shape of the clouds and the intensity of the sun

sage crag
#

AAAAAAAAaaaa

#

AAAaaa

obsidian mantle
sage crag
olive sable
rigid snow
#

how is baking lighting at all related to color grading

sage crag
#

not at all

obsidian mantle
#

Just simulate full raytracing in runtime at all situations evilHEHEK

olive sable
#

no

rigid snow
obsidian mantle
#

Who knows maybe they are just lazy

olive sable
#

thats just phalasy of authority

#

i dont care if 99% of people do it, if it doesnt make sense to me i dont see why i shoudl do it

rigid snow
#

phalasy is crazy work

olive sable
#

oh

#

english is stupid

#

ignore that

#

fallacy of authority

obsidian mantle
#

Sand coast phalasy

olive sable
#

this isnt my fault, im ESL

sage crag
rigid snow
#

let’s not

sage crag
#

embed fail

olive sable
#

youtube Minamhm

sick owl
#

MY EYES

#

WHAT DID THEY DO TO YOUTUBE

olive sable
#

AAAA new youtube UI jumpscare

sick owl
#

One minute it was the old UI the next it was this ;-;

olive sable
#

AAAAAA its on the acerola video too

#

AAAAAAAAAaa

obsidian mantle
#

Its fine we will get accustomed like we did 500 times already despair

sick owl
# rigid snow

Looked into this btw, apparently you have to pay for the agent to work for stuff like that

#

Paid browser catdespair

olive sable
rigid snow
# olive sable i dont care if 99% of people do it, if it doesnt make sense to me i dont see why...

real talk, for me it makes complete and total sense because:

  1. it is the same pipeline as film. all film is color graded. especially if you strive for photorealism. idk about unity (it should have that too) ue and GODOT have “cinematic” primitives for camera shit
  2. achieving a certain mood and feel does not require you to individually color grade every texture in the scene (why do you think this is better????) having your textures be graded as ground truth just makes sense
  3. if you do “fix” the textures, good luck dynamically changing them depending on location etc.
obsidian mantle
olive sable
#

this is like when my room's lights die and i install a new light and its way brighter than before and it bothers me for a full 2 months before i have a sense of normalcy again

#

i live in constant agony

rigid snow
sick owl
#

Still a ripoff though

rigid snow
#

did i say pro

#

ye plus

rigid snow
olive sable
# rigid snow real talk, for me it makes complete and total sense because: 1. it is the same p...

a film is shot irl and you cant change the colour of the sun or anything tho. in a game its way easier to make everything the colour you want than to filter it every single frame. you're essentially doing work on the gpu, and then redoing all your work again on he gpu.

and ye changing your textures isn't ideal but you can very easily change the lighting you use instead.
and you can very easily to just loop through all your textures and apply a filter to them

rigid snow
#

idk bruh

#

i give up

sick owl
#

Okay that's really cool actually

#

They released a fork of the base version of the model I'm testing that wasn't trained on any synthetic data

olive sable
#

i would rather change the light in my scene from 255,255,255 to 255, 221, 64, than to do this 4 million times, every frame for every pixel

#

i dont see why you would do it the expensive way

rigid snow
# olive sable i dont see why you would do it the expensive way

Is your color grading pass unusually expensive? Almost every AAA game has a multitude of full screen postprocess passes, and many of them can hit 60Hz, 120Hz, etc... Some of them can be combined into one pass.

Color grading is super useful, I would hesitate to try to throw it away for some hypothetical performance claim.

It is possible to get the same effect, but it can be very hard. It's going to involve a combination of changes to base textures, material parameters, and lights - and it can just be very difficult to make changes to lights which affect multiple objects, and then try to tweak all of the textures too, to get some particular effect.

  • deleted reddit user, 3y ago
olive sable
rigid snow
#

MF READ

olive sable
#

idk

#

i still feel like i dont really care about colour correction

#

to me this feels like 3D printing something in red and then painting it blue. just print it in blue

rigid snow
#

Avoid most of the effects then but color controls are usually not that expensive.

You should probably keep the option of a LUT, global tint, brightness, contrast and gamma. Which are all very cheap shader wise.

#

from the same thread

#

the op had the same mindset as you but ended up changing their mind

olive sable
#

well i havent

#

idk

#

brightness i can understand, but thats jsut cranking up the values

#

not "correcting" the colours

trim valve
sage crag
olive sable
rigid snow
trim valve
olive sable
#

when you say colour im thinking hue and saturation

#

brithness and contrast are value and have nothing to do with colour

rigid snow
#

black and white same color confirmed ✅ 👍

trim valve
#

Sam

olive sable
#

they're not colours

olive sable
#

thats me

trim valve
#

are you doing colour correction via changing the textures

rigid snow
#

he’s suggesting that’s the way to do it

olive sable
#

im not doing colour correction at all

#

but if the colour looked wrong, its the fault of the texture

#

or the lighting

trim valve
#

I mean

#

it depends on your pipeline

olive sable
#

my pipeline is srgb texture goes in -> colour comes out

trim valve
#

that will in fact not be your pipeline

rigid snow
#

HOWEVER

trim valve
#

because that doesn't make sense

rigid snow
#

especially if you need it in one specific instance, like an area/dungeon/quest/etc

olive sable
trim valve
#

no but like

#

your lighting calculations aren't happening in a magical "colour" colour space

olive sable
#

srgb

trim valve
#

they're most likely happening in a linear srgb colour space

olive sable
#

mhm

rigid snow
#

keep in mind his brazy definition of color which excludes brightness

trim valve
#

hell I think I literally got you to add the conversation from linear to standard srgb into your engine at some point

rigid snow
trim valve
#

color isn't real

#

:3

olive sable
#

ye you can just ask vulkan or opengl to do that for you

trim valve
#

yeah, if you do that's ideal

#

or well technically that not really correct for srgb but w/e

#

I trust that vulkan will do the right thing

#

what even is the argument atm in so confused

#

I woke up dehydrated 10 minutes ago

#

and got ambushed with colour

rigid snow
olive sable
#

currently the colour stuff just looks like this.
the pointlight stuff is not implemented well in Vulkan rn so it just does colour * dotproduct of normal with y-axis

#

so it basicly gets darker the further from the Y-axis the face is pointing

#

ussualy you'd do some stuff with colour of the light

trim valve
#

doesn't that introduce negative colours

olive sable
#

im maxing to 0

trim valve
#

ah

rigid snow
olive sable
#

i would like to add that you've been arguing about colour for 40 min with someone who is colourblind

rigid snow
#

THAT LITERALLY DOES NOT FUCKING MATTER

#

you’re not BLIND

trim valve
#

mom the parents are arguing again

olive sable
#

but if you want to do a mexico filter just make all the lights in your scene piss yellow

rigid snow
#

color is every component which makes a color idk why you’re saying brightness is separate

olive sable
#

no need to to filter

rigid snow
rigid snow
olive sable
#

contrast and brightness are value

#

i can agree on doing those as filters

#

but hue

#

idk

#

thats a lighting issue

rigid snow
#

just hue shifting the whole image is one thing

#

i am swearing in my native tongue irl

#

out loud

olive sable
rigid snow
#

fucking he’ll this is frustrating

olive sable
trim valve
#

idk why you'd go through the pain of changing the lighting

#

though it really depends on the context in the game

#

ig

olive sable
#

if you know what you're gonna change about the image with a filter, than you might aswell just apply that to the light colour

rigid snow
#

do i have any of my renders pre graded on hand

#

let me look if there’s anything i can show you

trim valve
#

Sam if you already know what the output of sin(constant) is gonna be in your code, do you replace it with the value of the function

olive sable
#

yes

trim valve
#

what if I just explode instead actually

olive sable
rigid snow
#

better for this case

#

how do i default tonemap to srgb in photoshop

olive sable
#

especially in shaders

trim valve
#

idk

olive sable
#

if you calculate your constants everytime you run a shader then you're wasting so much gpu

trim valve
#

I am mildly not awake enough to structure an argument here

olive sable
#

fair enough

rigid snow
trim valve
#

I think we might be arguing slightly different points though. changing the colours of lights in a very specific situation where they're making stuff look wrong is probably valid. changing every single light in the scene is a slippy slope

olive sable
#

dont worry i wont ever have more than 5 lights

#

i have the sun 🌅

trim valve
#

my only worry is messing with lighting could have unintuitive effects but also in my head the math unfortunately doesn't seem to suggest that

olive sable
olive sable
# rigid snow <:el:1429883332585459732>

if you want to add a color correction shader you're free to do so, its just a lot easier to avoid the vulkan hastle of impleemtning that in a seperate pass

rigid snow
#

so we don't actually disagree and you just wasted my time

#

great

olive sable
#

we do disagree

rigid snow
#

on what

olive sable
#

and so i dont see value on implemenitng it

rigid snow
#

ok so basically i have this rendering right

#

but then i'm like eh could be better

#

in this case i'm thinking like, it's boring and not what i wanted

#

i want it to be more vibrant

trim valve
#

ooh motion blur

rigid snow
olive sable
#

neuroCatUuh oaky...

rigid snow
#

i do this

olive sable
#

blue?

rigid snow
#

i don't fuckijng remember what i did this is from 3-4 years agio

#

i did color correction

#

is teh point

olive sable
#

i see

#

its a way to change the light colour without re-rendering it Minamhm

rigid snow
#

its a way to change the light colour without re-rendering it

olive sable
#

ye but the colour of the scene is directly related to the colour of the light

rigid snow
#

nuh uh

olive sable
#

so it does the same thing

rigid snow
# rigid snow nuh uh

you may want the light to be for example purple, but then you don't like how much it kills the green grass

#

so you boost the greens specifically

trim valve
rigid snow
#

i would say that applies to more complex pipelines too

#

in a way

olive sable
#

what you mean

#

instead of boosting the green channel

trim valve
olive sable
#

you boost only the green colours without boosting colours thast use the green channel's green?

#

like you boost green without boosting yellow because of it containign green

rigid snow
#

if you just do g *= 1.2 everything has a green tint

olive sable
#

thats all you had to say

#

ok i get it now

#

ok ye i can see this being handy

rigid snow
#

the point is grading is convenient because it allows you to surgically modify the colors exactly how you want to without touching anything lower level

olive sable
#

ok you're losign me again

#

dont make t complicated

#

i have moneky brain

stray dragon
rigid snow
#

did i say anything that complicated NeuroInspect

olive sable
#

"surgically modify"

#

"touching anything lower level"

rigid snow
#

precisely tweak

olive sable
#

idk what lower level is supposed to mean in this context

rigid snow
#

like you're grading. just grading. not going in recoloring the textures and lights

trim valve
#

like you could give someone who's never touched vulkan some standard colour grading tools and they'd be able to make something have a specific look

rigid snow
#

ye

trim valve
#

e.g. these same tools are used across gaming and video

rigid snow
#

or footage

#

you get the idea (hopefully)

olive sable
#

uh

olive sable
trim valve
rigid snow
#

ye you can

opaque sigil
#

Sounds like a nice way to modularise a process so that someone who isn't super knowledgeable tech wise can do their job enub

olive sable
#

everything you said after the green tint thing you lost me

rigid snow
#

ez change colors without touching scene

#

that it

olive sable
#

uh

#

give me some time to think about it