#programming

1 messages ยท Page 84 of 1

opaque sigil
#

you forgot a d there

olive sable
#

do yall expect us to not wait in line at the grocery store?

steel mesa
#

just run from the grocery store

#

why pay

opaque sigil
#

there's nothing to get, it's just a lil meme that british people love queues

olive sable
#

i dont understand the meme tho?

#

what are they queueing for?

opaque sigil
#

yes

steel mesa
#

yes

olive sable
#

we also queue in belgium?

#

???

rigid snow
steel mesa
#

no you dont

#

the belgium dont exist

olive sable
#

yes we do

#

wtf

#

the belgium is not ever proper grammar

steel mesa
#

proof that whatever they are dont exist

olive sable
#

but thats litteraly me

steel mesa
#

you dont really exist you're in my head

#

sorry to break the news like this

olive sable
#

damn your head is fuckign huge if true

#

see a docter please

amber fractal
olive sable
#

this cant be healthy

steel mesa
#

im just that big brain

olive sable
#

bro doen't have a 4head, bro has a 10^82head

steel mesa
#

damn are you that big

olive sable
#

im just including the universe

real sierra
#

"PANIC WE'RE USING 2MB"

steel mesa
#

thanks for the compliment, i always knew i had the knowledge o fhte universe

real sierra
#

the 2mb in question:

#

what is this list of 119 errors

#

some of these just make absolutely no sense

steel mesa
#

just ignore them

#

the game still works

real sierra
#

wait

#

what?

#

is this every error ive ever gotten?

#

some of these are so old they're from my previous AI that i wrote when i first started playing

olive sable
#

ah lmao

#

shiro are you british?

steel mesa
#

shiro is canadian

olive sable
#

shiro do you queue?

real sierra
#

what does that even mean

olive sable
#

like in daily life

real sierra
#

???

#

what would the alternative to queueing be

olive sable
#

you dont skip queues right?

real sierra
#

just dying if you have to wait

olive sable
#

like the grocery store

real sierra
#

if you skip queues for non-urgent reasons you should be shot

steel mesa
#

shiro this guy is delusional and believes that other countries queue

olive sable
#

see, even canadians queue

steel mesa
#

the british are the only ones that queue

#

no one else queues in the world

real sierra
#

if you take actions that place yourself before society then why wouldnt society dispose of you

olive sable
#

the belgians queue, the canadians queue. i dont get why the british are gatekeeping queueing

#

fuck the british

steel mesa
#

didnt mean to gaslight you into hating the british but sure this is the best outcome

rare bridge
#

@real sierra miner code

real sierra
#

when you start getting things like this, do you not wonder if you've abstracted too far

olive sable
#

cloudburst are you british?

real sierra
#

how much overhead are you getting calling empty functions like this

rare bridge
#

it's empty for now i'm working on it CerberOMEGALUL

real sierra
#

why did you show it to me before you wrote anything AINTNOWAY

rare bridge
#

for the comment AINTNOWAY

real sierra
#

thats the only part of that image that isn't "miner code"

rare bridge
olive sable
opaque sigil
real sierra
#

wdym more specific type

steel mesa
opaque sigil
#

wait was Function not a built-in, am i tripping

real sierra
#

it is a built in

steel mesa
#

are you running on hopes and dreams?

olive sable
#

always

opaque sigil
real sierra
#

in the Function type itself?

#

like, you can specify the parameters to the generic type?

opaque sigil
#

i don't actually know, but (params1: type1, param2: type2) => type3 works as a type

real sierra
#

well yeah i get that

#

but thats not what you're asking for

opaque sigil
#

it is neuroPogHD

real sierra
#

you want a more specific type for Function, then Function has to be a generic type that accepts type parameters

#

it doesnt have applicable inheriting types you could use in its place to my knowledge

opaque sigil
#

i was talking about a more specific type for functions, not Function specifically evilSMH

rigid snow
#

this argument is so stupid ๐Ÿ’”

real sierra
#

i dont think Function has any built-in subclasses that would make sense to use tho

#

or are you suggesting cloud subclass it themselves

opaque sigil
#

i'm not suggesting anything

#

i just found it kinda funny to see a "oh yeah this thing is a function"

real sierra
opaque sigil
#

also TIL Function is just

interface Function {
    /**
     * Returns the name of the function. Function names are read-only and can not be changed.
     */
    readonly name: string;
}

my life has been a lie

rigid snow
#

i'd () => unknown but who cares vedalCry

opaque sigil
#

idk either

#

i think we should abolish duck typing neuroPogHD

rigid snow
#

๐Ÿฆ† โŒจ๏ธ

tender river
#

๐Ÿฆ† wtf

#

meow meow mew mrp

real sierra
#

๐Ÿฆ† typing

rigid snow
#

admin he's doing it sideways

olive sable
#

tbh this screeps code seems so inneficient to me, im constantly checking if shit decays and every single other state change in the world that is important to my screeps.

#

normally i would just make the function activate as a direct result of the state change

real sierra
#

r neurOMEGALUL lled

olive sable
#

just received conformation of superbox's 3090 working

real sierra
#

now superbox can play graphically intensive games like screeps

olive sable
#

he had a 4070ti before

#

just needed the vram

nocturne olive
opaque sigil
olive sable
#

tbh i am wondering why screeps isnt running on gpu in the server, i guess if the sccripts are all diffrent it cant be properly parallelized?

opaque sigil
#

have you looked at the server dependencies

rigid snow
#

gpu js runtime neuroNOWAYING

olive sable
#

nope

opaque sigil
#

it's using nodejs from like a decade ago

real sierra
#

tho maybe that's a step after what you meant

opaque sigil
#

having to isolate things also kind of kills your potential to run things on the gpu

real sierra
#

sandboxed gpu despair

opaque sigil
#

not that you would want to in the first place realistically

#

tf you gonna do with this on a gpu

#

you're not running billions of creeps in parallel i'd hope

real sierra
#

actually i did hear the npc ops are kinda like that

#

lemme dig up that source

olive sable
#

just change to using cuda NeuroClueless

nocturne olive
#

And the fun thing with the 3090 is it's doing no rendering, so I get to keep all the VRAM

