#programming
1 messages Ā· Page 70 of 1
Its called spread syntax is JS I think

"Destructuring"
cant call it anything sensible or industry standard
that would be too useful
because you're on fire 
Its literally spear syntax
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
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
The destructuring syntax is a JavaScript syntax that makes it possible to unpack values from arrays, or properties from objects, into distinct variables. It can be used in locations that receive data (such as the left-hand side of an assignment or anywhere that creates new identifier bindings).
That's for assignment 
please dont, i saw what happened to your screeps
Is it python code or somethings?
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
javascript
they have a number of very helpful things for starting, to avoid this issue
meow
is there pvp or is it just resource gathering and vibing?
there is pvp
Oh I see I see, fun cute
any function they might have is function you add yourself
turn_east()
mine()
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
Macbook M4 chip -- how warm will my laptop get
what is the shiro word of the day
if you play on the official server, not at all -- the code runs on the server
Oh sick
the game is really just a nice wrapper for a browser client
Gotchya
Most days I can
overintellectualization
this is encouraging
If it runs browser, it'll run screeps
I try
most days i can
what is the shiro wordn't of the day
good code

TWO wordn'ts
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
Only one way to find out
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
me too
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
See, not warm enough
i also might just not have the scale required to see the benefit
You could also perform the warming up when you have excess compute (the bucket thingy)
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
Wait so on the next tick its all gone?
yeah

why cache then 
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
Oh so you mean the Memory object is literally shared just for one tick?
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

Silly question
Whats a tick in this context?
a game tick
Oh okay so it is that 
a single time step within the game world
during this, every player's AI script runs once
I thought it was like a specific unit of clock cycles 
each creep can generally take a single action per tick
lol not really, but there is an equivalence of sorts
players get an execution time budget for their AI

I get what gameticks are, played both osrs and minecraft
You can think of it like that
but yeah my issue with caching is
Yeah, same here. Tick is just game tick
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

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? 
(Based on pretty much no info on how your game works, just assumptions
)
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

Read up very briefly on what screeps is, I get it now 
please github i do not want to see my dependabot alerts for this week

stop emailing me microsoft
Then turn off yo damn notification setting
but then i have to open my email client and look at the backlog

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

You guys didn't turn off email notification? 
Probably should 
how will i know that my vps provider upcharged me again


JUST MERGE I KNOW ITLL FAIL ALREADY 
Hey, this and that are different lol. Why would you want github dependabot email notification on
Bruh idk anything about javascript bro
nor do i
i learned it because of and for express purpose of this game
Its easy. Trust me 
?
Real ?š¤š¤
Just try pressing F12 on your browser
but i'm chatting on the phone:))
Press F12 on your phone then 
Idk where i can press it bro
Buy external keyboard 
I use Android
No money to buy ā ļø
Holy mother of back reading
i know two people who have hacked websites to reset their passwords (is one of them me? maybe, maybe not, no comment)
Reminds me of the old time where I'm still learning. I used a PHP shell so I don't have to login via the godawful site that is CPanel not knowing what its usually used for lol
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"
Shiro, you're not gonna believe me
https://mindustrygame.github.io/wiki/logic/0-introduction/
meow you please add Result? 
good morbing, chat
good morbing 
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
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 

having a mcdonald's in the pentagon won't hurt though
things arent spawning at all now
spawner?

i may have broken the spawn queue when i was playing with console commands
oopies
ew there was a bug, off to the spider you go

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
sentience
they are unionizing
you dont give them food
you dont value their freedom
im so confused tho
this upgrader is just
going
somewhere
bro this isnt my controller you cant just go upgrade it
You keep spider as pets?
no, we just have a non-aggression pact
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
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

another thesis to read 
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
Got the first of my exams this semester today
ok im aware of more bugs but i cant fix them tonight, not enough time 
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 
Famous last words
can't believe I'm here installing python environment for my school 
that's fucked up
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?
Em dash spotted
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
I have to manage my school's servers but in return I get to use a server as a personal server while I'm at school
With this treasure found in #programming I summon iggly

damn
it's nice too since it bypasses the normal school restrictions
and BIG on price
https://overclock3d.net/news/gpu-displays/more-watts-big-memory-nvidia-geforce-rtx-5080-super-leaks/

