#programming

1 messages Ā· Page 70 of 1

real sierra
#

thanksd

opaque wharf
#

Its called spread syntax is JS I think

real sierra
#

"Destructuring"

#

cant call it anything sensible or industry standard

#

that would be too useful

sage crag
#

i could be a meteor

#

you would never know until it's too late

real sierra
#

because you're on fire neuroBlush

opaque wharf
#
MDN Web Docs

The spread (...) syntax allows an iterable, such as an array or string, to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected. In an object literal, the spread syntax enumerates the properties of an object and adds the key-value pairs to the object being created.

#

Spear... yeah that happens

real sierra
sage crag
#

javascript spear

#

the forecast says it will be 20 celcius tomorrow

sage crag
#

which means it will have gone down by 12 celcius

#

i pray for it

real sierra
#

ill assign you

#

to undefined Evilge

sage crag
dark valve
#

Is it python code or somethings?

tiny mango
#

Screeps looks like an actually fun thing

#

will i get rolled if I don't know the meta or is it something you can slowly get better at

#

"the meta" just being good code lmfao

real sierra
real sierra
#
sage crag
#

meow

tiny mango
#

is there pvp or is it just resource gathering and vibing?

real sierra
#

there is pvp

tiny mango
#

what are flags?

#

last question from me, I'll check out docs afterwards lol

real sierra
#

flags are cosmetic

#

just markers you can use as you please

tiny mango
#

Oh I see I see, fun cute

real sierra
#

any function they might have is function you add yourself

tiny mango
#

turn_east()
mine()

real sierra
#

but yeah screeps is fun

#

it can be daunting to start but you can mostly take it one thing at a time

#

just start by figuring out how to make a creep

#

then how to make it move

#

and how to make it do other stuff

tiny mango
#

Macbook M4 chip -- how warm will my laptop get

sage crag
#

what is the shiro word of the day

real sierra
#

if you play on the official server, not at all -- the code runs on the server

tiny mango
#

Oh sick

real sierra
#

the game is really just a nice wrapper for a browser client

tiny mango
#

Gotchya

real sierra
#

so if you can run a youtube video

#

you're probably good

tiny mango
#

Most days I can

real sierra
sage crag
opaque wharf
tiny mango
tiny mango
sage crag
real sierra
sage crag
tiny mango
#

TWO wordn'ts

real sierra
#

i replaced the cache wrap function with one that doesnt use the cache at all

#

and im averaging 3 cpu

#

but with the actual cache wrapper

#

im averaging 4.5

#

how did this happen

opaque wharf
#

The cache is not warm enough

#

Lots of misses too maybe

real sierra
#

cant be that many misses

#

the functions i wanted to cache most were ones like this

opaque wharf
#

Only one way to find out

real sierra
#
getWithdrawables: cache.wrap(function(room) {
        const prio = {};
        prio[STRUCTURE_STORAGE] = 0;
        prio[STRUCTURE_CONTAINER] = 1;
        prio[STRUCTURE_EXTENSION] = 2;
        prio[STRUCTURE_SPAWN] = 3;
        return room.find(FIND_STRUCTURES, {
           filter: function(s) {
               return s.store && ((s.structureType != STRUCTURE_SPAWN && s.store.getUsedCapacity(RESOURCE_ENERGY) > 0) || (s.structureType == STRUCTURE_SPAWN && s.store.getFreeCapacity(RESOURCE_ENERGY) == 0));
           } 
        }).sort((a, b) => (prio[a] - prio[b]));
    }),
#

ugly and expensive

round berry
real sierra
#

given the only parameter is the current room

#

and i have all of

#

...one room

#

this should hit pretty reliably

#

actually maybe its not as bad as i thought

#

im back down to 3 CPU

opaque wharf
#

See, not warm enough

real sierra
#

i also might just not have the scale required to see the benefit

opaque wharf
#

You could also perform the warming up when you have excess compute (the bucket thingy)

real sierra
#

i mean

#

lets be clear

#

these functions are being cached for a single tick

#

lots and lots of stuff can be cached for one tick since actions taken during the tick aren't committed until after the tick completes

opaque wharf
real sierra
#

yeah

opaque wharf
sage crag
#

why cache then neurojuice

real sierra
#

because some of these functions are expensive and need to be called many times a tick

#

some of them are O(creep) so

#

more units = big slow

opaque wharf
#

Oh so you mean the Memory object is literally shared just for one tick?

real sierra
#

no i mean

#

theres almost that can be cached for longer than a tick

#

units move, resources are spent or change, creeps move in/out of the map

round berry
#

neuroNOTED
Silly question
Whats a tick in this context?

real sierra
#

a game tick

round berry
#

Oh okay so it is that YES

real sierra
#

a single time step within the game world

#

during this, every player's AI script runs once

round berry
#

I thought it was like a specific unit of clock cycles neuroGiggle

real sierra
#

each creep can generally take a single action per tick

real sierra
#

players get an execution time budget for their AI

round berry
#

YES
I get what gameticks are, played both osrs and minecraft

real sierra
#

for example, mine is 20 CPU, which correlates to 20ms per game tick

real sierra
#

but yeah my issue with caching is

opaque wharf
real sierra
#

almost every aspect of the game state changes between game ticks

#

so there's next to no information worth caching between game ticks

#

within a game tick however, most of that state is entirely frozen, and given you need to issue similar commands and process similar information for numerous creeps of the same role, i think there's still benefit to caching on a per-tick basis

