#programming

1 messages · Page 189 of 1

real sierra
#

ok which languages then

tender river
#

english

real sierra
#

sticking with my function pointers

#

not rewriting the user-facing end with complicated looking tags for no reason

tender river
#

ye not my problem me not use api neurojuice

real sierra
#

i do see your point tho

#

as i think about it more

tender river
#

shiro c

real sierra
#

you would have to get the entire struct intact into the other language

tender river
real sierra
#

and then extract the func pointers

#

but if i dont i have to give these functions super long names so they dont accidentally shadow library function names

tender river
#

evilShrug prefix with chess_

real sierra
#

salute code readability

tender river
#

no

#

c

real sierra
#

c_

tender river
#

shiro this is not java

real sierra
tender river
#

chess_get_board()
chess_get_legal_moves(board, &len_moves)

readability fine neurOkay

real sierra
#

fine u have a point

radiant anvil
#

Hi such a question, what are the best values to set for AI in top p and temperature

velvet crestBOT
#

You have unlocked new role

opaque sigil
#

Yes

real sierra
#

this has not fixed my problem at all

#

but i hope the eventual end user likes it

#

wait

#

it actually did fix the problem?

#

it gets further now?

#

OK 0 legal moves

#

perfect

#

ah

#

user error

#

im using my own functions wrong

tender river
#

evilSMH read the docs

real sierra
#

i fixed the bug and now my vm isnt responding

#

power buttoned salute

opaque sigil
#

oom maybe?

real sierra
#

maybe

#

that would be bad

#

any idea how one stops that from happening?

opaque sigil
#

Run the program through valgrind and see if it complains

real sierra
#

its ok i fixed some more of it

#

now im on a different bug

trim valve
#

alternatively you could probably use cgroups or something to limit the max memory usage of the program

real sierra
#

probably a good idea for during the tournamnet

opaque sigil
hollow spruce
#

Yo

real sierra
#

oh wow

#

a lot more of it works after this fix

#

i forgot to ignore the / characters in the fen string loader

hollow spruce
#

Hmm bugs 🙁

#

Soon I will write in asm language instead of cpp for
More cpu control

opaque sigil
real sierra
#

welp

#

i gotta be real

#

this doesnt fill me with confidence

opaque sigil
#

Hm?

real sierra
#

the legal moves from the starting chess board are:

#

b1a5 (32 times)

#

O-O (2 times)

opaque sigil
#

O_O

real sierra
real sierra
opaque sigil
real sierra
#

i

#

dont know how these moves got here

#

and werent caught at any other stage

#

they had to endure so many filters to make it to the final moves list

#

like

#

there isnt a single correct move in that list

#

there is just many, many copies of the wrong moves

rigid snow
amber fractal
#

Unrelated to the botting allegations, take your votes. If I did this via a singular LAN world, what would I be bottlenecked in first.

  1. RAM
  2. CPU
  3. GPU
    (4. Screen space for the screenshot)
    For anyone who doesn't know my system, linux, intel i1260 mobile cpu, 32gb ram, intergrated graphics, laptop)
real sierra
#

well a lot of the bad moves are gone now

#

but still dont have the good moves for some reason

#

ok i really gotta go to bed

#

good progress tho

#

it isnt segfaulting now

#

and is actually producing moves

#

albeit totally illegal ones

#

the directional attack boards indicate to me that there are way more pseudo moves that are being trimmed out by the legal move checker

#

so there's probably a logic issue somewhere in the latter

tender river
real sierra
#

its cool that this works tho

#

this is what i envisioned

tender river
real sierra
tender river
real sierra
hollow spruce
real sierra
#

yes! the code you are seeing is a test bot that uses the chess api

hollow spruce
real sierra
#

I don't want to share the API until it works

amber fractal
#

How much am I willing to say frick it and not bother to use use the uuid of these paritions just to get this started?

hollow spruce
amber fractal
real sierra
#

i run it in a Linux virtual machine

#

on the cpu

hollow spruce
nocturne olive
#

I have fixed building for Windows while keeping Linux builds in my Linux CUDA enabled version of NeuroSynth's inference GUI

hollow spruce
#

Bye i will back soon

real sierra
#

Update and Shut Down

#

PC turns back on

#

whoever at windows coded this should be fired 7 times over

amber fractal
real sierra
#

also it is SO fast

#

bitboards are ridiculous

#

the operations are so atomic you can almost simd it

amber fractal
#

Laptop, plz boot this time I want to actually do dumb stuff with my computer instead of banging my head aganist the wall

nocturne olive
amber fractal
#

Frick

nocturne olive
#

(it needs a DirectX 12 GPU)

olive sable
#

