#programming

1 messages · Page 83 of 1

olive sable
#

Montenegro

scarlet arch
#

I assume latin letters are more common there?

#

idk the history of the country :P

olive sable
#

They used to be toghether with serbia iirc

#

Odk

opaque wharf
#

I mean, half of europe was once german or soviet

olive sable
opaque wharf
#

Europe do be interconnected like that, even in the medieval era

olive sable
#

Germany doesnt count

#

That was like 3 years

#

Place has spooky police tape too, but i cant read that

opaque wharf
#

Is that a sheep?

olive sable
#

I know what ☠️ means tho

#

Yes

#

That is a sheep

#

In the danger zone

#

And it has black eyes which are extra spooky

opaque wharf
#

You must rescue it Sam neuroPogHD

#

You're the chosen one

olive sable
#

This was like yesterday

#

And im not touching wild sheep

stark needle
olive sable
#

Ahhhh

#

Makes sense the building was falling apart

olive sable
stark needle
#

ПАЖБА! ЕНЕРГЕТСКИ КАБЛ

#

is what's written

olive sable
#

How do you also know serbian?

stark needle
opaque wharf
#

Dedication to quench curiosity

stark needle
#

ai overview is sometimes surprisingly helpful

#

For visual search

rare bramble
#

I have a huge problem with my miner screeps not finding the resource attached to them

#

and this is super weird since the official rust starter bot recommends that I store a objectID to things

#

and I literally do taht

#

and then the very next tick, THE SCREEP SAYS THAT THE ID IS INVALID

glass flower
#

hmm sounds like something isn't sticking around and getting invalidated between ticks

rare bramble
#

like the id should be valid unless the object has literally disappeared, like screep died so ID is no longer valid or spawn is destroyed so the ID is no longer valid. but the resources never go away, like this literally should not happen

#

and like it sometimes works

#

but it fails 80% of the time

glass flower
#

weird..

#

annytfSittu i don't have that issue. i just fetch the objects if they get invalidated

#

and if they stick around i have them in a cached array

#

tink unless i misunderstand my lifetime of the cache... could also just be that i never invalidate the cache and i just got lucky LUL

#

or i invalidate it every tick somewhow LUL

#

i should probably check it... at some point

#
    private static readonly Dictionary<string, List<IRoomObject>> cachedStructures = [];

    public static T? FindNearest<T>(this IRoom room, Position pos) where T : class, IRoomObject
    {
        if (!cachedStructures.TryGetValue(typeof(T).Name, out var structures))
        {
            cachedStructures[typeof(T).Name] = [];
            return default;
        }
        if (structures.Count == 0)
        {
            structures.Clear();
            foreach (var spawn in room.Find<T>())
            {
                structures.Add(spawn);
            }
        }
        if (typeof(T) == typeof(ISource))
        {
            return (T?)structures
                .MinBy(x => x.LocalPosition.LinearDistanceTo(pos));
        }
        return (T?)structures
            .Where(static x => x.Exists)
            .MinBy(x => x.LocalPosition.LinearDistanceTo(pos));
    }

PepoG not sure if structure.Count can ever be 0 after i set it initially...

rare bramble
#

from what I observe, it fails to resolve the ID when other screeps are already mining the source and the source is full, but it still shouldnt fail there, it should fail the code for moving there and give me a move error: no path

glass flower
#

YEP that definitely shouldn't fail

opaque wharf
#

2 screepers with 2 very wildly different language, and it isn't even the language the game used neurOMEGALUL

glass flower
#

judging from what has been talked about before.. i don't think anyone uses javascript here LUL

#

i saw typescript,rust,c#(me),clojurescript

glass flower
opaque wharf
rigid snow
opaque wharf
#

Chay always knows about cursed type

rigid snow
#

types don’t exist at runtime

#

in ts

glass flower
#

well.. but you still don't work straight in JS so it is a bit different

rare bramble
#

I mean realistically types dont exit at runtime in rust either

#

except if the type has a runtime contract to uphold like refcell

rigid snow
#

what if i hop on and use flow just to piss everyone off

#

well no it’s too similar to ts

glass flower
#

use Go YES

rigid snow
#

and jsdoc is just js with comments

rigid snow
#

what if i use jsx to describe logic neuroNOWAYING

#

coffeescript vedalCry

tender river
olive sable
#

Guys

#

Beach episodes are better on tv

#

Its raining bwaadow

#

Also im realizing that the main focus on tv is the woman

rare bramble
#

ok, I really should respawn, this doesnt look like a nice neighbourhood

sage crag
#

the distinction between signed and unsigned instructions also causes types to exist at runtime

#

vtables are more convincing though

opaque wharf
stray dragon
#

rain is so underappreciated smh

stark needle
trim valve
olive sable
#

100 programmers from all over the workd gathering at a beach

#

What could go wrong?

wet oyster
#

The smell

opaque wharf
olive sable
wet oyster
#

We need PrimeAgen making solve leetcode for 100$ challenge on programmer beach, like some youtubers do on fit beach.

olive sable
sage crag
olive sable
#

Understandable

sage crag
olive sable
#

We do

#

But its not the entirety of programmming

wet oyster
#

Im sure sand getting into air cooled systems would be very beneficial and surely not detrimental to performance

trim valve
#

god bless sand

olive sable
#

Surely...

trim valve
#

I love going to the beach and finding sand in stuff for the next month

sage crag
#

gender census poll

olive sable
#

I left my tablet at the apartment cuz of the big wet bwaadow

sage crag
#

36 votes is a lot of votes

olive sable
#

Its decent ye

#

Iirc about 5 woman there

#

You, bred, chayleaf, and some others