#

i just need the creep count to justify the overhead

round berry
#

neuroNOTED
Think it could be useful to make creeps do more complex instructions? Rather than like
Walk left, walk right, walk up, walk down?

Like say "Walk left until you find a wall or have an enemy in line of sight, then reconsider"?

That could perhaps save on compute time? neuroNOTED

#

(Based on pretty much no info on how your game works, just assumptions YES)

real sierra
#

worry not

#

the game is kind enough to provide pathfinding for you

round berry
#

How kind of it

real sierra
#

you can abstract to the level of "ok creep, move to this structure" and it will find (and limitedly cache) a path to that structure if it exists, and take a single step along that path if possible for this game tick

round berry
#

neuroNOTED
Read up very briefly on what screeps is, I get it now YES

sage crag
#

please github i do not want to see my dependabot alerts for this week

#

stop emailing me microsoft

opaque wharf
sage crag
round berry
#

Me too man neurOMEGALUL

#

Working on a thing that is entirely unrelated to what is failing
And its not my job to fix

opaque wharf
#

You guys didn't turn off email notification? neuroDespair

round berry
#

Probably should Hehe

real sierra
#

i should turn on screeps email notifs

#

thanks for reminding me

sage crag
round berry
#

NOOO
JUST MERGE I KNOW ITLL FAIL ALREADY neurOMEGALUL

opaque wharf
real sierra
#

all my creeps died again nwero

#

i feel so stupid Dentge

dark valve
real sierra
#

i learned it because of and for express purpose of this game

opaque wharf
dark valve
dark valve
opaque wharf
#

Just try pressing F12 on your browser

dark valve
#

but i'm chatting on the phone:))

round berry
#

Press F12 on your phone then NeuroRage

dark valve
#

Idk where i can press it broneurOMEGALUL

opaque wharf
#

Buy external keyboard hehe

dark valve
#

I use Android

gritty dust
#

frlolll

#

neuroHypers peak

opaque wharf
#

Holy mother of back reading

tender river
#

i know two people who have hacked websites to reset their passwords (is one of them me? maybe, maybe not, no comment)

opaque wharf
tiny mango
#

just put all your pwords on a sticky note on your monitor!!

#

you can put another sticky note over it that says "don't look"

opaque wharf
tender river
maiden geyser
#

good morbing, chat

real sierra
#

good morbing neuroWaveA

hoary lion
#

finished adaptive norm

#

it's diffusing time

real sierra
#

finished coding a crucial role in my screeps empire

#

as with any goliath, the silent workhorse of logistics is everything

#

and so ive created a creep whose only job it is to collect trash laying on the ground and move resources between storages

#

surprisingly this was the most complicated to code

#

the effects were immediate tho

#

the AI has started pumping out larger units, since it finally has the resources in the right structures to construct them

#

double-sized miners have caused the economy to skyrocket

opaque wharf
#

American military is not the strongest because they have so many shiny new toys but because their logistic capabilities is extremely powerful

#

Supply lines people. When waging war make sure it is secured evilDanceHyper

real sierra
maiden geyser
real sierra
#

things arent spawning at all now

#

spawner?

#

i may have broken the spawn queue when i was playing with console commands

#

oopies

tender river
#

ew there was a bug, off to the spider you go

real sierra
#

my units are just wandering into other rooms randomly?

#

i didnt even know they could do that

#

wtf are you doing in here lil guy

tender river
#

sentience

real sierra
#

??????

#

even more are just going to the other room

#

why

#

what is going on

tender river
#

they are unionizing

slim marsh
#

you dont value their freedom

real sierra
#

im so confused tho

#

this upgrader is just

#

going

#

somewhere

#

bro this isnt my controller you cant just go upgrade it

opaque wharf
tender river
#

no, we just have a non-aggression pact

real sierra
#

ok i figured it out

#

some asshole fell asleep on the road despite being coded otherwise

#

so the upgraders' only way to get to the controller was to go through the adjacent room

#

but upon walking into this room, they thought it was home

#

and they live here now

#

which is a problem

tender river
#

shiro i just had a revelation i realized functional logic programming languages' amb special form can be considered to be a symmetric product this is huge

#

i want to pursue this idea further you have no idea how important this is

real sierra
tender river
#

another thesis to read vedalBwaa

#

from one of xmonad's authors

#

but after i read it i think i will be (somewhat) set to make a new language and i actually have some confidence in it turning out good this time

#

i just don't know whether it will require building a proof checker

#

this is the scary part

inner pike
#

Got the first of my exams this semester today

real sierra
#

ok im aware of more bugs but i cant fix them tonight, not enough time NeuroBwaa

#

for next time tho

#

spawning.pull needs to verify that the specific spawner has the capacity to spawn what is pulled from the queue

#

and logistics bots are still doing weird behaviour where they sit idle, probably more error codes i need to catch

#

im sure my screeps will survive in the meantime Prayge

midnight sigil
#

can't believe I'm here installing python environment for my school Tutel

#

that's fucked up

hoary lion
#

this cannot be real

#

and should not be

jolly fulcrum
#

Oh, hello. So can you guys help me with something?

I really want to learn about computer science, but more on the practical side—like being able to do my own check-ups, knowing how to react when my notebook is slow.

I’m not interested in something deeper, such as programming or similar topics. I’ve tried searching for videos about it on YouTube, but it’s kinda hard without a clear direction. And when I go over the very basic stuff—like "What is hardware/software?" or "What is HTTPS?" Is not super practical, so I lose interest very easily. Any tips?