The issue is some weird type of using half of the browsers refreshrate

nocturne olive
#

Silly, but also not quite if changing res changes FPS

hollow spruce
#

Too much bug fix again

#

It will take whole day 🙁

trim valve
hollow spruce
#

Very slow network (1B/s)

amber fractal
trim valve
#

though also kinda render distance dependant because that uses a lot of memory

amber fractal
#

I think I might barely be able to get under 1gb at 8 render distance?

trim valve
#

if you're just wanting lots of automated players consider something like mineflayer/prismarinejs

amber fractal
#

I'm just doing it for the memes

trim valve
#

by default it will have a minimum allocation probably

amber fractal
#

I usually set min and max to the same

#

I've done 2gb runs before at least

rigid snow
#

i've run ~100 mod modpacks on 2gb

#

no gc stutters

trim valve
#

tbh it might be worth seeing if there's anything easy to mod out to save memory like textures

#

idk what uses most of the memory in MC though

amber fractal
#

My personal goal was to try and replicate the screenshot tho.

trim valve
#

ic

hollow spruce
#

Cursor got me again

rigid snow
amber fractal
#

I've already done decent work on a lightweight client, the 2gb instance only died once I went over 24 render distance

trim valve
#

tbh they only need a render distance equal to whatever the servers max is

#

idr what 2b2ts is

amber fractal
#

Probs 8 chunk

amber fractal
#

which was my original goal

trim valve
#

I'm always surprised by just how many 2b2t people make their clients render when doing lots of clients

rigid snow
#

how else are you supposed to see what's going on neuroTroll

hollow spruce
#

F i forgot again to install cpp

trim valve
hollow spruce
#

Not my ai again

rigid snow
#

someone elses neuroNOWAYING

amber fractal
#

20 more GB of data to download

hollow spruce
rigid snow
tender river
uneven pulsar
#

chaylabubu

hollow spruce
hollow spruce
# hollow spruce Ai generated or art (Grep | "https://x.com/zxcsque/status/1966205812214571151" )...

This image is AI-generated art.

Some clear signs:

The shading and blending have a very smooth, almost airbrushed look without the natural hand-drawn texture you usually see in human-done digital art.

The anatomy and proportions (like the feet and hands) look slightly simplified or inconsistent.

The clothing folds and highlights look algorithmically smooth rather than painted with deliberate brush strokes.

The overall rendering style has that “AI polish” where details look clean but slightly unnatural.

So, while it mimics anime-style illustration very well, the telltale artifacts point to it being AI-generated

rigid snow
#

this is NOT ai vedalCry

rigid snow
amber fractal
#

Honestly I still think it'll take a bit

hollow spruce
nocturne olive
#

Don't blame people for stuff if your proof is "An LLM said so"

tight tinsel
#

why are we just randomly putting people art and trying to see if its ai or not

#

thats so disrespectful

uneven pulsar
#

I'm mostly waiting for the time when people start accusing legit artists of ai art whole one posting ai get away, and it spirals into delicious controversy

rigid snow
rigid snow
#

that happens like every day

rigid timber
uneven pulsar
hollow spruce
#

Im just test here not deframe anyone it and u guys also
Silent

uneven pulsar
#

ai generated english

#

the grammar is inconsistent

#

/jkjk

amber fractal
#

Alright, now that my setup is back from the dead, let me yoink my client from my otjer drive

#

It is time to open up a lot of minecraft

hollow spruce
#

I will ban my test here

rigid snow
rigid snow
amber fractal
#

I'm all good, it is fun to poke at it

rigid timber
rigid snow
#

it can tell really obvious ones

tight tinsel
rigid snow
#

but yeah stupid

#

it is very much ai

#

why did you delete now i look stupid

stark needle
#

Ai slopNeuroBounce

tight tinsel
#

hi shadow

stark needle
uneven pulsar
#

ok chat time to use ai to detect ai based or ai generated ai detectors

stark needle
rigid snow
#

neuroLookUp who's stealing messages

amber fractal
#

Nope, not me

stark needle
hollow spruce
#

Promt jaking is failed

amber fractal
#

1GB client is stable neuroHypers

#

Now we get to play the game of how many

uneven pulsar
#

run them in a cluster

rigid snow
#

k8s minecraft clients

amber fractal
#

Prism can't open an instance on multiple accounts, but I can symlink the instances

#

so I won't be eating too much storage

rigid snow
#

assets should be shared already

#

they have a hash blob object storage type situation going on

#

no idea how to properly call that

amber fractal
#

Hmm, one of you is using 2GB. Probably the one that is hosting

#

Dynamic FPS is only working on two clients so the rest at at 60

#

Need more clients, I only have 8

#

Curse this server limit