wet oyster
#

Wait, chayleaf is a woman?

olive sable
#

Yes

sage crag
#

niuh

wet oyster
#

niuh indeed

olive sable
#

And chayleaf helped me with reading hexadecimal buffers for my gltf parser

#

So you're not the only one

#

That was the whole reason for the gender poll btw

#

E

#

So anyways, i doubt we want programmers at the beach

wet oyster
#

Btw, stone beaches >>> sand beaches

stray dragon
#

nah

#

sand is way better

#

stone beaches aren't fun to walk on

uneven pulsar
#

they are made for lying down

wet oyster
stray dragon
rare bridge
#

there's a bug in my idle code buh

olive sable
olive sable
#

I probably went to more bard than tourist places this vacation lmao

#

Anyways i managed to fix my taxi screep code neuroHypers

#

Very hard to debug shit on mobile

rare bramble
#

neuroWave hello neighbours

olive sable
#

The only problem i have rn is that the taxi screep is just blocking the znergy source now lmao

rare bridge
#

i'm 2 rooms below you

glass flower
#

good luck with all the swamp tiles ehehe

#

and direct neighbours with invader LUL

#

oh wait.. the invader is gonna collapse in 6,5k ticks NeurOhISee

olive sable
rare bridge
#

my creeps just stay the fuck off the road if they're idle

#

these were surrounding the energy source until they switched to idle

glass flower
#

tink how are you doing those labels?

rare bridge
#

RoomVisual

rare bramble
glass flower
#

once the invader is gone maybe you can take that spot? and i'll take the one left of it

glass flower
rare bramble
olive sable
#

I cant click on a screep if they're on a road on mobile, ill have to wait for him to die of old age

#

Can someone check how old my taxi screep is?

#

I cant see on mobile

glass flower
#

this one?

olive sable
#

Ye

#

791

#

Bro is gonne block everything for another 800 ticks AINTNOWAY

glass flower
#

ICANT can't you just move him manually?

olive sable
#

Wait

#

I can maybe kill him in the console

glass flower
#

YES there is a suicide method afaik

olive sable
#

taxi_71135072 GETHIM

sage crag
#

awawa

rare bramble
#

neuro7 taxi_71135072

glass flower
#

hmm making oneway taxi creeps sounds like a good idea if they just cost 50 energy. they move miners in place and then just die..

#

wouldn't waste time of the carrier bots

stark needle
olive sable
#

Hes refusing to die

#

I might be doing it wrong

wet oyster
glass flower
#

scrajj should just be:

#

Game.creeps["taxi_71135072"].suicide()

olive sable
#

Ohh

#

Ye i know why it wouldnt work, forgot the parenthesis

glass flower
olive sable
#

I just ended up killing him via taxis[0].suicide()

#

Very hard to type like this

#

Was doing thid initially

real sierra
#

gm

real sierra
#

I killed another invasion last night apparently

#

they just keep coming it seems

rare bramble
#

way ahead of you

real sierra
#

I better hurry up and murder QIS

glass flower
#

poor guy LUL

real sierra
#

tho I don't think my code will even try until my GCL goes up

glass flower
#

tink btw.. once novice area is gone. will new paths open to the outside?

real sierra
#

while novice zone is active, the boundary has an invincible wall across all exits

#

once inactive, that goes away

glass flower
#

well i guess i will die in 10 days then YES

real sierra
#

yeah I feel you Pointless

olive sable
#

We beed to build a wall with turrets and shit

real sierra
#

I upgraded my wall code last night

#

it now builds even better walls

#

very happy with it

glass flower
#

tink are you building stuff automatically?

real sierra
olive sable
#

I have fixed the taxi code mostly

#

Problem is the taxi stops at the energy source, not the miner

#

So i killed them

glass flower
#

yeah, you need to move 1 more tile so the miner can go onto that spot

olive sable
#

Yep

#

I wonder what the best method gor thah is

real sierra
#

I went with the CPU saving method of picking a random direction and walking in it

olive sable
#

Just go to a random free direction and then commit die?

real sierra
glass flower
#

well.. you know the direction of the miner and you know the direction of the source.
so.. pick a direction that isn't those 2 YES

olive sable
#

Same wavelenght lmao

real sierra
#

if you're going to die them afterwards tho

#

you may as well recycle them at the spawn

#

you can get back a lot of their cost if they haven't been alive long

real sierra
olive sable
#

If i move them to spawn i might as well just reuse them for the other miner, and then recycle it

real sierra
#

you know the miner won't be there next tick

#

so you're safe to move there

olive sable
#

Ahh

real sierra
#

but also I was too lazy to do that and just did random

glass flower
#

tink i guess that works.. i forgot they can phase through eachother if they move to in opposite directions

olive sable
#

I have 2 sources so need 2 miners, by the time a miner dies the taxi will have died too so recycling the taxi is best

real sierra
#

you will be blown away by the income increase of having a dedicated miner

#

I couldn't believe it myself

#

it also means you'll probably start triggering invasions TROLL

olive sable
#

So:

  1. Spawn taxi
  2. Spawn miner1
  3. Move miner1 to source1 with taxi
  4. Return taxi
  5. Spawn miner2
  6. Move miner2 to source2 with taxi
  7. Taxi goes to spawn
  8. die Recycle
glass flower
#

YES that was also my plan. tho i was just gonna use my carrier bots

#

(like the logistic ones)

olive sable
#

The screeps upgraded my room controller overnight too so i can put more body parts in them

glass flower
#

tink i wonder.. do you guys automatically scale the bodyparts?

#

or just hardcode the parts

real sierra
#

I scale

olive sable
#

