#programming

1 messages · Page 69 of 1

dusky jackal
#

That sounds hot af

opaque wharf
dusky jackal
rigid snow
#

30 celsius isn’t that hot tho

#

very manageable

#

in high humidity maybe less so

opaque wharf
dusky jackal
#

If it’s dry maybe

#

I don’t really like anything above 80 degrees

rigid snow
#

idk i’ve been many times to hot places near sea, it’s fiiine

dusky jackal
#

I prefer the cold tbh

opaque wharf
#

I should add that at night the lowest the temp goes is 26C (so around 75F?). And humidity is always above 75%

dusky jackal
#

It’s 6:27 am I’m gonna sleep lol

#

Then wake up in a bit for Neuro’s stream

opaque wharf
#

Neuro stream is always 1 day off for me. And in 1 in the morning

trim tangle
opaque wharf
#

Or UTC

patent walrus
#

this is really funny to me for some reason

opaque wharf
#

I bet AI generated the first message

tiny mango
#

why was programming talking about nature

opaque wharf
#

They greet the OS

tiny mango
#

does disc scrub metadata from photos by itself?

opaque wharf
#

But not all

#

But for data such as location and such is removed

#

Color range and other useful things to know, no

tiny mango
#

Oh nice! Sort of expected

#

privacy is like. a bit tenant for disc(?)

#

that's the wrong word

opaque wharf
#

Yeah, should be a standard procedure for a site that is not meant to host data

tiny mango
#

tenet**

real sierra
#

it's not, these are rasterized diagonals

#

so it's just a discrete sequence of tiles, each offset by one step along either axis

#

you can cross two of these without any tiles being shared

bright scaffold
#

i have the p106-100 (gpu) and patched driver from 1060 6gb... All work is good... but i have locked fps to 40 and idk why

real sierra
#

❤️ Empty Empty neuroPogHD
Empty ❤️ neuroPogHD
Empty neuroPogHD ❤️
neuroPogHD Empty Empty ❤️

#

like that

real sierra
#

locked fps to 40?

#

system wide?

#

or one particular game

bright scaffold
real sierra
#

what's your monitor refresh rate

bright scaffold
#

And it everywhere

#

FurMark and any game

real sierra
#

what's your monitor refresh rate

opaque wharf
bright scaffold
real sierra
#

that's what it's actually set to in display settings right? not just the specs for the monitor

opaque wharf
bright scaffold
#

yes

real sierra
#

I'm not familiar with furmark

opaque wharf
bright scaffold
#

I have the same fps at 900p and 4k resolution in the FurMark (40fps)

real sierra
#

yeah it would be odd for a benchmarking software to be vsynced

opaque wharf
bright scaffold
#

Its the latest version of benchmark and i disabled vsyns

tiny mango
#

yay shiro day

real sierra
#

how much dedicated memory do you have on your gpu

real sierra
#

ironically it happens to be Canada Day here so people are actually launching fireworks and stuff neurOMEGALUL

tiny mango
#

o canada

bright scaffold
#

I think 6gb because its the mining version of 1060 6Gb

tiny mango
#

I guess maple syrup popsicles today, seems appropriate

bright scaffold
#

I tested this gpu in the Minecraft

#

I have stable 40 fps with shaders

#

And without too

real sierra
#

it's just 40fps system wide

#

that's so strange

bright scaffold
real sierra
#

do you have another program that's enforcing vsync or something

#

like a setting in Nvidia control panel

#

that would be my next place to look

#

it's weird that it's very stable at 40fps

#

Cpt Rankz Chatting

trim tangle
#

it's just really interesting case

#

I have similar gpu

bright scaffold
#

40 fps only with gpu

trim tangle
#

cmp 40hx without video outputs

bright scaffold
#

With igpu i have the usual 75 max

trim tangle
#

whisper mode might cap fps to keep fans silent

#

in nvidia app

bright scaffold
#

I only have Nvidia control panel

#

Nvidia app not working

trim tangle
#

do you use dartraiden's patcher for drivers?

bright scaffold
#

I tried 576.80 and 576.66

#

And i tried to play the Peak and Minecraft (and FurMark), everywhere 40 fps

trim tangle
#

what about gpu utilization/tdp values?

bright scaffold
trim tangle
#

you can test it in furmark

#

or open any game and open performance tab in task manager

bright scaffold
#

If I set the resolution lower the fps increases

opaque wharf
bright scaffold
#

But if I increase it, it gets stuck at 40

opaque wharf
#

Oh wait, you mean the windows resolution?

bright scaffold
bright scaffold
trim tangle
#

all I can think rn is a tdp lock by drivers or bios

#

to limit fans speed or smth

#

if gpu never hits 100% load it might be the answer

bright scaffold
#

It gets 100% at ~60w

olive sable
#

I am

trim tangle
#

max tdp for 100-106 is 120w

#

although that would be strange to experience cpu bottleneck system wide...

bright scaffold
#

idk

#

I can get more than 40 fps with resolution like 800x600

#

oh...

#

Just with lower resolution

opaque wharf
#

You are WHAT?

#

I NEED ANSWERS

olive sable
#

Wifi bad

#