#

Second one it is

#

Seems like our answer is ram limit

#

31 out of 32GB used

nocturne olive
#

Whar you sillying?

amber fractal
nocturne olive
#

Wuh

amber fractal
#

GPU is suffering a bit, all are above 15fps at least

#

I've seen single digit lows of 9fps but average is 15-20ish from what I can see

#

Granted I got inspro from the pixeling chat. let me clean this up so I can send a funny image over

#

This will take awhile to get the image I want to

#

Votes on what to have in the chat window

#

If I thought of this earlier I would have made better account names

#

F2 removes names, I'll be doing that then

midnight sigil
amber fractal
# amber fractal

I'm going to love shuffling these windows around because I want to add a terminal or 2 undernath all of them for the image.

tender river
#

neuro7Px was reading papers but pickles are so distracting

#

or rather pickles+pickle discord

#

cant pickle+chat+read at the same time melbwaa

#

current template almost done at least NeuroBounce

rare bramble
#

same fate as I had last year, -week of productivity because of pickles

tender river
rare bramble
#

holy

tender river
tender river
#

guess how much i ate on the final day

rare bramble
#

I think I was around top 50, top 2 pretty impressive

nocturne olive
# amber fractal

If you're memory limited, ask Elvyn for more memory, she has like 256GB

amber fractal
#

If I were to do it on that system, I'd actually set up a server instead on LAN due to the 8 player limit

hollow spruce
hollow spruce
amber fractal
#

WIP, Still want to do a bit more fine tuning

hollow spruce
amber fractal
#

One of these terminals is dedicated to Say "Swarm never dies"

amber fractal
#

Finished, not much honsestly but it was fun

hollow spruce
#

Hmm i can minecraft server in any hardware

amber fractal
#

I could have pulled together a server to get all of them if I wanted to. But the GPU was already pegged and RAM was a very scarce resource so it wasn't worth the extra effort in my eyes.

#

If I wanted to do more, I would have probably roped in more systems and continued from there.

#

I'd probably also continue figuring out how to deal with less RAM because it was 2GB per instance with 2 having 3GB each. Granted that is a lack of VRAM issue more than anything.

#

Void world and building the backdrop would have also done quite a bit

#

I admit it would be a lot of fun to try and have like over 100 accounts on. But at that point I wouldn't be doing it alone and instead of grabbing other people you could just use fake players

hollow spruce
rigid snow
#

very novel idea glueless

#

i remember someone running a functional enough server on an arduino like aaages ago

#

so you can flip a lever and turn an led on/off

rigid snow
hollow spruce
#

Text extraction mode

rigid snow
#

they're technically servers but do nothing outside of the bare minimum of getting the client connected protocol wise

#

and some stuff on top optionally

hollow spruce
#

!reset wifi

amber fractal
hollow spruce
#

!reset wifi

trim valve
# amber fractal

keep in mind the screenshot you sent had each client actively pathfinding which probably needed more CPU

amber fractal
safe path
#

HOLY airpods pro 3 has a heart rate sensor

#

does it make any sense to put it there

unkempt citrus
#

there is an artery pre close by

#

here ish

tender river
#

it does make sense in the sense that it stays close to your body

safe path
#

i wonder what happens when u have more than one source of heart rate tracking

noble zodiac
#

There have been a bunch of in-ears with heartrate sensors. afaik none of them came close to smart watch accuracy

silent cloak
#

she will rant about how much they suck

#

(she did that when i mentioned my smart watch)

sage crag
#

neural network heart rate guesser

#

ye ye

#

20% accurate

amber fractal
brisk laurel
#

where can i find free audio libraries that is non copywrite

#

help...

#

like sound effects

tender river
#

just check the license on each sound separately evilNodders

#

cc0 means use however you want, cc-by requires attribution, cc-by-nc forbids commercial use, cc-by-sa only allows usage in cc-by-sa works

#

etc

#

lysara FOCUS

brisk laurel
#

but other than that

tender river
#

google cc0 sounds evilShrug

brisk laurel
brisk laurel
tender river
#

nrrrrr

hollow spruce
#

!reset wifi

real sierra
#

hello chat

#

I accidentally slept through class after coding until 4am

#

so now I get to code all day uninterrupted

tender river
#

good morning shiro goodmorning

real sierra
tender river
hollow spruce
#

Hello

#

Well I m using Mobile phone data to chat

#

I thought my wifi slow so I reset my wifi (56 times )

real sierra
#

better but not quite right...

hollow spruce
real sierra
#

oh

#

i quite explicitly want the opposite of what im giving it

hollow spruce
real sierra
#

it is chess

hollow spruce
#

Not again
!reset wifi
(Module is BUSYBOX )