WORK, WORK, WORK, WORK, WORK, WORK xdx

real sierra
olive sable
#

Idk how ill do it yet

#

I guess idd check how much energy we have atm and how much need we have for a miner

real sierra
#

a what

olive sable
glass flower
#

annytfSittu this is how i do my scaling things. basically just a bit of math.. tho i haven't tested it yet. waiting for my harvesters to finish building the extensions

real sierra
#

(tho I might've leaked an old version of it when I dumped my source code ages ago)

glass flower
olive sable
#

Miners idd always try to pit as much as possible work parts on

#

Or well, how many does it saturate?

real sierra
olive sable
#

Nerd

real sierra
#

my algorithms are some of my most closely guarded secrets

#

because they took a lot of time to develop

olive sable
#

The effectiveness of an ability depends on the amount of parts of a corresponding type. For example, a worker creep with 3 parts of the WORK type will work 3 times as effectively as a creep with only 1 WORKpart. The same applies to all the other types and actions.

real sierra
olive sable
#

Ah

#

Thanks

real sierra
olive sable
#

2 energy / tick

#

Hmmm

#

So with 25 you immediatly fill your 50 carry space

#

Do those stack too?

glass flower
#

what stacks?

olive sable
#

The carry space

glass flower
#

i mean.. yeah. each carry space is 50

real sierra
#

GIGACHAD Out of my way loser. I'm building.

glass flower
olive sable
#

Why u shooting my beautiful wall? Me go repair ANGRY

real sierra
#

invaders are rather spooky

#

they all have max parts

#

every single one

rigid snow
olive sable
wet oyster
olive sable
#

I will be streaming my desktop neurOMEGALUL

real sierra
#

breathing sand will help smooth any rough edges in your trachea Ok

olive sable
#

Trachea?

#

Lemme google

rigid snow
#

throat organ mhm

#

air tube

real sierra
#

happie tube

olive sable
#

Ahh

#

In dutch we call that "air pipe" Tutel

#

It is where the air goes

#

Wait why is shiro distracting us with airpipes?

#

We need to scale the screeps

real sierra
#

remain weak so i can crush you

#

nwero 💬 like a bug

glass flower
#

Bedge i'll scale them tomorrow... i hope nothing breaks while im gone... i will wake up and everything will be totally fine NAILS

olive sable
#

Iirc you can check how much energy you have, so idd do amount of energy - 50 for taxi as budget

real sierra
#

npc invasions every ~100,000 energy collected per room

#

+ 30,000 or so

olive sable
#

Oh no

glass flower
olive sable
#

Im at this

real sierra
glass flower
#

they can't do anything during safe mode. the most they can do is wander around i think

real sierra
#

^

#

they cant even block your creeps, you can walk thru them

glass flower
real sierra
#

and i think they still have lifespans

real sierra
glass flower
#

the further away they are tho the less damage a tower will deal

real sierra
#

but ive unfortunately discovered that the dps is too low to kill on its own if there's a healer

real sierra
glass flower
rare bridge
#

@real sierra i'm not looking too hot rn CerberOMEGALUL

glass flower
#

well.. i'll look into defenses once my safe mode is low

rare bridge
#

my harvesters decided to not even bother and killed themselves

real sierra
glass flower
#

YES i have one extra

rare bridge
#

just had to reassign my builders to do the jobs of the harvesters

real sierra
#

nice tower cloud

rare bridge
#

Minamhm it surely has the capacity to defend

real sierra
rare bridge
#

obviously i don't have enough harvesters deployed

real sierra
#

isnt this a huge issue

#

given you always ride your controller right along the edge of downgrading

rare bridge
#

yep LULE

real sierra
#

my math says you're back to RCL2 in 2 hours

rare bridge
#

if i don't get my harvesters back online that is

real sierra
#

surely you can fix it in 2 hours

rare bridge
#

maybe the issue is that i have too many...

#

OH

#

MY CREEPS HAVE JUST BEEN SITTING AT MY FUCKING ENERGY SOURCES DOING NOTHING

#

NO WONDER THEY DIED OFF

real sierra
#

they're full and still collecting

#

can never have enough

#

must've grown up during hard times

#

pogs wtf

#

sam has roads

#

this looks awesome

rare bridge
#

okay now my creeps actually do something CerberOMEGALUL

stark needle
real sierra
#

oh dear how did that happen

#

what a travesty

#

more importantly

#

when are you joining screepsfest

olive sable
real sierra
#

^

olive sable
#

Oh its from 2am

real sierra
#

you're asleep a lot of the time

olive sable
#

I do sleep sometimes

real sierra
#

not very programmer-like of you

olive sable
#

Im on vacation rn

#

The no-lifing is for when im back

rare bramble
#

neuroHypers all creep handling and spawning code is now spawn agnostic, and my spawn state is finally usable

real sierra
#

also dear god that looks bad

olive sable
#

Btother, that code looks more shit thdn my game engine

#

And believe le my game engine is complete garbage

rare bramble
real sierra
#

idek why its so many lines

#

it doesnt look like unnecessary code

rare bridge
#

fields 'spawn' and 'room' are never

olive sable
#

Aight i am back at the apartment cuz it started raining, time for more screeps

real sierra
#

🔥

#

im kinda worried

#

if the attack groups get bigger, idk if i can win

#

invaders might roll me

bright scaffold
#

Which DE should I install on my main pc...?

olive sable
#

Collective front?
Can uou work toghether in screeps?

real sierra
#

ok i gotta go to work Sadgi

bright scaffold
#

I think about xfce4, kde or lxqt because i dont want to spend a lot of time for settings

real sierra
bright scaffold
real sierra
#

but theres nothing saying you can't either

#

just gotta code the functionality

olive sable
#

Whitelist code

real sierra
#

it would be annoying refactoring

olive sable
#

If owner == "shiro-nya"

real sierra
#

no more creeps.find(FIND_HOSTILE_CREEPS)

#

no more if (!room.controller.my)

olive sable
#

Bwaa

real sierra
#

tho

#

i think i can add a whitelist to my expansion code quite easily

olive sable
#

Cant you just && owner != shiro_nya ?

real sierra
#

so we won't consider whitelisted players' rooms as targets

real sierra
#

in practice id probably write wrappers for the find methods

#

that filter before returning

olive sable
#

Just make a whitelist module ig?

real sierra
#

but why

#

i gain nothing

olive sable
#

Idk

real sierra
#

i can only take on so much tech debt Deadge

#

my codebase is up to like

#

20 modules

olive sable
real sierra
#

no vcs needed gx_ez

olive sable
#

What are you doing???

real sierra
#

one per creep role

#

a bunch of utils for managing spawning, etc

#

and some other things related to expansion

rare bramble
#

shut up rust analyzer

real sierra
rare bridge
#

where do you think you're doing

olive sable
#

Grammar 💯

real sierra
rare bridge
#

ReallyInnocent idle

olive sable
#

bro is a couch patato

real sierra
#

watching cloud pour two days into the job scheduler just for it to idle all of their creeps to death is peak screeps

rare bridge
#

there's just no jobs to do rn

#

i could, of course, just do this

real sierra
#

the controller: poor

olive sable
#

we love the controller

real sierra
#

the controller gives me wonderful things

#

like new rooms

rare bridge
#

consider the creeps to be doing stuff now

real sierra
#

if you insist

rare bridge
real sierra
#

I JUST left home

olive sable
real sierra
#

hopefully we win

#

@rare bridge battle status

olive sable
#

shiro you're expanding?

real sierra
#

they said it was the best room

#

they know better than I do about these things

rare bridge
real sierra
olive sable
#

ded

real sierra
#

oh

#

they're gone not me

olive sable
#

lmao

rare bridge
#

yeah they're gone om

olive sable
#

noo my code didnt save cuz i checkd on shiro

#

fuccck

real sierra
#

done that many times

#

I now spam ctrl-s after every line

olive sable
#

hotel lost power lmao

#

im back

real sierra
#

what kinda 2 star hotel

olive sable
#

stars?

#

wdym stars?

inner pike
olive sable
#

do you think im paying for all that?

real sierra
#

brother I pay minimal rent and even I get electricity

olive sable
#

its $10 per night here so uhhh

real sierra
#

money laundering ahh

olive sable
#

10 per night per person, so 4x5x10

real sierra
#

$10/night doesn't even cover wages

olive sable
#

ye everything is in cash here, almost ever store and apertment and shit

#

its all laundering

real sierra
#

nah that's a front

opaque sigil
#

fun fact, the hotel we stayed at in berlin during a school trip turned out to be run indirectly by north korea

real sierra
#

the owner should be in jail

opaque sigil
#

who could've possibly guessed that with the embassy right next to it glueless

olive sable
#

the owner is friendly tho, he owns a store infront of the hotel

#

tbh im pretty sure this place is not completely legal but the people are nice so who cares

#

anyways, i want to add a return to a module function, can i just do return 0; ?

#

this fine?

#

also what is this grave?

Position: 36, 5
Decay in: -286
Death time: 301 ticks ago

negative decay?

rare bridge
olive sable
inner pike
#

Hes coming back in 3 days

olive sable
#

i didnt give my miner a carry, he has no storage anya_dead_p2u

#

fixed taxi code partly neuroHypers

inner pike
#

fuck somebody took the room i was looking at yesterday

#

i should have just taken it yesterday

#

fml

olive sable
inner pike
#

@rare bramble 🖕

olive sable
rare bramble
#

oh, i took your room

inner pike
#

yeah

#

i was gonna go there

rare bramble
#

yoinks

inner pike
#

i posted about that room yesterday lmao

#

what if i just take E32N37

#

even though some other guy has his miners there already

#

Why are some of the novice areas red and some green ?

inner pike
olive sable
#

sure, but crazyyfish might kill you

inner pike
#

Well aslong as i manage to free up E37N36 fast enough

#

:)