opaque sigil
#

i wish cuda was a silver bullet

real sierra
opaque sigil
#

it'd make my life so much simpler neuroCry

olive sable
opaque sigil
#

they're fast under very specific circumstances

rare bramble
#

the path my builders have to take to upgrade my controller

olive sable
#

my routes rn

#

road to the spawnr broke lmao

rare bramble
#

VedalOh oh damn

real sierra
#

thats a source, a spawner, a controller and every unit in the room

rare bridge
#

my miner is instantly confused

real sierra
#

me when i dont win despite gambling to the very end

steel mesa
#

theres always something to gamble shiro

real sierra
steel mesa
#

you have a car right?

real sierra
#

no

#

i dont

steel mesa
#

what do you have

real sierra
#

legs

steel mesa
#

great :)

#

they accept that as down payment

#

go gamble

real sierra
#

impressive

olive sable
#

imagine having legs, couldnt be my miners

real sierra
#

i didnt think anyone would want various replacement parts from me

#

given my poor genetic illness history

steel mesa
#

its gonna be used to feed animals

real sierra
#

i dont think im much good for that either given im underweight

steel mesa
#

food is food

olive sable
#

im long so most of my organs are desirable

#

i do have a bad liver tho

#

genetics

#

makes getting drunk cheaper tho so actually not that bad

real sierra
#

this room should reach RCL3 by tomorrow afternoon

olive sable
real sierra
#

GCL probably not going up for a couple weeks tho despair

steel mesa
#

i really tried guys

#

a shame i got stuck on the tutorial

#

this is a sign to stick to hardware

real sierra
#

screeps is niche

#

even for this channel

steel mesa
#

its about programing tbh

#

aslong its not just the game itself

#

but the logics of the game and certain builds

#

it should be okay to maintain here

real sierra
#

i moreso meant

#

even programmers dont all like this game

steel mesa
#

ah

#

well thats not my case

#

im just really bad

#

but i understand what you're saying

#

some programmers just might not like how this concept

#

but we shouldnt exclude a topic because of a group of people

#

i mean so far there hasnt been anyone that doesnt like the game

real sierra
steel mesa
#

i merely refunded because i couldnt get around it

#

but i still like the concept of the game

real sierra
#

there was a guy earlier

#

i swear he must've been ragebaiting tho

#

he was like "EW JAVASCRIPT?" and stamped it a bad game for that alone despite the wasm support

steel mesa
#

lmao

rigid snow
real sierra
#

either ragebait or missing out big time

rigid snow
steel mesa
#

its one of those that learned programming in 9th grade and got told by the "popular kids" that this language sucks

rigid snow
#

js le bad

#

classic

steel mesa
#

js can be bad

#

but you're not stuck to js

#

thats the fun part

real sierra
#

js is slower than many languages

steel mesa
#

the game allows you to compile your own language

rare bramble
#

neuroHypers implementing creep logic fairly smooth now, only took a little boilerplate

real sierra
#

its also incredibly convenient for this use case where you need thousands of sandboxed programs running simultaneously over the web

steel mesa
#

"your own" - the languages you like

rigid snow
#

the languages you like that can target wasm

real sierra
#

thats quite a few

rigid snow
amber fractal
#

Anything besides JS mhm

real sierra
#

C can probably target wasm at this point so if your lang can target C you're probably fine

rigid snow
steel mesa
#

i mean you could take a different approach and just... do some code injection ๐Ÿ‘€

real sierra
#

and if your lang cant target C or wasm then why are you complaining about js neurowheeze

steel mesa
#

azaka would probably love this game

rare bramble
#

only a matter of time until kronii gives a screep made with hblang

real sierra
rigid snow
steel mesa
#

too bad they're only a malware researcher

#

and not a malware user

olive sable
#

@sage crag i need hblang sreeps

#

idk why i just want them

real sierra
#

i mean

#

im looking into it and like

#

the hblang vm is written in zig

#

should be pretty doable to convert zig to rust surely

#

then you can compile that to wasm with existing screeps compats

#

so if you make sure the screeps bindings are accessible from within the vm

#

you win

#

some extra work probably needed for loading your hblang code from a module

rare bramble
real sierra
#

juho what did you do

rare bramble
#

ReallyInnocent nothing

#

I mean actually nothing, I have 0 lines of unsafe in my code

real sierra
#

how did you manage an oob access in rust of all things

#

is the rust screeps code broke

amber fractal
#

Invalid rust memory access? Impossible, I must report this to management post-haste.

olive sable
#

brother have a fcking ghost screep

#

i wonder what got blocked here

#

the typo or the topic?

rare bridge
#

i've got a very fun bug rn

real sierra
#

typo

nocturne olive
#

Anyone know any good Linux multi-GPU stress test?

rare bridge
#

my code refuses to think that this one source exists

olive sable
olive sable
#

ghost screep

nocturne olive
olive sable
#

taxi_71145222 is a ghost-taxi lmao

real sierra
#

maybe this joke is too old for people to appreciate Sadgi

olive sable
#

i know off crysis

#

im from 07 tho

#

im only a couple months older than the game

nocturne olive
olive sable
#

does the 4070ti have an sli port?

rare bridge
nocturne olive
olive sable
#

damn

amber fractal
#

FurMark inst #1 and FurMark inst #2

opaque sigil
nocturne olive
opaque sigil
#

sth sth offscreen render

nocturne olive
#

At least the 3090 definitely won't be sagging, the power cables for it and the 4070Ti will ensure a consistent space between it and the bottom of the case

olive sable
#

you should also have gotten a holding bracket

#

it was in the box

nocturne olive
#

I don't think that thing is designed for installing in a bottom slot

olive sable
#

wdym?

#

its supposed to go onto the pcie screw thingys under the 3090

nocturne olive
#

Under the 3090?

olive sable
#

yes

nocturne olive
#

There's like 1 of them below the 3090, and that's still right on top of the cooler

olive sable
#

ye then there's probably not enough space

#

should be fine tho

rare bridge
#

okay.. miner done, now for logistic

rare bramble
#

I swear im not doing anything funny

nocturne olive
real sierra
#

you may want to optimize

olive sable
#

so ye its fine, i dont see any issues

