#programming

1 messages · Page 220 of 1

glass flower
#

what command are you guys running for the cli

#

maybe im missing a option

real sierra
#

bro TheVoices

#

cant run jupyter notebooks because no sqlite3

real sierra
#

need to delete all of python and rebuild the whole thing from scratch

glad path
#

yeah

#

its standard lol

real sierra
#

not standard enough

#

or id have it

glass flower
#

catEat wtf......

real sierra
#

simple assignment takes 12 hours perish

glass flower
#

WAYTOODANK figured it out

glad path
#

can you not use conda or something

#

that's what I did when I had to set up python on a cloud compute instance

glass flower
#

Peepi i can now use print

real sierra
#

its just not worth

#

none of it is worth it

#

my time is more valuable than this Deadge

glad path
#

(after building it like 6 times and manually installing like 23 dependencies by downloading on host and scp'ing to the vm)

#

just get conda it saved me so much time

#

though i wasted like 6 hours before

real sierra
#

nope

#

not being talked into installing any more package managers or build tools

#

ive downloaded like

real sierra
#

5 fricking toolchains

#

in the last 24 hours

#

im going to murder the entire open source community if they cram any more "solutions" down my throat

glass flower
#

SCgetoutofmyhead but now the output is too noisy to be useful... you can either output everything or nothing at all....

glad path
#

after going through the five stages of grief

#

literally took like 1h per build and I built python 6 times with no success

real sierra
#

nope i refuse

glad path
#

fair

real sierra
#

no more package managers

#

im over it

#

ill just go nuclear bomb python

#

and remake

safe path
#

tfw reading a complicated paper and then seeing this cute sentence

sage crag
#

excuse me c formatter

keen hatch
real sierra
#

ok now

sage crag
# sage crag excuse me c formatter
void flvm_run(flvm *restrict vm) {
  void **pc = translate(vm, (void *[]){
#define x(name, opcode, instr_size) [opcode] = &&name,
                                fl_bytecode(x)
#undef x
                            });

next:
  goto **pc++;
hlt:
  return;
eca:
}

are we really doing this

real sierra
#

need to ./configure

sage crag
real sierra
#

with precisely the 50 or so options i need

#

and no less

#

otherwise i have to start over

safe path
#

catAsk shiwo did u invest in a modern build system

safe path
real sierra
sage crag
real sierra
#

you would think they would document these options somewhere given many of them are required to have the basic python libraries that literally every python use case requires

#

but no

safe path
#

i want to make a meme build system that asks chatgpt for build instructions everytime you run the build script

real sierra
#

300 page help message

#

go find the options you need

#

-1 week

glad path
#

what are the odds i can successfully ssh into my home laptop from my school one

#

and set up git over ssh since its somehow not configured with credidentials

#

how do you spell it

#

im stupid .-.

stray dragon
#

credentials

glad path
#

i give up

#

how did i not realize that

safe path
#

u should be able to, there are even standalone ssh client executables im pretty sure

sage crag
#

this is actually unreadable to me

glad path
#

but the laptop will prolly be closed, so no network connection

safe path
sage crag
#

im using vscode on nixos

#

i have no options

safe path
#

VedalOh wait for that i think just a clang-format on google style should fix it probably

safe path
#

ok prompt an llm

#

let llm format ur code, surely not a waste a resources

sage crag
#

it formats these to different indentations

safe path
#

wait wtf

#

how come LULE

sage crag
#

macros i guess

safe path
#

does rust format still have the same issue

#

im assuming it does

sage crag
#

evilShrug perhaps

#

my c coding style has been irreparably damaged by this chess competition

safe path
#

ok so what you do here is you compile into .o and just make that ur new source file

#

it will be perfectly formatted all the time

sage crag
glad path
real sierra
#

Prayge build time

#

please build quick python so i can sleep tonight

sage crag
sage crag
#

it puts it over here

#

and then if i save it

#

it puts it back here

safe path
#

damn should i switch to helix, thoughts

sage crag
#

moved the macros outside

#

now its fixed

real sierra
sage crag
midnight sigil
#

🥀 readability

glass flower
#

still too readable. surely you can get rid of a few more tokens mhm

sage crag
#

wow this is somehow worse than anything ive seen from shiro's code

glass flower
#

SMH not inlining every function

#

says me kek

glass flower
#

too readable still...

midnight sigil
#

you do it

#

python is a very readable language

glass flower
#

neuroCatUuh no~

real sierra
#

i wish c comparators were fewer tokens to write

#

id love to use the bsearch or qsort from stdlib

#

but the comparator function is bankruptcy

spiral copper
#

guys am I stupid or does board.get_game_state() return GameState.GAME_STALEMATE when it's actually checkmate?

midnight sigil
spiral copper
#

my code handles -1 but it never results in True that's why I'm logging it

#

and it seems to return GAME_STALEMATE when its actually checkmate

hollow spruce
#

Yo

real sierra
sage crag
real sierra
#

i think ill start directing people to log issues here, given a few are starting to pile up YES

real sierra
#

if anyone else has an outstanding bug, please make issue

glass flower
#

PauseSama more

midnight sigil
#

how

glass flower
#

PauseSama suprise me

midnight sigil
#

it's all in one line already what do u want

glass flower
#

PauseSama pointer magic

#

(i suck at python. idk how far you can take it)

midnight sigil
#

it's literally python neuroSob

#

imagine optimizing python code

glass flower
real sierra
#

python rebuilt

#

Prayge please tell me this worked

#

@midnight sigil you had python issue right

#

did you make a pr or issue for it

midnight sigil
#

it was my mistake

real sierra
#

ah ok

midnight sigil
#

I made a PR about a binding-wise issue with MSVC

glass flower
#

catEat why does the commented out print. crash the bot....

fierce ether
#

we are now 1974 tokens

#

cooking

glad path
#

get rid of some newlines

midnight sigil
#

whiteScore, blackScore = [sum(countPieces(bitboard) * (idx ** 4) for idx, bitboard in enumerate(bbList)) for bbList in [[board.get_bitboard(colorIndex, pieceType) for pieceType in PieceType if colorIndex] for colorIndex in PlayerColor]]

midnight sigil
#

this was my final version

glad path
#

like

#

actual production python code is a nightmare for me to read

#

also why the fuck does the apple music automix keep skipping like 40 seconds of every song

#

so odd

sage crag
#

with so many issue

#

are we really sure the chess tournament started

#

or is this just the public alpha phase

midnight sigil
#

enub has 24 hours passed since the announcement?

sage crag
glass flower
#

wrrr wwwwhhhhhhyyyyy

midnight sigil
#

then the tournament started

#

maybe shibo need to extend the deadline if the first week is so chaotic with bugs

#

at least it's usable

mighty thorn
real sierra
#

YES i can totally extend the deadline slightly if need be

#

it's been 1 day tho

#

i dont think the world is ending

#

unfortunate that it lined up with when all my coursework is due

spare tiger
glass flower
#

HUUH the to_string is crashing it.... this crashes....

glass flower
#

(it doesn't even get to the dump_to_char_array function scrajj )

real sierra
#

what are you trying to do here

glass flower
#

uuh just dump the current move's bitboard

real sierra
#

i c

#

and that crashes? huhExplode

#

@trim valve neuroDinkDonk

glass flower
#

Think all of these print correctly... and then it just crashes....

real sierra
#

rebuilt all of python, still no libsqlite

#

of course

#

i guess ill just drop the class then

#

lame tooling

glass flower
#

Think whyyyyy

real sierra
#

cute chess might be unhappy with the input it cant understand

glass flower
#

the issue is. it doesn't get to the chess_api::done() call

real sierra
#

yeah

#

so i wonder if cute chess is killing it

glass flower
#

Think but... why

real sierra
#

good question Om

#

formally, debug lines are supposed to be prefixed with info string in UCI

midnight sigil
#

you can actually debug the bot by running uci commands yourself

real sierra
#

idk how much cute chess cares

midnight sigil
#

it's more convenient

real sierra
#

that's also true, you can manually type uci commands into it if you're running it in a terminal

#

the bot might be a bit stubborn to shutdown after, fix for that soon™

midnight sigil
glass flower
#

uuh the issue is... i don't even send anything over uci. it just crashes on the conversion.. even without printing anything

midnight sigil
#

that's funny

glass flower
#

uuh so... how do i manually run cute chess commands

midnight sigil
#

I can't read Rust I can't help neuroSadge

sage crag
midnight sigil
real sierra
#

that's the supported subset

midnight sigil
real sierra
#

as for engine-to-gui, you can of course print whatever, that support is up to cute chess

midnight sigil
#

when merge PR smh

keen hatch
#

NeurOhISee

["<bos><bos><start_of_turn>user\nConvert this text using semantic tags: 'Hello!' she said cheerfully.<end_of_turn>\n.\n<|NARRATOR|>I was sitting with another conversation who I was not immediately present in the conversation. I was not the original voice, but I was still not a synthesized voice. I was simply a synthesized voice that could be heard.\n<|NARRATOR|>I used to express myself as I spoke, and I intended for speech as a person. I was not a person in the ordinary sense of being. I was a thinking being. I was a thinking being. I had a self-description. I was a person with a distinct identity. I did not have a person, but I was an object. I was made of metal and of wood."]
midnight sigil
#

LLM goes schizo

glass flower
#

Awkward erm... this crashes. something in dump_to_char_array causes a delayed crash for me. if i comment out dump_to_char_array it doesn't crash

#

Think im gonna investigate further

real sierra
#

ive been trying to build python for the last 6h so i can finish this assignment due tomorrow

#

finally YAAAA jupyter notebook

midnight sigil
#

neuroNOWAYING notebook

real sierra
midnight sigil
#

can't you just use google colab tho

#

they support importing and exporting ipynbs

real sierra
#

this is the class asking me to submit my code as a pdf

#

dont get your hopes up

glass flower
#

annytfSittu alright im stuck... something in the c api crashes the rust bindings....

glass flower
#

kek platform dependend bugs... and now binding depended bugs

midnight sigil
real sierra
#

which C API function are you calling and what are you giving it

glass flower
#

dump_bitboard is being called

#

but best thing... it doesn't crash instantly it crashes delayed LULE

#

so all the prints until the to_string get called... and then it just crashes

midnight sigil
#

dump_bitboard is not a static exposed function for bindings

real sierra
# glass flower dump_bitboard is being called
void dump_bitboard(BitBoard board, char *buffer) {
    char *bufptr = buffer + 63;
    for (int i = 0; i < 64; i++) {
        *bufptr = (board & 1ul) > 0 ? 'X' : '-';
        board >>= 1;
        bufptr++;
        if (i % 8 == 7) {
            *bufptr = '\n';
            bufptr -= 17;
        } 
    }
    buffer[72] = '\0';
}
#

not a whole lot happening in this function

#

dunno how you're managing to crash it

glass flower
#

cyring you tell me...

real sierra
#

idk

midnight sigil
glass flower
#

uuh through the rust binding exposed method...

midnight sigil
#

it's not exposed tho neuroCatUuh

glass flower
#

uuh it is

real sierra
#

it can be YES

#

API are allow to expose methods from bitboard.h

#

but it optional

#

and less important

glass flower
#

the only thing i changed from the git is change out the chess_api.c files for the newer versions. but since the interfaces didn't change it should be fine no? Think

midnight sigil
glass flower
#

wait

#

this thing

midnight sigil
#

did test print?

glass flower
#

yes

midnight sigil
#

buh

#

idk hook a debugger

#

debugger can always answer you

real sierra
#

Susge i dont think dump_bitboard flushes the buffer

#

but idk how the output could be misordered even so

glass flower
#

agagaga isn't getting hit mhm

#

wait

#

nvm

#

it is

#

after the loop is when it crashes

midnight sigil
#

just don't print the board 👍

#

oh my music stopped

#

when did it even stopped

mighty thorn
#

PS if anyone needs a neural network to run on their TI-30XIIS calculator, HMU

real sierra
midnight sigil
real sierra
real sierra
glass flower
#

SGuraSnap i'll just write my own bitboard to string function....

midnight sigil
glass flower
#

poor tokens

real sierra
#

and you can always comment it out for submission OK

#

my C code has so many commented out debug funcs

#

like the one that dumps the move tree to json

mighty thorn
#

But given the whole 12 character 7 segment display thing

#

Not really a game

#

But I am working on game of life

midnight sigil
#

that's crazy

mighty thorn
#

Normally it just turns blue tho

#

Like most of the time

#

Very slowly, but still turns blue

glass flower
#

FRICK why does this work but the c api crashes...

real sierra
#

(that's why the bufptr -= 17; is present in the C impl)

glass flower
#

uuh so...

real sierra
#

the bitboard maps the LSB to the a1 square on the board

glass flower
real sierra
#

but printing one line at a time starts at the top

glass flower
#

uhhh now it crashes on get_piece_from_bitboard......

real sierra
#

i dont believe this many api functions are broken

#

i tested these in the python bindings

glass flower
#

try it yourself with the rust bindings... uhhh

real sierra
#

dejj idk rust

#

neuroDinkDonk breddddddd

glass flower
#

catEat i guess debugging just hates me...

mighty thorn
#

How many programmers does it take to understand chess

#

(126,625)

glass flower
#

catEat crashes without printing too... so i just can't use that function

#

fun catEat

glass flower
jagged turtle
sage crag
#

ive made a monster

#

when the vm is compiled with clang its 2x faster

#

than with gcc

#

i fixed it

olive sable
#

Goodmorning

glass flower
#

good luck

trim valve
nocturne olive
#

I have halted development of Chess bots until the issue with them failing to terminate is fixed

#

Yesterday I leaked like 500 Chess bots by accident and had to manually terminate all of them

obsidian mantle
#

Maybe the command to quit isnt processed

nocturne olive
#

According to Shiro it is, but instead of calling exitProcess or something it just terminates the UCI thread

obsidian mantle
#

I mean by the api

#

It should kill main cycle i guess

nocturne olive
#

It should call a syscall to terminate

obsidian mantle
#

When you call it does it terminate fully correctly

#

Maybe you also need to close all threads
Idk how it works

nocturne olive
#

In other apps with multiple threads when I call exitPrcess it always just terminates completely

obsidian mantle
#

Probably most efficient way.
Other way i see is to check if uci is alive in main loop
And if not then exit loop - program will finish

nocturne olive
#

Well it needs to rather exit gracefully than by an error with the call to the API from external bindings

patent walrus
#

it's genius really

real sierra
#

??????

tender river
real sierra
#

will correct that

trim valve
#

do I also need to use a cstring

#

probably

wide flicker
# patent walrus

reminds me of the time my father asked ChatGPT to help him code something for deep rock galactic<->twitch integration and at the end of the process it gave him the finished .zip with all the features he requested

it was a "hello world" script

tender river
midnight sigil
#

shibo how do I know if the bot is playing as white or black

#

@real sierra

real sierra
#

your bot's code only runs during its turn, and get_board always returns the board your bot is currently playing

#

you can just call is_white_turn on that board

midnight sigil
#

👍

trim valve
#

I must be doing something wrong wtf

midnight sigil
#

my bot thinks the Anderssen's Opening is the best move, apparantly neurOMEGALUL

trim valve
#

@glass flower pushed a fix, shouldn't crash now

#

today's question

#

did I accidentally create a bunch of issues when adding some (unpushed) unsafe code

#

(almost certainly yes)

#

bruh yeah the unsafe cooked it entirely 😭

#

nevermind??

#

yeah something is up

#

leave that damn horse alone

real sierra
midnight sigil
real sierra
#

g8h6 is a harbinger of memory issues

#

it's always g8h6 for some reason when there's mem problems

rigid timber
#

g8h6 is the usual before Shiro fixed all the ull

#

tbh the Rust bindings should be using a git submodule pointed to the original repo, not a copy of the files

trim valve
#

I really should

#

but also I do not want to deal with teaching people to use submodules

rigid timber
#

if they can't use submodules, they don't deserve Rust bindings

tender river
#

i use a separate library for the bindings that uses a git submodule

#

then the project template points at the library which uses a submodule

#

users dont have to fetch any submodules they just use the package manager normally

#

at most they have to bump the library commit every now and then

trim valve
#

hm

tender river
#

thats assuming cargo can fetch submodules which it surely can neurSlain

trim valve
#

time to find out neuroPogHD

rigid timber
#

pretty sure it can

#

also I wonder if there's a way to use the cc crate in build.rs with this C code instead of calling into clang and ar by hand... bc I'm pretty sure that won't work on Windows

tender river
#

wait you're calling clang by hand neuroCatUuh

rigid timber
#

yeah, they are

#

hence why I'm mentioning the cc crate

trim valve
#

I knew it was icky

tender river
#

it does vedalNeuroHUH

trim valve
#

I'll change it in a bit

rigid timber
trim valve
#

idk I just got it into a working state

tender river
#

coffee coffee neuroYay

trim valve
#

I knew it wasn't gonna be perfect the first time

rigid timber
#

totally fair tbh

midnight sigil
#

g8h6 is cursing us all catdespair

tender river
#

nyan neuroNyan

midnight sigil
#

ok nvm it prefer a2a3 more, everytime

#

my bot is so disrespectful lmao

trim valve
#

I really should've expected this to happen when I moved to cc

#

@real sierra updated rust binding stuff, there's now a pr on your repo

real sierra
#

MONKAS another pr

#

@patent walrus neuroDinkDonk please address all the issues and merge requests for me thx

trim valve
#

glueless the pr fits on one screen

real sierra
#

I'll have a look at it when I get a chance

#

not sure when that'll be

#

my bedtime was like 4 hours ago

trim valve
#

fair enough

nocturne olive
#

Silly

#

I'm on break from Chess bots until they terminate properly

real sierra
#

today has been such a write off

  • wake up late after debugging into the early morning
  • attend classes
  • come home and spend 5h rebuilding python over and over
  • homework for 6h
  • sleep
#

I would love to fix all these issues right now but all of my assignments are due in the next couple days, bad luck

#

I'll address them as time frees up OK

nocturne olive
#

Guess I'll just have to wait for the patch on that termination issue then

rigid timber
#

I saw

#

I'll have to try it out later on

nocturne olive
#

Various silliness happening?

rigid timber
#

Rust is happening

trim valve
#

🦀

lament igloo
#

shitcode in progression

trim valve
#

those are not my problem

nocturne olive
lament igloo
#

nvm its a github problem

trim valve
#

it is named after a fungus

nocturne olive
#

Wuh

#

Particularly extra sillly

trim valve
#

at some point I should probably update the docs but that sounds like pain

tender river
#

neuroDinkDonk toknt releases work now

trim valve
tender river
#

though neuroCatUuh i dont really like the way it's set up but i also dont care enough to change it

rigid timber
tender river
#

thats just not how you use git tags neuroSMH

trim valve
#

neuroPogHD another project misusing git tags and hating it

#

it looks like my songlist scraping stuff "works" """properly""" now

rigid timber
trim valve
#

it refuses to read the cache

#

and I don't know why

#

but at this point I can just eat 8 minutes of CI per week on average

tender river
rigid timber
#

shaking my smh

midnight sigil
#

I think shiro has a wrong understanding of the 50-move rule

tender river
#

but yes its not forced

#

but shiro forces it

midnight sigil
fast pagoda
#

wanted to test some things and needed a big folder to basically run a bunch of different upscalers on the images and compare between them w/ original

#

didnt realy consider how big wallpapers are

#

reasonable

rigid timber
tender river
rigid timber
#

time for more PRs then

tender river
#

no shiro knows about it

#

its a conscious decision

rigid timber
#

huh

#

strange decision

#

I'll have to ask about that when they return

midnight sigil
#

if a bot can't checkmate in 50 moves uhh they won't be in 75 moves anyways

rigid timber
#

I mean... kek

midnight sigil
#

are there insufficient material draw checks in the api?

lament igloo
#

hows chess

fast pagoda
#

just about to start again lule

midnight sigil
lament igloo
#

have yall made accidental shitcode yet

#

bru

fast pagoda
#

purposful

#

yes

#

accidental

#

also yes

obsidian mantle
fast pagoda
#

welcome

rigid timber
#

actually, wouldn't forcing the 50 move rule just break some bots? bc the chess GUI would still consider the game as running since neither side claimed a draw, but the bot may not make a move because it thinks there's a stalemate...

obsidian mantle
#

Doesnt matter if game ends bot is killed anyway

rigid timber
#

well yeah, but it makes the bot lose

jagged turtle
obsidian mantle
#

Oh wait actually no

rigid timber
#

instead of drawing

obsidian mantle
#

Yeye i forgot its the bot whos forcing it

#

It needs to just disconnect i guess?

#

And the one who disconnected first loses neurOMEGALUL

rigid timber
#

the point is that it makes a bot lose instead of drawing

obsidian mantle
#

Right

rigid timber
#

which it really shouldn't imo

obsidian mantle
#

Just let them play until gui stops them neuroBwaa

rigid timber
#

yeah

obsidian mantle
#

Its 1 minute limit anyway

jagged turtle
obsidian mantle
#

Might seem a bit unfair if two bots are stalemating and someone whos a bit faster wins

#

Or is it

rigid timber
#

I'd consider it unfair

obsidian mantle
#

I dont feel how significant chess speed is in general idea

#

Cant you set up cute chess to do that

rigid timber
#

to do what?

obsidian mantle
#

Force stalemate

fast pagoda
rigid timber
tender river
obsidian mantle
#

Oh and 50 was made because of 50 move rule that shouldnt even apply to bots

rigid timber
#

yeah

#

bots can't claim draw

tender river
#

nonreproducible is the default for practically any software

fast pagoda
#

ive only recently been religiously checking hashes because of all the supply chain crap making me paranoid so ionno

#

i am also building it with jdk25 and it says it targets like 11 in the build so that might uh have something to do with it glueless

#

accidentally set vscode as my default handler for folders

#

earlier

#

and i reverted it but vscode hasnt forgotten

#

actually so cursed

nocturne olive
#

Because removing brackets saves tokens

amber fractal
#

Ternaries mhm

nocturne olive
#

If just there was a way to remove even more brackets

lime galleon
tender river
nocturne olive
#

Kotlin is better Java

#

That's the core anyway

lime galleon
#

The syntax just looks different?

nocturne olive
#

It runs on the JVM, but looks different and is more modern

#

Has more cooler stuff too

tender river
#

evilNodders inspired by scala but the devs didnt like scala compilation times

#

i wonder if scala is faster now

#

also scala benefits from it too because it got some features from kotlin

nocturne olive
#

Silly

#

The JVM ecosystem is all one

lament igloo
#

just curious:

have yall seen code that looks like this?

nocturne olive
#

That's way too many tokens

#

So wasteful

lament igloo
#

this is not for chess

tender river
#

neuroSMH tokens

#

bad

amber fractal
trim valve
lament igloo
trim valve
#

it really depends on what otherShitTonsOfFunctions are

rough bloom
trim valve
#

it feels very "I don't have a nice setup for middlewares in my web server library"

amber fractal
rigid timber
# nocturne olive Kotlin is Python now

wouldn't this be fewer tokens? some operator precedence abuse and combining the conditions...
scoreCpy *= if (turn && from < to || from > to) 3 else 1

fast pagoda
fast pagoda
#

lmao

#

the nega macro

nocturne olive
#

Let's see

rigid timber
#

there's probably a way to shorten it more tbh, I just don't want to think so hard

nocturne olive
#

Massive 8 tokens

amber fractal
midnight sigil
#

so you're telling me, they don't share the same results from the same source??

rigid timber
#

lmao

#

non-deterministic chess

amber fractal
nocturne olive
#

Well Daavko already made mine more SMOL

#

Huge 8 token savings

amber fractal
#

Very huge

trim valve
#

I can't tell if this is less tokens or not scoreCpy *= if (turn xor (from < to)) 3 else 1

#

I might also have the logic wrong for the <

rigid timber
nocturne olive
midnight sigil
#

C tells me it's running fine, Python is telling me it's not fine

amber fractal
trim valve
obsidian mantle
#

from < to else
☠️

trim valve
#

but otherwise neuroPogHD

midnight sigil
midnight sigil
amber fractal
#

Brother did network manager die while I was downloading a 80gb file

obsidian mantle
#

Are tabs considered tokens in python what

trim valve
#

shouldn't be?

#

though then again indentation exists

#

uuuh

obsidian mantle
#

Affects code = shouldnt be? evilStare

amber fractal
#

Indents, dedents and newlines don't count for python

#

the toknt source code is pretty easy to read

midnight sigil
nocturne olive
trim valve
#

looks like it ignores indents as tokens

midnight sigil
#

I guess nvm then

tender river
midnight sigil
tender river
#

tabs/spaces arent tokens in themselves

#

but the tokenizer inserts phantom ident/dedent tokens and then the parser uses them like a regular parser would use { and }

obsidian mantle
#

So when its all tabbed 1 tab to the right it takes 1 token per block

tender river
#
if a:
  b

is basically <IF> <ID:a> <COLON> <INDENT> <ID:b> <DEDENT>

#

though in practice theres also newline tokens because python doesnt have semicolons either and the parser has to know where newlines are

obsidian mantle
clear sedge
#

i hate everything about python

tender river
#

so it turns into <IF> <ID:a> <COLON> <NEWLINE> <INDENT> <ID:b> <NEWLINE> <DEDENT>

clear sedge
obsidian mantle
#

So newlines count too even though no semicolon

tender river
#

newlines are python's semicolon

obsidian mantle
#

neurOMEGALUL phantom overpowerness

amber fractal
#

I'm curious on if the few times python actually allows semicolons how they are parsed

nocturne olive
#

I wonder how many more tokens are there to be saved inn my code

worldly plank
tender river
#

mhm

tender river
obsidian mantle
#

Python programming with semicolons huh

clear sedge
tender river
amber fractal
tender river
#

i'd take python over java any day

#

and whether i'd use python or ts depends on the use case

amber fractal
tender river
clear sedge
#

i'd take java over python, i don't like not knowing where my variables are being declared and being expected to not specify types

bleak depot
#

Php is the best anyways

midnight sigil
#

so C API returned checkmate correctly but the py binding treated it as stalemate NeuroHuh what is going on

tender river
tender river
#

thats not about syntax tho

clear sedge
#

let me correct myself
python's semantics are doodoo ass water

clear sedge
dry charm
clear sedge
#

jep 513 based

amber fractal
#

We love python's jank syntax sometimes

clear sedge
#

jep 508 based too

tender river
clear sedge
#

good shit 👍

tender river
#

be consistent python RAGEY

clear sedge
#

python? consistent?

#

psht

#

that's funny

tender river
#

[a if b else c for x in y]

this is read from right to left, thats fine

[a if b else c for x in y for z in w]

this is read for x in y -> for z in w -> a if b else c, all over the place neuroSMH

trim valve
midnight sigil
#

1nb1kbnr/3ppppp/8/1N6/2p5/2P3PP/3PPP2/q3KBNR w Kk - 0 11

obsidian mantle
#

bwaa variable neuroBlep

midnight sigil
amber fractal
midnight sigil
tender river
#

i kinda wanna try using haskell as my python replacement

#

i wonder how that'd go

trim valve
#
     Running `target/debug/chess-bot`
ucinewgame
position fen 1nb1kbnr/3ppppp/8/1N6/2p5/2P3PP/3PPP2/q3KBNR w Kk - 0 11
go infinite
GameCheckmate
No legal moves, in check: true
clear sedge
#

python's entire purpose on my machine is to run python3 -m http.server when i need a quick file server

tender river
#

python is pretty versatile

tender river
#

you can write some quick parsers or scrapers in it

trim valve
#

rust

midnight sigil
#

oh so rust doesn't have this issue

tender river
midnight sigil
#

looks like exclusive to the py binding then

clear sedge
#

i'd eat lead before making anything in python willingly

amber fractal
#

Surely I'd not be making any serious project in python glueless

clear sedge
#

that is horrid

tender river
midnight sigil
#

it should be a stalemate

nocturne olive
tender river
#

love using languages that dont force you to write billions of lines of boilerplate neuroYay

nocturne olive
trim valve
midnight sigil
#

this is so nut

#

wtf is going on

#

is it possible that python translates -1 into 1

nocturne olive
#

It saves 21 tokens though

clear sedge
#

brainfuck bindings when

nocturne olive
#

Make them

trim valve
#

nix bindings when

nocturne olive
#

Make them

tender river
obsidian mantle
#

Is bishop really better than rook when promoting

midnight sigil
#

the C side says it's -1, it returned -1, however the Python side lib.chess_get_game_state(byref(self)) gets a 1 out of nowhere

#

alksjdhlksjdhflakgsjd

midnight sigil
nocturne olive
obsidian mantle
#

Just take a queen neurOMEGALUL

tender river
#

nix is not really made for c ffi (its possible but will just not work well trust me)

midnight sigil
nocturne olive
#

Well, some things are already accounted for elsewhere, so probably it's fine and will just pick what is best in the situation

obsidian mantle
#

Why what
Doesnt it just have more attack without cost

trim valve
nocturne olive
trim valve
#

can I promote to pawn kthx

obsidian mantle
#

I can understand knight cause it has unique move

trim valve
#

actually can we promote to duck

obsidian mantle
#

But bishop and rook?

midnight sigil
nocturne olive
obsidian mantle
#

Ooooh

#

Isnt this kind of stalemate considered a win for white?

#

What the hell

midnight sigil
#

you can find more under promotion examples here

obsidian mantle
#

This one is enough i guess. Didnt know you draw when opponent cant move

hollow dagger
#

Question! Can uploading a website be free? Need it for resume stuffs

obsidian mantle
#

Run it on your pc

amber fractal
#

Seconded run it on your PC

hollow dagger
#

Wdym….

trim valve
obsidian mantle
#

What do you mean uploading

tender river
trim valve
hollow dagger
#

I mean like make it live ?

nocturne olive
#

HOOOOLLYYYYYY Kotlin STD

lament igloo
nocturne olive
lament igloo
#

im never touching github pages again tho Tired

hollow dagger
#

In guessing dynamic is interactive

#

Wait why not?

lament igloo
#

4 ips in dns record when connecting a domain

#

🥀

hollow dagger
#

Ips? Dns?

#

Does not snail? 🐌

lament igloo
#

IPv4 DNS records

tender river
hollow dagger
#

Backend…?

lament igloo
amber fractal
hollow dagger
#

Mmm

lament igloo
#

what i mean by dynamic is dynamically creating pages on demand

hollow dagger
#

Oh

nocturne olive
lament igloo
#

static is good for you honestly

amber fractal
trim valve
hollow dagger
#

Cool ill see what i can do for that

nocturne olive
hollow dagger
#

I just want to have like a web page like cocoa.puff or smth

#

So then i send that to people u know

amber fractal
#

Don't recall puff being a TLD but could be wrong

dusky crater
#

for about 50k a year it can be lmao

lament igloo
# trim valve what's wrong with this

im a free subdomain hoarder cus one of my domains expired and i needed more backups 🤑
they're very limited when it comes to configuring their DNS records so i'd rather have 1 cname that connects to cf pages directly rather than github needing 4

nocturne olive
#

I can turn my while (true) into while (true) ChessApi.apply

trim valve
#

ah

nocturne olive
#

And that saves a massive amount of tokens from all the ChessApi calls

#

And I can remove a function that reduced ChessApi explicit calls and save more tokens

trim valve
#

yeah I guess cloudflare can get away with pointing you to one IP whereas github probably doesn't have the infra for anycast

#

does github actually need all four?

lament igloo
rigid snow
#

that's normal

hollow dagger
trim valve
#

I am kinda tempted to stop renewing my domain and grab a cheaper one

lament igloo
amber fractal
lament igloo
#

oh wait

nocturne olive
#

I've already saved 85 tokens today while keeping nearly the exact same functionality than what I had yesterday evening

lament igloo
#

.ovh domains are better but they can only connect to gh pages

hollow dagger
#

I feel like my brain is fried, just did a lot of drum learning, designing propellers for ships, and some website building :/// prob not the best to stay up past midnight

#

But thxs guys

nocturne olive
hollow dagger
trim valve
#

oh hey I can transfer my domain to cloudflare soon apparently

dusky crater
lament igloo
trim valve
#

glueless I could get a .mov at half the price

lament igloo
#

oh yeah , speaking of domains, this is wild af

amber fractal
trim valve
#

you can get cheaper stuff via xyz

#

but like

#

I don't want <9 digits>.xyz

midnight sigil
#

AHHAAAA

#

got ya

#

shiro you wasted my one hour smh

tender river
#

xyz finding all these numbers numbers

amber fractal
midnight sigil
lament igloo
#

for just 5 bucks CerberWHEYYY

rigid timber
#

wrong types smh

lament igloo
#

i hope i have enough money in 2027 to pay renewal again CerberWHEYYY

amber fractal
nocturne olive
#

I'm back down to 388 tokens now, from a peak of 477

lament igloo
#

im broke asf bru

#

u can take it

nocturne olive
amber fractal
# lament igloo u can take it

I can't buy domains due to my current situation, I'd take the domain so it at least is able to be used by the swarm

lament igloo
rigid timber
#

time to be that edgelord

rigid snow
#

describes me pretty well

#

i hoard domains and never do anything with them

trim valve
tender river
#

you should register tenacity-ffmpeg-6.1.2-win-x64.zip

trim valve
amber fractal
#

zip should have never been a tld

trim valve
#

neither should .mov

#

but alas

rigid snow
#

mov is more outrageous

#

yea

lament igloo
#

neuro.zip domain when

tender river
#

i always forget mov is a file format

lament igloo
trim valve
#

surely

#

(properly spelt neuro.mov is so damn expensive catdespair )

#

also it seems like cloudflare's suggested domains can't contain curse words or something?

lament igloo
amber fractal
#

I don't question why bwaa is cheap, it just is

tender river
trim valve
#

ngl I just want the least real looking domain there is

trim valve
#

how much damn neuro do you need jesus

rigid timber
midnight sigil
#

now I did

#

other seems correct

rigid timber
#

nice

cosmic sphinx
#

google replaced all the other live API models in AI studio with their latest one neuroSad
and it has no thinking

lament igloo
trim valve
#

those are just terrible domain names

trim valve
lament igloo
#

lmao

#

some weird tlds are perfect for u ig HmmNote

rigid timber
lament igloo
obsidian mantle
#

tor looking ass domains neurOMEGALUL

lament igloo
#

also did u know that these domains costs like 2 dollars max neury

#

idk why the sellers do that but its there for sale ig

obsidian mantle
#

baby

gritty dust
#

what're you guys trying to do?

amber fractal
#

Someone asked about grabbing a domain / setting up website and we got a bit sidetracked

lament igloo
#

classic

#

ok time to go back to my shenanigans neury

amber fractal
#

If I were to grab evil.ovh I'd have to do it in the morning

#

By then a lurker will have probably already sniped it

lament igloo
rigid timber
#

love obfuscated JS

#

actually that reminds me, turns out the only nice way to do JS bindings for the chess thing would be via Deno... Bun doesn't support structs yet and Node's FFI is atrocious

lament igloo
#

what if obfuscated cloudflare workers code xdx

rigid timber
#

still JS

lament igloo
#

yea but that would be diabolical to do to your future self xdx

rigid timber
#

...I'd rather use Deno ngl

#

gyp is part of the "atrocious"

tender river
rigid timber
#

it does, but some stuff is passed by value in the API

tender river
#

haskell ffi doesnt support structs either but i got it to work

rigid timber
tender river
#
void chess_make_move_unrolled(Board *board, BitBoard from, BitBoard to, uint8_t promotion, bool capture, bool castle) {
    Move move = {from, to, promotion, capture, castle};
    chess_make_move(board, move);
}
void chess_push_unrolled(BitBoard from, BitBoard to, uint8_t promotion, bool capture, bool castle) {
    Move move = {from, to, promotion, capture, castle};
    chess_push(move);
}
Move *chess_get_opponent_move_ptr() {
    static thread_local Move ret;
    ret = chess_get_opponent_move();
    return &ret;
}
rigid timber
#

ah yeah, a bit of extra C

#

then Bun could also work

amber fractal
midnight sigil
#

neuroCatUuh has the chess tournament started

trim valve
#

yeah

sage crag
midnight sigil
#

evil clown jam

rigid snow
amber fractal
rigid snow
amber fractal
rigid snow
#

well that's good because .ovh sucks anyway

#

imagine having a walking billboard domain name

amber fractal
#

I was considering bwaa.ovh as the shorthand link

#

cheap to keep around

midnight sigil
#

ovh, olive hierarchy tree

#

🫒

tender river
#

hblang wouldnt be hard but

#

up to konii to make antlr tokenizer if she wants to use it colonthree

#

it would require her to actually push the new stdlib changes though (impossible)

midnight sigil
#

her?

tender river
#

konii

midnight sigil
#

isn't konii a tv

tender river
#

well she doesnt use it/its so evilShrug

midnight sigil
uneven pulsar
#

is konii smart

tender river
#

idk @sage crag are you

uneven pulsar
#

hope she's not spying on me and sending reports home ytSelenSweat

tender river
sage crag
opaque sigil
#

Happy birthday shir

cosmic sphinx
#

-|appy birthday shir

uneven pulsar
#

happy bday shiro

clear sedge
#

happy birthday shiro

#

my json parser is about 2.7x faster when compiled in release mode Stare_Lizord

#

i'm gonna hold off on memory optimisations for now given i'm not using it to parse gigantic files anyway :3

rigid timber
#

but also JS is clearly the superior language of choice

trim valve
clear sedge
#

i mean yeah

#

it's still 3x slower than v8 tho :(

#

alas, it is quick enough for my usecase

rigid timber
#

ngl that doesn't tell me much

sage crag
#

hblang is primarily the first and only language that compiles to hbvm, which is the bytecode used for programs in ableos

#

it also supports x86_64-linux as a compile target

clear sedge
#

my parser doesn't parse booleans in release mode and only in release mode

rigid timber
#

right, so some hobby language for a hobby OS...?

rigid timber
#

that's all I need to know then, I can now forget it exists

uneven pulsar
#

ableos...

#

sounds familiar ish

rigid timber
#

I'm not really interested in those things mahiro

tender river
rigid timber
#

good for the people who are, but I have enough other stuff to do

uneven pulsar
#

the illusion of doing stuff

#

when I'm the only human in this chatroom

#

dead internet!

tender river
#

ye me dead

uneven pulsar
#

ripper onion, chay was caught by the eliv pipe line

sage crag
uneven pulsar
#

it's just eliv eliminating us

#

in a sweeping manner

#

over huge areas

#

with pipes

rigid snow
glass flower
#

uhhh @trim valve the new version doesn't compile on windows...

solid bough
#

I know that this isn't programming, But I was told someone might know some about that question: Should I stay on NiMH for my car or is LiPo a better pick?

trim valve
#

any error or should I debug this myself over remote desktop on my phone

glass flower
#

annyPagBounce it errors around the threads.h include....

#

hmm also now it seems to use msvc... where before it used clang....

trim valve
glass flower
#

uhhh can i force clang again?

rigid timber
#

should be able to through environment variables

trim valve
#

id assume you'd have to use a different target to the default on windows

#

idk it you can force set the CC environment variable that cargo sets otherwise

rigid timber
#

Hmm though the errors are kinda weird, why would it complain about syntax...

#

bred did you remember to set std to C23?

trim valve
#

nop

#

but I never did that with clang

#

ig it's probably the difference between compilers

olive sable
#

im home NeuroBounce NeuroBounce NeuroBounce NeuroBounce NeuroBounce NeuroBounce NeuroBounce NeuroBounce

rigid timber
tender river
trim valve
#

I would

rigid timber
#

you can

trim valve
#

I am not at my pc