Didnt save the response

opaque wharf
#

Oh you're enjoying the vacation

bright scaffold
#

I had ~40-60 fps at lowest settings with igpu

trim tangle
#

are you sure this is a cap? it never goes even for a 41 fps with 100-106?

bright scaffold
half crescent
#

Yo guys i get scammed or nah , because i cant check right now in samsung magican dont have other parts on hands

#

Im aware about ,, Made in Vietnam "

trim tangle
half crescent
olive sable
#

I am

bright scaffold
trim tangle
#

fair enough

#

consider opening issue on dartraiden's github if you won't figure this out by the end of the day

bright scaffold
#

And also i dont should have 40 fps in the Minecraft without shaders because i have 160+ with igpu

rough bloom
#

the Screeps server requires Nodejs v12, GCC 9 and Python 2 AINTNEURWAY
time to go import Nixpkgs 22.05 I guess

olive sable
#

Brother who built a rollercoaster 1350m high?

#

This is the top of a fucking mountain

rough bloom
olive sable
#

A coke is €5

#

Its profitable enough imo

rough bloom
#

idk building a rollercoaster seems expensive, especially on top of a mountain
you'd have to sell a lot of 5€ coke for that

#

anyway, good job random rich person/company, mountain rollercoaster looks cool

olive sable
#

There are enough tourists here

bright scaffold
#

i have ~50fps in the CS2 on low settings with 800p

rough bloom
real sierra
#

time to see how my screeps are doing peepoShy

opaque wharf
olive sable
real sierra
#

scripted creep neuroHypers

#

screeps is RTS MMO

#

where every player writes an AI that controls their faction

#

and they run 24/7

trim tangle
ruby timber
#

I looked at it when I was a dumb child (17)

#

I kinda want to look at screeps again now

real sierra
#

ive been trying to talk people here into playing it

#

i think theres enough of us interested that we could spin up a private screeps server for neurocord members

bright scaffold
opaque wharf
#

I'm stealing the Evil's Holy Army idea

real sierra
bright scaffold
#

I dont have 6pin and use 2 molex to 6pin cable

real sierra
#

i probably need to make my code more efficient somehow

#

its using 3-4 cpu/tick as a base load

olive sable
real sierra
#

i also wouldnt host it prob

#

i dont have a server pc

olive sable
#

I can host

#

Probably

rough bloom
bright scaffold
olive sable
#

I have spare pc with a 5700g, 64gb ram and a 3060ti

trim tangle
bright scaffold
olive sable
tiny mango
olive sable
#

I doubt it uses more than 8 cores?? Hopefully

real sierra
#

i can run a local server just on my normal pc

#

CPU is in units of milliseconds of compute time i believe

olive sable
#

Ah

#

Ok

real sierra
rough bloom
# real sierra holy

mostly because they depend on V8 for running the server-side JS for the screeps
and they just... never updated that dependency

olive sable
#

Overclock the server neuroPogHD

opaque wharf
real sierra
opaque wharf
#

I wonder if I could port the server

rough bloom
#

to modern Nodejs you mean?

olive sable
#

In theory, if you localhost, you could increase the compute budget???

#

Idk

#

I dont do that

#

I mean screeps

rough bloom
#

AFAIK if you run a private server then you can do whatever you want with the compute budget, yeah

bright scaffold
real sierra
#

theres still a max but its far higher than the official server

#

its like 100CPU instead of 20

olive sable
#

Overclock time

#

When im home

trim tangle
opaque wharf
olive sable
#

Make it run on gpu xdx

bright scaffold
olive sable
#

I do wonder, if the screeps are designed to use limited resources, they could be small enough to run on gpu???
Especialy with a lot of screeps using the same script

trim tangle
rough bloom
real sierra
#

ThisIsFine i forgot how complicated this is

opaque wharf
tender river
#

HHhH

real sierra
rough bloom
olive sable
#

Superboxes 3090 has been sent

nocturne olive
opaque wharf
#

Because pathfinding in JS is... suboptimal to say the least

olive sable
#

Mods feel free to ignore the fact im dealing 3090's over the border

opaque wharf
real sierra
#

i dont want to look at someone else's ai and copy it

#

writing your AI is literally the entire gameplay

rough bloom
#

same, finished scripts obviously exist but I don't want to taint my experience with the game
-# at least not yet

real sierra
#

i mean its doubtful i would understand or agree with half the paradigms anyway

#

its probably turbo optimized and leaning on tons of community libraries for common functions

#

but i wanna invent this stuff myself mhm

#

i love solving all the problems

#

like the fact that my wall algorithm put the walls around this tiny patch of land instead of all my structures

ruby timber
#

Lile just reinvent the wheel to end up with an organized system sounds cool to me

rough bloom
#

I'm considering using Clojure for it, apparently it has a transpiler targeting JS
partially because of masochism, but also because I don't want to write JS

opaque wharf
opaque sigil
#

scala.js neuroPogHD

opaque sigil
#

There's also gleam

#

Could be fun

rough bloom
#

oh right, that does compile to JS too

real sierra
#

i dont even have to see it to know mine is worse

opaque sigil
#

We need notjs

opaque wharf
#

