#programming

1 messages Ā· Page 73 of 1

blazing hound
#

Anyways

#

Yes

#

I have a girlfriend

olive sable
blazing hound
#

She used to study nuclear physics but it didn't quite satisfy her so she's now doing linguistics.

lilac glen
#

all

real sierra
#

I'm married to my screeps colony

amber fractal
#

Based

lilac glen
#

women physically cant understand a computer

#

in exchange they can teleport objects into and out of your perception

#

false hydra type shit

olive sable
# lilac glen all

I wouldnt immediatly say all without evidence. But i also dont want to ask for evidence

real sierra
blazing hound
lilac glen
olive sable
#

Thats my problem AquaCry

jagged turtle
#

my esc key doesn't work neuroD

olive sable
#

O7

blazing hound
real sierra
#

ok I need to wake up in 4h

#

bed time

blazing hound
#

Works every time 100% of the time

real sierra
#

need to stop thinking about screeps

blazing hound
#

Or buy new keyboard.

jagged turtle
lilac glen
real sierra
#

actually I'll just try thinking more about screeps and then pass out when I forget to be awake

#

gn

jagged turtle
#

oh wait

lilac glen
blazing hound
#

Let me guess

lilac glen
#

immq sleep

jagged turtle
#

did discord do a common L and remove the esc key binding for removing a reply from the message you're about to send?

blazing hound
#

Some mess stuck under the key.

olive sable
jagged turtle
blazing hound
#

Real

jagged turtle
#

my efficiency has gone down by 20%

olive sable
blazing hound
jagged turtle
#

surely this will restore it NeuroClueless

amber fractal
blazing hound
#

Touch that

#

Button

#

It is evil from the worst pits of hell

olive sable
blazing hound
#

oh

#

im sorry...

olive sable
#

Also, my moms collection of old laptops is not good

amber fractal
blazing hound
#

Not only discord but lately microsoft aswell

#

Any windows update they just pack it with more fucking bloatware and call it a day.

jagged turtle
#

waiting for when I am allowed to install linux onto my machine

blazing hound
#

Last one broke my fucking graphics card I had to disable automatic updates for windows and since then I'm just not updating it.

blazing hound
olive sable
#

I dont have much problems with windows. Its those green fuckers that break my drivers GETHIM

blazing hound
#

Unfortunately my father would disown me and sign off all heritage to my sister.

amber fractal
olive sable
blazing hound
#

Lmao

#

I have another one but it is so cursed that I won't send it here.

#

Actually lemme find the good one.

#

The normal one.

opaque wharf
olive sable
#

No

#

Nononononono

amber fractal
#

No

amber fractal
#

Sam is getting a trauma flashback

olive sable
#

Something like that ig

opaque sigil
#

I keep getting the same visual studio update via windows update every single day and it's kind of starting to get annoying

noble zodiac
#

ppl who ignore windows updates and then are suprised when shit breaks months later dittoface

olive sable
#

Windows updates are so ASS tho

opaque wharf
#

I ignore arch update and it never break NeuroClueless

olive sable
#

Stupid

jagged turtle
tender river
#

i'm trying to prevent a deadlock in a pure computation that's non-terminating in the first place how did i end up here

opaque wharf
olive sable
#

Ye, i just need to get around to finding a decent distro that isnt too bare-bones for what i need to do

blazing hound
#

Found it

opaque wharf
jagged turtle
blazing hound
opaque wharf
#

Or CachyOS

tender river
blazing hound
tender river
#

this should be a perfectly sound fixpoint as its a monotonic function

opaque wharf
blazing hound
#

^

tender river
olive sable
#

a = a + 1 is basicly infinity if you do it wrong NeuroClueless

tender river
#

thats why i said its nonterminating

tender river
#

the problem is, in haskell's lvars framework, this will instead deadlock

olive sable
opaque wharf
blazing hound
#

wait what languages or what tech we talking again i got confused.

tender river
blazing hound
#

Oh

opaque wharf
blazing hound
#

Oh no I'm just having a brain meltdown as I fail to understand how is a = a + 1 and a += 1 any different

opaque wharf
#

Because my god whose bright idea is it to combine instruction and data

tender river
blazing hound
#

That's fair

olive sable
tender river
#

this is terminating, b is 6 and a is 5

#

there can be something like b = max(b, 5);, if we use a semilattice for max we can start from bottom (like 0) and b will end up at the value 5

blazing hound
#

Uh huh?

#

Mhm?

amber fractal
#