opaque wharf
#

My god that was a long back read neurOMEGALUL

#

Not as bad as usual tho with 250+ JellyWheeze

inner pike
olive sable
#

yei think so

inner pike
#

i went and looked it up and apparently nobody else can enter your own room while novice area is active

olive sable
#

so ig the invaders from shiro are all just bots?

inner pike
#
inner pike
#

welp the guys creeps came right back to my place

#

and i cant even self destruct and respawn now because his creeps are in the room

#

Wait i can respawn

#

yeah i think ill maybe just wait for the server from cloudburst afterall since it looks like there are litterally no good spawns left anywhere nearby

#

fml

#

i should have just claimed that room yesterday

rare bridge
#

buh i'm gonna have to make that server eventually

inner pike
#

yeah

olive sable
#

do it friday

#

im home then xdx

opaque wharf
#

Do you need help with anything?

rare bridge
#

they're all very busy

rough bloom
#

I can also offer my help
I already have a private server running but it's at 10 ticks/s xdx

rare bridge
#

how are you running it?

olive sable
#

how do i make the outside for loop for my sources go to the next one if i find a miner that already has it? rn i have this but idk how to make it continue

opaque wharf
#

Shuni: Offers help
Cloud: "How?"
Shuni: Leaves

Chad neurOMEGALUL

olive sable
#

wont continue only do the inside for loop?

