#programming
1 messages · Page 189 of 1
english

sticking with my function pointers
not rewriting the user-facing end with complicated looking tags for no reason

ye not my problem me not use api 
shiro c
you would have to get the entire struct intact into the other language

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

prefix with chess_
code readability
c_
shiro this is not java

chess_get_board()
chess_get_legal_moves(board, &len_moves)
readability fine 
Hi such a question, what are the best values to set for AI in top p and temperature
You have unlocked new role
Yes
ok done
no more function pointers
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?
0 legal moves
perfect
ah
user error
im using my own functions wrong
read the docs
oom maybe?
Run the program through valgrind and see if it complains
alternatively you could probably use cgroups or something to limit the max memory usage of the program
probably a good idea for during the tournamnet

Yo
oh wow
a lot more of it works after this fix
i forgot to ignore the / characters in the fen string loader

Hm?
O_O

castle kingside

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

Unrelated to the botting allegations, take your votes. If I did this via a singular LAN world, what would I be bottlenecked in first.
- RAM
- CPU
- 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)
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

what is chess_push


Chess api
?
yes! the code you are seeing is a test bot that uses the chess api
Where do u implant it ?
Discord
I don't want to share the API until it works
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?
Just give me info where do u use it ?
I haven't been able to use my main pc for 3 days now
Hmm good
Wait SEC i forgot my ai bot again
I have fixed building for Windows while keeping Linux builds in my Linux CUDA enabled version of NeuroSynth's inference GUI
Bye i will back soon
Update and Shut Down
PC turns back on
whoever at windows coded this should be fired 7 times over

also it is SO fast
bitboards are ridiculous
the operations are so atomic you can almost simd it
Laptop, plz boot this time I want to actually do dumb stuff with my computer instead of banging my head aganist the wall
The fix was actually really simple, just conditionally target net6.0-windows on Windows
Frick
Now all we need is someone with Windows and a GPU to confirm that DirectML rendering works correctly as well
(it needs a DirectX 12 GPU)
The issue is some weird type of using half of the browsers refreshrate
Silly, but also not quite if changing res changes FPS
CPU, assuming you decimate your graphics settings and run at a low fps
Very slow network (1B/s)
Noted, now becomes if I can even put that to the test
though also kinda render distance dependant because that uses a lot of memory
I think I might barely be able to get under 1gb at 8 render distance?
if you're just wanting lots of automated players consider something like mineflayer/prismarinejs
I'm just doing it for the memes
double check your java VM launch arguments
by default it will have a minimum allocation probably
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
My personal goal was to try and replicate the screenshot tho.
ic
Cursor got me again
you probably can even with 32gb
I've already done decent work on a lightweight client, the 2gb instance only died once I went over 24 render distance
tbh they only need a render distance equal to whatever the servers max is
idr what 2b2ts is
Probs 8 chunk
That client can and will be slimed for this, as it has mods like distant horizons and other mods for high render distance
which was my original goal
I'm always surprised by just how many 2b2t people make their clients render when doing lots of clients
how else are you supposed to see what's going on 
F i forgot again to install cpp

Not my ai again
someone elses 
20 more GB of data to download
I can't

chaylabubu
Ai generated or art
(Grep | "https://x.com/zxcsque/status/1966205812214571151"
)ᅠᅠᅠᅠᅠᅠᅠᅠᅠ
Sque
@zxcsque
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
this is NOT ai 
Ans by chatgpt
Honestly I still think it'll take a bit
In very short version
AI-generated — smooth shading, slight anatomy inconsistencies, and “polished” look give it away.
Don't blame people for stuff if your proof is "An LLM said so"
artstyle = ai generated
why are we just randomly putting people art and trying to see if its ai or not
thats so disrespectful
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
btw training a lora on any artists style takes like 10 minutes on any gpu that's not a literal potato
ever been on twitter
that happens like every day
so what I'm reading is real artists never use smooth shading and are always 100% consistent with anatomy
i mean so was dissecting corpses in the renessaince and since but then we got anatomy and medical knowledge
Im just test here not deframe anyone it and u guys also
Silent
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
I will ban my test here
here's my favorite one
i think you're fine
test this one
I'm all good, it is fun to poke at it
test whatever you want, but chatgpt won't be able to tell you whether an image is AI generated or not, it'll just hallucinate between yes/no
it can tell really obvious ones
immediately there are signs to me it's not
but yeah stupid
it is very much ai
why did you delete now i look stupid
Ai slop
hi shadow


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