inner pike
#

Em dash spotted

opaque wharf
#

Try to get concrete things of what you wanted to do using your personal computer. Then check to see how to do it in Linux. Then install linux

jagged turtle
hoary lion
stark needle
jagged turtle
stark needle
serene briar
#

can some one send code "BLUE" chart really quick, i wanna download it

serene briar
midnight sigil
amber fractal
#

I'm pretty sure that is the exact name of the bingo slot as well

midnight sigil
tender river
#

making ad hoc polymorphism explicit by supporting infinitary product types is certainly one of the ideas i've had

#

i don't know what will or won't work but at this point i have so many stupid ideas i must try them out

#

and the best part is the ideas haven't changed that much since like 2 years ago they just became more refined

amber fractal
#

I just hope this is the last version of my magic idea. Because if I have any more issues, it's going to take so long just to get to parity with what I have now.
(This is not off topic, I intend to make this into a game physics system eventually)

tender river
fast pagoda
#

now that's a backup format

#

i think all .json should come as .json.pdf

tulip ermine
#

Can someone just give me some uh training data for my chatbot. Its supposed to be a programmer so just give me lines of code I don't fucking know, and I'm to lazy

#

😢

tender river
tender river
safe path
#

omg the dragon book

#

every professor ever keeps a copy as a trophy

autumn ore
rigid snow
#

how tf do you accidentally do that

autumn ore
opaque wharf
#

Wait, but the pdf renders just fine?

#

So the PDF reader could be used to read raw text file? neuroDespair

faint lagoon
#

Idk even know how to code yet but I had an idea wanna do when I learn but I'm curious how possible it ismikuload.
pikahmm The idea is to connect discord to either an common texting app or make one to connect to ur discord, bc I wanna make it so we can use discord emojis while texting outside discord

rigid snow
tender river
amber fractal
tender river
#

but if you want something that bridges multiple messengers i recommend trying matrix

rigid snow
opaque wharf
tender river
amber fractal
tender river
opaque wharf
rigid snow
#

the only apps i know that have custom emoji support are telegram, imessage, discord and slack

tender river
#

just because you can modify an app to send something other than text doesnt mean you can modify the servers to accept it or the app on other people's devices to actually draw it

rigid snow
#

react server components with react native neuroPogHD

tender river
#

react no code with react cloud neuroPogHD

rigid snow
#

no code evilDeadge

olive sable
#

Goodmorning neuroWaveA

rigid snow
amber fractal
ruby timber
rigid snow
#

or something

tender river
#

iframes neuroPogHD

rigid snow
#

it’s native Erm

tender river
#

native iframes

noble zodiac
#

nframes

amber fractal
#

inative frames

opaque wharf
#

Oh god so many cursed idea just to achieve cross-app emoji

rigid snow
#

i mean there are the four apps i mentioned

tender river
#

matrix just uses inline html images for emoji

rigid snow
opaque wharf
#

We go back to HTML+CSS with that

rigid snow
#

what? i mean react native

amber fractal
opaque wharf
rigid snow
#

do people still think react native is a fucking webview in the big 25

#

i’m gonna crash out

opaque wharf
#

You sent out react native from the server dynamically

#

The app must display said component

#

How is that not a browser?

rigid snow
noble zodiac
rigid snow
#

not native ui

tender river
#

this is truly generic and allows full interoperability between arbitrary apps

#

one may call this, the singular messenger

noble zodiac
#

replace the apps users with llms as well

opaque wharf
amber fractal
noble zodiac
#

you mean X the everything app (tm)

opaque wharf
#

So rather than "Oh, we don't have dropdown on x,y,z", they create one and reuse it everywhere

#

Rather than making dropdown looks the same on x,y, and z

amber fractal
olive sable
#

Driving up a mountain is painfull.
We had to go up and down on the same road.
When you have to pass another car you're fucked and have to go backwards to one of the turns cuz there's more space there

#

I have decided yall need to know my pain

amber fractal
#

How many steps can you skip on these stairs

opaque wharf
#

Take it or leave it

olive sable
#

Depends on the stairs?
I can do 5 at home but those are small

olive sable
#

Yep

#

I still dont get it tho

olive sable
#

So uhh. You can skip a step, but you will need to hike up the mountain instead for 50m

opaque wharf
#

Now I'm wondering how would you fare if you were being interviewed by Philomena Cunk, Sam

amber fractal
opaque wharf
amber fractal
olive sable
#

Ohhh

#

The british girl

#

Idd outplay her šŸ’Æ

opaque wharf
#

I wonder if vedal ever get interviewed by her what would he response to some of the question lol

olive sable
#

Vedal getting interviewed NeuroClueless

amber fractal
#

It'll never be on his channel

opaque wharf
amber fractal
fast pagoda
#

but no

olive sable
#

True

fast pagoda
#

opened it to find this

opaque wharf
opaque wharf
fast pagoda
#

but not before blindly feeding it to the grid restore from file endpoint

#

luckily it did not explode

autumn ore
opaque wharf
#

"Ahh, yes. Must've been misnamed file. In we go" It was not, in fact, misnamed file

opaque wharf
#

And this dude just tanks the questioning
https://youtu.be/cWwcA2c361I?feature=shared&t=137

PART 2. This is a second compilation of guests who lost their minds in Philomena Cunk interviews. They were asked ridiculous questions that couldn't be answered. Like and comment to support them poor souls.