inner pike
opaque wharf
rough bloom
#

sorry was busy for a second

noble zodiac
#

depending on the language you can label a break/continue to outer loops

desert wave
olive sable
#

huh

#

okay

rough bloom
noble zodiac
#

ew nodejs

#

fokin disgusting

olive sable
# desert wave https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/lab...

fixed okp

if (miners.length < 2)
{
    let screepname = 'miner_' + Game.time;
    if (Game.spawns['Spawn1'].spawnCreep([WORK], screepname, {memory: {role: 'miner'}}) == 0)
    {
        Game.creeps[screepname].memory.source = source.id;
        console.log('new miner: ' + screepname);
    }
    
    let sources = Game.creeps[screepname].room.find(FIND_SOURCES);
    loopsources: for (source in sources)
    {
        loopminers: for (miner in miners)
        {
            if (miner.memory.source == source.id)
            {
                continue loopsources;
            }
        }
    }
}
noble zodiac
#

can one test screeps code without the actual game?

olive sable
#

probably

#

you have the free demo online

noble zodiac
#

it only accepts javascript tho

olive sable
#

screeps code is js?

noble zodiac
#

crazy how a single word can suck all interest out of my body

opaque sigil
#

you can do wasm too technically

olive sable
#

true

opaque sigil
#

but then you get to deal with wasm

noble zodiac
#

sadly I'm used to that shitshow

olive sable
#

my taxi isnt delivering my 2nd miner bwaa

opaque wharf
#

But the community have a great effort to support other language too at least

rigid snow
#

ain’t no fucking way

opaque wharf
#

I use nuxtlab specifically to avoid vercel

#

Welp, back to raw vue it is

opaque sigil
rigid snow
noble zodiac
#

I have a wasm model written in rust that implements a lisp. Surely thats good for creeps cpu cycles to go lisp > rust > js

opaque wharf
tender river
noble zodiac
#

quoting and backquoting are one of the coolest features

tender river
#

so runWithHandler(h, someCode) really means (h (quote someCode))

#

most languages instead just do call/cc which is really not that exciting

noble zodiac
#

tbf its just so much easier in lisp with code just being lists

tender river
#

which is just a tiny bit more exciting but algebraic effects can do so much more

left solstice
#

The game looks really fun but I don't know if I can play it. Would Core 2 duo 3.00 GHz x64, 8 GB ram and Integrated GPU be enough to play it?

#

The game looks simple but anything slightly more complex than deltarune struggles to run at 30 fps

rigid snow
#

core 2 duo is crazy

rigid snow
left solstice
left solstice
olive sable
#

I have a bug wirh assigning a source to my new miner screeps

left solstice
#

you're not wrong

olive sable
#

If i dont fix it i will die as soon as the miners die of old age

opaque wharf
#

Mmmm, I love software gore

trim valve
#

nice shaders

opaque sigil
#

at least you got a pretty gradient

delicate sedge
#

Does anyone know how Neuro was originally made to Play OSU?
Was it machine learning or something else?

rare bramble
#

I still need make a more egonomic interface for interacting with creep memory and doing stuff with the base state

opaque wharf
#

Yeay, finally the latest kernel fix the issue with my monitor brightness neuroHypers

warped narwhal
#

Who's up for a match? CerberOMEGALUL

delicate sedge
warped narwhal
delicate sedge
warped narwhal
wet oyster
#

I've been thinking about getting into screeps, but im not really well versed in high performance programming and my main language is C# followed by typescript.
Is it worth it?

opaque wharf
#

But it still teaches you about lots of problem solving

opaque sigil
#

the stack is js, there is no such thing as hpc here neurOMEGALUL

rare bramble
#

setting the JS json value returns a Result boolean? hmm the boolean is probably to see if existing key was overwritten and result for seeing if setting value was successful NeuroClueless

#

Ima check the documentation anyway...

opaque sigil
#

probably cause you can freeze objects

#

in which case it'd fail

rare bramble
#

why is it not returned as Err????!??!?

#

if it fails

#

??

opaque sigil
#

it doesn't throw an error when you try setting a property on a frozen object

opaque wharf
tender river
opaque sigil
#

i guess the Err variant here would be the exception then?

tender river
#

yep

rare bramble
#

I would consider failing to set property Err() worthy

opaque sigil
#

this is a _sys crate, they just mimic what js does 1:1 when possible FOCUS

rare bramble
#

Js was a mistake SMILE

opaque sigil
#

and js doesn't think failing to set is worth throwing for

wet oyster
#

I honestly dont understand why JS wasnt replaced by some other, better language and people stick with it

opaque sigil
#

i guess if it didn't also throw errors maybe but it's not like you can merge those 2 kinds of errors

#

it did

#

it's called typescript

opaque wharf
#

JS is perfect as it is NeuroClueless

wet oyster
#

Typescript is essentially abstracted away javascript

opaque sigil
#

what

#

i wonder if they'll ever officially support utf-16 for wasm

olive sable
#

Im at another beach but all i want is to fix my screeps bwaadow

opaque sigil
#

addicted neuro7

opaque wharf
#

Its so Joever for Sam

delicate sedge
#

@warped narwhal Good game, that was a fun one

warped narwhal
#

That was an interesting match

#

I honestly don't see how you could've gotten past this board

delicate sedge
warped narwhal
warped narwhal
delicate sedge
# warped narwhal

Yeah, I was checking every single other board
I had a way to get rid of the queen at one point, but it got countered by a knight several boards away

delicate sedge
warped narwhal
#

the 5d chess equivelant to a bishop sniping from the other side of the board

olive sable
rare bridge
#

delivery driver was lazy

olive sable
#