#

!reset wifi

maiden geyser
hollow spruce
#

I have linked my client to BUSYBOX because I hate to go manual setting

tender river
#

@safe path evilHyperYay

safe path
hollow spruce
#

@̶v̶a̶n̶o̶r̶s̶i̶g̶̶m̶a

sage crag
#

@safe path

#

ye

#

you

safe path
#

drawn by @digital tartan

hollow spruce
hollow spruce
#

Still too many songs are left

#

I am listening (jk public school national anthem)

sage crag
#

matrix is linear algebra

hollow spruce
sage crag
tender river
sage crag
#

this is highly threatening

tender river
#

koniibwaa

sage crag
#

mrekk is peppy

tender river
#

low ar

hollow spruce
#

Sad I can't edit polls
I want add more things in polls

sage crag
#

i am a very simple linear model

#

i have y = x activation function

hollow spruce
sage crag
hollow spruce
#

We have asked stupid project in maths use both or use one

tender river
sage crag
#

but matrices are linear algebra

#

or rather, they are a subset of it

hollow spruce
sage crag
#

first degree polynomial MyHonestReaction

#

so would you rather do matrices or the equation of a line miniawkward

hollow spruce
#

Hmm.

tender river
sage crag
#

wontfix

#

tanh or softmax only

#

library not support relu

opaque sigil
#

supporting tanh but not relu is crazy

#

i respect it

sage crag
tender river
hollow spruce
#

Bye I'm will back tomorrow

real sierra
#

theres so many bugs working together to make this not work

#

i just fixed a bug where it was reading the board in completely wrong

#

and its still broken

#

the pseudo moves are correct tho

#

...ish

#

its showing most of the attackable squares for white from the start pos

#

pawn moves and knight moves

#

its missing double pawn pushes tho

#

this doesnt make any sense

#

it just doesnt make any sense

#

at all

#
gen & empty > 0;
#

why does > take precedence over &

hoary lion
#

wtat is happening at amongus car vc

real sierra
#

good question

hoary lion
#

never seen this amount of people at a single vc

real sierra
tender river
#

radio

real sierra
#

pogs these moves are correct

#

i just need to fix castling

#

and double pawn pushes

hoary lion
#

ah i see

real sierra
#

pogs it looks like its really working now

#

it now sees pawn single and double moves

#

these are all legal i think

#

single pawn moves, double pawn moves, and knight moves

#

i wonder if i can play against it now

olive sable
#

gooooooooooooooodmorning

#

i woke up cuz they brought me my fries

opaque sigil
olive sable
#

NeuroBounce i love fries

#

today will be a good day, i can feel it

opaque sigil
real sierra
#

found the bug ive been experiencing for the last 30 minutes

#

for some reason, when the engine is run through arena, the buffering mode of stdout changes

#

and \n in the printf format specifier no longer triggers a buffer flush

#

so i have to manually do it

frail mortar
#

I have a question. Forgive the ignorance if this is uncommon methods.

I'm trying to "Tune persona" before i finetune LoRA.

The method I'm using is a Per-chat .jsonl appending route where I can say things like,
"Please use more sass for this conversation"
And it gets appended to persona.jsonl

Am I going about this the wrong way?

olive sable
real sierra
#

pogs my bot played one move and then cheated and lost

#

WICKED holy fast too

#

it made its move in 8ms

warped narwhal
#

I don't know if I would celebrate it taking 8ms to do the move nh6

real sierra
#

well its just taking a random move right now

#

but it still managed to receive the position, find all legal moves, and then select one and send it back, in 8ms

#

thats impressive to me

#

it has 60000ms to work with so

stark needle
#

Best bot strategy is to just play randomly to throw off any ai

#

Never let them know your next move

real sierra
#

you jest but most chess algorithms assume the opponent makes the best move during their search

#

they often dont search lines where the opponent makes a blunder

olive sable
#

shiro i watched the new dr stone episode

real sierra
#

i havent seen yet

#

should i watch

olive sable
#

enub i did like this one

real sierra
#

red are correctly found moves

#

blue are illegal moves it thought was legal

#

and yellow are legal moves it thought was illegal

#

i

#

actually think i know what happened

#

and its insane

#

if you were to play that white pawn move

#

but sideways

#

and on black's side

#

it would move the knight to where the queen is

#

which would explain all the discrepancies

sage crag
#

phrrr

olive sable
#

shiro cant tell the difference between queen's and horses

tender river
#

nrm

sage crag
#

nrmm

#

shimo this annotated board is gibberish

olive sable
#

also why did you use red for legal moves?

#

thats bad

real sierra
stray dragon
#

red is the default color for drawing on screenshots smh