who's stealing messages
Nope, not me
I ate them all
Promt jaking is failed
run them in a cluster
k8s minecraft clients
Prism can't open an instance on multiple accounts, but I can symlink the instances
so I won't be eating too much storage
assets should be shared already
they have a hash blob object storage type situation going on
no idea how to properly call that
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
Whar you sillying?
Wuh
@trim valve CPU is somehow not maxed
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
I'm sending this in #cdawg-canvas
If I thought of this earlier I would have made better account names
F2 removes names, I'll be doing that then
Today we installed Nyarch Linux (based on Arch Linux and the Gnome DE) on my Dell Inspiron 15… how is it? Let’s find out I guess.
Music used: https://youtube.com/playlist?list=PLM9cJLJpmN9AnzQ2GUEEoBortVhak5Ag1&si=UWs-ikATm-y2llxm
Distro link: https://nyarchlinux.moe
#linux #linuxdistribution :3
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.
was reading papers but pickles are so distracting
or rather pickles+pickle discord
cant pickle+chat+read at the same time 
current template almost done at least 
same fate as I had last year, -week of productivity because of pickles
ye got #2 in that canvas

holy
i started late tho
I think I was around top 50, top 2 pretty impressive
If you're memory limited, ask Elvyn for more memory, she has like 256GB
The others are close as well
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
What is that ?
Powerful by intel
WIP, Still want to do a bit more fine tuning
Install protons or wine or proton lite
One of these terminals is dedicated to Say "Swarm never dies"
Doubt that do much. I think I'm fine with how these are done for this meme.
Finished, not much honsestly but it was fun
Hmm i can minecraft server in any hardware
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
I wrote a Minecraft server from the ground up for the ESP32, resulting in the world's smallest and cheapest Minecraft server.
Learn to code with Coddy: https://coddy.tech/?from=PortalRunner
Thank you for watching!
This project is available on GitHub: https://github.com/p2r3/bareiron
Join our Discord server! https://p2r3.com/discord
Sound desi...
very novel idea 
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
and those are actual potatoes
https://youtu.be/ZFV76-qJhM4?si=g_dlnKqeakM5BC5m
Hmmm what about this ?
I made a GIF that lets you play shareware Doom in Discord.
Thank you for watching!
To try this out, type this link in a Discord chat: https://doom.p2r3.com/i.webp
The code is available on GitHub: https://github.com/p2r3/doomcord-server-template
Join our Discord server! https://p2r3.com/discord
Sound design by @dustyhob0. Music used, in order o...
Text extraction mode
also on that topic, "limbo" servers are very basic like the hypixel one, or the 2b queue
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
!reset wifi
That was a fun video, the more I think about trying to go for a massive server the more I want to. I'm still very limited by client resources so I need to find a way to reduce that.
!reset wifi
keep in mind the screenshot you sent had each client actively pathfinding which probably needed more CPU
Yeah, that is a future limit to keep in mind. Though it seems like a waste for all of them to be in the menu
as long as it works
it does make sense in the sense that it stays close to your body
There have been a bunch of in-ears with heartrate sensors. afaik none of them came close to smart watch accuracy
bring it up with Ellie
she will rant about how much they suck
(she did that when i mentioned my smart watch)
As a form of completion to today's efforts. Lowest I've gotten the single player world is 800MB. This includes 300MB video memory, 256MB jvm and some more it claims to be off heap. Numbers add up, so that is fine. I at least know the limits.
where can i find free audio libraries that is non copywrite
help...
like sound effects
there are sites like https://freesound.org
just check the license on each sound separately 
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 
whats that?
an audio library i found
nrrrrr
!reset wifi

hello chat
I accidentally slept through class after coding until 4am
so now I get to code all day uninterrupted
good morning shiro 
🗣️ 💬 
Hello
Well I m using Mobile phone data to chat
I thought my wifi slow so I reset my wifi (56 times )
Untill 0-0-0
I thought it is not chess ♟️
But a checkers
it is chess
why are you trying to reset (?) wifi (?) through discord
I have linked my client to BUSYBOX because I hate to go manual setting
Otherside manage.sh is working

Very good drawing
@̶v̶a̶n̶o̶r̶s̶i̶g̶̶m̶a
drawn by @digital tartan
We can use this
@̶v̶a̶n̶o̶r̶s̶i̶g̶̶m̶a
U will understand AFTER