Bwaa

rigid snow
olive sable
#

3090 got sent thousands of kl, only fot a lazy friver to get in its way

#

I hope its intact

#

I paid 8 bucks for insurance on it

olive sable
tender river
#

reproducing language bugs is art

#

just made this repro for hblang

broken := fn(self: ?[]u8): void {}

main := fn(): u32 loop {
    broken(null)
    broken(null)
    broken(null)
    broken(null)
    broken(null)
    broken(null)
    broken(null)
}
rigid snow
opaque sigil
#

oh there's a loop

olive sable
#

Progress will def lessen if i need to babysit my screeps tho

#

And as predicted the miner screeps died of old age and broke

tender river
wet oyster
olive sable
#

Okay

tender river
#

i'm going to build an incomprehensible tower of abstractions that's gonna put both oop and fp programmers to shame neuroPogHD

olive sable
#

My code is all just freestyle, i dont adhere to yalls rules

tender river
#

erf 2.0 is a thing to be feared

opaque wharf
#

See? I told you mlnt, chay will always finds a way to use language in a cursed way

tender river
#

i'm scared of erf 2.0

rare bramble
tender river
# tender river i'm scared of erf 2.0

it's a language that's going to consist of two parts:

  • a lattice-structured module system for manipulating raw terms and structuring programs (most module systems are tree shaped instead smh how boring)
  • a layered tower of effects for metaprogramming and for interpreting programs in different contexts
    and i'm VERY scared of both parts but i thought this through and it sounds realistic
#

the thing that does not sound realistic is proper error messages, i'm just going to ignore this for now but i'll revisit it later

olive sable
#

I made my builder screeps fix the fuckup i made

#

The miner screeps are too far gone rn

#

The builders shall take over till the curent miners die

opaque wharf
#

Chay, you should start to ask if you should, not if you could

opaque sigil
#

how does a lattice-structed module system even work menherathonk

#

no nesting?

fossil pelican
#

I need some

#

help

#

Is there some kinda program that can check a hill cipher for coherent words by testing combinations of the alphanumeric alphabet that is used for the hill cipher to some degree

#

Thats the best way I can word this right now

tender river
# opaque sigil no nesting?

to put it simply, joins and intersections. To put it in a more complicated way, you can define superclasses by who they precede, you can define subclasses by who they go after (you cant define classes by both their super- and sub- classes). Classes is a bit of a misnomer but the only other words i have for it is "type" or "module".

additionally, you can

  • flip a lattice (contravariance)
  • sum up lattices (this is kinda like a sum type but for lattices)
  • get a product of lattices (same, you have two values, one from the first, one from the second lattices)
  • get a join of multiple values
  • get a meet of multiple values

the benefit of this module system is that it can easily support recursive definitions by calculating a fixpoint over the distributive lattice since every function is monotonic; then effects come into play which makes it complicated and i haven't fully worked out the details yet

#

all of the operations that produce a lattice (except flipping the lattice) are lattice homomorphisms, which means they extend the lattice without breaking any existing joins or meets

#

this means each effect can extend the type system with new types and outer types will keep working as-is

#

i have no idea how well unifying types and modules is going to work i just have a hope it is gonna work

#

or rather, i'm not exactly unifying them

#

its a bit more complicated than that

tender river
opaque sigil
#

unfortunately i'm too dumb to fully grasp this neuro7

fossil pelican
#

Its lookin like no one can help me with

tender river
#

so am i neuroPogHD

tender river
opaque wharf
tender river
#

rest assured i know typescript

opaque wharf
#

Hmmm, but then you need to run the module anyway

tender river
#

typescript doesnt actually have proper sum and product types

opaque wharf
#

Yeah nah, I'm not thinking about it now. Back to work I go neurOMEGALUL

noble zodiac
#

huh, I kinda broke the rust compiler

#

wait, I'm freaking stupid

tender river
#

@rare bridge @cobalt vessel @open copper

noble zodiac
#

there still is no way to return an error from an iterator without collecting it, right?

tender river
#

ty mods neuroHeart

tender river
#

in practice probably just use a for loop

noble zodiac
#

I could do some weird fold nonsense

trim valve
fossil pelican
#

Im on a mission and that is a good mission

olive sable
#

I ate neuroHypers

#

Time to check on the screeps

fossil pelican
#

breakfast

rare bramble
#

neuroHypers I have officially crossed over 1000 lines of boilerplate code
maybe some day I can program actual screeps logic SMILE

olive sable
#

Superbox has received the 3090 neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers neuroHypers BOOM BOOM BOOM

blazing hound
#

The hate on ChatGPT is well-deserved tbf.

#

But not for the reasons other people expect.

#

If I put this into some sort of a comparison, you essentially have a child grow to a certain point, then you kill it off and use its nervous system to run some sort of a programming.

noble zodiac
#

someone get the bingo card

scarlet arch
tender river
#

ah yes poor chatgpt

olive sable
#

I fixed my taxi code neuroHypers neuroHypers neuroHypers

#

Coding on phone is absolute dogshit

steel mesa
#

wtf is screeps

#

i keep seeing it and it looks like a cool game

#

oh nevermind

rigid snow
# olive sable Skill isue

i think it’s called “adhd” but i’m not sure, maybe “skill issue” is the correct term after all

rare bramble
fossil pelican
#

Does stuff for decoding Hill Ciphers usually take long

steel mesa
#

its a cipher

#

bruteforcing without a proper code is gonna take weeks

fossil pelican
#

I made a test ciphertext

steel mesa
#

specially the type of thing you're putting thru the cipher

fossil pelican
#

hmm

#

and there is no way to optimize this