can some one send code "BLUE" chart really quick, i wanna download it
ah so basic maintanence stuff?/
I wish I can do that too
I'm pretty sure that is the exact name of the bingo slot as well

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
I have had my thought process exposed: bwaa. If I need material things, I'm willing to wait for years to make it work out nicely.
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)
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
š¢
if i have an idea on how to make things work, i try it, if i dont then i just sit on it for years until i learn enough to approach it again 
Totally not my wrongdoing
how tf do you accidentally do that
Phone wouldnāt let me rename file extension

Wait, but the pdf renders just fine?
So the PDF reader could be used to read raw text file? 
Idk even know how to code yet but I had an idea wanna do when I learn but I'm curious how possible it is
.
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
i imagine they only had ms word or similar on their phone
the other chatting apps wouldnt be able to display discord emoji
raw text has no formatting, I see no reason it wouldn't work
but if you want something that bridges multiple messengers i recommend trying matrix
if more apps add support for the new apple custom emoji thing that could happen
I don't know man. Its just seems like a scope creep to me
the most user friendly option is probably https://www.beeper.com/ (but note that it isn't the most secure or private one)
oh wait,why?
If pdfs can contain executables then I think this lax in terms of scope creep
because you can only send text in them
For technical reasons, other messaging apps must be able to show image file along with text
the only apps i know that have custom emoji support are telegram, imessage, discord and slack
You have a big point there
Oohh
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
react server components with react native 
react no code with react cloud 
no code 
Goodmorning 
no but itās actually cool, just sucks that it has react plastered over the definition
The only jank method would involve the application based unicode section and a decoder, but that is still very much in modifing apps scope. (Godsend for whatever system is used for custom fonts)
Morning!
what would one call that, server defined ui
or something
iframes 
itās native 
native iframes
nframes
inative frames
Oh god so many cursed idea just to achieve cross-app emoji
i mean there are the four apps i mentioned
matrix just uses inline html images for emoji
though truly arbitrary images as emoji are in imessage only, probably telegram too but iām not sure
You think browser didn't use the native UI element? 
We go back to HTML+CSS with that
what? i mean react native
The only benefit for this trash heap is all that is needed is just custom fonts. How in the frick one does that is an exercise in the durability of your skull and the wall.
Yes, and browser interpret the HTML+CSS then render it using platform native component no?
do people still think react native is a fucking webview in the big 25
iām gonna crash out
You sent out react native from the server dynamically
The app must display said component
How is that not a browser?
skia or whatever chrome uses is not native
You are thinking too small. The environmental impact has to be maximized. Use a model to convert the emote to a text description and then another model to generate an image from it on the receiving end
itās a graphics library
not native ui
use a model to convert the entire message in an arbitrary format to an LLM summary and use an LLM for rendering the entire message on the other end
this is truly generic and allows full interoperability between arbitrary apps
one may call this, the singular messenger
replace the apps users with llms as well
To be fair tho, using skia is big brain move because not every platform may have the needed native ui component for all of the web spec
Wait, we created twitter again
Go back
you mean X the everything app (tm)
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
X is my reaction to how many of the users are human
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
How many steps can you skip on these stairs
Depends on the stairs?
I can do 5 at home but those are small
This is the stairs
So uhh. You can skip a step, but you will need to hike up the mountain instead for 50m
Now I'm wondering how would you fare if you were being interviewed by Philomena Cunk, Sam
I'm betting depending on where and you speed, you could skip a few going down.
Idk who that is
The problem is landing
Oh, then you should see a few video of her interview on youtube. Quite informative if I do say so myself
Oh, you'll land all right 
I wonder if vedal ever get interviewed by her what would he response to some of the question lol
Vedal getting interviewed 
It'll never be on his channel
Due to sheer amount of profanity?
I'm more thinking he just wouldn't want to do it on there
i thought it would just be a .json with the wrong ext
but no
True
opened it to find this
I love this part in the video
https://youtu.be/d2RCr-6heC0?feature=shared&t=172
Enjoy some the best moments of the hilarious comedian Philomena Cunk. This funny compilation will have you in stitches!
My god...
but not before blindly feeding it to the grid restore from file endpoint
luckily it did not explode

(Starts to laugh my ass off)
"Ahh, yes. Must've been misnamed file. In we go" It was not, in fact, misnamed file
Yeah not that was my fault
No
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...
huh, Huaweis open weight model explicitly forbids its usage within the EU 
We dont want your stupid baby weight model anyways 
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.
ii know how they feel
Huawei or people in the EU?
lmao
how are they gonna enforce that
checking the origin location of the request based off IP? 
they dont have to enforce it
its the responsibility of companies to, you know, not break the copyright law
is a license copyright law
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
what's the difference between birthday and real birthday
yes, though there are also EULAs which is contract law
also I assume the point of this clause is rather to be protected from the EUs AI act by just cutting them out completely
well yeah
but what company here?
We have permanent birthday boi here