this is highly threatening
koniibwaa
mrekk is peppy
low ar
Sad I can't edit polls
I want add more things in polls
Are u playing with me
( Im talking about maths not module)
no i simply have no clue what you are talking about 
We have asked stupid project in maths use both or use one

Linear equations not algebra
Hmm.
go upgrade to relu 
no
wontfix
tanh or softmax only
library not support relu
ye im written in a 3 decade old library



Bye I'm will back tomorrow
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 &
wtat is happening at amongus car vc
good question
never seen this amount of people at a single vc
ah i see
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

sth sth use clang-tidy to catch dumb stuff like this

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
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?
my bot played one move and then cheated and lost
holy fast too
it made its move in 8ms
I don't know if I would celebrate it taking 8ms to do the move nh6

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
Best bot strategy is to just play randomly to throw off any ai
Never let them know your next move
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
i did like this one
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
phrrr
nrm
it not gibberish
red is the default color for drawing on screenshots smh
i dont care, its bad design
red arrow: engine said piece can move here and was correct
blue arrow: engine said piece can move here and was wrong
yellow arrow: engine said piece can't move here and was wrong
im saying you shouldnt use those colours for that

phrr
red = bad, green = good is a universal standart
im red-green colourblind so red is also hard to see

true
gbr
rgb mhm

ye freud
to be fair this contrast isn't that good

i bet 5 bucks on your code being bad
no one will bet against you 

idk how your code works so it might as well have been a typo
it was being interpreted wrong
got ranks and files mixed up
but its still broke so now theres more bugs
phrr
this kind of nigh-inexplicable wrong behavior is giving me flashbacks to when i tried making a solver for minesweeper

looks like it's thinking the pieces' positions haven't updated from last turn
or something?
it's hallucinating that it has a knight on g2
wait no the knight position at the bottom right is wrong
we're playing black
it also thinks it has a... something? on h2
a rook or something
no it's black's turn so it would be off by 6 (or 2 if it can wrap around somehow)
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

chayleaf wrong
just spam function pointer
everywhere
though
not in the way you used it

What := struct {
.x: i32;
erm := fn(self: ^What, y: i32): i32 {
tmp := self.x
self.x += y;
return tmp;
}
}
hblang struct member function
erm()
something about a function named erm is making me giggle a lot
there more cursed stuff you can do with hblang though

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

ok so
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

i dont know if im proud or concerned that i was the model case
its okay :shiropat:
it working much better 
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
linux ? Top window can made me wrong
pronunciation
7
7
1
chayleaf
1073622001052307617
Neurorb
true
ye
shayleeaf
na not hash

it went thru 100 moves without dying
to test it any further i probably have to make a better bot
gj shiro

i get to write chess bot now
exciting
actually
i probably need a few more api functions
for getting check status, fetching bitboards etc
Can I test it? I have some previous experience.
hold onto that experience
the reason im making this api in the first place is to host a chess bot tournament here

you'll get your chance
I can show evidence.
😔
shiro what is this about level 1 markdown thingies?
i cant post code with a python comment in it
ye # at line start
im posting in a thread so not apllicable
renpy has a really fucking weird bug with fps
ye cant do that 
wdym?
oh, ye thats in this channel
erf
its disabled here for some reason
probably also cuz comments in code
elaborate?
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
30-40?
30-40 totally random moves?
idk
i'd expect a draw before rng wins
if both sides completely throw out any common sense it might as well never end
this is also a problem, ill get minimal information from these simulations if they end in draw
so my MCTS probably need a heuristic to be useful at all
literally just any heuristic to make the game end faster
me tired
use captures

could work...
choose first move that captures, otherwise choose at random
i asked chatgpt to find some specific code form a file i gave it, and it jsut made some code up 
me tired
use cannon
Do people still wish shiro happy birthday?
yes
It’s been a year since I last visited here 💔
💔 they havent stopped
Happy birthday!

You’re another day older
while the rest of us take a year to rotate around the sun, shiro takes a day
its because i run really fast
Time totally works that way
he's jsut the sun station init

this is me looking at all the emoji on my tiny phone screen
?\
i know you did nothing wrong
but that doesnt change the fact that i now know what that word means

multiple meaning
your fault you pick bad meaning

so anyways
minub
mcts bot is almost ready 
the ultimate api test rig
as well as my submission to the tournament
what multitasking
only doing two things equally badly 

it do good
(it will memory leak and segfault)