#

metal backplate and shit

#

its fine

rare bramble
#

The wasm load is always 70 - 200 ms, it's just the first tick

#

after that it goes to ~2 to 3 ms

amber fractal
#

Imagine being limited to every third tick, couldn't be me

olive sable
real sierra
#

go find it

olive sable
#

bro i dont remember what i changed

rare bridge
#

mfw i might need to refactor my spawning code already

rare bramble
#

VedalOh I think I accidentally introduced recursion

rare bridge
#

i mean

#

recursion limit is like 3

real sierra
#

devs were planning to add console.clear 9 years ago ๐Ÿ’”

#

where is it

olive sable
#

it exists?

rare bridge
#

gone

#

dusted

real sierra
#

thats the problem

amber fractal
olive sable
#

wdym that the problem?

real sierra
#

i want to clear console from my code tho

olive sable
#

ah

#

just crash the cosole and let it restart

#

modern problems require modern solutions

rare bridge
olive sable
#

fixed my code

rare bridge
#

i wanna base it on jobs need doing instead of it being based on minimums and maximums

olive sable
#

goodluck lmao

rare bridge
#

me omw to write more boilerplate LETSGO

real sierra
#

someone reverse engineered the screeps client to add console.clear

rare bridge
#

the current system works fine, but i don't want builders hanging around if there's literally fuck all for them to do CerberOMEGALUL

#

so i'm thinking a minimum count, a maximum count, and within that range the spawner can make it's own decisions on whether a creep should be spawned

real sierra
#
function clearConsole() {  // god has forsaken us
  console.log("<script>angular.element(document.getElementsByClassName('fa fa-trash ng-scope')[0].parentNode).scope().Console.clear()</script>");
}
rare bridge
sharp mantle
#

rumour mill is going at a fast pace currently lmaoo

olive sable
#

screeps use these arays to do shit [CARRY,MOVE], but how do i add shit to it based on code?

real sierra
#

for appending to arrays

olive sable
#

thanks

real sierra
#

theres another handy pattern that you might like

#
const arr = Array(length).fill(value);
#

this gives you an array of length length where every item is value

olive sable
real sierra
#

e.g. if you wanted [WORK, WORK, WORK]:

const body = Array(3).fill(WORK);
olive sable
#

based

#

this is everything i ever wanted

#

besides vulkan

#

now i need to have code to see how much energy i have in the spawner and exstensions combined

opaque wharf
glass flower
#

Wokege NOOO my code broke... my screeps are in distress

sharp mantle
#

STONEBLOOM {its small model keep that in mind}
๏ธ€๏ธ€Google is using some special Sauce ๐Ÿ’•๐Ÿ˜
๏ธ€๏ธ€one shotted
๏ธ€๏ธ€
๏ธ€๏ธ€prompt : Code Minecraft game clone . Make it beautiful, with pixel graphics like the original, add all main features of the game, terrain and tree generation, mobs, and a bunch of other stuff. Do as much as is feasibly possible

**๐Ÿ’ฌ 1โ€‚๐Ÿ‘๏ธ 8โ€‚**

โ–ถ Play video
dusty niche
#

unofficial Neuro-Sama will go online tomorrow

olive sable
#

if thats what it will look like no thanks

real sierra
#

ok

#

today on the tech debt cleanup list

#

the spawning bug ive been ignoring for 3 days where the amount needed for a particular role can be negative, causing an unintended budget overshoot for other roles

real sierra
#

well its because

#

something like

#
const perCreepBudget = totalBudget / (creepsTypeA + creepsTypeB);
#

and current code is like

#

"we want to have 1 of this creep and have 2 so we need to add -1 creeps glueless "

rare bridge
#

we need to brutally disintegrate a creep

olive sable
#

ReferenceError: min is not defined???

rare bridge
#

Math.min?

olive sable
#

does js not have min?

#

ah

#

math.min

#

ok

rare bridge
#

Math has to be exactly that

#

Math.min(arg1, arg2)

#

you can pass a 3rd arg too

#

it does absolutely nothing

#

but js doesn't stop you LULE

olive sable
#

okay

#

on my way to kill my broken miners

rare bridge
#

i should probably continue working on my logistics

#

i'm migrating the job of filling the turret and spawners to them

opaque wharf
#

So you can do Math.min(...[1,2,3,4,5])

real sierra
#

^

opaque wharf
#

Or more likely:

const someComputedArray = []
// ...
const theMinimal = Math.min(...someComputedArray)
glass flower
#

peepoMeltdown i have 300 ticks left for safe mode... and im not prepared

real sierra
#

idk how you can run out unless your creeps are just idle

glass flower
#

my entire code broke overnight so it was running in "just work. but not good" mode

real sierra
#

condolences

olive sable
real sierra
#

godspeed

glass flower
#

LUL basically my code was only looking at the nearest extension and not all the free ones.. but now i can't fix it because i didn't have version control and i started reworking my whole system for a better and more split work force

real sierra
olive sable
#

thats just the wifi

glass flower
#

my spawn code was looking for extensions.. but they were never filled so i added a emergency mode where if there is energy deficency but we don't have harvesters we try to spawn a suboptimal harvester... so it was just doing that the whole night

olive sable
#

restarting the game made ghost taxi dissapear

real sierra
olive sable
#

i cant be bothered to edit it tho

olive sable
#

aight i should have 4 miners fully saturatimg my sources, and some containers here by next morning

rare bridge
#

why did my spawner system spawn a 2nd miner

olive sable
rare bridge
#

it.. shouldn't have???

#

i think my spawners take so long to spawn that my system gets confused and tries to queue another spawn

real sierra
#

i think my code is perfect

#

no more changes needed

#

its done

rare bridge
#

i think i have an idea

real sierra
#

welp

#

i guess i should do performance improvements

#

profiling time Sadgi

rare bridge
#

shiro are you sure you've automated everything MinawanBounce

real sierra
#

tbh there isnt that much to optimize

rare bridge
#

damn shiro beat screeps

#

let's see how shiro's code lasts in 9 days time

real sierra
#

code can auto expand my empire as i attain the GCL for more rooms

#

defense is

#

...passable monkaLaugh