olive sable
#

i dont care, its bad design

real sierra
#

red arrow: engine said piece can move here and was correct

#

blue arrow: engine said piece can move here and was wrong

real sierra
#

yellow arrow: engine said piece can't move here and was wrong

olive sable
#

i know

#

you said that before

real sierra
#

RAGEY then not gibberish

#

very legible

olive sable
#

im saying you shouldnt use those colours for that

real sierra
sage crag
#

phrr

olive sable
#

red = bad, green = good is a universal standart

sage crag
#

ye ye

real sierra
#

green hard to see on the board

#

Bad contrast

olive sable
#

im red-green colourblind so red is also hard to see

sage crag
#

it literally the second highest contrast colour

#

red and yellow less contrast

real sierra
olive sable
#

true

real sierra
#

red green blue

#

☑️

sage crag
#

gbr

olive sable
#

rgb mhm

sage crag
real sierra
#

wait

#

i didnt mean green

#

i meant yelow

sage crag
#

ye freud

stray dragon
#

to be fair this contrast isn't that good

olive sable
#

yellow is 255,255,0
yellow is reg and green

#

dont use yellow

sage crag
real sierra
#

do you think the moves are being interpreted wrong or applied wrong

#

place your bets

sage crag
#

move not exist

#

phrr

olive sable
#

i bet 5 bucks on your code being bad

sage crag
#

no one will bet against you Awkward

olive sable
real sierra
#

pogs it got further this time

#

and then died again

olive sable
real sierra
#

it was being interpreted wrong

#

got ranks and files mixed up

#

but its still broke so now theres more bugs

sage crag
#

phrr

stray dragon
# real sierra

this kind of nigh-inexplicable wrong behavior is giving me flashbacks to when i tried making a solver for minesweeper

real sierra
#

took your colour suggestions

#

even i dont know whats happening here

sage crag
stray dragon
# real sierra

looks like it's thinking the pieces' positions haven't updated from last turn

#

or something?

real sierra
#

it's hallucinating that it has a knight on g2

stray dragon
#

wait no the knight position at the bottom right is wrong

real sierra
#

we're playing black

#

it also thinks it has a... something? on h2

#

a rook or something

tender river
#

off by one?

#

bwaa

stray dragon
tender river
#

shiro try simplifying the position

#

just nuke most pieces

real sierra
#

i find having more data is helpful

#

but im guessing this is a problem with move making

#

time to open up that shitshow

#

does not make sense that this isnt working

sage crag
#

should have written in hblang

#

we have function pointers

real sierra
#

chayleaf said i cant use function poitners anymore

sage crag
#

just spam function pointer

#

everywhere

#

though

#

not in the way you used it

real sierra
#

no more function pointer

#

long function name OK

sage crag
#
What := struct {
  .x: i32;
  
  erm := fn(self: ^What, y: i32): i32 {
    tmp := self.x
    self.x += y;
    return tmp;
  }
}
#

hblang struct member function

real sierra
#

erm()

sage crag
#

wowo

#
a := What.(1)
b := What.{x: 2}
b.x = a.erm(101)
#

ye so easy

real sierra
#

something about a function named erm is making me giggle a lot

sage crag
#

there more cursed stuff you can do with hblang though

olive sable
sage crag
#
Zero := @TypeOf(.())

Suc := fn($T: type): type {
  return @TypeOf(.(@as(T, idk)))
}

One := Suc(Zero)
Two := Suc(One)
#

ye

real sierra
#

yeah.... not quite

#

is this wrong

sage crag
real sierra
#

wait

#

wtf am i doing

#

this is way wrong

uneven pulsar
#

ok so

real sierra
uneven pulsar
#

i've been watching shiro struggle with schizo.h and schizo.c

#

and i think i now know how i could illustrate the difference between what a programmer and a developer is

#

to anyone asking

real sierra
#

i dont know if im proud or concerned that i was the model case

uneven pulsar
#

its okay :shiropat:

real sierra
#

it working much better PagBounce

#

almost gets thru an entire game against itself

#

i see, the king tried to move back to g8 but the pawn was protecting the square, making it illegal

#

ah

#

its a corner case actually

#

the api doesnt realize the square is under attack because it's not a legal move for the pawn to move to it while it's empty

#

it got further, but i forgot to implement piece promotion when moving pieces

lucid galleon
real sierra
#

lubuntu

tender river
#
poll_question_text

pronunciation

victor_answer_votes

7

total_votes

7

victor_answer_id

1

victor_answer_text

chayleaf

victor_answer_emoji_id

1073622001052307617

victor_answer_emoji_name

Neurorb

victor_answer_emoji_animated

true

#

ye

real sierra
#

shayleeaf