Who is Philomena Cunk? She is an inspiring journalist who does interviews with experts on her famous shows like Cunk on Earth, Cunk on Bri...

ā–¶ Play video
noble zodiac
#

huh, Huaweis open weight model explicitly forbids its usage within the EU dittoface

opaque wharf
olive sable
#

We dont want your stupid baby weight model anyways NeuroClueless

noble zodiac
#

Conditions for License Grant. You represent and warrant that You will not, access, download, install, run, deploy, integrate, modify, or otherwise use the Model, directly or indirectly, within the European Union.

fast pagoda
#

ii know how they feel

olive sable
#

Huawei or people in the EU?

jagged turtle
#

how are they gonna enforce that

#

checking the origin location of the request based off IP? NeuroClueless

tender river
#

its the responsibility of companies to, you know, not break the copyright law

rigid snow
#

is a license copyright law

tender river
#

theres no hard barriers but there are a lot of options and that clause definitely moves the chance a EU company is gonna use it close to zero

maiden geyser
#

what's the difference between birthday and real birthday

tender river
noble zodiac
#

also I assume the point of this clause is rather to be protected from the EUs AI act by just cutting them out completely

jagged turtle
opaque wharf
rigid snow
noble zodiac
#

mods

opaque wharf
#

Let's put a timer

unkempt citrus
#

<@&574931772781887488>

opaque wharf
#

Alright, that's quiet fast

noble zodiac
#

thank you whoever it was

unkempt citrus
maiden geyser
opaque wharf
#

Also the aftermath is quite funny

maiden geyser
#

this is the first time i saw "1 message hidden from likely spammer"

#

HUGE for the unemployed

rigid snow
opaque wharf
rigid snow
#

discord users = unemployed, therefore a QOL feature in discord is huge for the unemployed

opaque wharf
#

I still wait to celebrate until they have no-ping reply options by default

rigid snow
#

you will accidentally p*ng vedal and you will like it

opaque wharf
#

Bet

#

Either Ladev of 986

rigid snow
#

don’t

real sierra
unkempt citrus
#

22 minutes SMH

rigid snow
# real sierra

pretending that wasn’t my message that summoned you smh

opaque wharf
unkempt citrus
#

and messages have timestamps

real sierra
#

given I was asleep 22 minutes ago

#

I feel like that wasn't bad

unkempt citrus
#

are you saying discord moderating isn't your highest priority?

#

I'm dissapointed in you

opaque wharf
#

Something is calling from within the dream realm?

real sierra
#

work according to your pay, as they say

unkempt citrus
rigid snow
#

or do you expect me to believe that y’all get paid

unkempt citrus
#

I know some streamers pay their mods

real sierra
#

I'm so tired

#

but I must get out of bed to check on my screeps

unkempt citrus
#

What if you remote into your pc through your phone

#

so you can check your screeps wihtout getting out of bed

tender river
#

get a steam deck to play screeps more efficiently

rigid snow
#

coding on a steam deck

real sierra
#

i appreciate that this is possible but still cannot think of a single case that i would care that much

ruby timber
#

Accidentally put a Game.notify call in the loop body and receive one email per second

tender river
#

you have to know immediately and open screeps to make sure your defenses are doing fine

real sierra
#

bro

unkempt citrus
#

Or just edge case logging

real sierra
#

if im writing hotfixes mid-battle i've already lost

tender river
#

if they fixed the issue you won

unkempt citrus
#

Just running day to day, if something results in no clear decision have it email so you can review

opaque wharf
trim valve
tender river
#

shiro shiro you should build an ISA in factorio it will be fun

trim valve
#

it just emails you the profile instead of one of the slightly more random ways it can do it

real sierra
#

ive only made very limited computers in factorio so far

#

i should try again sometime

tender river
#

my most involved circuit was never gonna give you up

#

colored video at 25fps

real sierra
#

i made an analog "hbd" sign once

#

for someone else, not myself

opaque wharf
real sierra
#

full message was "hbd <name>" and it scrolled across a screen of lamps

#

was rather proud of doing that with the very limited comparators i had at the time

tender river
#

šŸ’”šŸ’”šŸ’”šŸ’”šŸ’”šŸ’”hbd shirošŸ’”šŸ’”šŸ’”šŸ’”šŸ’”šŸ’”

real sierra
rough bloom
opaque wharf
ruby timber
#