rare bridge
#

Okay will put that to the test later

opaque wharf
#

Does VLOOKUP perform interpolation?

#

Excel

real sierra
opaque wharf
#

I don't think it should be right?

real sierra
#

idk which performance issues are just cache misses

#

more profiling data supports my hypothesis that i dont need to optimise this anymore

#

like yea

#

almost all low performance is from cache misses

#

...that being said

#

builders are occasionally quite expensive

#

with no cache misses

#

so they're probably in need of extra caching

#

time to profile the preprocessing steps then

rare bridge
#

me adding a TON of profiling to my program CerberOMEGALUL

real sierra
#

looks like wall integrity checking is slow...

rare bridge
real sierra
#

your lack of if (Game.cpu.bucket == 10000) Game.cpu.generatePixel(); makes me quite sad for you

rare bridge
#

i'll add it (it must be profiled)

real sierra
#

well ive concluded from my profiling that im cracked at coding gx_ez

glass flower
#

LUL i don't have it either...

real sierra
#

back to adding features

real sierra
glass flower
#

but also.. everytime i compile it takes me over the current frame time. so if i get unlucky it could make my program take like 10 ticks to compile

nocturne olive
#

Very VRAM

#

21GB

#

3090 really being utilized

#

32 RVC batch size though, so that's cool

rare bridge
#

this is what i output for profiling now

glass flower
#
if (game.Cpu.Bucket == 10000 && game.Time - CurrentTick > 10)
            game.Cpu.GeneratePixel();

LUL i added this now.. it will now only try to generate a pixel after 10 ticks have past after a recompile

rare bridge
#

my profiling is meant to be read bottom up tho

steel mesa
#

I'm tempted to learn the game

#

thing is i have no motivation

rare bridge
#

do it Minawan4Evil

steel mesa
#

who wants to guide me and be my motivator crySparkle

#

wait no

#

I'd just disappoint you

amber fractal
#

I volunteer Shiro

opaque wharf
sage crag
sage crag
real sierra
#

Ok perfect

sage crag
#

aside from that, the zig compiler can compile to wasm

steel mesa
real sierra
#

great

#

but how do you get the screeps api accessible from hblang

nocturne olive
#

Also look at all that GPU

real sierra
sage crag
#

vm-ception

real sierra
#

i feel like an hblang expert like you could assemble this in moments

opaque wharf
real sierra
#

and then screeps in hblang would be possible neuroHypers

#

you could write some example screeps functions too to show how it works Ok

opaque wharf
#

Shiro seizing every opportunity to drag anyone to screeps

real sierra
#

im proposing a fun hblang project

#

i thought hblang was popular here capitalDColon

sage crag
#

i would rather reimplement screeps from scratch in hblang than mix javascript and hblang

opaque wharf
#

"Fun"

rare bridge
#

time to see if my new logistics code works

opaque wharf
#

Look at rust interop with JS. MIA for days JellyWheeze

real sierra
rare bridge
#

look at him

silver zephyr
#

chat, i hate wanting to code something but not knowing what to code

silver zephyr
real sierra
opaque wharf
amber fractal
#

Screeps mhm

real sierra
# silver zephyr whats this for?

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.โ€ฆ

Price

$7.49

Recommendations

1838

โ–ถ Play video
silver zephyr
real sierra
#

read description mhm

#

trust

opaque wharf
#

Steph and Shiro. Now we just need Sora hehe

amber fractal
rare bridge
#

okay, logistics works so well i'mma pull the harvesters store task

silver zephyr
#

speaking of which i remember why i came here now; how could i set up a way for my second pc to start a stream if my main gets turned off? ive been trying to figure it out but i dont qute know how, any info is handy, i was thinking of going for an api route with one pc sending the other a ping, but i just dont know

nocturne olive
#

#programming is now full of the silly game I can't get, which is particularly silly

amber fractal
opaque wharf
rare bridge
#

lemme give logistics the task of keeping the turret maintained too

amber fractal
#

While I'm here, @prime ridge
NN update, testing is underway. The goal being to collapse all cases into primitives. It's not working yet, but hopefully soon it will be.

opaque wharf
#

Could also use periodic ping and track the number of losses in a window

prime ridge
amber fractal
prime ridge
silver zephyr
nocturne olive
#

All this newfound VRAM is letting me run RVC training at a massive 32 batch size

amber fractal
#

I don't feel like booting up WM I'm just CLIing this

nocturne olive
silver zephyr
#

||Shiro cute, also happy birthday shiro||

real sierra
#

both wrong

silver zephyr
opaque wharf
# silver zephyr hmm

The downside is its prone to network error and requires periodic polling and other edge cases

silver zephyr
#

i mean i can just manually start it but why would i wanna do that

#

automation is funner

rare bridge
#

my logistic creeps are now in charge of energy from miner creeps to spawns and towers

amber fractal
#

Frickin git

rare bridge
#

when i unlock the next RCL i'll get a Storage and instruct the logistic creeps to store into there, that way the builders and (leftover) harvesters don't need to mine anymore

#

oh that something i should do

#

allow logistics to pick up energy on the ground if there is any

amber fractal
#

@prime ridge should be up if I didn't screw over the git

prime ridge
#

alr alr

amber fractal
#

Including the test code for the moment

prime ridge
#

it's not up for me

amber fractal
#

bwaa

prime ridge
amber fractal
#

Up on the WIP branch

#

Generalization seems to function once it exists, but for now I'm working on getting said generalization.

amber fractal
prime ridge
#

oh it's on WIP branch yeah

amber fractal
prime ridge
#
raise "bwaaaaa"
rare bridge
#

someone's gonna have to tell me why 3 of 4 of my logistics are idle

#

annnd my creeps have stunlocked themselves

real sierra
#

they're planning

rare bridge
#

or that tick took ages

prime ridge
#

@amber fractal What is "MaskToMask"?

rare bridge
#

oh they're putting themselves in weird states

#

ohhh i did a silly CerberOMEGALUL

amber fractal
#

Granted I'll need to do a lot of cleanup before I work on another neuron type.

prime ridge
#

So that's a "neuron"?

#

I don't know what these masks are for

amber fractal
#