real sierra
#

that would do it

tender river
real sierra
#

it went thru 100 moves without dying

#

to test it any further i probably have to make a better bot

tender river
#

evilAmaze gj shiro

real sierra
#

i get to write chess bot now

#

exciting

#

actually

#

i probably need a few more api functions

#

for getting check status, fetching bitboards etc

hexed pebble
real sierra
#

the reason im making this api in the first place is to host a chess bot tournament here

#

you'll get your chance

hexed pebble
#

neuroLookUp I can show evidence.

hexed pebble
olive sable
#

shiro what is this about level 1 markdown thingies?

#

i cant post code with a python comment in it

tender river
olive sable
#

is it cuz there's a space after it?

#

do i jsut remove the space?

tender river
#

regex doesnt know its code

#

this channel is supposed to have exemptions tho

olive sable
#

im posting in a thread so not apllicable

#

renpy has a really fucking weird bug with fps

tender river
#

ye cant do that evilNodders

olive sable
#

im in the neuro ace attorney thread

#

ai attorney

sage crag
#

erms

#

nope it work

olive sable
#

wdym?

#

oh, ye thats in this channel

#

erf

#

its disabled here for some reason

#

probably also cuz comments in code

real sierra
#

yeah python comments would prob get caught as markdown

#

soz

olive sable
#

its no big deal

#

i was just confused why i was getting modded for python code

real sierra
#

you're a cool person

olive sable
#

thanks i guess?

#

idk why that makes me a cool person but ill take the compliment

unkempt citrus
#

bring back using strings as comments

olive sable
#

no

#

fuck you

#

strings take up some of my precious tokens

real sierra
#

Aware wait

#

im realizing a problem with monte carlo tree search

olive sable
#

hmm elaborate?

real sierra
#

Simulation Phase: From the newly added node, a random playout is performed until reaching a terminal state. During this phase, moves are chosen randomly or using simple heuristics, making the simulation computationally inexpensive.

#

(from a random writeup on mcts)

#

i didnt really think about this step much before, as it seems quite simple

#

but uh

#

how many random chess moves do you figure it takes to complete a game of chess

olive sable
#

30-40?

real sierra
#

30-40 totally random moves?

olive sable
#

idk

real sierra
#

im guessing more like

#

500

tender river
olive sable
#

if both sides completely throw out any common sense it might as well never end

real sierra
#

so my MCTS probably need a heuristic to be useful at all

#

literally just any heuristic to make the game end faster

tender river
#

me tired vedalEep use captures

real sierra
real sierra
#

choose first move that captures, otherwise choose at random

olive sable
#

i asked chatgpt to find some specific code form a file i gave it, and it jsut made some code up ICANT

sage crag
#

me tired neuroComfy use cannon

novel blade
#

Do people still wish shiro happy birthday?

olive sable
#

yes

real sierra
#

🥀

#

you've been here since 2023

novel blade
#

It’s been a year since I last visited here 💔

real sierra
#

💔 they havent stopped

novel blade
#

Happy birthday!

real sierra
novel blade
#

You’re another day older

olive sable
#

while the rest of us take a year to rotate around the sun, shiro takes a day

real sierra
#

its because i run really fast

olive sable
#

leaked images of shiro irl

novel blade
#

Time totally works that way

olive sable
#

he's jsut the sun station init

novel blade
#

Omg they added so many neurosama emojis

#

I scrolled to find something to use 🥀

olive sable
novel blade
#

neuroReading this is me looking at all the emoji on my tiny phone screen

olive sable
real sierra
#

mininub

#

oh wait

#

you didnt do

#

-# enub

#

Crunch bite sized

olive sable
#

i cant take this seriously now

real sierra
#

?\

olive sable
#

dont worry about it

tender river
#

me innocent

olive sable
#

i know you did nothing wrong

#

but that doesnt change the fact that i now know what that word means

tender river
sage crag
#

your fault you pick bad meaning

olive sable
#

so anyways

midnight sigil
real sierra
#

mcts bot is almost ready GIGACHAD

#

the ultimate api test rig

#

as well as my submission to the tournament

#

what multitasking

amber fractal
#

only doing two things equally badly thonk

real sierra
#

it do good

#

(it will memory leak and segfault)

real sierra
real sierra
#

idk whats causing it either

#

bug only occurs outside of gdb bruh

#

WICKED it was because gdb was disabling address space randomization

#

not where i thought the issue would be tho

amber fractal
#

resetting up zen browser, quite a bit of work has been done since I've updated that last.

#

I just never bothered to update it until now

real sierra
#

im so confused

#

chess_is_game_ended says the game is in a normal state because there are still legal moves

#