I have decided that the journey of porting the screeps server codebase is cursed to hell and back

olive sable
#

Ill just try to make it work and never touch it again

rough bloom
opaque wharf
#

Man, if only the V8 isolate standard exists back then, the server wouldn't be this cursed at least

rare bramble
#

looked at screeps and played through the tutorial, it's pretty cool though I dont like js

real sierra
#

i dont think having a CPU limit is a bad thing

#

and 100 CPU is already an incredibly high limit

#

especially with the bucket feature

opaque wharf
#

Imagine trying to isolate python for example

rough bloom
distant blaze
#

@real sierra I've been theming my neovim

#

manually

real sierra
#

neovim user

distant blaze
#

huh? yeahe ofc

#

I love neovim

#

I can't use an IDE like a normal person

#

I hate IDEs with a passion

dry charm
#

I want to move to neovim soo bad but I cannot start the config process

#

did you start from 0, or did you use a jumpstart?

distant blaze
#
  • I hate using premade configs
#

they contain things I don't want

#

and its more of a pain to go through it removing what I don't want

#

vs what I do want

#

because its made in a certain way where things will just straight up break if you remove something that something else was dependent on

dry charm
#

I see

distant blaze
#

if you really wanna start

#

I'd recommend first configuring the basic vim defaullts

#

@dry charm

#

here

#

this is how you start

dry charm
#

The problem is I'm on nix so I'm using a completly different approach

distant blaze
#

well it doesn't really matter because you still have to call the same options regardless

#

I've heard good things about nvf though

#

I'm on Artix with S6

spark hull
#

if(a)
{
b();
}

real sierra
distant blaze
#

but yeah, you really should just

#

start using it

#

and thinking about what you'd like to have

#

or what you're missing

#

start with some basic options

#

like these

noble zodiac
#

the longer Ive been using vim the shorter my config got

distant blaze
#

you can use nix to manage the plugins

#

or you could do the way everyone else does it by using plug or lazy

noble zodiac
#

tho Ive been playing around with Helix recently

distant blaze
#

I don't like lazy.nvim because I find it to be an utter hostile pain in the ass

#

and the gui is ass a pain to navigate and deal with and dealing with issue that arise in it is also a pain, its meant to be user friendly, but it feels like its user unfriendly to me

#

so I just use plug

#

I've heard of my friend using helix

#

no idea whether its good

#

but all I hear is them complaining about it

#

and yes I made the theme myself

rare bramble
# spark hull if(a) { b(); }