It's just a building block at the moment. Something far too low level to properly use. If I wanted to build a char model then odds are this would be acting like a lookup table with one bit mapped to one char.

#

Granted as it is it'd not be the best at single selection on it's own. No limits to prevent more than one output by default.

rare bridge
#

@real sierra should i build some walls

#

pros: defence

#

con: as my code is currently written, my builders will go into a permanent repair task

#

i might make a creep role which just explicitly repairs walls

#

but for tonight surely the turret will be fine Clueless

trim valve
#

catdespair I keep learning more about ME networks

#

at this point there's a very real chance I end up tearing down my current base and making a new "proper" system

opaque sigil
#

memememememememememememe

trim valve
#

because I just learnt about point2point ME :3

#

I finally get to cosplay as a network administrator

amber fractal
#

Subnets PauseSama

trim valve
#

subnets are kinda neat

#

tbh I just needed to properly sit down and read the wiki

#

because just guessing what the quartz fibre does is not a fun game

amber fractal
trim valve
#

I will be watching that when I wake up even if only to test my knowledge

steel mesa
#

contrary to having only a few repairing, then you'd probably have them repair forever OMEGAlul

fast pagoda
amber fractal
#

It is an upgrade ๐Ÿ‘

fast pagoda
#

version = different = must be new

#

versions can NEVER go down

#

so true

real sierra
#

in fact i think its over two a day

#

turret is fine if there's one raider

#

if theres two, and one is a healer...

steel mesa
#

prepare at 3am
ding ding ding your base is gone

#

you'll receive an email that'll affect you as much as the rejections you got from job offers

opaque sigil
#

so not at all? too used to it neuroAware

real sierra
#

fake news, i would never receive a job-related email

bronze pier
#

Anyone here know Ren'py programing? I am stuck on trying to animate health bars.

default vladhp = 100
default maxvlad_hp = 100
define hp_bar_width = 200
define hp_bar_height = 20

screen vlad_hpbar:
default animated_hp = AnimatedValue(vladhp, maxvlad_hp, 0.5)
default hp_ratio = animated_hp.value / float(maxvlad_hp)

fixed:
    add "hp_bar_empty.png"
    
    add Transform("hp_bar_full.png", crop=(0, 0, int(hp_ratio * 350), 50)):
        xpos 359
        ypos 237

    add "hp_bar_frame.png"

Durring combat it calls upon the "vlad_hpbar" screen

The health mechanic works, but it's chunking the health rather than draining it smoothly. Cannot seem to fix it.

real sierra
#

i know nothing about renpy programming

#

but i would think that converting hp_ratio * 350 to an int would cause it to move in steps of 1/350th

#

since there's no fractional part to an int

#

not sure if that's what you mean by chunking

bronze pier
#

Well more so like the, health does go down correclty. I would just rather it visually drain smother than the chunk of health suddenly disappearing.

#

The 350 was just to resize the actual image correctly

dire trout
#

i think i understand most of python
wtf is __init__ self tho

real sierra
#

what

fast pagoda
real sierra
#

i mean not in that syntax

#

but yeah usually the __init__ function is your constructor

#

self is a new instance of the class

dire trout
#

oh

#

i have no idea when to use it rhough

fast pagoda
#

defining a class

real sierra
#

maybe an example helps to show that?

#

idk lets say you want a class Person that can store someone's age

#

you might write something like

class Person:

  def __init__(self, age):
    self.age = age
#

then when you want to make a new instance you can just

opaque sigil
real sierra
#
bob = Person(25)  # creates a new Person instance with age set to 25
print(bob.age)  # --> 25
fast pagoda
#
class Stinky:
    def __init__(self, deodorant)

you defeated me shiro i was busy thinking up hilarious function names

real sierra
#

no it needs to be as boring as possible so they pay less attention to the name and more attention to the useful info

dire trout
#

so

class OrderingSystem:
    def __init__(self):
        self.menu = menu
        self.cart = {}
        self.GST_RATE = 0.09 # 9% GST

    def display_categories(self):
        #insert categories here
        pass
#

?

fast pagoda
#

self is always passed - it refers to that specific instance of the object that's all it really is

real sierra
#

you would need menu in the arguments to the __init__ function after self

fast pagoda
#

yeah otherwise where's that menu coming from

dire trout
#

im not pasting the entire thing here ๐Ÿ˜ญ

real sierra
#

ah if its just a global then thats fine

dire trout
real sierra
#

er not a global but

#

accessible from that scope somehow

dire trout
#

oh

fast pagoda
#

it wont be in scope if it's not globe or passed to it or something else to put it there

#

globe

real sierra
fast pagoda
#

shiro age leaked

real sierra
#

i.e. unless menu was defined somewhere else at the same level as the class was, it cant be seen from inside the function

#

its just a random undefined word

dire trout
#

fuck

#

ok

#

so i do have to global it

fast pagoda
#

or pass it in the args

real sierra
#

or

fast pagoda
#

when you call it

real sierra
#

that

dire trout
#

oh

#

honestly do i even need a class for the stupid ordering thing i can just function all of them and itll work the same :smh:

fast pagoda
#

this is also wwhy they use __init__.py inside folders to define a package (bunch of other modules)

it's like a little analogy for the class initialization method but instead of a class it's used to signal that the dir is a package

#

frig

real sierra
#

wholesome confusing the user

fast pagoda
#

lil cute reference for ya

dire trout
#

wow

#

ill cross that bridge when it gets to that ig

fast pagoda
#

python 201

dire trout
#

sob

fast pagoda
#

i think directory structure would be a 101

real sierra
#

are you new to object oriented programming

#

totally ok if you are, many langs are imperative or functional nowadays

#

idk why oop lost popularity

fast pagoda
#

my youtube has recently started recommending me a shitload of anti-oop videos

real sierra
#

classes are one of the strongest features of object oriented programming YES

dire trout
#

pain

real sierra
#

a class is basically a blueprint for an object of some kind, describing what information it stores and what actions can be taken on it

fast pagoda
#

classes are like the thing that enables oop

real sierra
#

and then you make instances of that object from the blueprint, each of which is its own separate thing with its own information, arranged according to that blueprint

#