and then the program crashes a few lines later because there are 0 legal moves

#

?

#

that's not good

#

frick

#

this is a really hard bug to figure out

olive sable
#

does the function modify the board parameter?

real sierra
#

nope

#

its not supposed to, at least

olive sable
#

try adding const maybe???

real sierra
#

this issue only comes up like

#

1 in 10000 calls

real sierra
#

well

#

its awkward actually

#

part of the legal move finding results gets cached

faint sandal
real sierra
#

so it does technically modify the struct

#

or well

#

yeah i guess it does

#

but not really

#

oh well

#

step 1

#

rig the random generator to cause the bug more often

#

catdespair fixing the rng seed didn't change anything...

#

it still occurs at random...

#

wtf

olive sable
#

trying to fix the renpy fps thing i broke the launcher

#

if you change the rendermode from gl to gles on linux it does not liek that

real sierra
#

OK time to throw valgrind at it

#

watch new stone episode while that runs PagBounce

#

neuroLife holy

olive sable
#

about dr stone?

real sierra
#

yea

olive sable
#

ye some shit went down ReallyInnocent

real sierra
#

NeuroHype good episode

#

now lets see what valgrind fo- Aware

#

mhm i dont understand any of the output

hollow spruce
real sierra
#

debug flag time

hollow spruce
#

Ure print outcome

#

printf("The outcome is: %d\n", outcome);
🙂

unkempt citrus
#

You can also play chess through tenorr

olive sable
#

????

olive sable
#

what was that previous one?

unkempt citrus
#

\s/e/x

hollow spruce
#

This is call gif injection

unkempt citrus
#

which replaces the e in tenor with x

#

which someone set up a server

#

to makx -> substitute e with x that image you saw

hollow spruce
#

Not working

open copper
unkempt citrus
#

drop the backslash

olive sable
#

hi heir neuroWaveA

#

this time i did nothing wrong

wide flicker
unkempt citrus
hollow spruce
#

We can do gif this animated style as position

#

Program is loading

real sierra
#

wait

#

thats crazy

olive sable
real sierra
#

typing +:+ adds a 👍 to the prior msg?

#

insane

unkempt citrus
#

Yeha thats inherited from irc

#
  • into an emoji adds a reaction
olive sable
#

+:+ did in fact not add a thumbs up

real sierra
#

omg ur right

#

+:!

olive sable
#

yay

#

it owrked

hollow spruce
#

Let use text extraction in this chat

olive sable
#

im still pulling my hair out due to the renpy renderer

#

that thing is made by weird people

hollow spruce
#

Lol regonise is corrupt

#

个 # programming > Q Shiro-9SHIR 8:53 AM typing + : + adds a 目to the prior msg ? insane Rare Possum : > } 8:53 AM Yeha thats inherited from irc + into an emoji adds a reaction +1 Sam ▲ ONURO { } 8:54 AM + : + did in fact not add a thumbs up Shiro~四SHIR omg ur right 8:54 AM + : ! Sam ▲ ONURO } 8:55 AM yay it owrked 100 } 8:55 AM Let use text extraction in this chat + Message # . . .

real sierra
#

LLM vomit

olive sable
hollow spruce
#

Maybe I should fix this later

real sierra
#

dude

#

this is so annoying

#

should i just switch all malloc calls to calloc

#

surely that magically fixes everything

pulsar edge
#

send me your code

real sierra
pulsar edge
real sierra
#

its all C

pulsar edge
#

I love C

real sierra
#

the main file is 1400 lines

pulsar edge
#

I hate you

real sierra
#

i hate me too

pulsar edge
uneven pulsar
#

this should be a framed image
it tells a story, like a haiku
only in discord form

real sierra
#

anyway

#

i think switching all mallocs to calloc

#

surely makes all issues go away

olive sable
#

why are you even using malloc?

#

i thought you didnt need to

hollow spruce
#

1200 line of cpp hmm i hope compiler doesn't take time

#

Clang main.c

pulsar edge
#

1200 lines is nothing to a compiler

real sierra
#

why did you think that

uneven pulsar
#

stack purism!

pulsar edge
#

shiro we need the chess player to run on an esp32 we cant be using malloc

#

everything must be statically allocated

real sierra
#

stack purists when i want to clone a struct

glad path
#

hi shiro unhappy night

olive sable
#

you can just do int num; and it exists no?
no need to malloc

hollow spruce
#

I made easy
Main.cxx
Cmakelist.txt
Logic.cxx
Moves.cxx
WindowsEXIT.cpp

glad path
#

bye

real sierra
olive sable
#

im not

real sierra
#

ok so

#

this is a chess api right

olive sable
#

does it not work like that in C?

real sierra
#

