#programming

1 messages · Page 192 of 1

real sierra
sage crag
#

not telling you to use that in bot Awkward

#

use it when talking about move MyHonestReaction

real sierra
#

my bot spits out moves in this format so im just copy pasting it over here instead of converting it first Awkward

#

why the extra steps

olive sable
#

which one is rook 1 tho?

real sierra
#

regardless

#

i dont think it sees the castle

#

it says 10 legal moves

#

and i see 9 rook moves + 1 normal king move

#

back to debugging Sadgi

sage crag
#

its specifying rank or file

real sierra
#

two rooks cant be on the same file and rank at the same time (or they're in the same place)

olive sable
#

ohhhh

real sierra
#

so you figure out which they differ on and give that letter/number

#

to tell apart

olive sable
amber fractal
#

Short version:
A twist on pick a card, where if you don't pick the correct card the lowest card gets removed. If it is the required card it gets reallocated somewhere else. If you pick it then the amount of cards doubles.
I'd want to have some meta currency where you can gamble on each round. With bot's goal to make as much as it can in a particular timeframe.
Still need to figure out some decent balancing for it

real sierra
#

thats curious

#

i think the bot might be xraying the black king

#

and thinking the queen attacks the entire bottom rank

#

but then why isnt it in check Huh

sage crag
olive sable
amber fractal
olive sable
#

i have some leftovers from friday FOCUS

tender river
olive sable
#

aight imma eat

real sierra
#

OH

#

i got the path masks mixed up somehow

#

swapped queenside with kingside

#

ok

#

so

#

it now says 11 moves so i assume its fixed

#

however

#

my bot refuses to play it

olive sable
#

bug or dumb bot? maybe both?

real sierra
#

intended behaviour

#

line is short enough that bot can see it ends in stalemate

#

but as the bot is coded

#

it considers stalemates with a lot of material difference as a loss

olive sable
#

huh

#

okay

real sierra
#

(this is because a draw from the 50 move rule with high material gap indicates it woud probably lose)

#

(my way around MCTS rarely mating)

#

but yeah

#

because of that it just sees "if i play castle, i lose"

#

and does literally anything else

#

which is fun

#

"no surrender" ahh

#

ill throw it in another game vs itself and see if it finds castle

#

new bug Pointless it didnt see a pin

hollow spruce
#

Build

real sierra
#

i dont know how it played this invalid move

#

i cant reproduce it in testing

#

?

hollow spruce
real sierra
#

some of the moves for this position the bot found

hollow spruce
stray dragon
#

he's right

#

en passant

real sierra
#

thats not all of the legal moves

#

just some

#

i got tired of reading the list

stray dragon
#

wait no

real sierra
#

and yeah

#

black queen just moved

#

so en passant no longer valid for black if it was

#

white to move now

hollow spruce
# real sierra

It image load complete ✅
Not vailed move for en passant

#

God dang too slow network

real sierra
#

fixed

#

sweet

#

every fix makes my bot smarter

#

because the lines it analyzes no longer have fake moves

tender river
real sierra
#

i gotta add the threefold repetition rule perish

olive sable
#

my headphones died NOOO

#

i love bt headphones but having to charge them is a pain

#

at least they last 20 hours, and you get an hour for charging 5 min

#

not a bad trade-off

real sierra
#

if im getting into this territory

#

its probably time for zobrist hashing

olive sable
#

im looking at what phone ill buy since ill probably get a new one for christmass or something.
"chromebook go gift" man i dont want your fuckign chromebook ewaste celeron N4050 ass shitty no fps no ram no gpu no bitches laptop

#

this is activly making me not want to buy that

#

can i refuse the offer? how does this work?

nocturne olive
olive sable
#

mine work wired too, but not while charging

nocturne olive
#

And pure wired mode runs off of power from the headphone connector so it doesn't drain the battery

olive sable
#

and id rather wait 7 minutes than having to use a cable

nocturne olive
olive sable
#

ye i dont want that

#

i meant that they dont work via bluetooth while charging, they do work wired

#

hmm do i get a pixel 9, 9 pro, 10, S25+ or a S25?

#

the S25+ is cheaper than the non +

#

i could also get an older phone for less money, S23 ultra is only 600 while the S25+ is 900

#

oh its refurbished

pine owl
#

S25 has alot of upgrades from the S23

olive sable
#

i can get a brands new s22 ultra for 622

#

but is it worth spending 300 extra for a newer phone?

#

they make getting a phone so difficult these days

pine owl
#

if you're looking for the upgrades that the newer one has then I suggest it

#

otherwise not

#

the S25 I believe has a larger ssd and better camera for some main points

olive sable
#

th epixel 9 pro is also cheaper than the base model

#

wtf are these comapnies doing?

pine owl
#

idk

#

It rlly makes me feel smart tho

amber fractal
#

Alright, I'll write test cases for the new NN modules later. I cut a lot of corners while making them.

olive sable
#

S25+ for 900, S22 ultra for 622, or pixel 9 pro XL for 992 Hmmge
22 has more storage, but i dont use much anyways.
none of these have an sd card slot tho, and id like to have that since im already using one that has all my pictures

#

9pro doesnt have hdr, which is a gimmick on a phone anyways so no big deal

#

all are 120hz and roughly 3K

pine owl
#

I am the best programmer

HAI 1.2

IM IN YR LOOPY WILE WIN

    GTFO

IM OUTTA YR LOOPY

KTHXBYE
real sierra
#

@olive sable i know the gpu is just dying to run this one

olive sable
#

not even only gpu

#

simd

real sierra
#

still gonna be slow as heck

#

good thing you only need to do this once a turn neuroHypers

#

it will save more time than it loses

olive sable
#

just simd that bro

olive sable
#

im debating the s22 ultra, its better than the s25+ in everything besides cpu

hollow spruce
#

Samsung processor is worst

olive sable
#

nah, they're rather good

#

even exynos is not too bad anymore

amber fractal
#

The fricking urge to !eliv play binary solace

#

Nope, not in the archives

olive sable
nocturne olive
#

Sad

#

I would assume it to be under duet if it was there

amber fractal
#

I checked both duet and other

nocturne olive
#

@true hemlock Add thingy to radio

true hemlock
#

epic

nocturne olive
true hemlock
#

i should fr add fallback for other format

nocturne olive
#

True

#

Storing MP3 that gets re-encoded to OPUS is dumb

true hemlock
#

it works perfectly fine but

#

for some reason on mobile the codec shits itself

nocturne olive
#

How weird

amber fractal
#

Man I just sent it in dms neurOMEGALUL

true hemlock
#

or just that mobile discord codec is pretty shit

nocturne olive
#

I assume mobile Discord just uses a lower bitrate OPUS

amber fractal
#

The audio quality atm is something

nocturne olive
#

Of the radio?

amber fractal
#

Yeah, could be me tho

true hemlock
amber fractal
nocturne olive
#

I want you to test something real quick, wait a moment

olive sable
rough bloom
#

sending music over Discord VC is already quite something
honestly no reason to do so, it's basically always better to have another player outside of Discord instead neurOMEGALUL

amber fractal
rough bloom
true hemlock
olive sable
#

the problem is that for a phone i dont really want to go refurbished

true hemlock
#

fair, the battery would be sometimes a gamble

#

unless if you get it changed

#

(can you even change the battery lmao)

olive sable
#

pc's, monitors, consoles, ... all that im fine with secondhand. but a phone..god knows what has happened with that phone catdespair

olive sable
true hemlock
#

i hope

olive sable
#

apple has it locked, i think samsung doesnt

true hemlock
#

because im debating whether to get a new redmi if i need to change phone or just get second hand prev gen flagship which may cost more

#

and i don't really have any justification for flagship phones neurOMEGALUL

olive sable
#

my a52 is 4 years old now and its starting to shit itslef over minor things

#

like it just randomly freezes up and such

true hemlock
#

huh try to factory reset it

olive sable
#

im planning to go to a flagship tier phone since i have the moeny now

olive sable
#

i got it from like july 2021 or something

#

if this lasts me another year then thats cool, but i will be putting some money aside already to replace it

#

and besides that im also jsut greedy and want a new phone

#

i suddendly remembered i took apart my old a40 and never put it back together ReallyInnocent

true hemlock
#

im greedy and want a 10th PC now

hollow spruce
true hemlock
hollow spruce
hollow spruce
true hemlock
#

what generation?

#

i3 doesn't tell anything

hollow spruce
midnight sigil
#

I thought this was genchat

hollow spruce
#

4 gb ram

#

That why

#

🙂

true hemlock
#

wait till you heard about my single core pentium with 2gb ddr2

hollow spruce
#

I saw platinum processor

true hemlock
#

oh wait

#

i think my 13900 es should be immune to instability issues

hollow spruce
#

Hmmm

#

What will u do ?

hollow spruce
real sierra
hollow spruce
real sierra
#

at this point should i just line these fields up in the struct and then memcmp it

hollow spruce
#

Interest

hollow spruce
hollow spruce
real sierra
#

it works i hope

obsidian mantle
#

what the hell
i never heard of this "en passant" neurOMEGALUL why is that a rule

real sierra
#

i have multiple comments in this codebase that just say "i hate en passant"

obsidian mantle
#

also which boards are you comparing and why what

real sierra
#

any chess boards

hollow spruce
# obsidian mantle what the hell i never heard of this "en passant" <:neurOMEGALUL:1097297318119743...

In chess, en passant is a special capture by a pawn that can only occur immediately after an opponent's pawn moves two squares forward from its starting position, landing directly beside your pawn. You can then capture the opponent's pawn by moving your own pawn to the square the opponent's pawn would have occupied had it only moved one square. This rule prevents pawns from bypassing other pawns without the risk of capture, and it must be done on your very next turn, or the opportunity is lost

real sierra
#

and ive been avoiding writing this function because it's crazy expensive

#

but i have no choice now

#

In chess, the threefold repetition rule states that a player may claim a draw if the same position occurs three times during the game. The rule is also known as repetition of position and, in the USCF rules, as triple occurrence of position. Two positions are by definition "the same" if pieces of the same type and color occupy the same squares, ...

hollow spruce
real sierra
#

i am dumb but that's not the point

obsidian mantle
#

yeah dump positions into array and compare sounds nice

real sierra
#

well the array is already stored luckily

#

er well

#

the board history is just a linked list of boards

hollow spruce
#

What

real sierra
#

so OK

#

but i didnt have a nice way to compare the boards

#

so i spent like 9 years adding zobrist hashing

#

and then wrote equals functions neuroHypers

hollow spruce
real sierra
#

zobrist hashing sucks

obsidian mantle
#

hashing is slow
raw compare is faster

real sierra
#

"you can update it per move!" SUCKS

hollow spruce
obsidian mantle
#

hashing is done if you need to transfer result somewhere else i think

#

basicaly archivation?

real sierra
#

hashing does make a lot of sense here sadly

#

since i have to check for threefold repetition every turn

#

i need those compares to be snappy

hollow spruce
real sierra
#

tho actually i wonder if its worth

#

now ur making me doubt everything

#

ah no

#

i know what the problem is

obsidian mantle
#

cant you just dump all board into raw data array and use memory instead of computing

real sierra
#

without a hash of some kind, how do i tell if a move has occurred 3 times

obsidian mantle
#

you remember last 3 boards

hollow spruce
real sierra
#

nono

#

its not 3 times consecutively.

#

it's 3 times ever.

real sierra
obsidian mantle
#

remember all boards neuroTomfoolery

real sierra
#

but you still cant just compare every board to every other pair of boards

obsidian mantle
#

why not

real sierra
#

time complexity O(n^3)

obsidian mantle
#

but calculating hash should be slower isnt it

#

huh

real sierra
#

no

#

with a hash i just initialize an array with each unique hash i see and associate each to the board i saw it with

#

then i only need to traverse the history once

#

each time i check a board, i see if its hash is in the array, and if so i go to the associated board and check if equal

obsidian mantle
#

yeah right if you going to reuse the hash many times it should be faster
my bad

real sierra
#

actually

#

maybe thats still O(n^3)

#

no wait its not

#

i associate a count with each too

#

when i find an equal board, i just increment count

#

this is O(n^2) tops

#

surely worth Copege

hollow spruce
#

Utc -4 hmmm

real sierra
#

you know

#

this still seems really fast, despite so many hashes

#

it no longer ends up drawing to threefold repetition

#

because as usual, my bot avoids surrender like you wouldn't believe

hollow spruce
hollow spruce
#

And Highlight code where is happening

real sierra
#

i think it's working though

#

i dont see any bugs

#

not yet at least

hollow spruce
#

U should save before change

#

Bye i will back in some times

real sierra
#

holy

#

turbo optimization discovered

#

every pointer is 2 tokens

nocturne olive
#

What is this silliness?

amber fractal
#

I'd use this

real sierra
#

1205 tokens pogs

#

almost there

maiden geyser
#

can i join covenant

sage crag
real sierra
#

$$$

#

jackpot

real sierra
#

legit

#

that gave me another 50 tokens

sage crag
#

have you tried fusing math ops

real sierra
#

fusing?

sage crag
#

#define FMA(a, b, c) a * b + c

real sierra
#

usually not worth

sage crag
real sierra
#

the commas in the macro calls are individual tokens i think

sage crag
#

they are optional

real sierra
#

what

#

what do you mean optional

#

C how could you do this

sage crag
real sierra
#

its still one per variable tho

#

and then one for each bracket i assume

#

and one for the macro name

#

so that macro above is not worth it even without commas

sage crag
#

ye well either way

real sierra
#

it good idea

sage crag
#

use comma tech i guess

real sierra
#

im currently inlining functions

sage crag
real sierra
#

i dont

#

why

#

wait

#

can i just make every function take varargs

#

and pass whatever

sage crag
#

for macros

sage crag
#

to the end of the args

#

the problem is it requires using stdarg

maiden geyser
sage crag
#

phr

umbral thorn
nocturne olive
real sierra
#

C get angy when i try remove

umbral thorn
#

evilWave shiboo

real sierra
#

elvyn!

sage crag
#

ill reproduce it when im home

real sierra
#

this is getting hard to shrink

#

am i gonna have to remove features

sage crag
#

no

#

have you used inline if?

real sierra
#

define inline if

sage crag
#

you can do this in c ye

real sierra
#

yeah

#

i done this YES

sage crag
#

replaced if with ternary perhaps

real sierra
#

everywhere practical

#

looks gross

#

i even have nested ternary

sage crag
#

phrr

real sierra
#

features to the chopping block

#

i guess i can remove the evaluation helper if i have to

sage crag
#

dont see a need to evilAlright

#

just compress better

real sierra
#

bot not below 1024 yet

#

and running out of ways Susge

#

OfCourse remove all the free statements

sage crag
#

true

real sierra
#

not true AINTNOWAY

#

program run out of memory

#

crash

#

lose

sage crag
#

have you also tried replacing all std functions with __builtin_ versions

#

can save some imports

real sierra
#

is that portable

sage crag
#

gcc and clang are roughly at parity

real sierra
#

i might be able to shave off stdlib if i do that

#

actaully why do i have stdio

#

oh

sage crag
#

things like __builtin_malloc, __builtin_free

real sierra
#

debug prints

#

bye stdio

nocturne olive
#

I wonder how a language like Kotlin will compare

sage crag
#

actually single line macros since \ is a token

nocturne olive
real sierra
#

wait

#

there's a builtin rand too

real sierra
#

how many builtins are there

sage crag
real sierra
#

oh

#

there isnt builtin rand

sage crag
real sierra
#

vscode hallucinating

sage crag
real sierra
sage crag
#

strlen

real sierra
amber fractal
#

Decided to check the amount of tokens my NN framework currently contains. Seems like I am at 255 tokens at the moment. I'd need to reimplment what I need out of numpy tho.

nocturne olive
real sierra
#

it was all pointless

#

rand() is in stdlib

#

eliminated string.h but thats it

nocturne olive
#

So if you're planning to do a competition with this will there be JVM bindings for it?

real sierra
#

the answer is, that depends on you

amber fractal
real sierra
#

im writing the api in C with the hopes that this is something most languages support binding to

#

but i only have plans to personally write python bindings to the chess api as an example

#

that being said

#

if someone is kind enough to write bindings for a language

#

and share it publicly

#

ill happily make it official (and thus not count toward the token limit)

nocturne olive
#

Well, someone make Java or Kotlin bindings then, I have no clue how

real sierra
#

with java its the JNI you want

nocturne olive
#

I have not the slightest idea how to utilize JNI

real sierra
#

nor i

#

i think its probably easy once you do it once

#

likely just copy paste what you wrote for function 1

sage crag
#

instead of including

real sierra
#

wait like

sage crag
#

you can T rand(...); at the top of the file

real sierra
#

T

olive sable
#

neuroLookUp
i didnt know that

real sierra
#

how would forward declaring work

sage crag
real sierra
#

do i just hope that another library im including gets the definition?

sage crag
nocturne olive
sage crag
#

it just uses linker symbols

real sierra
#

i mean

#

i dont think that's actually fewer tokens than #include <stdlib.h>

nocturne olive
#

My syntax was for Kotlin

real sierra
#

the syntax is gross

#

oh

nocturne olive
rough bloom
#

JNI is old and practically requires a native library as a bridge

#

for new bindings that don't have to support old JDKs you can use Project Panama / JEP 424 instead

real sierra
#

????????????????

rough bloom
#

or JNA but that kinda sucks

real sierra
#

i mean

#

JNA might be convenient if it sits on top of libffi

#

might reduce some of the repeated work if im already implementing it for python

rough bloom
nocturne olive
#

So is JNA the one where you can do external fun?

rough bloom
#

but AFAIK the new built-in FFI is just better

#

no need to load an extra library and have all function calls go through that

real sierra
# rough bloom but AFAIK the new built-in FFI is just better

The Java Native Interface (JNI) is a foreign function interface programming framework that enables Java code running in a Java virtual machine (JVM) to call and be called by native applications (programs specific to a hardware and operating system platform) and libraries written in other languages such as C, C++ and assembly.
Java 22 introduces ...

#

it looks disgusting

rough bloom
#

Java looks disgusting

real sierra
nocturne olive
#

I also use JDK21 and not JDK22

umbral thorn
#

java is disgusting

nocturne olive
#

True regular Java code is kinda dumb

#

Kotlin better

rough bloom
real sierra
#

well you're free to make kotlin bindings too

nocturne olive
#

JDK22 is not on APT

real sierra
#

basically the requirements for you to use a language in this tournament are

  • the token counter supports it
  • i can create the build toolchain for this language and successfully compile submissions in it
  • you feel like writing an api bridge for it
  • it isnt somehow wildly unfair to use
#

beyond that i have no qualms

nocturne olive
#

Token counter, who knows
Build system is easy, it's just Gradle
API bridge, I don't know
I see no reason Kotlin would be unfair to use

real sierra
#

token counter supports these

nocturne olive
#

What a stupid token counter

real sierra
#

no kotlin

#

you can call it a stupid token counter but its also somehow one of the only token counters

nocturne olive
#

Weird

real sierra
#

agreed

nocturne olive
#

Guess I won't be making a chess bot then

real sierra
#

it is what it is

real sierra
#

you might just be in luck

nocturne olive
#

?

real sierra
#

so

#

this token counter is not only the only token counter in existence

#

but was last updated 4 years ago

#

luckily, it gets almost all of its functionality from an underlying parser library that has crazy support

#

and the kotlin arm of that seems to have developed rather nicely

rigid snow
nocturne olive
real sierra
#

but im trying it myself before i sell you any false promises

nocturne olive
#

How very silly

#

-# Not the same radio the pixelers are listening to, this is my improved version that requires a bot account

#

-# Completely useless for the pixelers because of needing a bot account

sage crag
#

quack radio 2

nocturne olive
#

Not really, it's kinda my own thing

#

And no it's not able to be used due to Neurocord mods not taking external bots

olive sable
nocturne olive
#

? I don't think you'd be able to rewrite it for user API

hollow spruce
#

Yo

hollow spruce
nocturne olive
#

Whar

hollow spruce
#

COMPUTER CRASHING TOO MUCH AND UNITS IS WASTING SOO MUCH EVEN IT ADD MY BILL

#

Bro my yt-dlp install whole youtube shorts
[download] Downloading item 13 of 1743

sage crag
amber fractal
#

I have to ask, why shorts

hollow spruce
#

I Just wanted songs not whole library

#

37 of 1743

#

F crit+z is not working

real sierra
#

ive been trying to just

#

download this damn package

#

for liek an hour

#

holy frick why is git ssh so annoying

#

just tell me why its not working NAHH

sage crag
hollow spruce
#

Whole os is crashed

sage crag
#

ssh more convenient than git username and password

real sierra
#

ssh not more convenient

#

followed steps still not working

#

👎 0/10

sage crag
#

lemme guess

#

windows

real sierra
#

no

#

linux

sage crag
#

how messing up

real sierra
#

didnt

sage crag
#

did Awkward

real sierra
#

didnt

sage crag
#

did jah

faint sandal
#

WorksOnMyMachine and it's more secure than leaving your token in the credential store

real sierra
#

security at the cost of being able to do nothing is bad security

#

nobody is stealing anything from me if even i cant access my stuff

faint sandal
#

what's the problem

real sierra
#

git doesnt like my ssh public key

flint dome
#

refresh the key then

faint sandal
#

ssh <username>@<your_git_host> -v

real sierra
#

i made it like 10 minutes ago

#

wdym refresh it

amber fractal
nocturne olive
#

Elvyn helped

amber fractal
#

Yeah I am grateful to her

sage crag
faint sandal
#

do y'all run your ssh key naked with no passphrases

#

wtf

sage crag
#

(external)

flint dome
#

wdym there are passphrases

faint sandal
#

what is wrong with u

sage crag
amber fractal
faint sandal
#

it prompts for a passphrase by default even

sage crag
#

get option to add passwd when you make it

flint dome
faint sandal
#

ssh-keygen has been asking for passphrase upon key generation since before I enrolled in uni

#

and that's a long ass time ago

hollow spruce
#

Ssh ?

flint dome
#

wait the password it asks then? use password then dammit not passphrase

hollow spruce
#

Hmm i will set later

flint dome
#

I don't understand passphrase ok

faint sandal
#

it is canonically called a passphrase.... it even says so when it prompts...

flint dome
#

as if I can remember the lore of a software man

hollow spruce
#

Very slow network...........

flint dome
#

i just call it password

faint sandal
#

scrajj you see it whenever you need to unlock the key

flint dome
#

well I'm stupid and don't remember

#

All I know it asks me for something when I make it and when I unlock it I gotta enter that

real sierra
#

i typed the ssh key wrong into github

#

it works now

#

still failed to fetch package perish new error

olive sable
#

my sister has chemistry 1 now, and they have an exercise where they ask what 1 spehre in the particle model picture means. and im thinking to myself "isnt it always supposed to be an atom".

#

apparently not cuz their """particle model""" has sugar water as blue spheres for water and red spheres for sugar

#

representing a molecule with a sphere is wild to me

hollow spruce
hollow spruce
nocturne olive
hollow spruce
#

🙂

nocturne olive
#

I hope it's not AI generated music

real sierra
#

omg it compiled

#

finally

hollow spruce
nocturne olive
#

Then what is it?

hollow spruce
#

I im training ai this one

#

1 kbps to 32 kbps

nocturne olive
#

What? You're trying to audio upscale?

hollow spruce
nocturne olive
#

Weird

#

How do you recover information that just is not there?

real sierra
#

@nocturne olive can you give me some kotlin

#

just a small code snippet

real sierra
#

and also what the file extension is

nocturne olive
#

.kt

real sierra
#

ah ty

hollow spruce
obsidian mantle
nocturne olive
#

If you want to try to upscale audio, you'll need a lot of audio, which you then need to reduce to a lower bitrate, then you need test audio which you don't train the model on, but only use to see if it's generalized

obsidian mantle
#

noway

amber fractal
hollow spruce
#

SERVER RACK COMPLETE ✅

#

Now setup time

#

I will back soon

obsidian mantle
#

hey but
if the bot is going to calculate next steps
it will have to check legal moves of those steps anyway

#

or does it not fit in 1024

#

and these bots are all going to be 1 step only

real sierra
#

?

#

i dont understand the question

obsidian mantle
#

you wanted to make a function that provides a list of legal moves

#

on server

real sierra
#

ah

#

yeah it does not fit in 1024 tokens

#

put it this way

#

my bot is sitting around 180 lines

#

and its over the token limit

#

the get_legal_moves function from the api is 400 lines long

#

making people implement boilerplate like that isnt really the goal anyway

hollow spruce
#

Im back

#

We setup wires

real sierra
#

@nocturne olive sadly i cant get it working with kotlin

nocturne olive
#

How weird

real sierra
#

4 years of accumulated dependency hell

#

despite about 3 hours of effort now

#

i cannot get these resolved

nocturne olive
#

Unfrotunate I guess

real sierra
nocturne olive
#

Guess that means I can't Chess bot

real sierra
#

it's 10am catdespair I've been wake way too long

#

I'm going to bed

dull egret
stray dragon
real sierra
sage crag
#

botted content farm

real sierra
#

every task today has just been head splitting

stray dragon
real sierra
#

no not yet

stray dragon
#

skill issue

stray dragon
dull egret
stray dragon
#

yum slop

sage crag
#

slop video evilChipiChapa

rigid snow
#

if so not really a new thing

stray dragon
#

i don't get how some people see ai generated clickbait thumbnail trying to fearmonger about ai and go "yes i should watch this"

dull egret
rigid snow
dull egret
#

I didn't know what I was hoping to get out of it, but your responses gave me a thing I can use, and so the whole process was of value

#

Thanks neuroHearts

honest drum
#

Hey guys mind if I ask some advice?

olive sable
#

go ahead

honest drum
#

Im starting to learn java in College is there anything you wish you woudve know or advice you can give me?

olive sable
#

i havent used java so i cant, but other people here could

honest drum
#

Do you use python?

olive sable
#

sometimes

honest drum
#

Whats your main one then?

olive sable
#

C++

honest drum
#

Im gonna have to learn that anyways

obsidian mantle
#

i dont get it, how does UCI tell engine which moved was made by the opponent of the engine

#

does it send entire chessboard in "position" command every time?

#

do i not see something

opaque sigil
#

Apparently yes

obsidian mantle
#

oh so im not supposed to remember the board

#

they just give it to me every time?

opaque sigil
#

i just know that shiro was really annoyed that it's apparently keeping track of the entire history enub

obsidian mantle
#

some website gives examples on position command but

#

i guess P is pawn

#

and p is.. small pawn? wtf is this

#

neurOMEGALUL is it some standard chess language or what

#

oh it actually is

#

fenstring huh

rigid snow
#

no programming neuroNo

#

canvas

obsidian mantle
#

sorry im not an artist neuroBwaa

hollow spruce
#

Yo

hollow spruce
#

All arts are art

#

We can't judge it

obsidian mantle
#

what do you think

tawny wren
#

I don't know whether I should completely rewrite one of the biggest functions, work on the main issues I'm having, or eliminate a lot of the weird bugs that I encountered.

pearl lake
#

first time using tampermonkey and is for doing this on the canvas neurOMEGALUL

midnight sigil
midnight sigil
obsidian mantle
#

yeah found the documents

pearl lake
#

The biggest difficulty i had was with interfaces
my lil brain just couldn’t understand

midnight sigil
#

am I tripping

pearl lake
#

you're right

#

how?

desert wave
#

you can set youtube to hold all comments for manual approval

real sierra
#

have an LLM review all comments

rigid snow
#

and the only comment is from them

midnight sigil
#

clickbait, AI-made content, and censorships SMH

real sierra
#

ok

#

I think today I need to

#

reorient myself

#

no more weird tangents, the goal is in sight

pearl lake
#

damn didn't know that

real sierra
#

I'm sorry lol I'm at the
point of needing a self pep talk

olive sable
real sierra
#

I remember when that sticker was made

#

I think it was for the discord hitting 10k members

#

back then everyone would lose their minds over a new sticker

#

especially one that wasn't just

midnight sigil
gaunt vale
#

mali gpus don't support gl_ClipDistance
android is a truly frightening operating system

oak cypress
#

i am running the script to evaluate how much of the cdawg canva is each factions, small problem 1 request is half a second minimum, (at least one request by pixel)
anyone know how to optimize this? (138 hours to get the 1 000 000)
can i post code?

tawny wren
#

I hate everything about this.

obsidian mantle
#

shiro did you just sleep 3 hours neuroD

real sierra
south needle
#

just use rust

#

at least i dont get random segfaults

real sierra
#

i dont either

#

all segfaults have a cause

#

and none of those causes are my library

#

i also dont know rust and it would take way longer to learn it on top of writing all this

opaque sigil
#

Segfaults are the best case neuroPogHD

#

btw I tried getting tcount working with kotlin earlier but it seems like the grammar is just fundamentally broken

#

Or there's an ABI mismatch, pick your poison

real sierra
#

yeah its horrifyingly cursed

#

i tried for 3 hours

#

and gave up

#

this is the api header

#

open to feature requests if there's any other convenience functions that would be good or other concerns

opaque sigil
#

Wait so does a bitboard contain the entire board's state

opaque sigil
#

Also I'd say turn some of those constants at the top into enums FOCUS

real sierra
#

wait

#

C has enums?

opaque sigil
#

Wouldn't the game result always either be checkmate or stalemate

#

Well yeah

real sierra
#

on the first turn it's neither checkmate or stalemate

#

ill update the docs to explain that better mhm

#

i also spotted a typo RAGEY

opaque sigil
#

Icy, fair enough if it's meant to be for each turn not just the end

tender river
#
typedef enum {
  A,
  B,
  C = 5,
} X;

roughly equivalent to

#define A 0
#define B 1
#define C 5
typedef int X; // int width undefined by the standard
tawny wren
#

Ok honestly, C++ is a nightmare.

opaque sigil
#

It is what it is

real sierra
#

C better

#

should've called it C-- CatLaughingAtYou

opaque sigil
#

Also idk if anyone is planning on writing a chess bot in c++ but conditionally wrapping it in an extern c certainly wouldn't hurt for the header

obsidian mantle
#

have to go shower because work tomorrow why cant i just make chess neuroBwaa

opaque sigil
#

I'm on my phone this would be annoying enub

#
#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif
#

There

tender river
#

at header start/end

#

makes sure symbol names are c compatible

real sierra
#

at the very start/end?

tender river
#

wherever you want

real sierra
#

lol yeah i just dont wanna do this wrong

tender river
#

only the contents will be extern c

real sierra
#

im totally glueless here

#

does it go before the other #includes?

tender river
#

defines/structs/enums dont have to be inside

#

just make sure functions are in there

#

no dont wrap includes in it

tawny wren
#

Imagine.

tender river
#

neuroXD the windows c++ experience

tawny wren
#

It's also using DXPlay. Which was discontinued a long time ago.

tender river
real sierra
tawny wren
#

So much of me wants to ignore the big function that is required for this game to function, but is gonna be an absolute pain in the ass to reverse engineer.

tender river
tawny wren
#

I fucking hate this.

real sierra
#

[-15]

obsidian mantle
real sierra
#

ok programmers i have a question about ethics

#

i would like another set of eyes to review the actual C code for the chess api

obsidian mantle
#

maybe they are using full [int_size] array

tender river
tawny wren
#

This doesn’t use any of that.

rough bloom
real sierra
#

i thought so

#

unfortunate

obsidian mantle
#

i would but i will steal it

real sierra
#

i mean

#

it'll be public for use

#

people have to be able to test their bots, after all

obsidian mantle
#

oh its server api

tender river
#

you can trust me with your code shiro neuroWow2

real sierra
#

yeah

#

i dont wanna release it too publicly

#

lest someone start developing their bot with it and then its not compatible with changes i make or something

tawny wren
#

Ok I don’t know why m_somethingJoystick has a type of void.

obsidian mantle
#

im trying to make a bot in c++ rn

real sierra
#

i just need one person who already doesnt have much to lose who i can get to review this

real sierra
#

thats awesome

obsidian mantle
#

but i will not have much time on weekdays neuroBwaa

real sierra
#

thats ok

#

the tournament hasnt even started yet

#

and im planning to have submissions open for a month when it does

#

not meant to be too much of a time crunch

tawny wren
#

Spicy.

obsidian mantle
#

does while stop on 0 or -1

minor crag
#

I hate nvidia

tawny wren
#

No fucking idea.

obsidian mantle
#

should be 0

obsidian mantle
minor crag
#

I JUST UPDATED MY GPU DRIVERS AND NOTHING WORKS

opaque sigil
real sierra
#

price of electricity too high nowadays to be driving a gpu everywhere

real sierra
#

in C, false == 0 and anything else is true

tawny wren
#

Oh yeah, here's another thing about C++.

real sierra
#

what the hell is tat

#

baldis basics ass gui

#

it has a certain charm to it actually

#

but its not of this decade

tawny wren
#

In case your wondering, the game is from 2001.

minor crag
#

I FIXED IT

tawny wren
#

A good amount of the underlying code is from 1997 though.

real sierra
#

reminded me of "plumo on the farm", a game from my childhood

minor crag
#

I don't even know what I did

real sierra
#

i got 1 minute into a youtube video of it and im raging because this person screwed up the minigame AINTNOWAY cmon

tawny wren
#

It's a bit of an odd series of games.

#

Pretty neat history though.

#

I love making a GUI by writing code by hand.

real sierra
#

rebuilding python after i built it before installing zlib

#

turns out that despite being "optional" to build python, it's a required dependency for pip

stark needle
real sierra
#

no...

#

the power went out for a moment

#

I was in the middle of building python and my VM was running

#

is it gg

opaque sigil
rough bloom
real sierra
#

I was running the tests for the build anyway

#

maybe it's fine

hard raptor
#

Do we like cursed things here?

real sierra
#

yes

hard raptor
real sierra
#

maybe "like" is the wrong word?

#

we're all used to it

rough bloom
#

sass >> c++

hard raptor
#

Im gonna write a whole runtime for it

real sierra
#

c++ so bad neurOMEGALUL

hard raptor
#

Sass transpiler doesn't give any errors, so i won't have to fork sass and make my own version of it

#

Probably gonna write the runtime in C++ as it seems the easiest... well.. nodejs is another option but FRICK js

#

Yeah i might also consider go

#

But i am yet too unfamiliar with the language to try this project with go

rigid snow
#

what the hell

#

let scss die please

hard raptor
rigid snow
#

if you want to preprocess use postcss

hard raptor
rigid snow
#

downside is you can't really have a singular runtime

#

because extensions

tender river
#

neuroCatModeOn whats postcss

hard raptor
#

But luckily my project isn't supposed to preprocess anything

rigid snow
#

it is webdev after all

hard raptor
#

Postcss is an absolute nightmare to work with imo.. scss is just comfy

rigid snow
#

i like how i only have what i want

#

scss feels like bloat

hard raptor
#

Why? I use almost everything it has

rigid snow
#

you shouldn't

hard raptor
#

Why?

rigid snow
#

most of what it was useful for is now in css

hard raptor
#

Still missing the mixins and the nesting tho

nocturne olive
#

I may or may not be a bit low on memory

hard raptor
#

And the functions

tender river
frail mortar
#

this is fun

rigid snow
real sierra
#

i built python without ssl

#

i have to build it again

#

i dont even know why it didnt work tho

#

i have the latest ver of openssl

rigid snow
#

that's why i said i like postcss because i just configure nesting and we're done

#

but if we're being fr just use tailwind it's so much nicer

#

than all of this bs

hard raptor
opaque sigil
#

why are you even building python shiro FOCUS

rigid snow
hard raptor
#

Yeah

rigid snow
#

define variables on the adjacent selector, use them in the other one

minor crag
#

Nothing is working

#

Everything Hates me

hard raptor
#

But then you have to deal with CSS's unreadable ness again

#

But i may also be using CSS in unconventional ways

rigid snow
#

oh i think i've seen that neuroGiggle

real sierra
#

i have to rebuild all of openssl before i can rebuild python

#

python why

opaque sigil
#

Does python have an option to use boringssl I don't remember

real sierra
#

unsure

hard raptor
#

For that project SCSS is simply the superior language above CSS.. cuz if you want that complexity with vanilla CSS it gets really messy

real sierra
#

please python

#

work

#

build time

silver zephyr
#

please python

#

break

tawny wren
#

I fucking hate this code.

#

It's like either you get lucky and get code like this that's easy to translate, or you have absolute nightmares that look seemingly simple.

silver zephyr
#

burn it

tawny wren
#

How about this beauty?

silver zephyr
#

🤮

tawny wren
#

I know I need to do this at one point, but I just don't want to.

silver zephyr
#

i do not blame you

real sierra
#

PagBounce built successfully

#

no more builds hopefully

#

now to figure out cffi

silver zephyr
#

no, all the builds

tawny wren
#

I just don't know what I want to fix...

silver zephyr
#

i dont think that code can be fixed

#

its too far gone

tawny wren
#

Reverse engineering is the most torturous form of programming.

tender river
#

reverse engineering has a clear goal and well defined methods of achieving it

#

torture is when you dont know what you want or do but dont know how to achieve it

#

or make it but its a mess that doesnt work

tawny wren
#

If you're so smart, then tell me what that function above does.

tender river
#

reserve1 is not actually an array but a struct evilShrug

#

struct of arrays of different types specifically

#

m_0008 is obviously amount of applicable joysticks or devices or whatever

tawny wren
#

If you wanna figure it out, go wild. It's pretty low on my priority right now.

tender river
tawny wren
#

Should I torture myself by rewriting a 4,000 line function, or fix the other shit first?

tender river
#

4000 line function neuroDespair

#

is it physics

#

physics code is the most convoluted game code i've ever dealt with

real sierra
#

vscode...?

#

what'cha doin lil guy?

tawny wren
#

Why the fuck is there a 64 bit integer?

stark needle
opaque sigil
tender river
#

also you shouldnt hide type casts neuroErm

#

*& is nonsensical without them

opaque sigil
#

actually yeah this isn't pointer arithmetic mb, this is just normal math eliv

#

you're probably right then

tender river
#

i am dEvilous

tawny wren
#

There is absolutely no reason this game should be using 32 bit integers, let alone 64 bit integers.

tender river
tawny wren
#

All this uses is either 8 bit int or 8 bit UINT.

tender river
#

evilShrug all i can tell you is it subtracts 2 from y pos

#

at most it could be z pos

tawny wren
#

It's 2D. There is no Z coordinate.

#

I've been working for half an hour, and this is all I managed to get out of that.

#

This is all super jank.

feral ledge
#

hi. anyone know why my system is cloning and making chromium mirrors, and the entirety of electron30? it's taking forever 😭
I think it's trying to make vscodium-bin?

 -> Found chromium-patches-124.tar.bz2
  -> Found drop-flag-unsupported-by-clang17.patch
  -> Found compiler-rt-adjust-paths.patch
  -> Found clang-19.patch
  -> Found default_app-icon.patch
  -> Found electron-launcher.sh
  -> Found electron.desktop
  -> Found jinja-python-3.10.patch
  -> Found use-system-libraries-in-node.patch
  -> Found makepkg-source-roller.py
  -> Cloning chromium-mirror git repo...
Cloning into bare repository '/home/emanresu/.cache/paru/clone/electron30/chromium-mirror'...
remote: Enumerating objects: 26408131, done.
remote: Counting objects: 100% (3919/3919), done.
remote: Compressing objects: 100% (1439/1439), done.
remote: Total 26408131 (delta 2632), reused 2508 (delta 2450), pack-reused 26404212 (from 4)
Receiving objects: 100% (26408131/26408131), 55.15 GiB | 28.51 MiB/s, done.
Resolving deltas: 100% (20656261/20656261), done.
Checking objects: 100% (67108864/67108864), done.
  -> Cloning chromium-mirror_third_party_nan git repo...
tender river
#

maybe it got removed from repos?

#

just delete it colonthree

#

nothing bad will happen trust

real sierra
#

i almost have cffi working

#

but something is happening that i dont understand Sadgi

feral ledge