the constructor is a function that tells the class "how do i make a new instance of this"

#

it constructs a new instance

fast pagoda
#

you can encapsulate yo shit (in a class) -> abstracting away complexity into smaller bits and exposing just the class call -> this becomes inheritable to its children objects & enables polymorphism throuhg the fact that objects from different classes can be also treated as an object OF their parent class

real sierra
#

and i swear to god if you correct a nuance to my explanation in a way that only serves to make it confusing GETHIM

dire trout
#

i feel like i get it

#

but i dont

#

but i get it

fast pagoda
#

oh no i was just shitting out random stuff

#

which probably does make it confusing but see the thing is

#

E

real sierra
#

tldr never come to this channel for programming help

#

read a guide that's written to be helpful

fast pagoda
#

hey we'll explain a whole hell of a lot

#

99% of it you never asked for

real sierra
#

no

#

we will set them back

#

like

#

months

#

in knowledge

fast pagoda
real sierra
#

info dumps are number one way to make someone not pursue something

dire trout
#

nono its a lil helpful

real sierra
#

ive seen the question answering ability of this channel and it's dismal

dire trout
#

i mean... i guess i understand fully now

#

i just dont know when id use it ig

real sierra
#

oop becomes helpful

fast pagoda
#

for me it just lets me think of it how i would want to solve an issue irl
kinda

real sierra
#

it takes experience to kinda know how to best make blueprints for those items

#

yeah what afunyun said is a great point

#

you can often create things closer to how they would be in reality

#

since you can model real objects with... well, objects

fast pagoda
#

you're in a caave
with a box of scraps

python is the scraps but you can use those to build little blocks of stuff that solve small bits of the problem

and then jam em all together as needed

real sierra
fast pagoda
#

and then spent the rest of the 99% of the time trying to fix it after it explodes

real sierra
#

@rare bridge im gambling

#

opening my first crate

#

wtf themes

real sierra
#

it's just hit me that i need per-room statistics in addition to the global ones

dire trout
#

what does a 20 CPU limit mean

real sierra
#

pain

real sierra
#

give or take

dire trout
#

idk if I buy screeps I don't really want to pay $130

real sierra
#

you dont need to

#

nobody here has

dire trout
#

oh

#

is there ways to increase cpus

real sierra
#

not without paying money

#

but 20 CPU is still quite a lot

dire trout
#

pain but fair enough

real sierra
#

i have two rooms and im only using about 5 CPU

#

and a lot of that is just one-time overhead that doesnt scale with my size

#

its very possible to be successful with 20 CPU

#

just need to write good code

#

but you can take baby steps toward that, nothing is perfect out the gate

glass flower
#

also... technically in the end-game you can buy cpu unlocks with ingame credits

#

but that is likely 100's of hours in the future LUL

#

the base game version is totally fine

#

i barely go over 3ms

#

and i run c# with wasm which is likely a big overhead generally

dire trout
#

after trying the tutorial I can say it's okayish

#

don't think I will buy tho

#

๐Ÿ˜ฆ

glass flower
#

it is a MMO afterall YES its not for everyone. also a big time commitment (which is kinda ironic since its suppose to be about automating everything)

glass flower
#

ICANT i knew the pixel generation code would cause this... now i need to wait for my bucket to be full because i gen'ed a pixel right before i recompiled

tulip ermine
#

Anyone a Roblox developer neuro7 Can anyone make me a headtracking script for my fake head named "Debug_1"

#

My bad I meant look at player script

dire trout
#

so this works?