mods
Let's put a timer
Alright, that's quiet fast
thank you whoever it was
some in #general-network ponged it too
what a weird groundhog day
Alright, this takes the credit for all of cunk shenanigans https://www.youtube.com/watch?v=H0fb4LTQKkY
Also the aftermath is quite funny
this is the first time i saw "1 message hidden from likely spammer"
HUGE for the unemployed

Wdym? What does it have to do with the unemployed?
discord users = unemployed, therefore a QOL feature in discord is huge for the unemployed
donāt
pretending that wasnāt my message that summoned you smh
Bro really timed it 
I can read a clock
and messages have timestamps
are you saying discord moderating isn't your highest priority?
I'm dissapointed in you
Something is calling from within the dream realm?
work according to your pay, as they say

so donāt ?
or do you expect me to believe that yāall get paid
I know some streamers pay their mods
no, no I do not
I'm so tired
but I must get out of bed to check on my screeps
What if you remote into your pc through your phone
so you can check your screeps wihtout getting out of bed
get a steam deck to play screeps more efficiently
coding on a steam deck
i appreciate that this is possible but still cannot think of a single case that i would care that much
Accidentally put a Game.notify call in the loop body and receive one email per second
what if somebody attacks your base while you're at a meeting?
you have to know immediately and open screeps to make sure your defenses are doing fine
bro
Or just edge case logging
if im writing hotfixes mid-battle i've already lost
if they fixed the issue you won
Just running day to day, if something results in no clear decision have it email so you can review
Don't give him ideas. Poor guy will start mumbling about JS in no time
I saw a neat usecase for this with the profiler linked in the docs
shiro shiro you should build an ISA in factorio it will be fun
it just emails you the profile instead of one of the slightly more random ways it can do it
Would be funny if it were tbh
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
š”š”š”š”š”š”hbd shiroš”š”š”š”š”š”

apparently it's a cronjob that only runs once a minute, at least by default
also it seems that by default the notifications are combined into one mail every hour (at least for private servers)
Well, thank god it is batched job
No fun, no email query each second :(
(that's actually so sensible, greatjobscreeps)
the mailer is configurable, so you could make it send Discord messages instead 
i thought my code wasnt working for a second
but it was actually working properly in a way i thought wouldnt work properly yet
Can you make like different categories of notification that go to different feeds
i had to resist the urge to while true; do sendmail my@email; done
thank you past self for adding this little bonus feature
so you could have like one channel for infos, one channel for warnings, another for big errors and stuff
one hour of emails sounds quite funny 
I think everyone's pinged vedal atp
doesn't look like it, the in-game API doesn't support specifying any metadata
you'd have to parse the notification text content as part of the "mailer" mod
ignore that one guy that actually directly pinged vedal
But yeah it should jsut be for urgent logging if you need it
everyone? from:mlntcandy mentions:vedal 
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)
i never did that 
I see, still sounds very useful
neither have I apparently, how does one refer to the masses without referring to everyone
yeah
mostly because sending mails kinda sucks, especially if they have arbitrary user-defined content 
no no you're supposed to call me out
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
Ive never pinged vedal except with 

dont shoot the messenger, the dragon's power was not flowing through him nicely that day
JSON it is
uuhhh i'm shooting blanks
damn shiro you beat my vedal ping count by 1

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
20 PER SECOND?
yeah, they get scheduled immediately
to be sent in an hour 
probably on private servers
Or wait I forgot is a tick one second on the main servers
Tick
I haven't finished the tutorial yet 
Also queue/schedule
but the groupInterval parameter says you can specify send delay in minutes
hey shirooo
if that functionality isnt lying, i imagine it waits at most groupInterval and then sends however many notifications are queued
did you know you can use wasm for screeps
i do
that increased my interest in it a bit
this is how most of the third party transpilers work i think
Compiler
is it a true compiler tho
When the target is WASM, I think it is
i imagined they probably compile to a binary and then go binary to wasm
I don't think it's lying, but I think it's incomplete
there seems to be a separate interval in the user settings that limits it to once an hour by default
Wait, is it?
compiler, the same way babel refers to itself. pmo š
Nah, I consider wasm a valid compilation target
i do too
it does seem you compile straight from C to wasm\
even ELF of all things supports wasm by spec
...what do you mean by this?
oh dear god
LLVM has a wasm target 
dunno about GCC
mmh

it means you can have a elf wasm binary
dont tell me you're about to say this isnt enough
what are you going to use 2MB on

bro putting an llm in memory š
Yeah, having a brainfart there trying to understand it. But that makes sense now
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
theres only osu! and factorio in there
So they will
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
i can commit pretty quickly
may be relevant
yeah, looks like it's 240 per day
10 per hour
hehehe self modifying code that emails the new version to you to autocommit it
so every 6 min
wha
Shiro I'm starting to think introducing screeps to chay was a mistake

so once per 10 seconds
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

you dont need post for that
no you dont need any api access for that
i thought what we were trying to solve is you committing more often than the commit rate limit
over 2mb
bwabwa
bro is gonna have it zipped in memory š
the api use was to avoid having to put it to memory in the first place
you could just set the loop function through the console directly, no need to store it in memory I think
globals get reset fairly often
ok
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
surely less often than every 10 seconds 
the supercomputer telling me im doomed and all my screeps should die 
I have a feeling that this may not be entirely in the spirit of the game 
would be fun though, seems very possible

i think with clever scheduling you can do incremental updates, only processing some of your rooms each tick
^
i was going to use a similar concept to prioritize processing rooms with enemies present
to ensure i dont get rolled by cpu limit
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?
correct
its painfully deterministic: https://docs.screeps.com/simultaneous-actions.html
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)
if you had the cpu cycles, you count perfectly plan your future play im sure
I was more meaning with the cursed external server idea 
LLM time 