steel mesa
#

probably there is

fossil pelican
#

dumbass program was trying to check all the billions of combinations

velvet crestBOT
#

You have unlocked new role

fossil pelican
#

Cool I have embed perms

#

Does anyone here specialize in matrices

steel mesa
#

go study

fossil pelican
#

No

noble zodiac
#

do you ever just have to create hash collisions? cuz thts me right now

tender river
#

38762cf7f55934b34d179ae6a4c80cadccbb7f0a neuroPogHD

noble zodiac
#

I think? that I have implemented a hash array mapped tree in lisp. Maybe

north grove
#

someone who knows the api better than me

#

is the llm aware of actions at all with "silent": true

#

and does can she decide not to respond to"silent": false

#

(i know it can be overriden by other actions, but can it be straight up ignored)

tender river
north grove
#

ye

tender river
#

please dont be so vague when asking questions next time, anyway i think all it means it she wont be prompted to respond to it but it will be sent to her

#

kinda the same as chat messages, she doesnt actively respond to every message but the messages get sent to her

#

ultimately vedal is the only one who really knows but thats how it works from what i understand

north grove
#

ok then

#

thx

gritty dust
#

yo is sam online?

#

I have big news

amber fractal
gritty dust
stark needle
amber fractal
gritty dust
amber fractal
#

Small edits later, and [ 1 2 4 8 16 3 5] is my output of produce the same number as imputed where only the first 5 were trained on

#

Well well well. It seems like it is time for the stress test now

#

No overfitting, as when calling backwards again it actually threw me an error because I forgot to handle a 0 size case.

amber fractal
olive sable
#

i am here

#

this hotel has 3mbps apparently, just tested it

#

the previous one had 400mbps

#

at home i get 100

#

its 3mbps down, but 25 up so idk what the logistics here are

rigid snow
#

3mbps is enough. when it starts to suck is if the speed test initialization times out

olive sable
#

it was 3mbps when the website loaded

#

seems to be a bit turbulant

fast pagoda
hard raptor
#

Crust > Rust

olive sable
real sierra
#

hi screeps channel

#

just got off work

amber fractal
olive sable
#

i am here?

gritty dust
#

YES

real sierra
gritty dust
#

i am happy

olive sable
#

nice

real sierra
olive sable
#

memory leak L

real sierra
#

how did I get a memory leak in JavaScript

#

🥀

gritty dust
#

they didn't even tell me why it was banned for 5 months they just said "sorry for the inconvenience" like brooo

olive sable
#

i have 2/2048Kb

real sierra
#

I had 7/2048 when I went to work

#

I am so confused

olive sable
#

you cant tell me its not a memory leak and are actually using 2MB

real sierra
#

you know what

olive sable
#

it hs to be a mem leak

real sierra
#

there was probably a stupid corner case with spawning

#

I bet the spawn queue has like

#

300 entries

olive sable
real sierra
#

my biggest worry tho is

#

if this means my code stopped running...

#

then if there were enemies...

#

i did get another raid but I also won it seems so

#

I think I'm fine?

#

but I bet all my creeps died by now

olive sable
#

nah

#

i see like 8 screeps moving about

real sierra
#

what

#

how

olive sable
#

and your canon has energy

real sierra
#

maxed mem should break things big time

#

my state machine must be so broken

olive sable
#

i ount like 10 on your main square

real sierra
#

that's normal numbers

#

idk how tho

#

feels like I'm being lied to about my memory and cpu use

hard raptor
#

How bout

:(){ :|:& };:
real sierra
#

classic fork bomb

hard raptor
#

Or removing french language pack

