#programming

1 messages · Page 76 of 1

real sierra
#

whos gonna tell em

rare bridge
#

i'm gonna tell myself

#

from: 196063748354473984 has: file

real sierra
#

its an old version

#

i dont wanna give you anything newer

rare bridge
#

i'm gonna write better code anyway glueless

real sierra
#

Aware true...

rare bridge
#

looks better than i would write initially

#

anyway, time to use the email notification feature to forward alerts to chatgpt Okay

sage crag
#

ubwaa

rare bridge
#

i wonder.. @real sierra what is your section of the world xdx

#

i wanna come take a look

#

i haven't chosen a placce yet and prob will only play in the neurocord server until i learn everything anyway

real sierra
#

E38N39

#

on shard uhhhhhhhhh

#

3?

rare bridge
#

looks pretty good mhm

real sierra
#

i take it they havent all died then

#

thats good to hear

#

an improvement from earlier today

rare bridge
#

they're def doing stuff

#

a good 90% of them are being lazy af tho

real sierra
#

yeah they dont always keep themselves busy

#

but i have idling optimizations so its not too expensive

#

such as them getting the HELL off the road if they're not doing anything

rare bridge
#

HOLY they all randomly decided to move

real sierra
#

Om ik what that is

#

they're all waiting for energy to build up

#

they're not allowed to take energy from the spawn unless it's full nuhuh

#

so once its full they all fight over it

#

first come first serve

rare bridge
#

spawn is full, so here we go again

merry plank
#
import java.util.Scanner;

public class SimpleAI {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        System.out.println("Hi! I'm your little AI friend. Type something to talk to me!");
        
        while (true) {
            System.out.print("You: ");
            String input = scanner.nextLine().toLowerCase();
            
            if (input.contains("hi") || input.contains("hello")) {
                System.out.println("AI: Hello there! How are you?");
            } else if (input.contains("how are you")) {
                System.out.println("AI: I'm just a computer, but I'm happy to chat!");
            } else if (input.contains("bye")) {
                System.out.println("AI: Bye-bye! Talk to you later.");
                break;
            } else {
                System.out.println("AI: Hmm... I don't understand that yet.");
            }
        }
        