I understand mhm (I don't understand anything)

olive sable
#

Purely math based, a = a + 1 is just a fucked statement.
I dont agree with it

tender river
#

thats why lambda calculus is not a sound system of logic

olive sable
#

Yep

#

Yet its still quite handy

tender river
#

and this is why in proof checkers, termination is mandatory

opaque wharf
blazing hound
#

At this point I have to ask, what the hell is math about?

tender river
#

about solving problems

amber fractal
#

@blazing hound I forgot to say, very cute pfp

blazing hound
#

Thaaaaanks neuroHeart

blazing hound
tender river
#

in my case, i'm studying fixpoints and monotonicity as part of my wider research into composable systems

amber fractal
#

that friend is presistant

blazing hound
#

Mm?

tender river
opaque wharf
amber fractal
tender river
amber fractal
tender river
#

as i always liked highly composable systems

blazing hound
# amber fractal that friend is presistant

Well, you are cute. You denying it only fuels the fire as the fact that you don't realize that you're cute, or you're too flustered about it to admit it, making you even more cutie patootie.

opaque wharf
#

Like knowing that some infinity is bigger than other, yet we still don't know what comes after said bigger infinity

opaque wharf
blazing hound
#

You've been observed and deemed adorable.

blazing hound
#

That you

amber fractal
#

It is cute yeah

blazing hound
#

Correct, you are too.

blazing hound
tender river
# amber fractal I see

here's a relatively simple introduction into the topics https://www.youtube.com/watch?v=R2Aa4PivG0g

I love query languages for many reasons, but mostly because of their semantics. Wait, come back! In contrast to most systems programming languages (whose semantics can be quite esoteric), the semantics of a query (given some inputs) are precisely its outcome -- rows in tables. Hence when we write a query, we directly engage with its semantics: w...

ā–¶ Play video
blazing hound
#

yoink

amber fractal
#

Added to watch later

amber fractal
tender river
#

and there is still so much more to do in this "field"

opaque wharf
#

Field brings me back when I have to implement RFC catdespair

amber fractal
#

If I ever get enough time to focus on learning, Type theory is pretty high on the list of things I'd want to learn.

tender river
#

sadly theres not much in the way of formal verification of lattices or monotonicity currently

#

so when using lvars or hydro/dfir you just have to say "trust me my lattices are correct"

#

its more of a way of framing your problems than a tool for verifying your solutions at the moment

#

which is still very cool

blazing hound
#

I don't really understand it as of now so I can't discuss it personally but it sounds really cool from your description.

wet oyster
#

How does CPU instruction prediction even work?

amber fractal
#

Black magic mhm

opaque wharf
#

Just look at all the CVE we have now

#

But, if you're curious, modern CPU has another CPU basically

#

That little CPU is helping the big CPU to do stuff

tender river
# blazing hound I don't really understand it as of now so I can't discuss it personally but it s...

it is very cool but the problem is that because the concept of a partial orders/monotonicity is so general i find a hard time thinking up an ergonomic language for working with them
for example, you can order integers by their order (1<=1, 1<=2, 2<=3, 3<=4, etc), or you can order them by divisibility (a<=b if b%a == 0), and when a function is monotonic its monotonic with regards to some particular partial order vedalBwaa

wet oyster
opaque wharf
#

See Intel Management Engine

tender river
#

"rolling back" is tricky which is why there have been some exploits

blazing hound
opaque wharf
#

Oh wait IME doesn't do the spec ex stuff

tender river
#

it doesnt

opaque wharf
#

Yeah I forgot

#

But still, little CPU help big CPU

olive sable
#

Bwa bwaa bwaaa

#

How does my phone go from 50% to 80% in 20min, but 80% to 100% takes 35min?

#

This is a scam

#

Batter percentage is not linear

opaque wharf
#

Because the usage is 50W for example, but charging is 15W

amber fractal
stray dragon
olive sable
opaque wharf
olive sable
#

It very likely is

opaque wharf
#

Should've used coloumb counting rather than voltage mapping

#

But voltage mapping is easier

#

But maybe they don't use the correct curve to report it and assume linearity

olive sable
#

Im not sure how battery charging works, but i havent charged my phone more than 80% a single time in the last 4 years

#

So it might be cuz of that?

opaque wharf
#

This is an example graph of battery voltage to charge capacity left

#

As you can see the graph is not linear

blazing hound
#

Man fuck electricity.

opaque wharf
#

When measuring voltage (the easy way), you can use that curve to accurately map voltage and capacity to some extent

blazing hound
#

Back to steam we go.

opaque wharf
#

But the capacity WILL degrade over time due to... reasons (chemistry mostly)

#

Hence the voltage will drift over time from the curve

olive sable
#

Its cuz of the lithium ions getting stuck in the semipermiable membrane or some shot iirc

opaque wharf
#

The best way to accurately measure battery capacity is therefore to "count" the in and out

#

How many goes in the battery and how many goes out

#

The remaining is then the current charge level

olive sable
#

Okay neuroHypers

blazing hound
#

La sillatura

autumn ore
tender river
#
poll_question_text

very very very very important question what book should i read next

victor_answer_votes

7

total_votes

15

victor_answer_id

5

victor_answer_text

5th option (this may have consequences (you have been w

victor_answer_emoji_id

1136489026577252382

victor_answer_emoji_name

neuroNuke

grim girder
#

What if I post HTML in here?

amber fractal
#

It gets rendered as an iframe (real)

fast pagoda
#

of course it's suddenly upset about the json format if anyone else is getting rekt by that

#

i have literally no idea why though

stark needle
#

I have acquired

#

This overly expensive toothbrush

#

It was on sale for 110 so i said fuck it

#

The store seller tried to aggressively upsell me a bunch of shit

#

A whole mobile plan for 39/month

#

Asking me like

midnight sigil
#

real

stark needle
#

Dude this is obviously the better plan u must buy it now

#

And i was like

#

No???

#

and mf was like

#

"explain why not"

#

And i said the dumbest shit

#

i said i had a sentimental connection to my current mobile provider cause it was the last thing my dad paid for me before he died

#

😭😭

dawn garnet
#

GCS permissions

#

are boutta make me lose it

#

I just wanna make a service acc to upload files

jagged turtle
#

people can be emotionally attached to different things especially after the passing of a loved one

#

also, sorry for your loss neuroPray

rigid snow
#

same energy as the ā€œour grandma used to read us windows activation keys to sleepā€ thing

tender river
#

truly what i was looking for

stark needle
#

My dad's still alive and well

#

lol

dawn garnet
#

I MADE IT WORKKK

#

i think

#

after doing some tomfoolery

#

with an offline refresh token

#

the backend should remain authenticated for file uploads

#

gonna shut my dev server down

#

and test if it can still auth tomorrow

dry charm
#

but it is expensive for no reason yeah

fast pagoda
#

copy and pasted a webhook with one(1) extra char

#

in the prod webhook secret

#

guess ill uh
validate the webhook before just yolo sending it

noble zodiac
#

I'm currently doing the upgrade a data cluster without getting a panic attack challenge

#

impossible

dawn garnet
noble zodiac
#

redudancy is part of the cluster itself

dawn garnet
#

Ah, is there redundancy for the redundancy or if this cluster fails then data poof?

#

@wraith raft #merch message

Genuine question, what use does that many monitors serve?

noble zodiac
#

This is a storage cluster and not a database. It stretches over multiple locations that all would have to spontaneously explode at once and then backups for select data also have to explode

#

Even if you could backup it all again I dont have an extra 3 Petabyte lying around

dawn garnet
#

Oh nice redundancy, I just like being informed on redundancy practises since I do freelance my biggest fear is data loss

noble zodiac
#

redudancy != backup is a rule of thumb but doesnt apply to certain scales were you have to select what you can or even should send where

dawn garnet
#

Currently all my systems just have hourly db backups to GDrive

#

Compressed heavily for that storage saving

noble zodiac
#

sure, but thats person usage. Business cases are vastly different

dawn garnet
#

Yeah I getcha, I did work corporate for just over a year but I was shoeboxed into backend development so I couldn’t really branch out to work in diff sectors

#

Doing freelance work really opened up my scope and let me work with a decent amount of scopes

#

Cause I just kinda have to deliver based on client requests to the best of my ability

real sierra
fast pagoda
#

3 pb sheesh

real sierra
#

good morning all

fast pagoda
#

good morning

ruby timber
#

Morning!

real sierra
#

I'm so tired

#

it feels like I got 4 hours of sleep

stark needle
#

Morning shiro!!

#

I think everyone in here does not sleep enough

noble zodiac
#

nah, my sleep is perfect

real sierra
#

time to check on my screepies

#

all alive and well happie

#

ew

#

this is code from the scsreeps engine

#
 let invaderGoal = Math.floor(C.INVADERS_ENERGY_GOAL * (Math.random()*0.6 + 0.7));
        if(Math.random() < 0.1) {
            invaderGoal *= Math.floor( Math.random() > 0.5 ? 2 : 0.5 );
        }
rough bloom
#

Math.floor(0.5) neurOMEGALUL

#

very useful mhm

real sierra
#

i think i need to improve the code for my miners

#

they waste way too much time

#

probably need to cache the mineable tiles per room

#

and then actually assign a creep or two to each

#

looks like my walls are up to about 55k HP

#

at this rate they should have my walls up to the desired 100k by the end of the day

tender river
#

make sure to leave one wall with 100hp as a surprise gift for the attacker

real sierra
#

some players are truly locked in and its kinda scary

#

once the novice zone protections are gone im gonna get rolled

#

like im not defending against this Bruhgi

trim valve
rough bloom
#

This is why I'll be doing a lot of preparation on my private server first kek
Deployment on the official server can happen later and I don't wanna get rolled

#

Also I'm debuffed by writing the script in Gleam

real sierra
#

the novice areas last for like

#

a month

#

so its not like you're rushed

rough bloom
#

oh, that's way longer than I expected

tender river
rough bloom
#

not neuroPogHD

#

their JS FFI sucks

tender river
#

good.

rough bloom
#

mostly because of linked lists and lack of introspection for the JS objects

trim valve
#

for a language that says it compiles to js that suprises me but I guess it makes sense

rough bloom
#

I predict much pain and runtime overhead

#

actually now that I think about it I could have a fully generic Dynamic-like type for JS objects, that might be nice

tender river
#

if a language has good js ffi its probably too js-like for my liking neurOMEGALUL

real sierra
#

just bite the js bullet

#

im not that good at coding and im doing fine

rough bloom
#

I'm sure it would be fine, yeah
People have made good typescript integration too
But it would be boring, and this is an opportunity to do something stupid

real sierra
#

you're still the only person so far whose idea involves actually playing the game

#

so you get points for that

#

ok idea

#

instead of this silly sudden jump in wall strength requirements

#

why dont i interpolate it from the last one based on the controller upgrade progress

tender river
#

the CALM principle (consistency as logical monotonicity, i.e. that all distributed programs that give consistent output without coordination (coordination is something like blockchain) are monotonic) is so obvious when you consider that distributed computing is just N mutually recursive functions computing a fixpoint

#

bwa

real sierra
#

ok

#

my screeps are in a good spot

#

added a feature to my room controller upgraders, they'll now sign the controller if it isnt signed by me

#

now my controllers say miku miku oo ee oo

tender river
#

seka

real sierra
#

added interpolation of rampart and wall hp goals for smoother scaling of builder workloads, that way they can do building projects in between

#

this was a pretty needed edit

#

ive been silently dreading the first npc invasion, which cant be that too far out

#

because i have no active defenses Caught

#

i have code to spawn a guard if there's attackers and i have no towers, but whether or not id be able to afford the guard is another question

#

so

#

i really need them to get this tower built

#

they haven't been doing it because they've been upgrading walls 24/7

#

but now they can focus on the tower

tender river
#

tell your screeps no food or sleep until they build the tower

real sierra
#

i need to do the math on creep mining techniques too

#

i saw other people have creeps with no carry parts mine, and then occasionally haulers would just come grab the dropped energy

#

but the dropped energy decays by one each tick so

#

i need to see if thats worth it compared to having the miner leave to bring the energy back

#

very wasteful

sage crag
#

p

real sierra
#

yeah I think the next thing on the list for me is to write some code for scouting rooms

#

set of candidate rooms will be taken from the set of rooms adjacent my own

#

then we'll verify we have strategic information about those rooms that is valid to within the last 500 ticks or so

#

if not, we send any existing scout units to rooms that aren't fresh enough

#

if we have no existing scout units, we make some

#

once we have all this info, we should be able to do some kind of heuristics

#

e.g. a defensive score

#

something like DPS * HP for every active defender

#

and then ensure we have 1.5 times this heuristic for our attackers

#

another heuristic needed to decide the best value target

#

trial-and-error needed there

grim girder
#

Heuristics?

real sierra
#

I think another smart metric for evaluating defenses is the minimum HP between myself and the room controller

#

that is, if I pathfind to the room controller with all tiles being free except walls and ramparts whose cost scales with their HP (perhaps with a rampart multiplier since they can contain units), and then sum the health of all walls and ramparts encountered, what is this health

#

that should give me a decent metric for the strength of the static defenses present unless the player does something clever like leave an opening on purpose

#

if I combine all that info, I should be able to derive some kind of cost benefit for each potential target

#

and use it to inform invasion plans

vivid tulip
#

Whenever I'd tell people I was learning APL, I'd often get told that I should learn a "more readable" programming language

So I am.

real sierra
#

idk what to do for low level battle tactics tho

#

not sure what the meta is for attacker body or positioning

#

or what to attack first

tender river
#

go forth

vivid tulip
#

The wildest part to me is that APL and COBOL actually seem to share at least one element in common:

They both seem to have numbers and characters as the two primary datatypes—with no regard for floats or ints or any need to explicitly convert between the various sub-types of numeric variable

#

Well, the languages have two elements in common, if you count the whole "couple hundred built-in operations for you to memorize and barely any reliance on external libraries" thing

#

...Three if you count the grammar-like syntax of each line

Point being, the two languages are WAY more similar than I would've expected going in

vivid tulip
# real sierra too readable go back

Sorry, best I can do is either

       IDENTIFICATION DIVISION.
       PROGRAM-ID. ASSIGNMENT.

       DATA DIVISION.
           WORKING-STORAGE SECTION.
           77 NUM1 PIC 99.

       PROCEDURE DIVISION.
           MOVE 36 TO NUM1.
           STOP RUN.```
or
```apl
num1←36```
I don't understand anything in between
sage crag
#

mrrp

tender river
#

i was blind

#

too java brained to see the potential

#

to see the vision

#

but i have finally realized

#

erf must become a dependently typed language

#

also

#

mrp meow

pastel nymph
#

This seems so odd to me, Why would Math.Pow produce inaccurate result? (this is c#)

        Expected: 4321550163432819409
        But was:  4321550163432819200```
```csharp
    public static long FindNextSquare(long num)
    {
        long l = 0;
        long r = num;
        while (l <= r)
        {
            long mid = (l + r) / 2;
            if (mid < num / mid) l = mid + 1;
            else r = mid - 1;
        }
        return l * l == num ? (long)Math.Pow(l + 1, 2) : -1;
    }```
stark needle
#

Isn't love basically a brain's positive stimulation, based on it's own self-created signals about the external interactions of a hypothetical person you can't prove exists, especially since your reality is a construct of your brain and that person is only acting in a specific way rather than showing how they truly feelSCHIZO

pastel nymph
#

Doing simple multiplication ended up fixing the inaccuracy

return l * l == num ? (l + 1) * (l + 1) : -1;
#

4321550163432819200 isn't even a perfect square

tender river
#

floating point maths is not precise, its encoded as a mantissa + an exponent, the mantissa is not big enough to encode a large number like that

pastel nymph
#

Interesting, thats good to know

desert wave
#

If you want full integer precision, BigInteger will do it without converting to float

tender river
#

or, in this case, just using longs will do

#

mpr mow

olive sable
#

Im back to civilization neuroHypers

#

Ive been reading more of the vulkan docs

#

I took some screenshots, gimmeva min

#

Grammar police šŸš“šŸš“šŸš“šŸšØšŸšØšŸšØšŸš“šŸš“šŸš“PoliceKanna PoliceKanna PoliceKanna Kelly_police

#

It's is, double is

#

Illegal

#

This feature is pretty based tho, I approve.
Depth bias slope factor with the built in dot product the rasterizer does anyways is so based

nocturne olive
#

Silliness?

olive sable
#

Mayhaps

#

Lemme check where the 3090 is

#

It departed

#

So im guessing on a plane somewhere

nocturne olive
#

My guess is a cargo ship

olive sable
#

Possebly ye

nocturne olive
#

A plane would probably already have arrived in Finland, since based on that timeline it's been departed for soon to be 2 days

olive sable
nocturne olive
#

Wow
That's slow

olive sable
#

That does seem very slow ye

#

I expected it to be faster

rare bramble
#

Oh, that's snails pace

olive sable
#

This is not the website from the post company tho

#

We'll see

rough bloom
olive sable
#

It seems to be fixed already

#

Just not in the downloadable pdf I guess???

rough bloom
#

Still wrong on the website then

#

I guess they only push major changes there or something

olive sable
#

Probably

#

šŸ¤”

opaque wharf
#

I have awoken

olive sable
#

He's flying away neuro7

opaque wharf
#

Today is very tiring

olive sable
#

Mildly hot take, vulkan is just opengl with extra steps

rough bloom
#

yeah, that's the point
the extra steps are the important bit catSUS

olive sable
#

Its basically the same

#

Just need to add more nullpointers and structs

opaque wharf
olive sable
#

Ye

#

I read the fully out in my mind when reading the docs

#

Every single chapter its like, good job you did it

nocturne olive
#

welldoneneuro Now here's more stuff

#

That's what I got from that

olive sable
#

Opengl is like going to the GPU, placing you order, and you're good

#

Vulkan you have to build the road, build the digital side of the GPU, build the menu, build your order, get your order, package your order, and deliver it yourself.

nocturne olive
#

Silly

rigid snow
#

bought my little brother minecraft java and showed him computercraft. have i made a mistake

rough bloom
#

no, you have done very well

olive sable
#

It is, acceptable

rough bloom
#

show him OpenComputers next catSUS

rigid snow
#

opencomputers 2 neuroPogHD

rigid snow
#

what do you mean riscv emulators running linux

rough bloom
#

looks cool but I've never tried it, I've only ever messed with the Lua-based ones, and I haven't done that much with them

rigid snow
#

i thought the networking thing has insane potential but how it actually works is pretty jank

#

mod is dead, a fork is alive but development is slow

rough bloom
opaque wharf
rigid snow
#

fn_computed_beforehand

opaque wharf
olive sable
#

Hmmm. Electricity 100

lapis wraith
#

MONKA Live copper from the wall

olive sable
#

I'm pretty sure that's data...

#

Probably

lapis wraith
#

Surely is an ethernet cable and not high voltage current glueless

#

To be fair, those cables look too thin to be high voltage

rough bloom
# olive sable I'm pretty sure that's data...

looks like data, yeah
the wires look too thin to carry a lot of current at least
then again, exposed copper like that isn't exactly best practice, so they might be abused for carrying power kek

lapis wraith
#

I mean.. Power Over Ethernet is a thing so... PANIC

olive sable
#

I wasn't planning on touching it anyway

opaque wharf
#

PoE is usually higher than average DC that you encounter. Still safe tho as its an active standard. Passive PoE is usually limited to less than 64V

rough bloom
#

yeah, pretty sure that even passive PoE is safe to touch
there just isn't that much power nodd

opaque wharf
#

Indeed. But knowing me, copper is copper hehe

olive sable
#

Surely this is the last function COPIUM

lapis wraith
opaque wharf
#

Can one logical device span multiple physical device?

olive sable
#

But i am planning on doing this too

olive sable
#

A physical device can have multible logical devices

#

Idk about the other way

opaque wharf
noble zodiac
#

yes

opaque wharf
abstract pine
#

hi

stark needle
tender river
opaque wharf
#

What? Does coq compile to Ocaml?

sour harness
#

Also probably SLI way back when, but no idea if the two linked GPUs were exposed as one single device.

opaque wharf
olive sable
#

I thought there was a mobo way to do ot too

sour harness
#

No idea. There might be other technologies to do the same. AMD might have something similar, maybe using Infiniband?

olive sable
#

But sounfs zbout right

sour harness
rough bloom
opaque wharf
#

Well, I just thought that distributed computing stuff is abstracted away by the API even with limited bandwidth

opaque wharf
rough bloom
rough bloom
olive sable
#

You have to put a copy of all the files in each vram ye

sour harness
#

So the abstraction happens at the CUDA-level, not the driver level?

#

Yeah, then Vulkan wouldn't know about it

rough bloom
#

for CUDA yes, definitely not at the driver level

opaque wharf
#

Which is cool if it does

rough bloom
#

A single logical device can be created from multiple physical devices, if those physical devices belong to the same device group. A device group is a set of physical devices that support accessing each other’s memory and recording a single command buffer that can be executed on all the physical devices.
mhm that

olive sable
#

Im mostly wondering about using multiple logical devices

#

I dont see the immediate usecase

rough bloom
#

since you can't usually create a single logical device for multiple physical devices you need to create a logical device for each one

#

but yeah, for a game it doesn't matter

olive sable
#

Ye im talking about using a single gpu

rough bloom
#

then a single logical device is fine AFAIK

olive sable
#

They do make it very clear you can have multiple logical devices per physical device, so im wondering what the intended usecase is.

#

Multiple viewports for VR? No cuz you can just have a framebuffer queue with double images

opaque wharf
#

But thank you for clarifying it

opaque sigil
#

sth sth partitioning resources

#

maybe you want to have a part dedicated to compute shaders and the rest for rendering

opaque wharf
opaque sigil
#

nvlink is irrelevant here, you still are on a single physical gpu

opaque wharf
opaque wharf
opaque sigil
#

Mhm

opaque wharf
#

I thought 2 logical on 2 phy

rough bloom
opaque sigil
#

then idk

rough bloom
#

yeah idk either
only difference I see right now is that you could enable different extensions for each device

#

but I guess it's one of those things that the API doesn't disallow just because it can kek

opaque wharf
#

Of course nccl stands for nvidia. Why didn't I see that one coming

opaque sigil
#

looks like one use case would be plugins

#

so each plugin gets its own logical device to work with

olive sable
#

I guess if you're using plugins that render to vulkan and you dont want them to interfere with eachother?

opaque sigil
#

Mhm

#

or purely for structuring like i mentioned

opaque wharf
opaque sigil
#

one device for the ui

#

one for compute stuff

olive sable
#

I think the only reason idd use it is to run an llm on the gpu next to the rendering pipeline?

#

You can seperate compute shaders and ui and stuff, but you really only need to change out the pipeline if i understand the docs correctly

olive sable
hoary lion
opaque sigil
#

you technically can run it inside the shader now neuroPogHD

olive sable
#

Ig?

#

Im still not sure how llm's work

opaque wharf
olive sable
#

But vulkan should be faster than pytorch???

opaque wharf
#

That shit sounds cursed af

hoary lion
#

cause torch do have optimized backend

opaque wharf
opaque sigil
#

in theory yes

#

in reality probably not

olive sable
#

Damn

rough bloom
olive sable
#

I dont really feel like making python run inside a cpp project

#

That will be ass

hoary lion
#

then use CUDA NeuroClueless

opaque wharf
opaque sigil
rough bloom
hoary lion
#

Cuda is cpp, right

opaque wharf
opaque sigil
#

yesn't

#

and yeah cuda is cpp

opaque wharf
#

A superset of it

olive sable
hoary lion
#

so yeah there you have it

#

build a llm inference engine with cuda

#

šŸ‘

olive sable
opaque sigil
#

sth sth just throw tensorrt at it

olive sable
#

So for vedal drunk driving simulator i will need a database of british slurs and some driving data

opaque wharf
nocturne olive
sour harness
#

Go home Gemma, you're drunk

stark needle
olive sable
#

Can i select how much of the device i use in torch too?

opaque sigil
#

you can limit the amount of memory it's allowed to use iirc

olive sable
#

I think it would be good te reserve the cude cores per app

opaque sigil
#

yeah nah

olive sable
#

So of my 10k on the 3090 like 6k render and 4k NN

opaque sigil
#

that's not happening

nocturne olive
#

It's not like ML is compute limited on inference time, it's actually bandwidth linited

stark needle
#

since render and tensor does not use the same stuff

opaque sigil
#

yeah let the driver do its job

#

there's technically nvidia's multi instance gpu thing but i don't think that's available for consumer gpus

#

ah nvm it's hopper and blackwell only anyway

#

if you really want to partition SMs i think the only option you have is writing PTX, cuda doesn't expose this to my knowledge

olive sable
#

I just dont want cuda to hog recources

nocturne olive
olive sable
#

They sure do

opaque sigil
#

different thing

olive sable
#

Yours has it, and mine does too

nocturne olive
opaque sigil
#

i'm talking about splitting a physical gpu into multiple logical gpus

nocturne olive
#

Oh, well that's just silly

olive sable
#

It can be useful for some thing, i just dont know what

#

Mainly structuring ig

#

Vulkan does hzve some nifty features, you can rasterize only the polygon edges if you want

nocturne olive
#

Wireframe mode?

olive sable
#

Ye kinda

#

Im not sure how exactly it works, but it should basicly bf wireframe mode ye

#

Guys, vulkan is OOP???

rough bloom
#

is that an actual question? kek

olive sable
#

No

#

But i thought yall HATED OOP

rough bloom
olive sable
#

Or well. Its not inherently OOP but it kinda mostly is

opaque sigil
#

in what way would vulkan be oop what

rough bloom
#

sir it's a C API

olive sable
#

You use functions, but you treat the things as objects

rough bloom
#

yeah, but the functions operate on the resources, they aren't part of the resources themselves

olive sable
#

The buffers and stuff arent actual objects, but you use them as such no?

rough bloom
#

also there's no inheritance and stuff

opaque sigil
#

passing 15 parameters around isn't particularly fun neuroPogHD

rough bloom
olive sable
#

You still need to handle lifetimes and such

#

You just do it as a function instead

#

I agree that its not the same, but it feels like OOP sometimes

rough bloom
#

you're OOP-brained

#

give up C++, return to C

opaque sigil
#

i'm afraid it's terminal neuro7

olive sable
#

It doesnt help that the docs put everything in a vulkan class

#

Im going insane probably

tender river
olive sable
#

Its fine

opaque sigil
#

you are going insane yes

olive sable
#

Im too python pilled

olive sable
sage crag
opaque sigil
olive sable
#

Im not allowed to drink in montenegro bwaadow bwaadow bwaadow bwaadow bwaadow bwaadow

noble zodiac
#

whose gonna stop you tho

warped narwhal
# olive sable It doesnt help that the docs put everything in a vulkan class

Just wait until you get to DX12, where everything is an object, but also not an object, but also at the same time it is actually an interface, but you must use a second object to access it, and everything is created by using this second object (which accesses the first object) and pass it a struct that has 30 options which nest other structs just so you can configure your screen to turn a different shade of red.

olive sable
olive sable
#

Ill keep using vulkan thanks

warped narwhal
#

I'll be honest, I actually prefer the d3d12 api over vulkan, it's just easier to work with IMO

olive sable
#

Ive never even seen the d3d12 api so very possible

#

neuroNOWAYING neuroNOWAYING neuroNOWAYING the sectet pipeline

#

Task/mesh pipeline should replace tesselation pretty well

nocturne olive
olive sable
#

Yep

#

So i wont be using it

real sierra
#

I've been telling my coworker about screeps for the last 15 min

sage crag
#

have they locked you in a box yet

real sierra
#

they said they might get into it

sage crag
#

will you be reincarnated as a screep when you die

olive sable
#

The server bout to be me, 2 mods, and a mod's coworker

#

The power dynamic bouita be wild

sage crag
#

rip sam's pc, lost but not forgotten

olive sable
#

my pc?

#

What about my pc?

uneven pulsar
#

When you know about my first gen laptop

olive sable
rare jewel
#

i broke my fucking keyboard

#

i type wierd as shit

#

help

sage crag
uneven pulsar
hoary lion
uneven pulsar
uneven pulsar
sage crag
#

release me

trim valve
#

i forgot avatar decorations existed catdespair

uneven pulsar
#

The trick looks good tho, good job

sage crag
#

@stark needle neuroSHARK

nocturne olive
#

Recently I discovered an interesting difference between the Windows command prompt and Linux terminal, can anyone guess what it is?

sage crag
#

linux terminal emulates a tty, windows console is standalone?

uneven pulsar
#

Not a good coder, but believe me I was surprised when some PowerShell commands were the same as Linux terminal

stark needle
#

😭 automod

sage crag
#

commands like tree existed on computers way before linux and windows

nocturne olive
stark needle
#

i turned konii into a <insert series from which her profile border thing is> character

opaque sigil
#

someone at microsoft thankfully realised that using the command prompt is a miserable experience neuroPogHD

trim valve
#

I swear I've done async terminal reading before

sage crag
opaque sigil
#

indeed

sage crag
#

stdin is opened automatically but the open syscall accepts O_NONBLOCK

nocturne olive
#

Well, not something I figured out
I just put it on a coroutine running on a different dispatcher

uneven pulsar
#

Anyways, speaking about linux, my android device doesn't have native support for kvm (which is needed for virtualization) so the android native terminal (debian) should not work by default, I made my own replica in a terminal emulator (it even has xfce desktop šŸ˜€)

sage crag
desert plaza
opaque sigil
#

not basically, they are

nocturne olive
rare jewel
#

i slammed it twice and it worked

opaque sigil
#

looks like you have to do it the way you did

sage crag
#

or a coroutine

nocturne olive
#

Well, putting on a coroutine on the IO dispatcher is good enough

sage crag
#

technically you could use jna with libc to call fnctl

#

not really worth it in a real program

#

less portable, and likely to break

opaque sigil
#

i'm more concerned about kotlin presumably not making it blocking on windows

#

choose one evilSMH

sage crag
#

i just invented that word, no one can have it

nocturne olive
#

Well, either way, I fixed it and that's what matters

opaque sigil
tender river
#

also you cant necessarily set it to nonblocking if its piped from some other source

#

(not all fds can be marked as nonblocking but idk the specifics)

#

so using blocking reads is the more predictable approach

warped narwhal
#

I cannot even begin to explain the sheer amount of pain it was to get this to show up HuTaoPain

warped narwhal
#

Thankfully not, but dealing with Hyper's types in rust is

#

"I heard you like traits, so I added traits in your traits in your traits"

opaque sigil
#

this is why you usually don't use hyper directly

desert plaza
#

rust neurOMEGALUL

opaque sigil
warped narwhal
opaque sigil
#

fair

sour harness
#

Wait. "S::Error" <- you can do that?

warped narwhal
sour harness
#

I probably don't have a use case right now, but that's neat

#

Oh wait, it's jsut associated types

#

Sadge

desert plaza
velvet crestBOT
#

You have unlocked new role

olive sable
ruby timber
olive sable
#

Yes please NeuroClueless

opaque sigil
#

could use more traits neuroPogHD

warped narwhal
olive sable
#

Could use more sugar

amber fractal
#

Tasty

olive sable
#

The GOAT

trim valve
olive sable
#

Best bench in town

#

This bench was in the middle of some ruins from a castle

rigid snow
#

what the fuck neurOMEGALUL

#

imagine it fit into the context ts would've bankrupted me neuroSob

tender river
#

using llms for zip decompression neuroPogHD

warped narwhal
desert plaza
#

so real and true

olive sable
#

E = mc² + AI

#

So AI = 0

tender river
#

intel syntax ftw (totally not biased because of ida)

warped narwhal
#

progress has been made neuroHypers

rigid snow
#

smh serving files

#

too user friendly

blazing hound
#

Sentient AI yadda yadda yadda.

blazing hound
amber fractal
rigid snow
olive sable
#

Artificial is 0

#

Intelligence is variable

faint sandal
warped narwhal
desert plaza
faint sandal
#

it's more like a dozen or two if you're writing for specific Windows version

faint sandal
#

it'd be a little bit more reliable through ntdll/other existing Microsoft bins that call syscall on the system but there's nothing stopping you from calling syscall yourself

desert plaza
#

linux syscalls are so simple

#

windows is so needlessly complicated smh

#

my head

rigid snow
#

a chrome wrapper for your gpt wrapper for your cli wrapper for your syscall wrapper

#

isn't life beautiful

olive sable
#

I wonder if cloudburst got to reading those docs

#

neuroNOWAYING ive finally gotten to the actual rendering

#

After 123 pages

stone cedar
#

Are you actually reading the docs top to bottom?

olive sable
#

Yes

stone cedar
#

Holy vedalBased

olive sable
stone cedar
#

That is more reasonable.

#

I wonder how big the actual docs are without all the VUID tables that just fill 4 pages for a single function from time to time

desert plaza
olive sable
#

Yep

#

The more cursed the v“better

faint sandal
#
#

day 0 since the last cvss 10.0 from cisco

marble thorn
rigid snow
#

c++ obviously executes each line >100x faster

#

rust executes each line >300x faster

#

c >500x faster

#

real

hoary lion
#

is it worth learning c

opaque sigil
#

yes

faint sandal
#

it's always Cisco or PaloAlto or Ivanti

rigid snow
# rigid snow c >500x faster

i like to imagine someone once googled "fastest programming language", got assembly, learned it and were confused why their C implementation runs faster

#

average saas startup website design in 2024

minor crag
rigid snow
#

good

minor crag
#

if you explain those magical words I'll give you a cookie

brisk halo
#

Heh…I only know how to code on SCRATCH!!! AHAHAHAHAHAHAHAHAHA

minor crag
oak flicker
brisk halo
olive sable
#

Goodnight guys

oak flicker
#

🫔

desert plaza
#

i must go to slumber now as well

real sierra
oak flicker
#

still at work sadly

#

nap sounds nice though

minor crag
#

Why do people sleep?

olive sable
minor crag
#

I hadn't sleeped in like 27 hours (rough guess)

real sierra
#

screep time

olive sable
#

Have fun

#

Its 1am here tho

real sierra
#

ik

olive sable
#

Bye

real sierra
#

i just wanted to say hi to you

#

beofre you wenmt tob ed

#

go sleep now

#

NeuroSleep a mimir

minor crag
olive sable
oak flicker
#

šŸ„–

olive sable
minor crag
#

Plus you smell French (that's not an insult (mods plz no ban))

olive sable
#

Im nowhere near france rn

oak flicker
#

Oui Oui

minor crag
#

Huh

real sierra
olive sable
#

And im belgian

real sierra
#

what is it with all of you and doxxing yourselves

olive sable
real sierra
#

doesnt matter if you dont live there

#

you're there right now

#

never share your current location on social media

minor crag
olive sable
#

If they're able to even figure out what city im in, they wont find the hotel

#

Im fine

minor crag
#

(Me is joking since you should never share location)

real sierra
#

given the tenth of a million people in this server

#

im willing to bet at least one of them is insane enough to go visit you or track you down

#

gambling that they're not going to see this isnt worth imo

olive sable
oak flicker
#

nah, that would mean they went outside

olive sable
#

If someone is doing that, i just want to let them know they have no life

oak flicker
#

nobody does that here

real sierra
#

you jest but im dead serious

olive sable
real sierra
#

idk

#

maybe ive just become more paranoid

#

have had some poor online experiences

olive sable
#

Its fair advice, but im only here for 2 days and then going to the next place

oak flicker
#

I do agree that its good advise in general

olive sable
#

All the pictures ive sent i only sent after i left the place

minor crag
olive sable
#

Tbh i have no fucking clue what city im in

minor crag
#

Crap

opaque wharf
#

Shiro, I was having a great idea to tell you before I went to sleep. But now that I've woken up I forgot what it is

rigid snow
olive sable
#

Ok, gn now

#

Bye

oak flicker
#

o7

hoary lion
#

bye

#

c seems kinda smol

#

is it functional language

minor crag
real sierra
#

PagBounce my tower is done on screeps

hoary lion
#

what is screeps

real sierra
#

now i can defend against invaders easier

hoary lion
#

ive been hearing this for two days and im clueless

minor crag
#

Happy midnight

real sierra
# hoary lion what is screeps

Screeps: World is an open source MMO RTS sandbox game. With all the attributes of a full-fledged strategy game, you control your colony by writing script that operates 24/7 in the single persistent open world filled by other players on par with you.

Your colony can harvest resources, build units, conquer territory, trade with other colonies. As you conquer more territory, your influence in the game world grows, as well as your abilities to expand your footprint. But beware, multiple players aiming for the same territory may lead to conflict!

Screeps is developed for people with programming skills. Unlike some other RTS games, your units in Screeps can react to events without your participation – provided that you have programmed them properly. And, unlike other MMO, you do not have to play Screeps constantly to play well. It is quite enough just to check once in a while to see if everything goes well.

hoary lion
#

oh this!

#

this kinda cool

rigid snow
oak flicker
#

sounds kinda cool

hoary lion
#

it has dedicated vm for sandboxxing JS safely

real sierra
minor crag
real sierra
#

unfortunately today is not my birthday

rigid snow
#

cap

real sierra
#

but since you clearly couldn't havep ossibly known that

#

ill let it slide

real sierra
minor crag
real sierra
minor crag
#

If it doesn't then you gotta pull out the incense and get praying to the Omnissiah

rigid snow
minor crag
#

Not what I meant

#

If the code runs in vs code then it should probably work once compiled to wasm

real sierra
#

you cant adequately test the code outside of the game

#

thats why im Huh ing

opaque wharf
real sierra
#

ok

#

prepare for my hottest take

#

VCS are annoying and rarely help me with coding

sage crag
#

you really are a moderator of the vedal987 channel

opaque wharf
#

You need git gud

#

git gud is a terminal-styled puzzle game that teaches you Git the fun way—through 100 levels of increasingly complex word problems that challenge your version control skills. Each level drops you into a realistic scenario: from staging your first commit and branching out new features, to resolving merge conflicts, rolling back mistakes, and ma…

Price

$2.99

ā–¶ Play video
real sierra
#

now THAT is a game that would feel like work

minor crag
#

Git is for nerds

sage crag
#

no thanks

real sierra
#

Pointless code review has 27 unresolved comments

sage crag
#

@scarlet arch show us your latest rebase

#

im sure you have a new one by now

real sierra
#

in place of touching any vcs

#

i might just dump all the js source here

minor crag
#

Also

#

Doss anyone know if sir Mr vedal is at anthrocon?

sage crag
rigid snow
minor crag
#

Iwqjqjnerjfififi is my home town

sage crag
minor crag
#

Joe is the most popular breed of domesticated flying cat monkey

sage crag
#

i think my point is clear

minor crag
rigid snow
oak flicker
#

oh lawdddd

sage crag
#

shr biggest spammer

real sierra
rigid snow
#

not fucking lodash nooooooooo

#

why

stone cedar
#

How else should an LLM learn hblang if not scraping this channel vedalNeuroHUH

sage crag
real sierra
minor crag
#

I should unnecessarily ping vedal (that's probably not agents the rules)

rigid snow
sage crag
#

port sam's game engine to screeps

rigid snow
opaque wharf
#

Oh god he did the crime

sage crag
#

i forgive shr

rigid snow
#

i do too

sage crag
real sierra
#

tbh

opaque wharf
#

God I forgot how awful it is when using require

real sierra
#

i thought discord would leave them as files

#

not expand them like that

#

condolences

rigid snow
#

good feature

opaque wharf
#

True, so we don't have to download said warcrime to our PC

sage crag
real sierra
#

anyway thats the current AI

opaque wharf
sage crag
#

nuro integration for screeps

real sierra
opaque wharf
rigid snow
sage crag
#

javascript neuroSadge

scarlet arch
sage crag
scarlet arch
sage crag
#

sory

scarlet arch
#

You're good haha

sage crag
real sierra
#

byter