at some point it has to return the board and possibly moves to the user

pulsar edge
#

you can create globals in C, yes

real sierra
#

the moment you want to return an array in C

#

you're using pointers

olive sable
#

ok

#

i dont see the issue

real sierra
#

then you have to malloc

#

if you use a stack variable it's gone after the function returns

#

because the stack frame is gone

pulsar edge
#

you either need to point to something that exists off the stack or higher in the stack than when you're returning right now

real sierra
#

so higher in the stack isnt really an option if you cant predict how big of an array you need

pulsar edge
#

I think modern gcc lets you do variable sized stack arrays

real sierra
#

i think that's a crime against C

pulsar edge
#

but its still a bad idea if the array is coming from the network

real sierra
#

i mean

#

"network"

real sierra
#

array is coming from another process (ish)

olive sable
#

id rather jsut pass an array into the function than having to use malloc

pulsar edge
#

id call that network yeah

real sierra
#

you cant make a stack array unless you decide the size ahead of time

#

and you cant know the size ahead of time here

pulsar edge
#

what is this array for

#

why cant you put a hard limit on its size

olive sable
#

im geussing cuz there are thousands of possible moves

real sierra
#

the array im talking about is the array of legal moves on a board

olive sable
#

use a vector FRICK

pulsar edge
#

there's an upper limit to that

real sierra
#

im sure you can find some sort of hard upper bound on the size but you would waste tons of space

#

and given this is something you're probably caching a lot in any performant bot

pulsar edge
#

ig

real sierra
#

it doesnt make sense to stack allocate

pulsar edge
#

true

real sierra
#

@pulsar edge do you speak valgrind

pulsar edge
#

I know a little bit

real sierra
#

is this bad

hollow spruce
real sierra
#

most of them are the same issue

#

but i dont really know what this means

pulsar edge
#

shiro the kinda programmer to not check his status code return values

real sierra
#

trueeeeeeeeee

hollow spruce
#

I will Wait for c+++

olive sable
#

legal moves max is 3x8 + 14x2 + 8x2 + 14x2 + 8 + 28

real sierra
#

if malloc starts failing i have bigger problems

olive sable
#

so 132

#

per colour

amber fractal
#

Surely

olive sable
#

pawns can only move forwards, with sideways as attack, so 3
rooks do 7 in each direction, same with bishops, horse does 8 possible spaces, king too, queen does rook + bishop

real sierra
#

dont forget en passant, castles, and separate moves for every possible promotion

pulsar edge
olive sable
olive sable
#

for casteling add 1 legal move i guess idk

#

133

real sierra
olive sable
#

me when i promote to 10 horses

pulsar edge
olive sable
#

yes, its still jsut sideways

#

3 x 8

#

8 pawns

#

3 directions

real sierra
#

sam is right about the en passant

pulsar edge
#

ah

amber fractal
real sierra
#

the promotion issue multiplies all pawn moves by 4 tho

pulsar edge
#

yeah

hollow spruce
#

Ping is soo fast
(20 ms )

#

70 MB/S

olive sable
#

is 20ms fast?

pulsar edge
#

depends

hollow spruce
olive sable
#

i may be spoiled but idk

hollow spruce
#

Other gets (10 ms )

#

With 10mb/s

#

Let me use vpn to fast connect

real sierra
#

ok there are no more uninitialized things in get_legal_moves

#

they should have all been initialized eventually anyway but now they all start zeroed out

hollow spruce
#

I will learn go soon

midnight sigil
#

I still need to connect to a vpn yea? why I get latency boost

hollow spruce
olive sable
#

i have found the function that renpy uses to draw neuroLETSGOOOOOO
tbh im still not sure why it goes to 23fps when askign for 60 even with seeing the code

olive sable
#

im trying to help the ai attorney guys

hollow spruce
#

Chatgpt will help me in go language

olive sable
#

smol

pulsar edge
#

I only ever use malloc when I knew I'm going to immediately replace all the values

#

like when mallocing a struct on the heap

real sierra
#

i cant believe it but

#

this might've fixed it

#

idek how that caused an issue

#

concerning

pulsar edge
#

but heap arrays are always calloc unless I'm going to memcpy an existing array of the same size into it

pulsar edge
# real sierra

wait youre passing ubinitialized stack memory around too

real sierra
#

idk how it ever was

hollow spruce
pulsar edge
#

valuing says otherwise

#

unless you copied initialized memory from the heap onto the stack maybe?

#

does the rerun with less errors still say uninitialized stack allocation

real sierra
#

it was mostly other things that i went and cleaned up quickly

pulsar edge
#

those line numbers in valgrind are terrifying btw

real sierra
#

how come?

pulsar edge
#

huge