truly the perfect planning machine
export game state into chatgpt, have it generate new "adapted" screeps code
good to know ill never need to play against any of you 
these all sound like "projects" 
yeah, either that or console commands containing the plan for the next 10 seconds
"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)
"time to play screeps" >simulates entire game to an end point locally before making a single move
sadly I don't think the screeps server supports rollbacks like that 
locally
yeah, I know
but you still need to simulate the world if you want to search for an optimal solution
i wonder how easily you could RL screeps
so unless you want to reimplement Screeps you're stuck with the official implementation
programming 
Hi guys
imagine not attempting to automate yourself out of the task at any possible opportunity

Hello
You dont look like shadow
I am daylight
ok so we could just store the full game state on every tick for rollbacks 
yeah, doing it for just the map and game objects is probably possible
I'm more concerned about V8 and the database
I guess you could just snapshot the whole process and filesystem 


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

i tried to microoptimize mine by writing a cache wrapper
its in my blood to give orders to shiro to implement this or that thing and not play the game myself
im still not sure if its faster or slower than without
i only implement third party code that i commissioned
You try to optemize the code by caching, i optemize the code by changing to a diffre“t language. We are not the same
its all wasm in the end
you cannot escape fate
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


I think that would count as a slightly unfair advantage
reminds me of some cursed features of this game
Even if the code doesnt support it, the server code is opensourve no?
RL could be possible because it only uses past experiences without backtracking
increasing the simulation speed works
but you'd need to have it generate a JavaScript policy, dunno how that would work
I will make it available to everyone if i do it lmao
honestly I might just try and do this in a significantly reduced version of screeps at some point, it sounds like a fun idea

"time to play screeps" >modifies the server source to support gpu calls (never touches the screeps api)
The big if is idk if its even possible and how ill do it
(by "this" I mean trying to explore massively into the future w/ backtracking, etc.)
Self modifying code using a local llm running on my tensor cores 
it's possible
it's also both risky (GPU code is not sandboxed very well) and probably unnecessary 
transpile the js to sandboxed native gpu assembly
4864 CUDA cores/ number of players
you guys have fun with that 

nope
The host probably can if they tried
AFAIK you can see the screeps but not their memory or code
yeah in that case you'd probably have to make quite a lot of assumptions about how the other screeps are gonna behave
screepsfish 
sam's daemon pushing all my screeps code to a private git repo at the stroke of midnight: 


keep a local model for enemy creep behavior based on past observations 
The running it on gpu stuff is funny idea but i probably wont go through with it
I have stuff to do
this would be so insanely funny 