        scanner.close();
rare bridge
#

om a bunch of them decided they REALLY wanted to go somewhere

merry plank
#

never tested it though....

rigid snow
#

looks like it should work but it's cut off, missing a few closing brackets

cerulean dirge
#

Java? baseg

merry plank
#

oh

#

also seems to just respond to certain stuff with certain answers

#

kinda fake ai

real sierra
#

yeah thats pretty

#

rudimentary

rigid snow
cerulean dirge
#

seems like a pretty

merry plank
rigid snow
#

damn that's a nice monospace font discord uses huh i never noticed

pulsar edge
lapis wraith
wary rover
#

Oh, I've seen this video. Pretty cool stuff. Very counterintuitive, gotta think in strings and springs to get rid of the illusion that physics breaks

merry plank
#

java isn't really used for ai though python is better, im pretty sure

rigid snow
real sierra
#

WHAT

#

CLOUDBURST THIS IS WHAT YOU MEANT?

#

WTF IS HAPPENING IN HERE?

wary rover
real sierra
#

theres supposed to be like

#

Two of those

#

tops

rare bridge
#

they're very busy sleeping

wary rover
#

snoozefest

pulsar edge
cerulean dirge
#

real eeper hours

nocturne olive
#

Still sillying something?

rigid snow
rigid snow
#

cheater chatgpt

#

that's js

#

in html but still neuroMad

cerulean dirge
#

html isn't a programming language anyway NeuroNerd

real sierra
#

how did this even happen

rare bridge
cerulean dirge
#

it's a markup language

rigid snow
#

what do you think ml in html stands for?

#

machine learning obviously

rare bridge
#

machine learning YES

wary rover
#

If can't do what was asked -> do something different, lie and hope that no one will notice.
Based ChatGPT

rare bridge
#

hypertext machine learning

cerulean dirge
#

Chatting chatgpt, make me an AI in JSON

rare bridge
#

chatgpt

#

make me an ai

#

in.. hmm

#

screeps

#

make it in screeps

#

rn

#

wait can i do web requests in screeps

merry plank
wary rover
#

Can you make an AI out of gears I wonder. Like huge physical mechanism

rare bridge
#

Minamhm use your big, smart brain

real sierra
rare bridge
#

FETCH EXISTS LETSGO

real sierra
merry plank
#

happy birthday shiro

real sierra
#

oh my god

rigid snow
real sierra
#

i did Math.min instead of Math.max

#

so instead of ensuring it always included minimum cost queued units in the current count

#

it ensured the opposite

#

fixed now surely glueless

rare bridge
#

this is valid js screeps

cerulean dirge
rare bridge
#

fantastic

real sierra
#

wtf did you do

rare bridge
#

i have removed the concept of a const or var apparently

real sierra
#

you've had this for one day how did you break it already

cerulean dirge
#

i know nothing about screeps but perhaps you forgot a semicolon somewhere cirSlain

rare bridge
#

Hmm seems like my requests are simply being dropped

real sierra
#

i will say

#

given you are on a 20ms time limit per game tick

#

im not sure waiting for a web request is the play

#

tho maybe it doesnt count for cpu time

rigid snow
cerulean dirge
#

Ew.

rigid snow
#

you can, like, not use them if you're coming from python or something

#

i don't always write them either i let the formatter fill in the gaps

rare bridge
#

from what i can tell, they're being dropped

real sierra
#

salute another potential screeps player lost to the depths of a random invasive idea related to the game engine itself

cerulean dirge
#

i can forgive javascript for optional semicolons but i will not forgive it for string subtraction operations

olive sable
#

Yall still doing your thing here huh neuroLookUp

real sierra
#

nice sleep

rare bridge
#

i'm getting zero responses so either it's dying from the 20ms time limit, or they're dropping all webrequests out from their server that isn't their own domains

#

not gonna bother checking, it would have been absolutely hilarious to call the chatgpt api tho LULE

olive sable
real sierra
opaque sigil
real sierra
#

but now you're started another conversation

rare bridge
#

mhm javascript llm

real sierra
#

insteaad of sleeping after that one finished

rare bridge
#

i wonder if promises are just useless now

opaque sigil
#

pytorch wasm build where

rigid snow
#

1000 onnx wrappers disguised as separate ml libraries time

opaque sigil
olive sable
rare bridge
#

i just FUCKING DEFINED IT

real sierra
#

only things in the global Memory object persist

rare bridge
#

oh.. that might be why i'm losing my webrequests...

rigid snow
#

js is kil. promise explode

real sierra
rare bridge
#

i'

#

i turned this game inside out

#

the javascript does not javascript anymore

rigid snow
#

can you not define stuff in the console

rare bridge
#

Okay guess i'll go into the tutorial to mess with stuff

#

nope not working

#

it no worky Sadge

real sierra
rare bridge
#

what

opaque sigil
#

Is it because of the promise maybe?

real sierra
#

wait

#

cloudburst

#

whats the type on your sleep variable

rare bridge
#

it deaded

#

guess that it doesn't like promises

real sierra
#

if it's helpful to know

#

screeps uses an older version of js

#

missing things like Array.flat()

rare bridge
opaque sigil
#

Surely it's at least es5 though right

real sierra
#

think (hope) so

opaque sigil
#

Or was it 6

rare bridge
#

yeah it does not like promises

real sierra
#

might not be 6

opaque sigil
rare bridge
#

RAGEY no buiffers

rigid snow
rare bridge
#

what if i wanted a buffer screeps

#

what then

#

it autocompleted that

#

Okay i know what limitations i'll be working under now

real sierra
#

good science

rare bridge
real sierra
#

right there

#

did you put a ; after a function definition

#

i saw you do that earlier too

rare bridge
#

to put code after it, yes

real sierra
#

not needed

#

i think

rare bridge
#

classes work pogs

olive sable
rare bridge
#

Okay tomorrow i make server and start playing

opaque wharf
real sierra
#

looked back at screeps

#

had a big bug that was breaking everything Classic

#

just fixed it

rare bridge
#

cerbyCry you massacred all the creeps

#

Okay they'll all come back tomorrow

opaque wharf
#

What tf happened here

#

I just witnessed multiple js warcrime

rare bridge
#

and now i vanish

faint sandal
#

Undead engine

real sierra
opaque wharf
#

Can't wait until all the mods are so absorbed into screeps hehe

real sierra
#

fixed antoher bug

sage crag
#

this makes my spine ache

real sierra
#

it was a really serious bug too

warped narwhal
#

Help, I'm in this gif and I don't like it

real sierra
#

on the bright side

#

accidentally spamming units has helped me build confidence in my caching solution

#

my cpu remained manageably low

olive sable
#

Aight im going to bed fr now

#

Bye

real sierra
#

c u in 4h when u wake up

opaque wharf
#

I will go and buy groceries and then cook now, bye

warm terrace
#

Who has broken at least 2 keyboards while programming

opaque wharf
#

Why?

#

Why would you break a keyboard while programming?

#

Did you press the enter key like it owes you money?

warm terrace
#

Yes

#

And I sometimes spill coffee on my keyboard

opaque sigil
#

sounds like something you might want to work on

warm terrace
#

Yea

opaque sigil
#

on an unrelated note, i just lost an hour to the fact that git will refuse to work at all with an ssh-agent if i don't add
core.sshCommand = C:/Windows/System32/OpenSSH/ssh.exe
idk who to thank, openssh or windows

opaque wharf
#

If you use git for windows, it makes sense that you need to point the ssh to the windows binary version

#

What I can't fathom is why they didn't put it in their PATH like every other windows utility

opaque sigil
#

it is in the PATH

#

make it make sense please

warm terrace
#

Oh ya funny thing happened on my pc. My windows antivirus software thought that my OS was a virus. what do I do

opaque sigil
#

clearly you should wipe it and install nixOS

warm terrace
#

lol fine but I’ll back all my stuff up first

opaque wharf
# opaque sigil

Hmmm, it seems like there MAY be a conflicting ssh.exe found by git somewhere with a different config

warm terrace
opaque sigil
#

there's an ssh binary in the git folder

#

i have a kinda fucked up system since my PATH is actually just full so i needed a 2nd one that then gets appended in the shell but the openssh binary should be selected either way in a clean shell

#

maybe i should give up trying to manage dotfiles for linux and windows in the same repo ugh, so many small yet annoying differences

jagged turtle
#

just tell people to look it up

opaque wharf
#

Just like when my PATH env var is reaching its maximum limit

#

Like why does it have a limit catdespair

real sierra
#

another bug perish

#

the spawn queue wasnt checking the cost and would try to spawn things outside the current energy availability

#

which would fail silently

opaque sigil
opaque wharf
#

Which is problematic for me at that time because I have so many SDK and devtools that expect most of the things in path. So rather than trying some hacky way by modifying the installation process, I just have a script to select what env I want to activate

real sierra
#

im so tired

#

but i must make sure the screeps are working correctly

opaque wharf
#

Brother, it's the weekend. Touch some grass

real sierra
#

brother, it's the day before cloud hosts the screeps server

#

i must ensure this is in a state ready to deploy

opaque wharf
#

Shiro is trying to get every advantage he could. Cue to the next day the base is already steamrolled by Evil's Holy Army neurOMEGALUL

real sierra
#

we will fight to the last creep

broken mirage
#

I mean, UI helps sometimes

real sierra
#

?

opaque wharf
#

LSP

real sierra
#

i'm not writing this in vscode

opaque wharf
#

Oh for screeps

real sierra
#

i have stack traces Ok

#

thats all i need

#

i even have coloured console output

#

courtesy of

#
function warn(s) {
  console.log("<span style=\"color:#FFCC33\">["+Game.time+"] "+s+"</span>");
{
opaque wharf
#

There is no console.warn or console.error?

real sierra
opaque wharf
#

Heck, even console.table?

real sierra
#

to my knowledge, console.log is the only console function implemented

opaque wharf
#

Welp, that sucks

#

Console.log based debugging hehe

real sierra
#

idk im doing just fine without the rest

#

add your own formatting

opaque wharf
#

JS dev will do anything but touch a debugger

real sierra
real sierra
#

instead of writing your own

opaque wharf
marble thorn
#

suffer

opaque wharf
#

If the paste is non-conductive, LGTM. Ship it to the end user

amber fractal
#

True

#

Screeps time

opaque wharf
amber fractal
#

Tasty lunch

opaque wharf
#

I took a lesson about taking pictures in my room to share food before lol. That is taken near kitchen with lots of natural sunlight

amber fractal
#

Screeps, you are not crashing on me

#

You are sentenced to gamescope

opaque wharf
#

Bro managed to crash browser games

amber fractal
#

I wish I knew as well

#

I have no idea how one manages this

dire turret
#

i ran out of white rice

#

white rice can go with ANYTHING

#

oop i got off topic

#

uh

#

do [ coffeCup.drink(); workTask.Execute(); if (coffee.Cup.Empty()) { if (coffeePot.Empty()) coffeePot.Make(); cofeeCup.Refill(); } } while (!workTask.Done());

amber fractal
#

Don't worry about it

#

we are always off topic

dire turret
#

hehe looks like crap

jagged turtle
#

iggly what does the bingo board look like now

amber fractal
#

this atm

#

at least as far as I'm aware

#

I just tend to search for messages containing bingo

jagged turtle
#

am I counted as a common chatter here

amber fractal
#

I'd say so, and I apologize for not adding B3 after revealing a new project

#

Just skipped my mind

inner pike
#

good morning

jagged turtle
#

yeah I was like B3 I did because I was gonna need feedback on it at some point lmao

amber fractal
#

A few of us handle fetching bingo, but anyone can update it

#

It isn't like it is web app, yet

#

#bingo

#

I am still salty AI sentience argument was not on this one

opaque wharf
#

Cloud will just update neuro bingo to include chat bingo

amber fractal
#

which I already did but haven't bothered to update

opaque wharf
#

Yeah? WE'LL USE FORGEJO!

amber fractal
#

The original of this was an SVG, stolen from the FAQ

#

One day I will get around to finishing that one

opaque wharf
#

So its only time until it gets nuked to hell and back

amber fractal
#

Last I worked on it, it actually was able to handle multiple tables now

#

only with the worst config file known to man

#

At least once I do this one, I can do the bingo easily enough.

#

built to be too flexable

opaque wharf
#

There is an easy way. Just use JSON with static web host like github pages. A change to the bingo is a push to the repo NeuroClueless

#

Client-side JS could be used for persistence

amber fractal
#

As the original meme went, md -> svg + png, hosted on github pages for the embed.

#

That's the FAQ, so I'll just be commiting every bingo slot filled

#

The reason for the bingo bot: to git commit every bingo slot.

#

Can't wait to random select new bingo slots. keeping a counter on N5

amber fractal
#

bingos since vedal has chatted

tulip ermine
#

neuro would probably likely respond before vedal does

amber fractal
#

I still think it is vedal, but still unobtainum

opaque wharf
#

We need a good turtle bait

amber fractal
#

I would say mass misinfomation, but that one would have worked by now

olive sable
#

Goodmorning neuroWaveA

opaque wharf
#

Hmm, close to 4 hr

olive sable
#

Lemme see if i have time to play screeps today

amber fractal
#

just stop time to play screeps

opaque wharf
#

By car to sea

#

Sam is living in a pineapple under the sea

amber fractal
#

yep

olive sable
#

The problem isnt the actual time, im not paying 7.50 per day for mobile data

tender river
#

people dont understand why haskell style is a thing. Its not made for C, its for writing delimited text without a trailing delimiter. Here are two ways of writing the same thing:

(
 a,
 b,
 c
)
( a
, b
, c
)```

In the first case, if you want to add an element after `c`, you have to add a comma after it, but all other options give you "extensibility" for free without changing existing lines by only adding new lines.

In the second case, if you want to add an element before `a`, you have to add a comma before it, but all other places can be added to without changing existing code.

The second case is additionally more compact, so it wins.

If the language does support trailing commas, the first option may still be preferred despite being less compact. In fact, currently the Nix ecosystem is migrating in this direction.
opaque wharf
olive sable
#

I do

#

But in belgium

opaque wharf
#

Oh, hi Chay. I've fixed my camera by taking a picture in a brightly lit rooms now lol

opaque wharf
olive sable
#

Montenegro is not part of the EU so we dont get roaming

olive sable
#

I get these places

tender river
#

im so happy we dont have intra-russia roaming anymore

#

traveling is much easier now

opaque wharf
#

And also because I don't travel much outside of my country. Traveling between the island is already a PITA sometimes lol

olive sable
#

I am 2000km from my house tho

opaque wharf
#

2000 KM is almost the entire country span

tender river
#

my mobile plan with unlimited internet is around $0.1 a day and it makes the carrier scream in pain

olive sable
tender river
#

(billed daily rather than monthly)

olive sable
#

Our wifi is like 80 bucks / month
And my phone is 10 / month

opaque wharf
#

I wonder if saily could work great for people in the EU

opaque wharf
olive sable
#

I cant find saily on the play store anyways lmao

opaque wharf
#

I like EU approach to new stuff. Let the rest of the world be the test ground and refine it for EU

#

Which is nice if you don't always need the latest anything

olive sable
#

My phone doesnt have e-sim apparently

#

The nijagara has wifi tho

#

Theh forgot the water of their waterfall tho

#

I hope screeps on phone isnt too shit

opaque wharf
opaque wharf
amber fractal
olive sable
#

Cloudburst will be opening the server today!

#

Lemme put in desktop mode

rare bridge
olive sable
#

It works in desktop mode, but i cant copy paste the code

amber fractal
#

This is normally why I grab a keyboard with modifiers even on android

olive sable
#

No screeps on the playstore Nooo

amber fractal
#

the code block should be able to be CTRL+A 'd as long as you have it selected

#

the problem on android is that you can't easily do that

olive sable
#

Guys lemme play

amber fractal
tender river
olive sable
#

I dont even know what those are

noble zodiac
#

Æ

tender river
#

the right one is ligatures

amber fractal
#

bwaa ligature when

tender river
#

(the text is the same)

noble zodiac
#

if I could I would vote both no and ew

olive sable
#

Its acceptable for ms word

#

But not in my holy vscode

opaque wharf
#

I love arrow ligature

olive sable
#

Lmao iggly was gonna let me play

rare bridge
#

NAHH someone actually let you play

amber fractal
#

It was a spare machine to be fair and I trust Sam

rare bramble
rare bridge
olive sable
#

The wifi here is just too slow

amber fractal
#

I love code not working bwaa

olive sable
#

I got like 4.5mbps

amber fractal
#

o7

#

One way or another, the code now works

#

This should have not taken as long as it did

#

They are mutiplying at least, took forever to get back to basics without any hardcoding

#

Besides the issue of only one source being targeted at the moment, this is good enough for now.

rare bridge
#

shiro ain't looking too hot

amber fractal
#

o7 shiro

olive sable
#

Tbh at thisvrate ill only be able to join friday

#

I cant micro manage a colony like this

#

Wait lrmme crop that

ruby timber
#

Dry Dry Desert IRL???

olive sable
#

This is a waterfall

#

If it wasnt 38C

ruby timber
amber fractal
olive sable
#

The rivers here are so dried out they started parking in them

tender river
#

from a river to a parking lot? america must import this technology immediately

amber fractal
#

So true neurOMEGALUL

olive sable
#

I dowloaded the screeps docs

#

No wifi no

#

80km drive

#

Bye

amber fractal
#

before I forget, @opaque wharf screeps have a say action limited to 10 chars

#

Back to eep

opaque wharf
#

So the screeps can only say 10 char?

#

What kind of bass ackward limit is that

inner pike
#

Its enough characters to say "HBD Shiro"

#

so thats fine

rare bramble
#

neuroWhat you can nuke people in this game

trim oar
#

Hey guys,
I got a somewhat strange email for the vedal plush merch. It looks legit, however the link redirect to https://ctrk.klclick.com/l/ [followed by random string]. This link gets blocked for me.
A quick google search provided nothing conclusive for this link. Does anyone know if this is legit or a phishing attempt?

opaque wharf
#

I do not know. What is the content of said mail and have you ordered it or maybe entered your email on waitlist before?

trim oar
tender river
#

its fine to open it

trim oar
#

Yeah, I am like 95% sure that it is fine, just want to double check if someone knows something to prevent me from doing something stupid.

dense cosmos
dense cosmos
spark basin
#

Hello, everyone

#

It's evening on my side, so good evening.

rare bridge
#

i have done a thing

opaque wharf
#

So, Shiro

#

It turns out the last mysterious function that I got was a tan

#

Not sqrt

scarlet arch
#

Also currently struggling to get up from my couch to actually program stuff, but meeeh no motivation

opaque wharf
#

There is a particular feature tho when I fit a tan function

#

Oh, nvm. It was an artifact. Yeah it is a tangent function

#
def tan(x, a, b, h):
  return a*np.tan(b*x)+h
def sqrt(x, a, b, h):
  return a*np.sqrt((b*x)-h)

opt, cov = scipy.optimizer.curve_fit(tan, cat0['x'], cat0['y'])
...
mighty nebula
scarlet arch
uneven pulsar
#

I literally never catch u online anymore, I missed ya neurosHug

scarlet arch
dry charm
#

I have multiple projects to do an.. oh PVZ

#

When you want to invest like 8 hours into so you are done. You have everything in mind what to do. You start it and you just stuck SMILE

scarlet arch
#

Yeeeeep

#

I'm better at planning than I am at doing

#

Honestly I might just start breaking stuff down into even more tiny parts for that minor boost of serotonin

olive sable
#

Im am alive

scarlet arch
olive sable
#

We were supposed to arrive like 2 hours ago, but the hotel we booked didnt exist

dry charm
#

wait WHAT

scarlet arch
#

Huh

olive sable
#

We found a real hotel now

dry charm
#

Did not exists?!

olive sable
#

Scam account

dry charm
#

Daamn wtf. How does that even work in long term

#

Do people just pay and not go there?

olive sable
#

You pay in advance

real sierra
olive sable
#

So you book the hotel and then your money is gone

#

It wzs only like 250 so not too bad, but still suck

scarlet arch
olive sable
#

I download the screeps docs repo on my phone, but it wasnt all that readable so i just read the vulkan thingy more

#

Im at page 140 or so now, the render loop works

#

If i had actually programmed it i mean

real sierra
#

@rare bridge face_uwu

rare bridge
#

i did a test run

#

it didn't exactly work

#

but i might be able to cook

real sierra
#

didn't work as in

#

misconfigured

#

or

#

missing libs

rare bridge
#

started, built itself, died

#

refuses to restart

real sierra
#

sounds like my motivation

#

just in general

rough bloom
scarlet arch
#

What are you guys doing? nyaSparkles

real sierra
#

neurocord screeps server

#

it does surprise me a bit that $5 is a deal breaker for so many people

#

it's like the price of one or two coffees

olive sable
#

You have till friday next week

#

Actually, take as long as you need

#

niuh whatever it takes to not let shiro have a headstart

rare bridge
#

dw i'll give myself a head start Okay

olive sable
#

Fuck

scarlet arch
olive sable
#

Everyone is gonne be miles ahead bwaadow

olive sable
#

Ill just have to nolife it for a bit to catch up

scarlet arch
#

Neat

olive sable
#

Luckily i dont have a job so i van play 20 hours every day

#

When im home

real sierra
scarlet arch
#

It's definitely something I would love to play, if I didn't absolutely feel like doing nothing on weekends heh

real sierra
#

I have a job

#

I must maximize my head start

olive sable
#

Cuz i downloaded the itchio docs repo on my phone i have all these images now

#

Is the plan to keep posting about screeps here, or should we get a diffrent channel?

warped narwhal
scarlet arch
#

I haven't looked that deep into it, but could I use screeps like an ant colony simulator where I program the ants? Or is there no such thing that could act as pheromones? nyaThink

dense cosmos
#

tried to get cell shading via direct rendering

#

unfortunately, the performance was bad

#

was pretty much unplayable

real sierra
#

your limited to 2MB of memory

#

10MB if you're clever

scarlet arch
#

Ah so it's global state pretty much. You can't use the world as your memory

real sierra
#

well

#

actually

#

I suppose there are flags

scarlet arch
real sierra
#

non-physical objects that you can place in any room at any location

scarlet arch
#

Right. Can they hold data?

real sierra
#

no

scarlet arch
#

Fuck

real sierra
#

actually

#

you can select their color

scarlet arch
#

Do they have a "set on" state?

#

Like, a timestamp or so

real sierra
#

you would have to store that

#

they have a GUID

scarlet arch
#

Ah

real sierra
#

so you could make a map in global memory

scarlet arch
#

Yeah I feel like that'd explode the memory

real sierra
#

yeah it would

scarlet arch
#

Pheromones are based on strength, so if you can't simulate that in the world environment it's kinda dead already

real sierra
#

unless you are very careful with your phermone use

olive sable
#

Huh, what tf am i looking at???
U is uranium, wtf is ultrium?

real sierra
olive sable
scarlet arch
#

Wait, cursed idea

real sierra
#

you can sell minerals on the market

scarlet arch
#

How many colours are there...

real sierra
#

or craft boosts for your creeps

#

that give them temporary buffs

warped narwhal
olive sable
real sierra
#

you can also use some minerals for stuff like generating safe zone activations

real sierra
#

colour is body part type

#

max 50 parts

olive sable
#

Ahh

#

K k

#

Im searching for the body parts

real sierra
#

they're defined by constants so

#

can't be too many

scarlet arch
real sierra
#

maybe

trim valve
scarlet arch
#

If there's a way to store memory in the world, it would be so easy to cheat haha

real sierra
trim valve
#

one less excuse to do anything but play screeps

olive sable
#

Iirc you were on shard 3?

real sierra
#

shard3 E38N39

#

that's where I call home

olive sable
#

But what do the shards mean?

real sierra
#

your code executes on each shard separately

#

but your CPU limit is shared between them all to my knowledge

#

there are inter-shard portals in a few places that let you travel between shards

trim valve
real sierra
#

and there's also some specialized inter-shard memory for communicating between them if you wish

olive sable
#

I like how i was the first petson that bought it in neurocord after shiro started advertising, but ill be the last who's able to play KEKW

real sierra
#

it's ok

#

you'll be the one who knows what you're doing most

#

cloudburst lost to the console after all

olive sable
#

Will i know what im doing? Im mostly just being tourist things rn

warped narwhal
#

Cloudy and full of hills. Is this Scotland?

trim valve
#

I wish

#

Cumbria

olive sable
olive sable
#

Surely NeuroClueless

real sierra
#

the API isn't too hard to learn

#

general pattern for 90% of things you want to do is

trim valve
#

I'm very tempted to do some wasm shenanigans for pathfinding icl

#

save a few picoseconds glueless

real sierra
#
let status = creep.doThing(target);
if (status == ERR_NOT_IN_RANGE) {
  creep.moveTo(target);
}
olive sable
#

I have schizod about pathfinding already yesterday

real sierra
#

I would invite you to actually use your available CPU before optimizing

olive sable
#

I will

trim valve
#

real and true

olive sable
#

I will use all the cpu

real sierra
#

sure you will

#

surely you won't be stuck trying to save 0.1 of your 0.2 CPU overhead

olive sable
#

I will calculate the universe in screeps okp okp

inner pike
#

Wait is the server up

real sierra
#

no

olive sable
#

No

real sierra
#

cloud broke it

inner pike
#

wdym broke it

real sierra
#

it opened and then closed and no longer opens

olive sable
#

Cloudburst is slow, but that means i have more chance to catch up

real sierra
#

cloud is a crazy good dev WICKED

#

I believe they'll have it up today

olive sable
#

About the nolifing thing, ill probably work on my game engine too.
I dont have the energy to play the same game 20 hours

inner pike
#

cloudburst was in my team for the game jam

real sierra
trim valve
#

I am gonna get drafted into modded technical MC soon so we'll see how much screeps happens

olive sable
#

It will most likely be 8

#

Lmao

real sierra
#

it's ok I find screeps is best worked on in short bursts anyway

#

you make changes, leave for a few hours, come back and see what else broke

olive sable
#

Shadow still has his mc server running cuz he forgot the password KEKW KEKW

inner pike
#

lmao

real sierra
#

I had a crazy dream last night

olive sable
#

Why 2 moves?

real sierra
#

where I had a bunch of roommates that didn't like me but we were all practicing for some magic school

olive sable
#

Shiro potter

real sierra
#

a creep is immobile for the tick if it's fatigue is greater than 0

#

a move part reduces fatigue by 2 per tick

#

I think

rare bridge
#

i figured out why my web requests were failing

olive sable
rare bridge
#

or at least the most likely reason

olive sable
#

Wait i shouldnt cheer, im not able to play rn

rare bridge
#

apparently the cpu limit is a time limit, so by default on shard3, you have a maximum of 20ms to execute your tasks

#

but you can also put cpu time in a bucket to then use in 500ms batches

trim valve
#

pretty sure you should have up to 500ms if you let your reserves increase

real sierra
rare bridge
real sierra
#

time to check on my screeps PagBounce wonder what they're up to

trim valve
#

I'd also be mildly surprised if they let you actually do web requests but idk

rare bridge
#

need enough cpu to talk to chatgpt xdx

real sierra
#

HOLY WTF?

#

THEY WENT NUTS

trim valve
real sierra
#

LOOK AT ALL THAT ENERGY

real sierra
#

THIS CREEP COSTS LIKE 800?

trim valve
#

(I have absolutely plans to do similar misuse ReallyInnocent)

real sierra
rare bridge
real sierra
#

it seems ive fixed all the core issues with my ai

real sierra
#

neurOMEGALUL wtf i drained the source completely

olive sable
#

Aight bye

inner pike
real sierra
#

i have like

#

over 10000 energy stored

#

god that was such a good change i made last night

#

never actually seen this warning before

rare bridge
#

so

#

webrequests work, they just refuse to log to the actual game console LULE

real sierra
#

so

#

something ive been mulling over

trim valve
#

so wait does that actually work on the public servers vedalHUH

real sierra
opaque wharf
#

ez pz

real sierra
#

what would i even put in public memory

#

something that another player could understand with no docs and no knowledge of format

trim valve
#

time to implement IP over screeps public memory

real sierra
#

my thought was actually a function

trim valve
#

how hard could that possibly be glueless

real sierra
#

if i put a stringified function in there that grabs the rest of my relevant public info

#

and returns it as a nice table

opaque wharf
#

#programming really do be doing something else but doing the actual task/game neurOMEGALUL

real sierra
#

its that or i put an RSA public key in there neurOMEGALUL

wispy jackal
uneven pulsar
opaque wharf
#

Anyway, the journey to my mobile development ended up at https://expo.dev

Expo

Expo is an open-source platform for making universal native apps for Android, iOS, and the web with JavaScript and React.

real sierra
trim valve
#

colour catdespair

opaque wharf
dense cosmos
#

stupid unreal and its 10,000 shaders

trim valve
#

(good video though)

real sierra
#

but i can also just use RSA 256

opaque wharf
#

At that point just use AES catdespair

real sierra
#

?

#

i need public key tho

#

my public segment is visible to everyone

opaque wharf
#

Kerberos neurOMEGALUL

real sierra
#

so if they wanna send me info

#

and only me

#

i gotta use asymmetric

opaque wharf
#

You can use kerberos IIRC

#

Or was it for authentication only?

real sierra
#

no it does keyex too

#

then i could use AES

opaque wharf
#

See, there is always some more cursed way

real sierra
#

but i need multiple servers for that

opaque wharf
#

Multiple service, not necessarily server NeuroClueless

trim valve
#

shiro why do you need this

opaque wharf
real sierra
#

im just trying to think of what the public segment would ever be for

opaque wharf
#

Because they can

real sierra
#

i cant exactly hand other players docs on how to use my public memory segment

opaque wharf
#

Anyway, back to work I go

real sierra
#

so im trying to find something reasonable to put in there

trim valve
#

my only idea is for like tagging clan members?

real sierra
#

too easy to fake that

#

replay attack

trim valve
#

so you could put like a signature in there based off of the owner id

real sierra
#

you would need to sign it somehow

#

yeah

#

but you still need to key it

#

because owner id is public too

#

need a secret of some kind

trim valve
#

I mean in the context of a clan the ringleader can just distribute keys oob

real sierra
#

but it still makes no sense

scarlet arch
real sierra
#

at this point you may as well store a list of owner ids

#

because those cant be forged

trim valve
#

ig

#

but the cursed signature method doesn't need everyone to constantly maintain a list of friends

#

instead you can just "hey guys here's my proof im a friend, if you don't know what this means I'm an enemy"

real sierra
#

i dont have enough friends for that to be relevant

trim valve
#

also it's constant time glueless

real sierra
#

all algorithms are O(n) where n is the number of times I run it

trim valve
#

real and true

real sierra
#

something ive always wondered

#

can you hand out an rsa private key to everyone

#

and keep the public key secret

scarlet arch
#

isn't that the whole point of it

real sierra
#

no the point here is that

tender river
real sierra
#

the better deal is clear to me

#

coffee is temporary, screeps is forever

tender river
#

the lives of screeps mean nothing to me

real sierra
tender river
#

i'd take coffee over them any day

real sierra
#

but i dont want anyone to be able to create messages that seem like they come from me

wispy jackal
#

here we go again

real sierra
#

evilbank

#

otherwise known as

#

bank

wispy jackal
#

how did you read that

#

💔

real sierra
#

human pattern recognition

tender river
#

its easy to read it

real sierra
#

i am better than any image transformer

wispy jackal
#

built different

real sierra
#

do not underestimate my compute density

scarlet arch
wispy jackal
#

welp before i have a mental breakdown of coding today im getting a snack

#

wish me luck for my wellbeing

real sierra
scarlet arch
real sierra
scarlet arch
#

it's exactly what you want :P

#

slap JWT on top of it to save on lookups and it's pretty efficient

opaque wharf
#

The usual RSA is used to sign is because encryption using it is a H U G E, and I meant C H O N K Y numbers

#

You encrypt using secret key, and everyone will decrypt using shared/public key

scarlet arch
#

I mean you can just use elliptic curves but sure

real sierra
#

i had a feeling it was possible but kept telling myself it wasnt

scarlet arch
real sierra
#

but yeah the modular arithmetic checks out

scarlet arch
#

just saying :D

real sierra
#

ik

#

ok i see

#

then signature makes sense

#

i can send out an encrypted secret and it only decrypts to a shared known value if its my secret

#

could just encrypt my ownerid or something

opaque wharf
#

So you need some nonce

real sierra
#

ic

#

might be overengineering

#

im not spending 10 cpu on a signature

opaque wharf
#

The whole idea of TLS in Screeps is over engineering neurOMEGALUL

real sierra
#

agreed

#

but nobody liked my idea of hard coded names

#

so here we are

#

stop using infeasible attacks as a counterargument to my ideas

#

you programmers

#

grrrr

scarlet arch
real sierra
#

one more technically correct comment and im deleting your chnanel

real sierra
scarlet arch
#

oh I see

scarlet arch
#

can you offload to external CPUs? :D

#

or is that considered cheating?

real sierra
#

cloud was looking at web requests

opaque wharf
#

Like what cloud is trying to achieve

real sierra
#

i think communicating with an external server in that time frame would be

#

difficult

#

the transmission overhead probably kills the idea

#

since you need real time data

#

UDP and pray ig

#

can js even use UDP?

opaque wharf
real sierra
#

you can use fetch

#

supposedly

#

if cloud is right

opaque wharf
opaque wharf
#

To minimize latency

#

If websocket is not available

#

If websocket IS available, then use that

real sierra
#

im not even thinking about this anymore

#

another metaproblem

#

get out of my head

opaque wharf
real sierra
#

my brainpower needs to be dedicated to the immediate practical screeps needs

scarlet arch
#

I assume you don't have access to any sort of file stuff right?

#

only memory?

real sierra
#

just memory afaik

scarlet arch
#

ah damn

real sierra
scarlet arch
#

still thinking on that ant idea haha

real sierra
#

if you're clever enough

#

you might be able to do it

opaque wharf
#

Alright, back to work I go

real sierra
#

back to work

#

i did consider phermones at one time myself

#

but it seemed too hard to store them

#

and too expensive to modify them

trim valve
#

ants feels like it'd be possible if you just made a large array

real sierra
#

its memory bound, thats the issue

trim valve
#

hm

real sierra
#

max 2MB memory if you use the built in serializer

#

max 10MB if you work on raw memory

trim valve
#

tbh you only need pheremones in the few rooms you're actually in

#

which are only like 50x50

real sierra
#

even so

#

you can have multiple phermones per tile theoretically

scarlet arch
real sierra
#

and each phermone needs to store a fair bit of info

scarlet arch
real sierra
#

since flags are an object that technically change game state

#

they incur an additional cpu cost to create

scarlet arch
#

yes but they could be so worth it

real sierra
#

and you cant modify name, color, etc after creation

scarlet arch
#

I love writing code that has "emergent behaviour"

#

way more fun to me than directly writing AIs

real sierra
#

ive actually tried filling a room with flags before

#

couldnt accomplish it within a tick

#

so you need to watch out for the compute bound

#

especially since you still need some left over for actually moving the units

scarlet arch
#

okay so.. flags are expensive, but can hold a variable of 100 different values. that.. is pretty useful

tender river
#

You cannot have more than 10,000 flags
literally 1984

scarlet arch
#

lemme check something

real sierra
#

if you really wanna minmax

#

you can store data in the flag's position

tender river
#

okay but it looks like flags dont have their own memory

scarlet arch
scarlet arch
tender river
#

yeah

scarlet arch
#

I love cursed shit like this that can give you an edge

real sierra
#

oh i lied actually

#

you can change the color of flags

#

and the position

#

just not the name

scarlet arch
#

yeah

tender river
#

i think the more important thing is the flags' position

#

you can use them as e.g. waypoints

real sierra
#

you could use them as the phermone sources themselves

tender river
#

as a spatial index or whatever

real sierra
#

color for phermone type

#

or i guess you'd want that in the name actually since its fixed

tender river
#

well, ultimately just storing that data in your own memory is probably more efficient

#

since you get 10mb

real sierra
#

chayleaf prob right, memory also doesnt incur the insane costs that flags do

scarlet arch
#

well. pheromones need two things: a decay and an identifier (like.. "danger" or "energy"). And technically you can basically split the colour space into a few specific marker colour combinations, and the rest can be a binary value

real sierra
scarlet arch
#

yes, and I suspect it's that way to prevent cursed stuff like we're talking about

real sierra
#

probably

rare bridge
#

so i wrote a script

real sierra
#

oh no

scarlet arch
#

but being able to store 1024 different values in a flag is incredibly useful

rare bridge
#

that takes the tutorial code

#

and when the spawn hits 200

#

it makes a new creep

real sierra
rare bridge
#

then changed the code to target random sources

#

so now i have many creeps

#

and they are working very hard

real sierra
#

cloud you're doing it

#

you're screeping

rare bridge
#

... in simulation mode

real sierra
#

congrats cloud

scarlet arch
#

given that I don't have a lot of energy/time... is screeps a game I can play "chilling"?

real sierra
#

you're in the top two screeps players in the server

rare bridge
#

would those perhaps be the only other 2 screeps players in the server

real sierra
#

at least on the official server, there's a few seconds between game ticks

#

so any code changes take time to translate into actual game world action

#

best to check on them, make changes, and then leave them be for a while

scarlet arch
real sierra
#

two... for now

#

the rest are overseas or solving metaproblems

rare bridge
#

i wonder.. can i send arbritrary emails to myself

real sierra
#

the game is very forgiving with your ability to restart

#

if you die, you just pick a new room and get a spawn there

rare bridge
#

yeah if you die the game just lets you restart

real sierra
#

and then your ai does all the work for you

scarlet arch
#

oh I see

nocturne olive
#

Very silly game you got there, too bad I'm broke