#
sudo rm -fr /* --no-preserve-root
rare bramble
#

🐥 🚬 removing the french language

real sierra
#

juho

#

how's your screeping

steel mesa
#

so you're telling me this "screeps" game runs on code

#

and you can... kill?

real sierra
#

yup

#

that's right

steel mesa
#

whats the language

#

or is it interactive blocks

real sierra
#

not blocks

#

in practice almost every common language can be used

olive sable
#

its js catdespair

#

pretty fun tho

real sierra
#

the game lets you use JavaScript in-game but accepts wasm binary modules which you can compile from many languages

olive sable
#

least shit js experience so far

real sierra
#

juho is using rust

#

someone earlier was using C#

opaque sigil
#

gotta respect the rust dedication

#

i could never neurOMEGALUL

steel mesa
#

can we asm?

real sierra
#

you can write raw wasm

#

sure

rigid snow
#

nERMd it's wat, wasm is the binary format

steel mesa
#

eeeeeeh

olive sable
#

wasm

steel mesa
#

its tempting but

opaque sigil
#

you can write wasm too neuroPogHD

steel mesa
#

coding has led me to some pretty bad places

rigid snow
steel mesa
#

if it were free i'd try ngl

real sierra
#

it's $5 or so

opaque sigil
steel mesa
#

7

real sierra
#

half off rn

steel mesa
#

ahhh fuck it

real sierra
steel mesa
#

if i have a chance at coding might aswell have fun with it

real sierra
#

@olive sable do you suggest the tutorials

olive sable
#

yes

steel mesa
#

i will do the tutorials

#

i am not that great at coding

olive sable
#

i recomend them cuz i didnt know js before

rare bramble
#

but to be fair, i'm so close to having everything done in a way where I can focus on pure screeps logic and state management. I'm sure pretty much all of the boilerplate required for Rust - Js interaction is surely done ( NeuroClueless )

real sierra
real sierra
#

ok juho switch to RawMemory instead of Memory

steel mesa
#

haunt me in my fucking sleep

#

notifications on my phone

real sierra
steel mesa
#

ding ding ding your base is gone

real sierra
#

juho subjected themselves to framework hell

real sierra
steel mesa
#

nah man

#

the thrill of waking up at 3am to prevent raids is the best

real sierra
#

you also only get emails like that if you code them to be sent to you

#

you can email yourself anything you want

steel mesa
#

im stuck on this

#

what am i suposed to do

#

this is too hard

real sierra
#

its just decorative

#

50% of players just pick the nuclear symbol and colour it yellow and black

steel mesa
#

why is there a pepsi logo

olive sable
real sierra
#

in case you want to be Pepsi

#

Pepsi once had the world's 7th largest navy

#

I wouldn't mess with them

rare bramble
#

I just toggled random until I found something I thought was cool

real sierra
#

Monte Carlo branding

#

I must have been leaking about 16kb every 50 ticks to overflow my mem

#

idk how that could be possible

steel mesa
#

uhhh

#

sound doko?

#

do we have to code our own soundtrack?

real sierra
#

yeah no in game music

#

or sound

#

game is a giant browser wrapper after all

olive sable
#

i togled random and then said fuck it lesgo

nocturne olive
#

Silliness

olive sable
#

i dont even know what colour i am

real sierra
#

silly

rigid snow
olive sable
#

ig im blue and purple?

#

too colourblind for this shit

steel mesa
#

mf why does it return -6?

#

how am i stuck in the fucking tutorial

#

is this a sign to refund?

olive sable
#

-6 is recources iirc

#

not enoughe energy to spawn ht many

real sierra
#

sam has the error codes memorized BigBrain

olive sable
#

some of them

real sierra
#

huge step towards becoming a walking screeps wiki

steel mesa
#

so im literally stuck at the tutorial

real sierra
#

you just have to wait for the spawner to accumulate more energy

#

it gets some naturally over time

#

you would need 200 for that unit

steel mesa
#

okay great now the console just doesnt work

real sierra
#

console commands run at the start of the next game tick

steel mesa
#

this is the tutorial.

#

i am stuck.

#

oh thanks

#

i have to actually click the spawn

rare bramble
real sierra
#

I thought invalid args was -7

olive sable
#
    OK: 0,
    ERR_NOT_OWNER: -1,
    ERR_NO_PATH: -2,
    ERR_NAME_EXISTS: -3,
    ERR_BUSY: -4,
    ERR_NOT_FOUND: -5,
    ERR_NOT_ENOUGH_ENERGY: -6,
    ERR_NOT_ENOUGH_RESOURCES: -6,
    ERR_INVALID_TARGET: -7,
    ERR_FULL: -8,
    ERR_NOT_IN_RANGE: -9,
    ERR_INVALID_ARGS: -10,
    ERR_TIRED: -11,
    ERR_NO_BODYPART: -12,
    ERR_NOT_ENOUGH_EXTENSIONS: -6,
    ERR_RCL_NOT_ENOUGH: -14,
    ERR_GCL_NOT_ENOUGH: -15,
real sierra
#

there's also two error codes for -6

real sierra
real sierra
steel mesa
#

yea im just that burnt out with code

#

i cant really play this game

olive sable
#

i got my builder screeps to finally start repairing my roads, i put repairing shit as hiher priority tho since stuff already started breaking, but now they wont make new roads

real sierra
#
function errFromCode(code) {
const tab = {
    OK: 0,
    ERR_NOT_OWNER: -1,
    ERR_NO_PATH: -2,
    ERR_NAME_EXISTS: -3,
    ERR_BUSY: -4,
    ERR_NOT_FOUND: -5,
    ERR_NOT_ENOUGH_ENERGY: -6,
    ERR_NOT_ENOUGH_RESOURCES: -6,
    ERR_INVALID_TARGET: -7,
    ERR_FULL: -8,
    ERR_NOT_IN_RANGE: -9,
    ERR_INVALID_ARGS: -10,
    ERR_TIRED: -11,
    ERR_NO_BODYPART: -12,
    ERR_NOT_ENOUGH_EXTENSIONS: -6,
    ERR_RCL_NOT_ENOUGH: -14,
    ERR_GCL_NOT_ENOUGH: -15,
};
return Object.keys(tab)[Object
values(tab).findIndex((v) => v == code)];
}
steel mesa
#

hey if anyone wants the game hmu i can give one away

olive sable
#

cant u just refund?

rare bramble
#

oh, you can kill your own screeps neuroPogHD (and give them more life)

steel mesa
#

i did

olive sable
#

ahh

steel mesa
#

but if anyone's interested

olive sable
#

what is ttl?

real sierra
#

time to live

olive sable
#

time to live?

real sierra
#

if your creep is almost dead you won't get much from it

olive sable
#

aight

steel mesa
#

shiro honestly

#

im assigning a ttl to you

#

use it well

#

its not much

olive sable
#

but i was starting to like shiro

steel mesa
#

give me a reason to let him live

#

yeah you took too long im reducing his time to live

#

personally.

olive sable
#

i have multiple chats to reepsond to

#

ladies, ladies, calm down

#

there's no need to kill shiro on his birthday

steel mesa
#

yes there is

rare bridge
#

british screeps

olive sable
#

you can kill him when its not his birthday xdx

olive sable
rare bridge
#

they're queueing

steel mesa
#

friday night on a pub

rare bridge
#

alright, my first container is done, time to put a lil static miner there

olive sable
#

is queueing a british thing?

#

since when?

rare bridge
#

our favourite pasttime

olive sable
#

the french invented the word queue

#

i refuse to believe the british are the only ones who queue

steel mesa
#

the french evolved to not use queue

#

the british didnt

olive sable
#

tbh i still dont get it