class OrderingSystem:
    def __init__(self):
        #set menu data
        self.menu = {
            "Burgers": {
                "category_code": "FB10",
                "items": {
                    "B01": {"name": "Classic Beef Burger", "price": 5.50},
                    "B02": {"name": "Chicken Burger", "price": 5.00},
                    "B03": {"name": "Veggie Burger", "price": 4.80},
                    "B04": {"name": "Spicy Chicken Burger", "price": 5.30}
                }
            }
        self.cart = {}
#

then I can function it

dire trout
#

oh

#

OH

#

oh

#

I see

olive sable
#

Goodmorning neuroWaveA

olive sable
#

Going nack home now

#

5 hour drive to dubrovnik today

amber fractal
#

Yippie neuroHypers

olive sable
#

Tomorrow flight home, and friday morning train

glass flower
#

LUL 2 of my upgraders just decide to live in another room now...

uneven pulsar
#

Day 90 upgrading the frontend ( which is now fullstack) on a Zend mail box system Prayge

#

Kinda crazy to look at the git blame in this project and see 2008 commits.. I was 6 Stronge

amber fractal
#

Not sure which one is more impressive, starting a life long coding project at 6 or knowing how to use git at 6

jagged turtle
hidden lagoon
#

Hey, i've been having some thoughts about Neuro's TTS. She seems to always pronounce "live" as in "alive" rather than "living" even when it's supposed to be the latter. She also pauses after every period, even if it's signifying an abbreviation. There's also some even more contextual cases like saying "three tenths" rather than "three out of ten" for 3/10.

What i'm wondering is if an LLM can be trained to output different symbols for characters with different meanings, like the period. Maybe normal speech could even be returned entirely phonetically, and there's like a dictionary that translates it to plain text for the subtitles. Or maybe ambiguous cases like "live" and 3/10 could be individually annotated with their pronounciation.

Is this a viable idea? Afaik LLMs are trained on text, so maybe you can't really distinguish these differences during training ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

tender river
#

specifically, she just uses microsoft ashley

#

some of the issues you mentioned are why evil is a thing (her voice was originally supposed to be an upgrade for neuro) and why vedal is working on voice v3

hidden lagoon
#

So hijack Ashley and give her an education!

tender river
#

thank you chatgpt your answer is very insightful

amber fractal
#

๐Ÿ‘

silent nacelle
#

i know this is silly but how do i get in programming in general? specifically towards software engineering or cyber security

jagged turtle
# silent nacelle i know this is silly but how do i get in programming in general? specifically to...

software engineering you should try all the different ways to print text to a console (this is why hello world examples are used), this gets you understanding different programming concepts such as variables, functions, etc...

cyber security you need to apply a bit of software engineering (so you can create exploits, obviously) and think out-of-the-box a little. try finding a site that lets you do capture the flag exercises to warm you up

not an expert in either but hope that could give you some pointers

silent nacelle
#

thanks!

jagged turtle
# silent nacelle thanks!

also if you're getting stuck on trying to create something try drawing down what you want your program to do before continuing. it can give you a good visual representation both for yourself and others (if you ask for help)

plus you're an artist according to roles so it'll integrate your current hobby in (hopefully)

glossy bolt
silent nacelle
opaque wharf
jagged turtle
opaque wharf
#

You're good to learn programming with just a browser too. The language is called JavaScript and used mostly for web stuff

jagged turtle
#

it doesn't even have to be neat either, here's my example

jagged turtle
#

anyways, any language works for learning programming (that isn't html or css unfortunately), you just need to learn programming fundamentals and concepts and then your knowledge will help you translate between languages, more or less alright

opaque wharf
silent nacelle
#

i might have to grow a bigger brain before i get to the nittygritty of it first hahah

jagged turtle
opaque wharf
jagged turtle
#

depending on your browser yeah

opaque wharf
#

Oh, there's console but below the inspector. Yeah, probably not the best then lol

jagged turtle
#

yeah

#

also the inspector shows html code which likely wouldn't be that helpful to examining a website's interactivity

#

oh no wonder adobe acrobat keeps crashing when I give it 2 PDF files neurOMEGALUL

opaque wharf
jagged turtle
jagged turtle
#

I say most sane devs because I know an IRL person who inlines all of their javascript

tender river
#

google goes a long way, if you know how to learn from google you're set for programming

opaque wharf
jagged turtle
opaque wharf
#

Yeah, I mostly do SPA

#

Because I believe generating HTML on the server side is just a waste of compute

jagged turtle
#

That's not SPA-specific

#

that's called ssg - static site generation

#

bro my g key is broken

silent nacelle
#

whhops

#

makles sense

desert wave
opaque wharf
silent nacelle
#

ive only really had some minor experience with coding in unity due to highscholl but after that i kinda just forgot it all

jagged turtle
opaque wharf
#

It could yes. Called hydration. But I rarely do such thing

jagged turtle
#

Well that same argument applies to me and MPAs

#

I could use server-side rendering to render my pages (if I bother learning how to without a framework...) but I rarely do such a thing

#

so neuroShrug

#

to me SPAs simply eliminate page navigation load times and reduce sending multiple pages for one client at the cost of worse SEO and larger bundles sent to clients

#

also can't forget the joke of "everything is just jsx"

opaque wharf
#

My stack is Vue + Vite PWA + Vuetify

jagged turtle
#

well yeah, internal applications don't care about SEO and larger bundle sizes

#

so in your case it fits

opaque wharf
#

Throw in some UnJS if you need more utilities. Also NuxtHub if I wanted easier deployment

#

And VueUse. Honestly, I love Vue lol

jagged turtle
#

I can tell

#

I used Vue back when VuePress was still a thing

#

and also used it with Nuxt

#

sorta don't really anymore

#

also is Vite PWA supposed to simplify PWA creation process for apps built using Vite?

glass flower
# silent nacelle ive only really had some minor experience with coding in unity due to highscholl...

tink honestly for software engineer i would definitely recommend learning it through making games.
i started out by making super mario in java as my first proper project.
you could use javascript and a framework (https://github.com/collections/javascript-game-engines) and make simple games just to figure stuff out. since its a lot of interactive problems and you can see how things change if you change variables or functions.

opaque wharf
#

Yeah, V2 was really not that good at that time. V3 is arguably miles ahead in terms of DX. Couple that with VueDevtools that support plugins (Pinia, VueRouter, etc)

jagged turtle
#

hell yea

#

lemme, uh, see how to use that ๐Ÿ‘€

opaque wharf
#

For simple apps that don't need to muck around by creating custom service-worker, VitePWA can generate it from predefined strategy and inject it automatically too if needed

#

But you can still create a custom service worker too if needed for push notification for example

jagged turtle
#

yeah I can tell

#

๐Ÿค” very useful thanks

opaque wharf
#

You're welcome. Web development is just that huge

jagged turtle
#

yeah I'm aware

think my cs teacher one time said "we got a whole bunch of people making javascript their lives and it's quite funny" and like well yeah ig

opaque wharf
#

Honestly, most "application" can just be a PWA nowadays

#

We have WebRTC, Websocket or SSE, OPFS, PWA, Web Push + Web Notification

jagged turtle
#

isn't that what part of the name is

opaque wharf
#

Yeah, but I mean like, native app

jagged turtle
#

oh yeah

#

I think microsoft took that to the extreme with one of their windows releases

#

I think it was the Windows 365 builds being basically one giant webview?

opaque wharf
#

Not to mention the non-standard API like Web Bluetooth, Web USB, and other Chrome specific API

#

WASM too

opaque wharf
jagged turtle
#

yeah I would imagine so

#

but I thought it was basically just screensharing to a browser iframe or smth

opaque wharf
#

I don't know the details about that

tight tinsel
#

hooray

#

i still have 1 more school yet to get back to me but imagine i get invited for all 3 of my choices

#

would be pretty cool

opaque wharf
#

Congrats and welcome to the insanity

tight tinsel
#

with 2 acceptances im on par with one of my seniors

#

well theres also the part where i need to actually prepare for them

stark needle
tender river
#

bwabwa

real sierra
#

good morning friends

tender river
#

shiro

#

how are your screeps

opaque wharf
tender river
#

shiro doesnt have that power

#

however, i am willing to make a js backend for erf2.0 for all your screeping needs

opaque wharf
#

You say that but now half of programming is persuaded to play screeps. Even using rust

tender river
#

peer pressure

opaque wharf
glass flower
#

pepetears i even closed it today once already...

#

but now.. atleast i hope.. even if im offline everything should just work and nothing should break even if i get invaded... annytfPray

tender river
#

clearly you must buy a new monitor just for monitoring your screeps

glass flower
#

pog i even started using RoomVisuals for debugging..

glass flower
opaque wharf
glass flower
#

quick question tho IHaveAnErmgi can enemies cross diagonally here? visually it would tell me no.. but creeps can normally go through diagonals

opaque wharf
#

But I don't know for sure if he has changed it

rare bramble
#

despair I still dont understand why resolving the ID fails

real sierra
#

I'll check on this afternoon

#

I don't think much has changed for this morning

opaque wharf
real sierra
#
if (room.find(FIND_HOSTILE_CREEPS).length > 0) room.controller.activateSafeMode();
#

or whatever the function is

glass flower
real sierra
#

visuals are visuals mhm

glass flower
real sierra
#

at the js level, screeps expects a string

rare bramble
#

and I use resolve to get the underlying type

opaque wharf
# rare bramble

See, that is rust in-memory representation. If you get those ID from somewhere, you need to make sure those in-memory representation are preserved after loading it

rare bramble
#

and this way to store object is recommended by the rust starter screep in the official repo

glass flower
real sierra
#

^

#

print the ID before you use it and make sure it maps to something I guess

#

probably a logic error in your code

#

not a boilerplate problem

opaque wharf
glass flower
#

i don't use ID's anywhere

#

like.. at all LUL

real sierra
#

you will

opaque wharf
#

Hmmm, then what did you do to get the creep_impl for Miner, Builder, etc?

real sierra
#

the moment a creep needs to remember a particular structure or creep

glass flower
opaque wharf
#

I'm guessing on your code somewhere, you are iterating a container that contains the object which implement creep_impl for different type of creep

real sierra
dry charm
#

Not having a stable Unique ID that is fixed is a trouble for the long run NAILS

real sierra
#

the id should be unique and fixed

#

that's a guarantee made by the game engine

glass flower
#

i have roles saved in their memory. and get the class that needs to do the logic with:

real sierra
#

but it is possible for an id to map to nothing if the associated creep/structure dies (or never existed)

dry charm
#

i need to get into creeps, can someone make a day have 48h pls

glass flower
#

then i just do this. for each role annySipping

real sierra
#

MORE SCREEPS PLAYERS

dry charm
#

I even got it already, just do not really have time for it

rare bramble
#

using try_resolve retrurns Ok(None) hmmm

real sierra
#

I would validate that by hand

#

the game does not automatically clear the memory of dead creeps and such fyi

#

must be done by the player

rare bramble
#

ye but the ID i'm trying to get is for a room controller

glass flower
#

tink but also.. i don't think ID are an issue for me. because its just accessible on every creep through this interface. haven't validated if its correct... but i also don't have issues with Name which is similar to this

rare bramble
#

and it resolves fine sometimes

real sierra
#

oh

rare bramble
#

but other times it just fails

opaque wharf
#

I give up trying to do 3 things at once. Rust to JS is already cursed as it is, and I still got work to do catdespair

real sierra
#

sometimes

glass flower
#

uhhh why do you need a ID for a room controller? can't you just directly access it through the room itself.

opaque wharf
#

Welp, back to work I go

rare bramble
#

Like I feel like it resolves fine the first time and fails after that since my miners hogging the same resource used to have this problem, but now that I have 1 miner per resouce, i no longer have the same problem with miners

real sierra
#

that's so strange tho

left solstice
#

Would Core 2 duo 3.00 GHz x64, 8 GB ram and Integrated GPU be enough to play screeps?
I asked it before but didn't get an answer

real sierra
#

why would that happen that way

#

I guess as a bandaid fix you could cache IDs/objects the first time you dereference them or something?

real sierra
glass flower
real sierra
#

if you can watch a YouTube video you'll be fine

left solstice
real sierra
#

more screeps players

#

a few of us are in the novice zone at shard3 E38N38

#

in case you wanna come visit

olive sable
left solstice
#

The game looks fun. Its a bit like bitburner which is another game about programming scripts and bots in netscript but screeps seems more interactive

olive sable
#

My ass hurts from sitting in the car lmao

real sierra
#

bitburner felt too much like work

#

and that's coming from me

glass flower
real sierra
#

in a game where the core gameplay is writing code, using premade code is gonna worsen your experience

glass flower
real sierra
#

the few exceptions to that in my own code are a function for detecting respawns and a function for clearing the console, each of which I found on the forums

#

because I didn't even know either was possible with the engine limitations neurOMEGALUL

glass flower
#

i only used the basic template for getting starting with the c# version. it had like a basic harvester and the role thingies. gonna rewrite all of that soonish tho..

rare bramble
#

like I could Implement a generic trait for objectID that checks if the object for the ID is cached per tick and only resolves it the first time, and returns cached item if the ID has been resolved the same tick before but that would just be more boiler plate catdespair and I think there must be a sane solution to this

tender river
#

bessel is such a nerd dont listen to him

real sierra
opaque wharf
opaque wharf
left solstice
#

A very underrated game about programming is EXApunks in case you want to check it out. It feels very satisfying to solve the puzzles but most importantly doesn't require any programming knowledge which was great for me 1-2 years ago when I played it while deciding if I should learn to program

real sierra
#

but he's right for point 2

#

credit where credit due

olive sable
#

Time to check on my screeps

glass flower
real sierra
#

Time to check on my screeps

rare bramble
olive sable
real sierra
#

salute can't load webpage

rare bramble
#

trying to resolve the IDs

real sierra
#

both of my rooms are about to upgrade

scarlet arch
#

Back to my code review I go nyaTired

real sierra
#

I'm not micromanaging them

#

they micromanage themselves

scarlet arch
#

Technically you wrote the management

glass flower
#

annytfSittu i am micromanaging them.. for the past like 20 hours.
i look what they do. and if they fuck up i fix the code.. and repeat

real sierra
#

I have a decent system down mhm I can trust my creeps will do what is needed

#

the biggest test right now is the new room, and making sure I can still build up from zero

glass flower
real sierra
#

not 100% on if things like wall creation will work perfectly the first time

#

it should, but

glass flower
#

COPIUM surely

#

my base.. should upgrade now on its own and keep everything going. it won't expand or anything like that or build anything. but atleast it shouldn't break

real sierra
#

it does reassure me that cloudburst is independently discovering the same strategies as me

glass flower
#

hmm once i hit lvl 3 i will start expanding to other rooms and stealing energy from them