idk whats causing it either
bug only occurs outside of gdb 
it was because gdb was disabling address space randomization
not where i thought the issue would be tho
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

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
does the function modify the board parameter?
try adding const maybe???

well
its awkward actually
part of the legal move finding results gets cached

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
fixing the rng seed didn't change anything...
it still occurs at random...
wtf
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
about dr stone?
yea
ye some shit went down 
Trail and error
Keep it up
debug flag time
No ans this one (code is not valid
Ure print outcome
printf("The outcome is: %d\n", outcome);
🙂
????
Let go
what was that previous one?
\s/e/x
This is call gif injection
which replaces the e in tenor with x
which someone set up a server
to makx -> substitute e with x that image you saw
Not working

drop the backslash
hello #programming o/

this one too
+:+ did in fact not add a thumbs up
Let use text extraction in this chat
im still pulling my hair out due to the renpy renderer
that thing is made by weird people
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 # . . .
LLM vomit

Maybe I should fix this later
dude
this is so annoying
should i just switch all malloc calls to calloc
surely that magically fixes everything
send me your code
yeah?

its all C
I love C
the main file is 1400 lines
I hate you
i hate me too

this should be a framed image
it tells a story, like a haiku
only in discord form
Saving memory
1200 lines is nothing to a compiler
stack purism!
shiro we need the chess player to run on an esp32 we cant be using malloc
everything must be statically allocated
stack purists when i want to clone a struct
hi shiro unhappy night
you can just do int num; and it exists no?
no need to malloc
I made easy
Main.cxx
Cmakelist.txt
Logic.cxx
Moves.cxx
WindowsEXIT.cpp
bye
you're trolling rn you have to be
im not
does it not work like that in C?
at some point it has to return the board and possibly moves to the user
you can create globals in C, yes
then you have to malloc
if you use a stack variable it's gone after the function returns
because the stack frame is gone
you either need to point to something that exists off the stack or higher in the stack than when you're returning right now
problem 2 you encounter is that stack arrays have a fixed size
so higher in the stack isnt really an option if you cant predict how big of an array you need
I think modern gcc lets you do variable sized stack arrays
i think that's a crime against C
but its still a bad idea if the array is coming from the network
Hmmm true
array is coming from another process (ish)
id rather jsut pass an array into the function than having to use malloc
id call that network yeah
but you dont know how big the array needs to be
you cant make a stack array unless you decide the size ahead of time
and you cant know the size ahead of time here
im geussing cuz there are thousands of possible moves
the array im talking about is the array of legal moves on a board
use a vector 
there's an upper limit to that
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
ig
it doesnt make sense to stack allocate
true
@pulsar edge do you speak valgrind
I know a little bit
is this bad
💀
shiro the kinda programmer to not check his status code return values
trueeeeeeeeee
I will Wait for c+++
legal moves max is 3x8 + 14x2 + 8x2 + 14x2 + 8 + 28
if malloc starts failing i have bigger problems
Surely
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
dont forget en passant, castles, and separate moves for every possible promotion
void* ptr = malloc(sizeof(yourmom_t));
if (!ptr) {
fprintf(stderr, "Buy more ram lol");
exit(1);
}
en passant is still jsut sideways, not a diffrent slot
did someone say 3rd queen
promote to bishop 
me when i promote to 10 horses
you can en passant both dirs tho
sam is right about the en passant
ah
two, it isn't mirrored long / short
the promotion issue multiplies all pawn moves by 4 tho
yeah
is 20ms fast?
depends
For me yes
i may be spoiled but idk
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
Make rules .c for better
I will learn go soon
I always wonder how does vpn help with ping
I still need to connect to a vpn yea? why I get latency boost

Not for ms it for internet speed
i have found the function that renpy uses to draw 
tbh im still not sure why it goes to 23fps when askign for 60 even with seeing the code
Renpy to draw
im trying to help the ai attorney guys
Chatgpt will help me in go language
well that had a small impact
smol
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
i cant believe it but
this might've fixed it
idek how that caused an issue
concerning
but heap arrays are always calloc unless I'm going to memcpy an existing array of the same size into it
wait youre passing ubinitialized stack memory around too
none of it should've been uninitialized
idk how it ever was
Fix mem leaking
are you absolutely sure
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
not really in this function
it was mostly other things that i went and cleaned up quickly
those line numbers in valgrind are terrifying btw
how come?
huge





airpods pro 3 has a heart rate sensor


















wait

bite sized

holy
good episode