Need to make my vulkan backend for vedal drunk driving simulator 
but also I feel like there would be a problem where you have compounding uncertainty
running the actual creep JS code on GPU just will not happen
have fun porting V8 to CUDA

Surely
that can probably be done, but then it's not parallel, you just have one wasm program 
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
rewrite the server in rust, port to gpu using rust-gpu
definitely
thankfully you only need to simulate like 10 or 20 ticks ahead, easy 
you can write arbitrary html to the screeps console, if that gives you any ideas
not doom, but
https://www.youtube.com/watch?v=u1PFufkUfUU
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...
yeah for battles you only need to be a little bit ahead tbh

I guess that kinda means you'd want seperate modules for long term planning and then short term stuff
this is just looping back to my idea of trying to optimize a factorio factory
I just realized
Screeps can probably be an LLM benchmark

Give multiple models API access, let them fight it out
Oh wow that's a concept for sure
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
yeah, but if they all suck at it then it balances out 
llms screeps where they never manage to get anywhere 
that just sounds like normal screeps 
this seems like a fun paper to write honestly
time to go back on the research grind to figure out how stockfish works
losing faith that I'll ever have fellow screeps players

its fine
just wanted to make sure you remembered after waking up
I told you I didn't know if I'd play or not, just that the game looks neat smh my head
all potential candidates have already veered into high difficulty tangential projects and immediately burnt themselves out before writing a single line of code
š„
shirooooo your input will be fully anonymous and not sold to data brokers go vote in the poll
getting a private server going was a bit easier than expected at least, Node v12 worked 
setting up tooling for actually writing any code is still pending though 
applied category theory, I wanna see how it manifests in your set of go-to data structures while programming
it's already over i use lattices 
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
smh why is there no cargo new --workspace
there isn't? 
wtf Cargo
When im home shiro. Just give me 10 days 
I have 10 days to program killing other players
do not kill me
Food 
other players' colonies*
they've been contemplating how to implement it for the past 7 years 
https://github.com/rust-lang/cargo/issues/8365#issuecomment-1567677063
Lmao i selected a 2nd picture by accident.
Enjoy my shoulder guys
that would be crazy actually
literally just make a Cargo.toml with ```
[workspace]
members = []
resolver = "3"
in a folder that matches the arg how hard is it
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
so human parity
Join screeps server
Steal ip adress
Leave screeps server
Dox owner 
does screeps have 2fa
log in as the other player
no, but it could have if someone bothered to implement it
it does use Steam login by default which has 2FA
Bruh you dont have to use screeps to get my name
Its on full display
so we want a server for this game right?
Ye
Im already planning on making one
I LOVE YOU
lemme see if there's one for pterodactyl
my name is on "full" display in the nixpkgs maintainers list
same 
I technically already have one up but it's not ready for players
You can host one instead if you want lol
there is not, would have to make our own 
i'll look into docs tomorrow since i'll have a lot of free time then
pterodactl eggs are just wrappers around docker images right?
Image the server is just full of mods, then me and shuni

they also make a great meal
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
Im still in montenegro so i cant rn either
i will look into it tomorrow tho, i can guarentee that
The screeps server is 100% safe, surely 
"This code is ass. Session terminated."
cpu share based on code quality
the higher quality the code the more cpu you get per tick
holy
"Bro sam, why are you trying to acces the gpu???"
surely there are no vulnerabilities in the ancient versions of Nodejs and all the packages they use
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
I will find a vulnerability, not because i want to steal data, only to use the gpu.
My goals are beyond your understanding
what gpu
no, the server i'm planning to put you on is a server i have spare rn
plan foiled 
it has no gpu
I mean
Fuckkkk
you can embed HTML forms in the console
and presumably give those a JavaScript callback
only 8gb ram, limited storage, and like 4 cores
GPU: ASPEED Technology, Inc. ASPEED Graphicsy
Graphicsy 
there's a vector there surely
i could give you more but i'm not putting you on my local network no matter how much you beg
I will html skidadle my way into my own server's gpu 
you get the cloud vm and you will be happy with it
(also it hosts velocity pls don't completely nuke it)
I am happy with it
Fuck it, im making a gpu out of screeps

host it on my pc while I'm away, give sam gpu access
This will not lag the server at all 
idk what you'd even use the gpu for tbh
That comes later
if you overwhelm the machine i'll just impose limits on the docker container
i mean sam you have have the screeps ingame cpu usage limit
should be fine
Tbh, its not cuz i need a gpu to do anything, its just cuz i want to see if i can
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
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

a dedi with a proper GPU? 
expensive
Its about the journey
can you get on screeps in sooner than 10 days
I can download and play on my laptop possebly, but my server pc is at home
i mean the server i'm planning to put these 2 on is an OVH server that i'm locked into for like 10 more months (much to my annoyance), i do wanna move to a dedi at some point
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
(What is a dedi)???
dedicated server
GPU compute is usually either very short-term rental or long-term bulk purchase of capacity
a physical machine I think
So just a pc with extra steps?
a PC without the extra steps
But its in a rack
you usually get some amount of recovery alongside it
but the software is bare bones
so like you can remote in and wipe it, image it, etc.
basically
I also doubt cloud has a rack
i rent bare metal hardware in a datacentre
Ah i see.
Im thinking hardware side you get extra psu and shit.
Software side is ondeed less
i do have people on hand who do have a rack actually, it wouldnt be too hard for me to spin up servers
cloud knows a guy 
but i also don't really... want to use their hardware for more than i already do 
it's a PC but remote + you don't have to worry about the hardware, it's provided by the DC and rented by you
I was planning on just using my old pc xith 5700g, 64gb ram and 3060ti
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
How ram hungrey is screeps btw?
The server i mean?
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
Bruh thats nothing
the official server has >1000 players
2MB is probably a gross underestimate too
You can host if you want. But i would just be paying electricity and nothing else
Hetzner my beloved
i'm locked in for another 10 months, i'd be paying regardless
I thought the hetzner was a tank
it's also a cloud host
and a pretty cheap one at that
Hetzner Server Finder: Cheap dedicated servers with AMD or Intel CPUs. ā GDPR-compliant ā top performance ā 100% green energy
look at these dedis
you're the only cloud I need 
not very much, but it's also has just my 2 creeps as the load right now
in reality you should probably allocate at least a few GBs
no I'm trying to move screeps up the priority list


their server auction is awesome, you can get pretty good deals there sometimes 
shiro as hard as you may try, getting home may be a higher priority
vacations are nice once in a while
how many chances do you really get to see the world
exactly
I slept on the sofa under a towel tonight
geoguessr is available 24/7
uk?
Classic montenegro
that sounds like pre divorce shenanigans
my holiday ends today, i gotta travel tomorrow, which gives me time to look at documentation
or it would be, if they didn't move to a paid service...
oo I can't see the leaves on mobile
We have kidnapped the mods from NN
It's cute you think I was talking about newcomers, I actually meant you mods 
the new joiner leaf
shiro they're referring to the mod icons 
OH
You got it

the game is asynchronous so you play whenever you want after all
very low commitment
just writing a bit of code here and there
ok so how does it work
Screeps go brrr
Didn't you leave
it's an RTS but the catch is that you control your units by writing code
om cloud there's a fair chance you're running the same server type as the offical screeps servers
I kinda did
the game runs 24/7 with your code executing once per game tick
Im walking and waiting for the wifi from the restaurant to drop
so as the player you're tasked with writing an AI to produce units, move them and interact with the world, etc.
damn they use ovh? so expensive
there's many deeper late game features too
either way probably, just that i'm on a vm
Aight bye fr now
40 small servers??? Nodejs scaling I guess
cloud where's your 160 cpus
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
I got pranked.
The place we're visiting is right next to the restaurant.
I still have wifi
oh frick
i stopped being lazy https://git.ablecorp.eu/lily-org/lily/pulls/1
hblsp now targets lily 0.2.0
just reprogram it with js
too distracted by #programming

working on it
this bus still takes me where I'm going just slower
where did you go?
tell me screeps I love them...
except the logistics screeps
they eat way too much cpu
lazy buggers
cpu
just buy more cpus
why not buy local sim
my server has 2 whole vcores and 8gb ram
but hey, its 5 euros
i'm paying Ā£25 for 2 more vcores than you š
thats just robbery
4 cores, 8gb ram and 256gb ssd is 6,84⬠per month at my hoster
wahoo
merged
I aint paying 25 bucks for a sim if im only staying in this country for 3 days
Or well, slightly more than 3 days
Like 7 dayd
i checked and i need 7mb of stack for it to compile, at 6 it crashes 
apparently you can increase stack size on linux clearly i should do that
rip

Also hi
Hi
not really a hot take
Slothy is doing fine
a couple more takes as cold as that and I would stop sweating

