error[E0425]: cannot find value a in this scope
--> src\main.rs:2:9
|
2 | if (a) {
| ^ not found in this scope

warning: unnecessary parentheses around if condition
--> src\main.rs:2:8
|
2 | if (a) {
| ^ ^
|
= note: #[warn(unused_parens)] on by default
help: remove these parentheses
|
2 - if (a) {
2 + if a {
|

error[E0425]: cannot find function b in this scope
--> src\main.rs:3:9
|
3 | b();
| ^ not found in this scope

For more information about this error, try rustc --explain E0425.

distant blaze
#

what did it ever do to you

noble zodiac
#

I have no problem with helix but I also have only changed 3 whole settings

bright scaffold
#

@trim tangle I experimented and I have 2 news: I was able to install Nvidia App, and this strange fps limit depends on the resolution (very strange)

distant blaze
hoary lion
#

today im going to fight with another diffusion

real sierra
#

gm!

#

had to make an unexpected change to my screeps ai

#

a problem i had kinda worried about but just hoped wouldnt be a problem

#

too many of my units crowding in important areas while idle

#

ive resolved this for now by detecting idle units and having them get off the roads if nothing else

#

as long as all my buildings are connected by roads, that should ensure at least one access point to every vital structure

scarlet arch
#

I have no integrated GPU but I must see...

#

I love doing cursed shit

#

Also ignore Deme

rough bloom
#

FOCUS tiny graphics card

scarlet arch
rough bloom
#

oh, it's "only" from 2014, so it can even do DirectX 12
seems like no Vulkan though

rare bramble
rare bramble
#

ye, then it makes more sense

rough bloom
#

PCIe risers are always so janky
OCuLink is nice if you don't need the full x16 bandwidth and the cable is much, much nicer to work with

scarlet arch
#

I am just using it cause the GPU is full size and I don't care. It's actually for a later built where I have a 16x PCI to M.2 card in my NAS for NVME raid

#

Also proxmox takes ages to boot, wtf

#

It's stuck neurOMEGALUL

#

Welp

#

nomodeset. Apparently the GPU is too old? neurOMEGALUL

#

Works now

real sierra
#

i was thinking about this silly problem i have

#

where i want to create a creep from a set of ideal proportions and a budget

#

but after more consideration im pretty sure this becomes a linear programming problem TrollDespair

#

approximate solution it is Ok

hoary lion
#

hmmmm

#

adaLN is making me uncomfortable

#

see this part is easy to implement but

#

this part is going to mess up the design if not done correctly

#

wait am i tweaking or

#

every single implementation ignores alpha

olive sable
#

All my homies hate alpha

real sierra
#

🐺 alpha

hoary lion
#

am confused at this point

#

oh isee

#

uhh

real sierra
hoary lion
#

it returns tuple

#

probably reused later

#

alpha is alive... right?

real sierra
#

why isnt my code working

#

neuroDinkDonk javascript experts

#
    
    getScaledBody: function(proportions, budget) {
        const unitCost = Object.keys(constants.PART_COSTS).map((partType) => constants.PART_COSTS[partType] * proportions[partType]).reduce((sum, cost) => sum + cost, 0);
        const multiplier = budget / unitCost;
        return Object.keys(proportions).map((pType) => Array(Math.floor(proportions[pType] * multiplier)).fill(pType)).flat();
    },
#

intended to be used something like getScaledBody({work: 0.33, carry: 0.33, move: 0.33}, 200);

#

but it's failing with RangeError: Invalid array length

#

oh wait i see

#

its undefined length sometimes

#

nvm Ok

#

actually that didnt fix it Sadgi nvm

hoary lion
#

all our homies hate js

scarlet arch
#

Proxmox setup nyaThrowconfetti

real sierra
#

i see what you guys were saying about screeps' ancient node version

#

neither flatMap or flat are in this version of js it seems

#

need my own implementation perish

#

:D works

#

.

#

my world just changed forever

#

i just learned the screeps console accepts html markdown

#

wait

#

this is kinda crazy

#

you can just add any html element into the console

#

i could even put some buttons down there if i wanted

#

DIY UI

real sierra
#

no shot

sage crag
#

shiro in the terminal

#

noway

real sierra
#

it actually animates too

#

debugging about to go crazy

#

gonna add a meme with every error

sage crag
real sierra
#

catch syntax errors and send this gif instead

#

you know what

#

if i have some spare cpu left

#

maybe i can have my creeps generate shitposts

stark needle
rigid snow
#

i second this suggestion

real sierra
#

PANIC wheres the usual programming crew

#

are they all EU

rough bloom
#

yes

stark needle
#

maybe

scarlet arch
stark needle
#

feeling lonely?neuroBwaa

rigid snow
#

am not eu xd

real sierra
#

i have questions that need answers mhm

scarlet arch
#

don't we all

noble zodiac
#

the answer is horse girls

rough bloom
#

I have obtained (a broken version of) the Screeps server yay
now it just has to actually launch
it tries to copy files on init, but Nix makes them read-only and the package Screeps uses for the copy is stupid so it fails

nocturne olive
#

Whar is thar?

rough bloom
#

Screeps: World is an open source MMO RTS sandbox game for programming enthusiasts, wherein the core mechanic is programming your units AI. You control your colony by writing JavaScript which operates 24/7 in the single persistent open world filled by other players on par with you.

#

mhm that

real sierra
#

filled by other players on par with you
glueless

ruby timber
real sierra
#

ok i need your wisdom

#

im trying to figure out how to budget units

#

i know how much energy i currently have

#

and can estimate how much i expect to get over a period of time

#

how do i calculate a budget off of this

#

like, how much energy should i spend on units

stark needle
#

math graduate asks discord users for math advice😭😭😭🙏

rough bloom
#

Hmm idk any other constraints you have (like what else would need the energy) but I guess you could spend a fixed percentage of the incoming energy on units?
if you have a rate of incoming energy then you should be able to get how often to spawn a unit from that

real sierra
#

but counterintuitively, the fix to that is to spend more on miners, not less

#

actually no

#

i think you're right

#

im being silly

#

i need to look at the gross energy gain

#

not net energy gain

#

because the net gain already factors in unit expenses from the previous cycle

#

which arent present in this one

rough bloom
#

yeah, if your net energy gain is negative then just stop spending energy 4HEad

#

counterintuitively, the fix to that is to spend more on miners, not less
if this does end up being true somehow then I think I'd just hardcode it, seems like an edge case
deciding what to do with energy is not really a concern yet if you don't have any

real sierra
#

we can have energy stored and still be losing energy over time

#

spending sooner rather than later to improve the incoming energy rate is the best way to rectify that

rough bloom
#

yeah, I worded it badly but that's what I mean
a net loss of energy is always bad, if there is no surplus of energy then you don't get a choice

bright scaffold
#

i cant understand why in the 1440x900 resolution i have only 40 fps limit

real sierra
#

hopefully this new unit budgeting system works hmm

#

in theory it will auto-scale the unit size according to available resources

trim valve
#

glueless just predict your future energy consumption and production based off of previous experiences

nocturne olive
rough bloom
rough bloom
#

(assuming you're using a major distro with reasonably fast patches)

nocturne olive
#

Silly

#

Mint counts?

rough bloom
#

yeah, Mint should be fine

nocturne olive
#

Well, seems to already be offering an update

rough bloom
#

yeah, that's the patch

nocturne olive
#

welldoneneuro Fast patch rollouts

scarlet arch
#

My company has a kind of cursed setup for virtual machines but I got our appliance working on my proxmox :D got permission from the CEO and team lead and everything. Dogfooding and all that

autumn ore
#

Now it’s also 247

autumn ore
#

Hi

#

Shiro

nocturne olive
autumn ore
#

Yeah it barely lags now

nocturne olive
#

You got template styles?

#

Like how pxls has the numbers style

autumn ore
#

I have know idea what I just read

autumn ore
nocturne olive
#

This is pxls.space numbers style

olive sable
#

Guys, the new hotel sucks bwaadow

nocturne olive
#

That's crazy

autumn ore
nocturne olive
#

It would be cool if you made it work better than pxls, it's known to be very badly implemented on pxls

rigid snow
#

did afunyun do the frontend

#

a couple of concerns:

  • flashbang!!! dark theme modcheck
  • where is the grid? there probably should be a grid beyond a certain zoom level
  • there should be a way to see coords @ current position; pxls shows the currently hovered over coords, and i think i remember r/place having the selected pixel always be in the center so it changes when you pan around
  • when you hover over an entry log the background changes to white which makes the green text awful contrast
opaque wharf
#

I just woke up and I will choose violence

rigid snow
#

also the browser provided color picker is a no-no

amber fractal
#

For that last one, it existed before the rework

#

Still hated yep

rigid snow
#

because how it'll look and feel depends on the platform and can break ux in ways you can't even think of

opaque wharf
#

Shiro is still playing I see

olive sable
#

You friended him?

opaque wharf
amber fractal
trim valve
#

color catdespair

olive sable
opaque wharf
#

My condolences on your new hotel lol

olive sable
#

Lmao

#

The ac does not work

opaque wharf
opaque wharf
real sierra
#

part of me is happy because i almost never fix this many bugs per second

#

part of me is wondering how these bugs have been in the code this long without causing larger problems

opaque wharf
#

We measure efficiency in terms of bugs per second now

real sierra
#

they're not even small bugs

#

they're like

#

dividing by an array instead of its length

#

how did that not cause some kind of crippling error

#

javascript Bruhgi

opaque wharf
#

Luckily it is a game lol

real sierra
#

push to prod Ok

#

git push --force

#

then leave for 3 week vacation

raw trout
#

Hemlo guys!

real sierra
raw trout
rigid snow
raw trout
real sierra
autumn ore
rigid snow
real sierra
#

the code that moves idle creeps off the road might have been the most influential change to this AI since its inception

#

lifesaver

olive sable
#

Aight imma go to bed now

#

Gn

real sierra
#

no screeps? bye

rigid snow
#

"conditioner problem, conditioner problem!"

olive sable
faint sandal
#

lmao

opaque wharf
rigid snow
autumn ore
#

Why in my site is a random button being pressed when I click the space key on my phone

autumn ore
rigid snow
#

feeling very at home rn

autumn ore
#

Working on other things tho

autumn ore
#

Didn’t have enough room to fit it on mobile

rigid snow
#

placeholder avatar absolutely should not be a png that's a sin

autumn ore
autumn ore
faint sandal
rigid snow
opaque wharf
raw trout
rigid snow
#

it's just up for interpretation what the ui should be, it's not in the spec

#

hence the breaking ux argument

rigid snow
#

like it's so abrupt, a month ago literally nobody knew what a labubu is

#

ok maybe a bit more than a month but the point still stands

opaque wharf
trim valve
#

ok but consider this is the windows color picker

rigid snow
#

at least chromium tries, native color pickers usually suck ass

rigid snow
trim valve
#

😭

rigid snow
#

still can't get over this

sage crag
#

postcode file

trim valve
#

😭

#

at one point they changed "add or remove programs" to "add or remove programmes"

rigid snow
#

oh microsoft

trim valve
#

like its nice that you have a dark mode toggle but I don't want to hunt it

real sierra
#

i wanna speed up my code but im worried everything im thinking of is a microoptimization

#

e.g. caching changes to memory and then committing them in a single write operation at the end of the game tick

opaque sigil
#

micro-optimisations are fun neuroPogHD

real sierra
#

the golden phrase is "profile first, optimize second"

trim valve
#

neuroPogHD firefox keeps inventing new colours that don't make sense

real sierra
#

but screeps doesnt really give you much for profiling 💔

rigid snow
#

when you add theming through whatever

trim valve
#

and that's not even the same colour as on my screen 😭

sage crag
#

rewrite 20 times first, then optimise, then profile

real sierra
#

Huh screeps?

#

so

#

energy storages are owned

#

and energy extensions are owned

#

but energy containers are neutral structures?

#

completely arbitrarily?

#

this was silently breaking everything

#

its so confusing because im the one who built it but i dont own it

#

unlike with almost every other structure

#

no clear reason for it to be this way

opaque wharf
real sierra
sage crag
#

rewrite screeps in hblang

real sierra
#

you just have to spot that the structure doesnt have an owner property

rigid snow
rough bloom
sage crag
bright scaffold
#

I couldnt get more than 40 fps at 1440x900... vedalBwaa

rigid snow
real sierra
#

holy

#

someone had cpu to spare

#

generated a whole maze for the enemy to solve

opaque wharf
real sierra
#

before war i need to figure out myo wn economy

#

i think i kinda crippled myself off the start because the energy sources in my room are only accessible by a single tile each

#

so i can barely extract any NeuroBwaa

opaque wharf
#

As real economic situations have shown us, war will make the economy hehe

real sierra
round heron
#

Does anyone have tips for creating custom ai architectures? I'm doing this currently so I'm curious for any inputs or things I can improve on or things I should do. Any advice helps : )

(ik its simple but id say its a start)

trim valve
opaque wharf
#

I like this guys energy

real sierra
#
const util = require("util");

module.exports = {

    wrap: function(f) {
        const fid = util.nextid();
        return function(...args) {
            const cached = Memory.cache[fid];
            if (cached !== undefined) return cached;
            const newCached = f(args);
            Memory.cache[fid] = newCached;
            return newCached;
        };
    },
    
    clear: function(f) {
        Memory.cache = {};
    },

};
#

does this seem reasonable for a caching module?

#

i would have elected to use the function itself as the key if javascript did something reasonable like use the function's address but uhhhhhhhhhhhhhh

opaque wharf
#

Why would you use function as a key catdespair

real sierra
#

its a cache wrapper thats supposed to wrap a function

#

given the only arg is the function i didnt have much else to use for a key Shruge

#

but yeah im just using a unique int instead

opaque sigil
#

Wouldn't you want to include the args for the function in the key

opaque wharf
#

Exactly neuroDespair

real sierra
#
const util = require("util");

module.exports = {

    wrap: function(f) {
        const fid = util.nextid();
        Memory.cache[fid] = {};
        return function(...args) {
            const argsKey = JSON.stringify(args);
            const cached = Memory.cache[fid][argsKey];
            if (cached !== undefined) return cached;
            const newCached = f(args);
            Memory.cache[fid][argsKey] = newCached;
            return newCached;
        };
    },
    
    clear: function(f) {
        Memory.cache = {};
    },

};
#

fixed OkThought1 SAVED thought2

opaque wharf
#

Be careful about function with non-primitive data type in their argument

real sierra
#

how come?

opaque wharf
#

[object Object]

real sierra
#

oh sht

opaque wharf
#

Yeah, check it first if that join do what you think it do

real sierra
#

there

#

does that work

opaque sigil
#

just json.stringify the whole thing

real sierra
#

Om true

opaque wharf
real sierra
#

THERE

#

perfect

#

no other issues Clueless

opaque sigil
#

Also you probably want to use an actual map

real sierra
opaque wharf
#

Check if you have new Map()

real sierra
opaque sigil
#

I guess depends on how ancient of a version you have

real sierra
#

does exist

sage crag
#

just the args might be sufficient

opaque wharf
opaque sigil
#

With Map it should be sufficient I think

#

Just slap the args and some identifier together and use that as the key

#

They'll just hash it internally iirc

sage crag
#

yeah

#

i agree

real sierra
#

use map

sage crag
#

maybe weakmap

#

dunno

real sierra
#

key still needs to be a primitive

#

oh wiat

#

object

#

nvm

#

👨‍🦯

sour harness
#

DOCKER_BUILDKIT=1 docker build . --target vllm-openai --tag vllm-current --file docker/Dockerfile --build-arg torch_cuda_arch_list=""
pain peko

sage crag
opaque sigil
#

Can you push to arguments

real sierra
#

weakmap kinda annoying because it lacks a clear method

opaque sigil
#

wasn't weakmap for garbage collecting the values

opaque wharf
real sierra
#

id have to make a new one each time

sage crag
#

bwa

#

this does give me an idea for how to do caching in hblang though

#

thanks

real sierra
#

np

opaque wharf
#

If its going to be stringified, will the reviver able to construct the original object

opaque sigil
#

Wait

#

It's going to try to stringify the map isn't it

real sierra
#

yes

opaque sigil
real sierra
#

thats why i didnt use one at first

#

should i not use a map then Concerned

#

you sounded so confident i was gonna go for it

opaque sigil
#

I didn't know they did that neuro7

real sierra
#

objects ftw

opaque sigil
#

Objects are fine

#

Maps are just more efficient for constant insert and retrieve

real sierra
#

now to see if the cache is actually faster or if the access overhead slows my code down PauseSama

sage crag
real sierra
#

do you want to see my "IDE"

sage crag
#

(a timer)

real sierra
sage crag
#

orm

real sierra
#

heres my "profiler"

trim valve
#

this is my one issue I see with screeps

sage crag
#

you should Order a subscription here ->

real sierra
#

i cant use my cache wraper in my util module

#

because i imported the guid function from it in the cache module

#

code duplication time ez

sage crag
#

perform code duplication 32 times

opaque wharf
#

Can you pull outside code?

sage crag
#

can you include native node modules ReallyInnocent

real sierra
#

i have potentially good news for both of you

opaque wharf
sage crag
#

include the c runtime

real sierra
opaque wharf
#

Its rust time

sage crag
#

hblang in screeps real and not rigged

opaque wharf
#

Or maybe hblang with how small the limit is

sage crag
sage crag
real sierra
#

omg i had no idea but screeps keeps a timelapse of the room

opaque wharf
sage crag
#

do you want to replace gnu yes on your machine with a program written in hblang

#

its free

#
poll_question_text

a new problem

victor_answer_votes

4

total_votes

6

victor_answer_id

2

victor_answer_text

complain to council about problem

victor_answer_emoji_id

1187548551144820857

victor_answer_emoji_name

neuroBritish

opaque wharf
#

Hey, it only need to do computation. How hard can it be NeuroClueless

trim valve
sage crag
#

you should just break the timer like leetcode

#

im sure that works

real sierra
#

the bucket feature is crucial at scale

trim valve
opaque sigil
sage crag
#

i am nvidia driver

opaque sigil
#

I hate you

trim valve
sage crag
opaque sigil
sage crag
trim valve
#

still kinda a pain but very cool too

real sierra
#

not that much of a pain

#

i currently have 10 units running around the map doing all sorts of things

#

only using about 3 CPU a tick*

#

about every 50 ticks or so i do a bunch of high compute operations

#

like calculating derived statistics, checking the integrity of walls in a room, queueing the creation of new units as needed

sage crag
#

work stealing queue for screeps

#

to be honest i still don't know what screeps is about enub

trim valve
#

tbh that sounds like one of my very cursed ideas might actually be possible then

sage crag
#

i have a vague idea that someone told me but its like 32 degrees so im kinda rotating

opaque sigil
#

looks like discord has custom themes as part of nitro now huh

#

well besides the predefined ones

sage crag
opaque wharf
#

Screeps is a "game", trust me bro

#

Its not another job, bro

sage crag
#

screeps in screeps

#

recurscreeps

opaque wharf
#

But I do wonder, how would gamification of certain IRL things work out

trim valve
#

neat

opaque wharf
#

Like, can we gamify maintenance system?

sage crag
#

gamify taxes

opaque wharf
sage crag
#

i dont know

#

i curse you with minor back pain at one specific angle

amber fractal
amber fractal
sage crag
amber fractal
rigid snow
sage crag
#

i curse you with oh

amber fractal
sage crag
#

why did you do this enub

rigid snow
#

let people enjoy their lives smh

sage crag
#

i bless you with a new 1600 degree heater

amber fractal
opaque wharf
#

Doing the Neuro manuever

sage crag
rigid snow
#

that's a very steep angle that heater is at

real sierra
#

hmm

#

i need more help with the cache function

sage crag
real sierra
#

because of this, if any of my cache-wrapped functions receive a game object as a key, they might fail Concerned

#

or maybe it'll be fine as long as they're json stringified uniquely?

amber fractal
# sage crag (doubles as new cpu)

Imagine if one could overclock a CPU that can exist at that temp, Sure it'd be unstable far before it ever gets to max heat but it'd be interesting to see the clocks.

rigid snow
sage crag
rigid snow
#

i am very sm,art as you can see

#

160 is obtuse

#

right?.. neuroStraightFace

sage crag
#

is it bigger than 90 enub

opaque wharf
#

-200 degree is less than 90 yes

rigid snow
sage crag
#

for an example, 361 degrees is bigger than 90 degrees

rigid snow
sage crag
#

you only care about the remainder of division by 360

rigid snow
#

why are you explaining that evilDeadge

sage crag
#

i have prepared this handy doodad to demonstrate that 1600 degrees and 160 degrees are equivalent

amber fractal
#

Dividing by 10 always works vedalNoted

real sierra
sage crag
sage crag
#

im typing but i dont know what to type about so im ambiently continuing to type until something appears in my mind

#

meow

nocturne olive
#

Whar may the silliness occurring here be?

sage crag
#

silliness does not occur, it is not a phenomenon

#

it is a property of the environment

amber fractal
#

-# konii got her curse privileges revoked

nocturne olive
#

Whar

sage crag
#

high concentration of silly particles in the atmosphere

rigid snow
rigid snow
rigid snow
#

she can still bless us with very powerful heaters though so i’d be careful

real sierra
sage crag
#

a freezer is also a heater

#

and by the transitive property this means that ice cubes are also heaters

#

thus we can infer that water must be a heater, and therefore all things that contain water are heaters

#

hence in this essay i will demonstrate why i should be allowed to bless people with mosquito swarm

rigid snow
sage crag
real sierra
#

i wasnt looking for like 3 secs and all of my miners have died

opaque wharf
#

The charm works. Konii blessing is redirected to Shiro screeps

real sierra
#

why are we not spawning more Concerned

sage crag
#

definitely blessing

#

all good things

rigid snow
sage crag
opaque wharf
#

But consider, Ice cubes in 0K environment

rigid snow
#

0k environment NeuroClueless

sage crag
#

or more simply, ice cube in environment below zero celcius

#

ice cube acts as a heater while ice cube is above the ambient temperature

real sierra
#

OH

#
PROPORTIONS_MINER: {work: 0.34, carry: 0.33, move: 0.33}
rigid snow
real sierra
#

Tssk that should be 0.33 not 0.34

sage crag
#

your workers need to unionise

rigid snow
real sierra
#

nope

#

life cycle of a screep

#

work, carry, move, die

sage crag
#

me too

#

i might be a screep

real sierra
#

i found that bug a bit too late

#

all of my screep died

#

we should get the discord development team hooked on this game

#

they could learn a thing or two about performant javascript

sage crag
rigid snow
real sierra
#

if it decreases by 0% thats perfect

#

SCHIZO the walls are rotting

sage crag
#

tell them to get out of bed

real sierra
#

too much youtube shorts

sage crag
#

the walls need to get jobs

real sierra
#

have to wait for the spawn to generate enough energy on its own for a worker

sage crag
#

hm yes i come from the ios twitch app

real sierra
sage crag
#

its apparently very important to my stay on twitch since it's still here

real sierra
#

gx_siren IOS USER

sage crag
real sierra
#

a miner spawned FeelsStrongMan life finds a way

sage crag
#

they had a theory about this in the 18th century called spontaneous generation

#

good to see it's revival in 2025 in the scholarly halls of #programming

real sierra
#

i feel very smart just by being in this channel

#

all of your collective brain essence really gives it intelligence vibes

#

even if 90% of the projects will never be seen or used by any but their developer

rigid snow
#

what are projects

#

is it like an idea you have and research and forget

sage crag
#

project is when you imagine thing and then dont finish it

#

cheese monument

rigid snow
#

imagine thing and forget in a day mhm

real sierra
#

screeps is a project

tiny mango
#

mm crunchy

real sierra
#

i want to lodge another formal javascript complaint

#

there is no builtin for getting a random integer

sage crag
#

please lodge as many formal (or informal) javascript complaints (really, anything) as you like (as many possible)

real sierra
#

i tried printing an html form to the console and it actually rendered

#

i clicked submit and my game had a seizure

sage crag
#

evil witchmagick

rigid snow
dark valve
#

Hello guys

#

what are you guys talking about

#

Making a new game?

sage crag
real sierra
#

we're talking about projects

#

and never finishing them

amber fractal
opaque wharf
real sierra
midnight sigil
#

I never finish shits

tiny mango
#

I get it to MVP and call it a day

#

if anyone asks questions I say I'm actively developing

opaque wharf
# real sierra

How do you transition from state A to B in this diagram?

sage crag
tiny mango
#

If they ask how I'm actively developing 50 projects I say I'm goated like that

opaque wharf
#

Can you make the jump from within any node in the sub-FSM?

real sierra
tiny mango
#

have i made a shiro day comment today

sage crag
#

im limited edition

midnight sigil
sage crag
tiny mango
#

yay!

midnight sigil
#

hbd shibo

real sierra
#

close!

tiny mango
#

yes. more.

real sierra
#

its my country's birthday today

tiny mango
#

do you french

sage crag
#

shiro you have a country named after you?

tiny mango
#

oh deja vu

real sierra
real sierra
opaque wharf
#

Fr*nch

tiny mango
#

product releases in canada require all english text to also be shown in french

sage crag
tiny mango
#

i know this because i lied about french fluency during interviews

real sierra
#

my screeps are reborn

tiny mango
#

oui

real sierra
#

probably shouldnt lie about that given its very easy to check

tiny mango
#

oui.

rigid snow
#

mods rule 10 is being broken mods mods

sage crag
#

easy

tiny mango
#

no they found it funny and all went well

real sierra
sage crag
#

get a fake hearing aid for anti-polyglot tactics

tiny mango
#

Wasn't officially on my resume, they just asked and I said "depends on how badly I want this role" and they were like "so...?" and I said "fluent"

sage crag
rigid snow
#

can’t background check that either neuroEZ

real sierra
tiny mango
#

transparency is important etc etc, I was just being silly because I thought it would land well and it did

tiny mango
#

it's an internship, I wasn't pressed

midnight sigil
#

we should study psychology, so we can manipulate the interviewers 👍

sage crag
tiny mango
#

arg

tiny mango
#

jpeg.jpe

sage crag
tiny mango
#

it's okay

sage crag
#

thank you

tiny mango
#

you're very welcome

sage crag
#

you too

real sierra
real sierra
#

my screeps console doesnt print stuff very often to keep the ai performant

sage crag
#

screeps llm

real sierra
#

but when its empty, it feels like its not doing anything

real sierra
#

wasm llm library must exist by now

opaque wharf
sage crag
tiny mango
#

screep is what i'm naming my next hamster

warped narwhal
#

Just do a fetch call to a self hosted llama instance glueless

real sierra
sage crag
#

buffer it more

#

yesh

real sierra
#

found another issue with the cache code

#
module.exports = {

    wrap: function(f) {
        const fid = this.nextid();
        Memory.cache[fid] = {};
        return function(...args) {
            const argsKey = JSON.stringify(args);
            const cached = Memory.cache[fid][argsKey];
            if (cached !== undefined) return cached;
            const newCached = f(args);
            Memory.cache[fid][argsKey] = newCached;
            return newCached;
        };
    },
    
    clear: function(f) {
        Memory.cache = {};
        Memory.cachegid = 0;
    },

    // copy of util.nextid to avoid circular reference and rapid incrementing
    nextid: function() {
        Memory.cachegid += 1;
        return Memory.cachegid;
    },

};
#

the wrapper packs the parameters into args

#

but then passes args to the wrapped function as an array

#

need to unpack

opaque wharf
#

Yeah, do the ...args again

real sierra
#

how

#

oh perfect