(that's actually so sensible, greatjobscreeps)

rough bloom
#

the mailer is configurable, so you could make it send Discord messages instead colonthree

real sierra
#

i thought my code wasnt working for a second

#

but it was actually working properly in a way i thought wouldnt work properly yet

ruby timber
tender river
#

i had to resist the urge to while true; do sendmail my@email; done

real sierra
#

thank you past self for adding this little bonus feature

ruby timber
#

so you could have like one channel for infos, one channel for warnings, another for big errors and stuff

real sierra
jagged turtle
rough bloom
jagged turtle
#

ignore that one guy that actually directly pinged vedal

unkempt citrus
#

But yeah it should jsut be for urgent logging if you need it

rigid snow
real sierra
#

Hello, Shiro Nya! Here are some updates sent by your Screeps colony:

  • We conquered a new room: E30N4 (new total: 2)
  • We gained 340 energy (new total: 3825)
  • We lost 35 creeps (new total: 0)
tender river
ruby timber
jagged turtle
rough bloom
tender river
real sierra
#

pinging vedal pro tip: if you lurk neurotic neurons 24/7 and wait for him to show up, you can reply to his message in the moment with ping on without getting in trouble

unkempt citrus
#

Ive never pinged vedal except with vedal

tender river
#

pinging vedal pro tip:

#

alternatively

real sierra
#

dont shoot the messenger, the dragon's power was not flowing through him nicely that day

jagged turtle
tender river
#

damn shiro you beat my vedal ping count by 1

real sierra
#

ackshually according to the docs

#

you can at the very least schedule 20 notifications per game tick

#

which should be at least 1 email per real life second unless the server is having a stroke

unkempt citrus
ruby timber
rough bloom
tender river
#

probably on private servers

ruby timber
#

Or wait I forgot is a tick one second on the main servers

opaque wharf
ruby timber
#

I haven't finished the tutorial yet xdx

opaque wharf
#

Also queue/schedule

real sierra
tender river
#

hey shirooo

real sierra
#

if that functionality isnt lying, i imagine it waits at most groupInterval and then sends however many notifications are queued

tender river
#

did you know you can use wasm for screeps

real sierra
#

YES i do

tender river
#

that increased my interest in it a bit

real sierra
#

this is how most of the third party transpilers work i think

real sierra
#

is it a true compiler tho

opaque wharf
#

When the target is WASM, I think it is

real sierra
#

i imagined they probably compile to a binary and then go binary to wasm

rough bloom
real sierra
#

not sure

#

im speculating

rigid snow
opaque wharf
rigid snow
#

i do too

real sierra
#

it does seem you compile straight from C to wasm\

rigid snow
#

even ELF of all things supports wasm by spec

opaque wharf
real sierra
#

oh dear god

rough bloom
tender river
real sierra
rigid snow
real sierra
#

what are you going to use 2MB on

tender river
real sierra
#

bro putting an llm in memory šŸ’”

opaque wharf
real sierra
#

it should be said that this amount is for persistent inter-tick memory

#

i dont believe it includes temporary scoped variables used during a single tick

tender river
#

now that sounds better

opaque wharf
#

I wonder if people in #gaming will play this game

tender river
#

theres only osu! and factorio in there

opaque wharf
#

So they will

tender river
#

it also looks like there are shards with separate memories and cpu limits

#

so if you need to crunch some numbers you can schedule computations to unused shards provided you can handle the communication

#

wait how often can you deploy new code versions

rough bloom
#

whenever you want I think

#

there's probably some rate limit, but it's fast

real sierra
#

may be relevant

rough bloom
#

yeah, looks like it's 240 per day

real sierra
#

10 per hour

tender river
real sierra
#

so every 6 min

rigid snow
opaque wharf
#

Shiro I'm starting to think introducing screeps to chay was a mistake

tender river
#

so once per 10 seconds

real sierra
#

you can totally make this work

#

post a command to console that loads the code into memory as a string

#

then exec it every tick

opaque wharf
tender river
real sierra
#

theres no console get endpoint

#

so good luck using something else

tender river
#

no you dont need any api access for that

real sierra
#

i thought what we were trying to solve is you committing more often than the commit rate limit

tender river
#

no, what we were trying to solve is self modifying code

#

ideally over 2mb

real sierra
#

over 2mb

tender river
#

bwabwa

real sierra
#

bro is gonna have it zipped in memory šŸ’”

tender river
#

the api use was to avoid having to put it to memory in the first place

real sierra
#

oop wait

#

who's good at automating captchas

rough bloom
tender river
#

globals get reset fairly often

trim valve
#

ok glueless how about you just export a bunch of gamestate into memory, ship it to a backend that does a shitload of processing, then send back "ideal" commands

rough bloom
real sierra
rough bloom
trim valve
tender river
real sierra
#

^

#

i was going to use a similar concept to prioritize processing rooms with enemies present

#

to ensure i dont get rolled by cpu limit

trim valve
#

if you're able to simulate it on the server you would theoretically only need to send stuff to the backend if you see an enemy

#

I assume screeps doesn't have any randomness in it?

real sierra
trim valve
#

hm

#

I feel like you could do some absolutely devious future planning setup

#

(not that I'm smart enough to know how to even approach this)

real sierra
#

if you had the cpu cycles, you count perfectly plan your future play im sure

trim valve
#

I was more meaning with the cursed external server idea neurOMEGALUL

rough bloom
#

LLM time neuroPogHD

trim valve
tender river
#

truly the perfect planning machine

trim valve
#

export game state into chatgpt, have it generate new "adapted" screeps code

real sierra
#

good to know ill never need to play against any of you neurOMEGALUL

#

these all sound like "projects" neuroPogHD

rough bloom
real sierra
#

"time to play screeps" >writes a cluster scheduler and never touches the screeps api

#

"time to play screeps" >writes a self modifying code library with efficient memory code (de)compression (and never touches the screeps api)

trim valve
#

"time to play screeps" >simulates entire game to an end point locally before making a single move

rough bloom
#

sadly I don't think the screeps server supports rollbacks like that Sadeg

tender river
#

locally

rough bloom
#

yeah, I know

#

but you still need to simulate the world if you want to search for an optimal solution

tender river
#

i wonder how easily you could RL screeps

trim valve
#

anything but playing screeps as intended

rough bloom
tender river
trim valve
#

I wonder how hard a reimplementation would be

olive sable
#

Hi guys

rough bloom
runic ginkgo
#

@coral sigil I am you

#

ā˜•

olive sable
runic ginkgo
olive sable
#

You dont look like shadow

runic ginkgo
#

I am daylight

real sierra
runic ginkgo
#

:)

#

shadis can never escape my indian/russian/american accent nights

trim valve
rough bloom
#

I guess you could just snapshot the whole process and filesystem neuroPogHD

real sierra
#

youd have to look at more mods

#

i doubt we're the first to have this idea

#

wouldn't be surprised if there was existing code for it

olive sable
#

I will micro-optemize every single screep

#

It is in my blood as a game-dev

real sierra
#

idk sam

olive sable
real sierra
#

i tried to microoptimize mine by writing a cache wrapper

tender river
#

its in my blood to give orders to shiro to implement this or that thing and not play the game myself

real sierra
#

im still not sure if its faster or slower than without

real sierra
olive sable
#

You try to optemize the code by caching, i optemize the code by changing to a diffre“t language. We are not the same

real sierra
#

you cannot escape fate

rough bloom
# real sierra wouldn't be surprised if there was existing code for it

we're definitely not the first to have the idea, but I doubt that a mod for this exists, just because it's really difficult
the server kinda just has to be built for fast backtracking through time, and the Screeps server is not
but maybe it's more easily fixable than I think it is, idk

olive sable
#

If it counts cpu as compute, i will use gpu for free Minawan4Evil

#

The server will have a 3060ti

real sierra
#

screeps on the gpu neurOMEGALUL

#

parallelize over creeps

trim valve
olive sable
trim valve
#

I think that would count as a slightly unfair advantage

real sierra
#

reminds me of some cursed features of this game

olive sable
#

Even if the code doesnt support it, the server code is opensourve no?

rough bloom
real sierra
#

oddly specific feature to drag other creeps

olive sable
trim valve
#

honestly I might just try and do this in a significantly reduced version of screeps at some point, it sounds like a fun idea

olive sable
real sierra
olive sable
trim valve
olive sable
#

Self modifying code using a local llm running on my tensor cores NODDERS

rough bloom
trim valve
#

glueless transpile the js to sandboxed native gpu assembly

olive sable
#

4864 CUDA cores/ number of players

real sierra
#

you guys have fun with that hi

olive sable
trim valve
#

can you see the code of other people's screeps?

#

I assume not

real sierra
#

ill go conquer the official server in the meantime

olive sable
rough bloom
trim valve
#

yeah in that case you'd probably have to make quite a lot of assumptions about how the other screeps are gonna behave

#

screepsfish neuroPogHD

real sierra
olive sable
real sierra
olive sable
rough bloom
olive sable
#

The running it on gpu stuff is funny idea but i probably wont go through with it

#

I have stuff to do

trim valve
real sierra
olive sable
#

Need to make my vulkan backend for vedal drunk driving simulator NODDERS

trim valve
#

but also I feel like there would be a problem where you have compounding uncertainty

rough bloom
olive sable
real sierra
#

surely wasm can port to cuda

olive sable
#

Surely

rough bloom
olive sable
#

But ye, probably gonna keep server shit on cuda.
If i do gpu shit for the lolz it will just be giving screeps api call acces

#

Imagine porting doom to a screep

trim valve
#

neuroPogHD rewrite the server in rust, port to gpu using rust-gpu

rough bloom
real sierra
#

you can write arbitrary html to the screeps console, if that gives you any ideas

rough bloom
# olive sable Imagine porting doom to a screep

Screeps is a cool programming game I found a few days ago. I noticed that you can render simple graphics, but have only 2MB of ram and ~20ms CPU time per tick.

I used the desmos JSON file as base for the graphics source (https://github.com/kevinjycui/bad-apple), but instead of saving it as is (13MB), I remapped each row to be just a single numb...

ā–¶ Play video
trim valve
real sierra
olive sable
trim valve
#

glueless this is just looping back to my idea of trying to optimize a factorio factory

rough bloom
#

I just realized
Screeps can probably be an LLM benchmark

trim valve
rough bloom
#

Give multiple models API access, let them fight it out

ruby timber
#

Oh wow that's a concept for sure

trim valve
#

I feel like they'd have a lot of troube understanding any of the game state

#

so it would be a lot of just kinda writing code and hoping it works

rough bloom
#

yeah, but if they all suck at it then it balances out mhm

trim valve
#

llms screeps where they never manage to get anywhere neuroPogHD

real sierra
real sierra
trim valve
real sierra
#

losing faith that I'll ever have fellow screeps players

trim valve
tender river
trim valve
#

I told you I didn't know if I'd play or not, just that the game looks neat smh my head

real sierra
#

all potential candidates have already veered into high difficulty tangential projects and immediately burnt themselves out before writing a single line of code

#

šŸ„€

tender river
# tender river

shirooooo your input will be fully anonymous and not sold to data brokers go vote in the poll

rough bloom
real sierra
#

applied category theory, I wanna see how it manifests in your set of go-to data structures while programming

tender river
#

it's already over i use lattices neuroDespair

#

also konii complained about my monadic json parser but like thats the only bearable way of writing that kind of code do you want me to just manually thread state everywhere

trim valve
#

smh why is there no cargo new --workspace

rough bloom
#

there isn't? shock
wtf Cargo

olive sable
real sierra
#

NOTED I have 10 days to program killing other players

tender river
#

do not kill me

olive sable
real sierra
#

other players' colonies*

rough bloom
olive sable
real sierra
#

that would be crazy actually

trim valve
#

literally just make a Cargo.toml with ```
[workspace]
members = []
resolver = "3"

in a folder that matches the arg how hard is it
real sierra
#

if your screeps grabbed the username of the owner of an enemy room and checked for its presence in leak datasets, then blackmailed them with leaking their passwords if they don't delete their units

tender river
#

so human parity

olive sable
#

Join screeps server
Steal ip adress
Leave screeps server
Dox owner niuh

trim valve
#

glueless does screeps have 2fa

real sierra
#

OfCourse log in as the other player

rough bloom
olive sable
#

Its on full display

rare bridge
#

Okay so we want a server for this game right?

olive sable
#

Ye

real sierra
#

CLOUDY MY HERO

olive sable
#

Im already planning on making one

real sierra
#

I LOVE YOU

rare bridge
#

lemme see if there's one for pterodactyl

tender river
#

my name is on "full" display in the nixpkgs maintainers list

rough bloom
olive sable
rare bridge
#

there is not, would have to make our own CerberOMEGALUL

#

i'll look into docs tomorrow since i'll have a lot of free time then

real sierra
#

thanku

trim valve
#

pterodactl eggs are just wrappers around docker images right?

olive sable
#

Image the server is just full of mods, then me and shuni neurOMEGALUL neurOMEGALUL

real sierra
rare bridge
#

just be aware it's not my highest of priorities currently, i've got a few other projects which have higher priorities, but i can look into it

olive sable
#

Im still in montenegro so i cant rn either

rare bridge
#

i will look into it tomorrow tho, i can guarentee that

real sierra
#

cloudburst gonna see my code commit and immediately shut down the server

olive sable
#

The screeps server is 100% safe, surely NeuroClueless

real sierra
#

"This code is ass. Session terminated."

trim valve
#

cpu share based on code quality

#

the higher quality the code the more cpu you get per tick

real sierra
olive sable
#

"Bro sam, why are you trying to acces the gpu???"

rough bloom
real sierra
#

linter score as CPU allocation

#

brother I'm writing my code with a quill and ink pen

#

we can afford no undocumented functions, no improper spacing

#

all imports must be in alphabetical order

olive sable
#

I will find a vulnerability, not because i want to steal data, only to use the gpu.
My goals are beyond your understanding

rare bridge
#

LULE what gpu

olive sable
#

Your server doesnt have a gpu?

#

Not even a small one?

rare bridge
#

no, the server i'm planning to put you on is a server i have spare rn

trim valve
#

plan foiled catdespair

rare bridge
#

it has no gpu

real sierra
#

I mean

olive sable
#

Fuckkkk

real sierra
#

you can embed HTML forms in the console

#

and presumably give those a JavaScript callback

rare bridge
#

only 8gb ram, limited storage, and like 4 cores

rough bloom
#

GPU: ASPEED Technology, Inc. ASPEED Graphicsy
Graphicsy mhm

real sierra
#

there's a vector there surely

rare bridge
#

i could give you more but i'm not putting you on my local network no matter how much you beg

olive sable
#

I will html skidadle my way into my own server's gpu NODDERS

rare bridge
#

you get the cloud vm and you will be happy with it

#

(also it hosts velocity pls don't completely nuke it)

real sierra
#

happie I am happy with it

olive sable
#

Its fine....

real sierra
#

you can always just get a wasm virtual machine

#

and virtualize a gpu

olive sable
#

Fuck it, im making a gpu out of screeps

real sierra
trim valve
#

glueless host it on my pc while I'm away, give sam gpu access

olive sable
trim valve
#

idk what you'd even use the gpu for tbh

olive sable
#

That comes later

real sierra
#

yeahhh

#

not much can parallelize

#

maybe pathfinding?

#

...maybe?

rare bridge
olive sable
#

Oh

#

Sadge

real sierra
#

worry not cloud

#

users have cpu exec time limits

trim valve
#

i mean sam you have have the screeps ingame cpu usage limit

real sierra
#

should be fine

olive sable
#

Tbh, its not cuz i need a gpu to do anything, its just cuz i want to see if i can

rare bridge
#

as much as it'd be funny, this machine does have other responsibilities

#

dw, i'm looking at getting a dedi at some point, you might get your gpu after all

olive sable
#

There is absolutly no reason i need more than 6k fps, and yet im still switching to vulkan. Just because i want to see if i can hit 10k

#

Nothing i do has a goal, its all just to see if i can

rare bridge
rough bloom
olive sable
#

Its about the journey

real sierra
olive sable
#

I can download and play on my laptop possebly, but my server pc is at home

rare bridge
rough bloom
#

a dedi is nice, yeah, very cheap for the amount of compute you get
just uncommon to have any with a GPU, especially for a reasonable price

olive sable
#

(What is a dedi)???

real sierra
#

dedicated server

rough bloom
real sierra
#

a physical machine I think

olive sable
#

So just a pc with extra steps?

real sierra
#

a PC without the extra steps

olive sable
#

But its in a rack

trim valve
#

you usually get some amount of recovery alongside it

real sierra
#

but the software is bare bones

trim valve
#

so like you can remote in and wipe it, image it, etc.

rare bridge
#

basically

real sierra
#

I also doubt cloud has a rack

rare bridge
#

i rent bare metal hardware in a datacentre

olive sable
rare bridge
#

i do have people on hand who do have a rack actually, it wouldnt be too hard for me to spin up servers

real sierra
#

cloud knows a guy gx_ez

rare bridge
#

but i also don't really... want to use their hardware for more than i already do CerberOMEGALUL

rough bloom
olive sable
#

I was planning on just using my old pc xith 5700g, 64gb ram and 3060ti

rare bridge
#

it's different from a cloud vm since it's not a virtual machine, it's actual proper hardware

#

i wanna get one because it works out cheaper to rent than it does the ovh server

olive sable
#

How ram hungrey is screeps btw?
The server i mean?

rare bridge
#

i'm paying ovh for a tiny 8gb 4vcore server that costs me like £30ish per month when i could easily get a dedi which has a ryzen 5 3600, 64gb RAM and like 1tb of storage for the same amount from Hetzner

real sierra
#

at least 2MB per player

#

the game world itself is probably a few MB or GB

olive sable
#

Bruh thats nothing

real sierra
#

2MB is probably a gross underestimate too

olive sable
rare bridge
real sierra
#

I thought the hetzner was a tank

rare bridge
#

it's also a cloud host

#

and a pretty cheap one at that

#

look at these dedis

real sierra
#

you're the only cloud I need xddFlower

rough bloom
olive sable
#

Are shiro and cloud like dating or what is happening here?

#

Is this normal?

real sierra
#

no I'm trying to move screeps up the priority list

olive sable
#

Ah

#

Lmao

rare bridge
real sierra
rough bloom
rare bridge
#

shiro as hard as you may try, getting home may be a higher priority

real sierra
#

how many chances do you really get to see the world

olive sable
#

Ye neuroHypers

#

I go every year

#

Vacations are fun

olive sable
#

I slept on the sofa under a towel tonight

real sierra
#

what

#

are you okay

desert wave
rare bridge
olive sable
#

Classic montenegro

real sierra
#

that sounds like pre divorce shenanigans

rare bridge
#

my holiday ends today, i gotta travel tomorrow, which gives me time to look at documentation

olive sable
#

It is weird to not be able to drink here.

#

Drinking age is 18 in montenegro

real sierra
ruby timber
#

so much green icons in my programming channel

#

Welcome

real sierra
#

oo I can't see the leaves on mobile

olive sable
#

We have kidnapped the mods from NN

real sierra
#

neuroWaveA welcome to neuro Sama headquarters!

#

have you heard of screeps

ruby timber
#

It's cute you think I was talking about newcomers, I actually meant you mods niuh

olive sable
#

Aight bye

real sierra
#

the new joiner leaf

rare bridge
#

shiro they're referring to the mod icons ICANT

real sierra
#

OH

ruby timber
#

You got it

real sierra
#

so cloud

#

if you're hosting the server you will of course play right

rare bridge
#

depends xdx

#

gotta stress test somehow

ruby timber
real sierra
#

the game is asynchronous so you play whenever you want after all

#

very low commitment

#

just writing a bit of code here and there

ruby timber
#

Very low commitment when "I just woke up, gotta check on my screeps"

rare bridge
#

ok so how does it work

olive sable
#

Screeps go brrr

ruby timber
real sierra
trim valve
#

om cloud there's a fair chance you're running the same server type as the offical screeps servers

olive sable
real sierra
#

the game runs 24/7 with your code executing once per game tick

olive sable
#

Im walking and waiting for the wifi from the restaurant to drop

real sierra
#

so as the player you're tasked with writing an AI to produce units, move them and interact with the world, etc.

rare bridge
real sierra
#

there's many deeper late game features too

rare bridge
#

either way probably, just that i'm on a vm

olive sable
#

Aight bye fr now

trim valve
#

i mean they're using just quad core systems

#

so I think they probably are too

rough bloom
real sierra
#

cloud where's your 160 cpus

trim valve
#

their architecture is weird

#

if I had to guess its to keep scripts working because in a theoretical worst case scenario every player could use up 500ms of compute per tick

olive sable
real sierra
#

oh frick

olive sable
#

Have a picture

tender river
#

hblsp now targets lily 0.2.0

real sierra
#

I'm on the wrong bus

#

I only just realized

tender river
#

just reprogram it with js

rough bloom
olive sable
rare bridge
real sierra
#

this bus still takes me where I'm going just slower

real sierra
#

I have to say farewell to you all shortly

#

but I wanna screep

#

my screepies...

tender river
#

bye shiro you will be missed

real sierra
#

Deadge tell me screeps I love them...

#

except the logistics screeps

#

they eat way too much cpu

#

lazy buggers

rare bridge
#

crunch cpu

noble zodiac
#

just buy more cpus

noble zodiac
#

my server has 2 whole vcores and 8gb ram dittoface but hey, its 5 euros

rare bridge
#

i'm paying £25 for 2 more vcores than you 😭

noble zodiac
#

thats just robbery

#

4 cores, 8gb ram and 256gb ssd is 6,84€ per month at my hoster

trim valve
#

I paid lots for my server glueless

olive sable
#

Or well, slightly more than 3 days

#

Like 7 dayd

tender river
#

apparently you can increase stack size on linux clearly i should do that

near sundial
#

Kindof a hot take

#

But I think C is better than C++

olive sable
near sundial
#

Also hi

olive sable
#

Hi

tender river
#

not really a hot take

near sundial
#

Slothy is doing fine

noble zodiac
#

a couple more takes as cold as that and I would stop sweating

maiden grotto