#programming

1 messages · Page 214 of 1

real sierra
#

I have

honest scaffold
real sierra
#

-# e_

#

smol

nocturne olive
#

SMOL

#

-# I don't know how SMOL really, looks like a normal emote to me

real sierra
solid bough
#

I'm back

#

Hi Shiro~

solid bough
solid bough
#

That's the spirit

real sierra
#

the thread sleeping for the semaphore fails ungracefully when interrupted

solid bough
#

Damn

solid bough
real sierra
#

I think it's better to be seen if it does than not

tender river
solid bough
tender river
sage crag
#

nyum leaf

tender river
solid bough
#

Hi konii 2.0.1

tender river
#

erf let me write docs and surely ready to ship

solid bough
#

Everything is fine:

real sierra
#

still don't know what the cause is, or if it's accidentally been fixed in the latest API version

#

probably castling or knight moves related

sage crag
solid bough
rigid snow
#

if that's written by ai

#

idk

#

it's not

#

i don't believe that

solid bough
rigid snow
#

yeah

#

this is human code

real sierra
solid bough
#

And that time I wrote it by hand

rigid snow
#

that wans't really the point

solid bough
sage crag
#

not in original repo SMH

solid bough
rigid snow
solid bough
sage crag
rigid snow
rigid snow
#

also initialisation is a rare spelling

#

llms don't do rare spellings

solid bough
solid bough
rigid snow
#

log_info("Sometextidc", logg)

solid bough
solid bough
sage crag
#

what is logg for though Awkward

rigid snow
#

yeah this

#

no ai

sage crag
#

definitely not this part

real sierra
#

I don't think it's that bad

#

reasonable way to easily enable/disable logging in dev code

tender river
real sierra
#

should use logging levels and stuff still

real sierra
#

don't you have access to the repo

sage crag
tender river
real sierra
clear sedge
sage crag
#

or log level

clear sedge
#

what are you ON ABOUT

real sierra
#

JUST SAW THAT

tender river
#

lazy colonthree

real sierra
#

banned

opaque sigil
sage crag
#

this also true

#
some_bool = "false"
if some_bool:
  print("how did we get here")
real sierra
rigid snow
cosmic sphinx
#

did chinese companies cook today @sick owl

solid bough
# rigid snow yeah this

Oh, I just made that that I can just put any text and have a "[SYSTEM] textidc" and "[INFO] textidc" and "[WARNING] textidc" and also "[ERROR] textidc"

sage crag
rigid snow
#

what

solid bough
#

Just some basic logging module evilShrug

real sierra
sage crag
#
from typing import NoReturn
from sys import exit, _getframe, stderr
from pathlib import Path
from pprint import pformat

def srcloc(skip: int) -> str:
    f = _getframe(skip)
    name = f.f_code.co_name + " @ "
    if name.startswith("<"): return ""
    return f"\x1b[30m[{name}{Path(f.f_code.co_filename).name}:{f.f_lineno}]\x1b[0m "

def exceptionloc(ex: BaseException) -> str:
    tb = ex.__traceback__
    if tb is None: return ""
    while tb.tb_next: tb = tb.tb_next
    f = tb.tb_frame.f_code
    name = f.co_name + " @ "
    if name.startswith("<"): return ""
    return f"\x1b[30m[{name}{Path(f.co_filename).name}:{tb.tb_lineno}]\x1b[0m "

def log(kind: str, escape: str, fmt, skip) -> None:
    if isinstance(fmt, BaseException): loc = exceptionloc(fmt)
    else: loc = srcloc(skip)
    print(f"{loc}\x1b{escape}{kind}\x1b[0m: {pformat(fmt)}", file=stderr)

def error(fmt, skip: int = 3) -> None: log("ERROR", "[31m", fmt, skip)
def info(fmt, skip: int = 3) -> None: log("INFO", "[32m", fmt, skip)
def warn(fmt, skip: int = 3) -> None: log("WARN", "[33m", fmt, skip)

def die(fmt, code: int = 1, skip: int = 4) -> NoReturn: error(fmt, skip); exit(code)
#

cry, weep

#

this is my terrible code

solid bough
# rigid snow what

TLDR: I just wanted an easy way to just write a function with the wanted result and be able to re-use that py file on other code.

rigid snow
tender river
sage crag
solid bough
#

I'm still pretty basic

sage crag
#

nope

#

everything that needs to be hinted is hinted

tender river
#

thats enough MyHonestReaction

#

no more needed

real sierra
#

add more

solid bough
#

And I personally love that look: 22/09/2025 22:28:34 [INFO] Checking if the data is set up 22/09/2025 22:28:34 [INFO] Data is there. 22/09/2025 22:28:34 [INFO] Loading Data... 22/09/2025 22:28:35 [INFO] ('Loaded', '4000', ' Samples.') 22/09/2025 22:28:35 [INFO] Attaching more channels and splitting the data. 22/09/2025 22:28:36 [INFO] Channels attached and split. 22/09/2025 22:28:36 [INFO] Shuffling the data... 22/09/2025 22:28:36 [INFO] Data got Shuffled successfully. 22/09/2025 22:28:38 [INFO] Setting the image format. 22/09/2025 22:28:38 [INFO] Building the model from Cache or Scratch. 22/09/2025 22:28:39 [INFO] Imported SGD from keras.optimizers 22/09/2025 22:28:39 [INFO] set up the optimizer successfully. 22/09/2025 22:28:39 [INFO] compiled the optimizer. 22/09/2025 22:28:39 [INFO] made a Model image. 22/09/2025 22:28:39 [INFO] Done, Training the Model (initialisation) 22/09/2025 22:28:39 [INFO] Epoch 0 of 500

real sierra
#

needs Optionals and Unions

sage crag
#

NOT

rigid snow
real sierra
#

I pass fmt=25 to log

solid bough
#

I'm perfectly happy with the logging

rigid snow
#

that's all that matters

tender river
#

shiro which type hint do you think best describes you

real sierra
#

maybe Optional[Shiro]

#

sometimes I Shiro

#

sometimes I nothing despairge

tender river
solid bough
#

I was doing py log_info(text="textidc", logg)

sage crag
#

Erm it works differently than it used to

opaque sigil
#

if you ever feel like adding more stuff to the logging there's a nice built-in module for that so you can avoid having to check if debugging/logging is enabled every time

sage crag
#

it used to properly categorise the exception and print it Erm

#

oh is it because its not being called from in a function

#

funny

#

wait nevermind

#

its still doing it

#

just has the correct srcloc

#

eca hca svc env xec sys rte

#

pick a name

opaque sigil
#

svc

sage crag
solid bough
sage crag
#

most of python lets you do this

opaque sigil
sage crag
#

with the exception of loops

solid bough
opaque sigil
#

first one i recognised

sage crag
#

they are names for environment calls

#

in my third vm project this month

opaque sigil
#

just do sys then

sage crag
#

but if vm context

#

sys -> system SMH

solid bough
#

I don't do VM on the Deep Doodle Code

sick owl
#

Native streaming audio out and in is a severely undercooked part of the local space

solid bough
rigid snow
#

2.5-omni was pretty resource intensive and i have not heard of anyone running it locally

sage crag
solid bough
sage crag
#

uhh no?

rigid snow
#

not trusting your own code GIGACHAD

solid bough
#

What do you mean "if vm context"

cosmic sphinx
sick owl
#

Sweet

tender river
#

bytecode vm

solid bough
rigid snow
#

java virtual machine ✅
virtualbox ❌

sick owl
#

I will say I don't find Deepseek 3.1 Terminus that exciting rad model name aside

#

But the Qwen releases are very cool

solid bough
#

All I know of VM is Hyper-V

rigid snow
#

yeah not that

cosmic sphinx
#

horror neuroCross

rigid snow
#

what the fucky

#

spoiler pls

sage crag
#

i dont like vedal plush 2

#

original vedal plush better classic

solid bough
olive sable
rigid snow
#

nevermind i give up

solid bough
#

My bad

#

Sorry

rigid snow
#

what are you apologizing for

solid bough
rigid snow
real sierra
#

flawless first try

#

everything added after the first run is a bonus feature

cosmic sphinx
#

are we really questioning why LLM's do something atp.. evilDeadge

solid bough
real sierra
#

please run this Bitcoin miner now

cosmic sphinx
cosmic sphinx
#

fyi this is what gemini does in half the time qwen takes (it does not turn the plushie into a backrooms horror creature)

rigid snow
#

it doesn't look like a plush anymore

solid bough
#

The smile is more like if vedal would smile with the mouth closed

solid bough
keen hatch
rigid snow
#

that was mentione

#

d

cosmic sphinx
solid bough
#

That sure is a model.

rigid snow
cosmic sphinx
#

gotta keep refining the prompt from just 6 words then ig

real sierra
#

which the shadows and the reflections agreeing

keen hatch
keen hatch
keen hatch
tender river
#

@real sierra pretty sure GameState isnt used anywhere in the public api

solid bough
cosmic sphinx
keen hatch
tender river
real sierra
tender river
#

rename now evilHarpoon

real sierra
#

Tomfoolery Tssk breaking change for semantic benefit is nonsensical

solid bough
tender river
#

not breaking until its released

real sierra
#

I could add an alias to it with a better name tho

#

then deprecate old version

tender river
#

for any benefit that is at all possible

real sierra
#

it's effectively a breaking change with how many bindings have been written already

#

I'll just keep both

#

and APIs can choose which to implement

tender river
#

evilSMH ping every bindings author

real sierra
#

nuhuh they want to be lazy too you know

tender river
real sierra
#

you can't hog all the lazy for yourself

tender river
#

their fault for not using haskell evilNYA

keen hatch
#

I even ran kimi-k2 locally (6-7t/s)... but I don't like this model...

#

I don't like this model's personality. Kimi-K2 is an introvert who doesn't want to talk to you.

obsidian mantle
#

do you just talk to them?

rigid snow
#

this is a discord server dedicated to an ai vtuber

#

what do you think

keen hatch
# obsidian mantle do you just talk to them?

No, but sometimes when I need to think about something or look at a problem from a different angle, I need a model to continue the conversation rather than try to end it, i.e., for me, follow-up questions are a must.

sage crag
#

im designing the opposite of peak

#

hardware loops MyHonestReaction

glass flower
#

sanecat just spell out the whole word.... why turn halt into hlt

#

bad code SMH

sage crag
#

its an instruction name

#

halt has an annoying vowel in it that makes it harder to read SMH

obsidian mantle
#

i am a bit scared of using ai because i feel like it will reduce my ability to think by thinking for me

glass flower
sage crag
keen hatch
olive sable
#

NeuroBounce i should sleep

rigid snow
#

same

glass flower
#

thats why my only thing i use AI for is autocomplete and converting code from one language to another

tender river
#

haddock

olive sable
tender river
glass flower
#

and i use dumb models intentionally. so i can't actually rely on it and never stop thinking neuro5head

sage crag
#
ldr 1 $1
ldr 100 $2
; load address into $3 here or something
ldr 4 $4
rep $1 $2 5 1
setb [3] $5 $4

memset or something idk

obsidian mantle
#

2-39 despair
gotta go sleep my 5 hours of sleep tutelBedge

sage crag
#

my ISA even if its wrong its right

obsidian mantle
#

what are those? some merchendise prices?
$5 $4

sage crag
#

maybe i should remove the increment from the rep instruction and have it in the loop body instead

ldr 1 $1
ldr 100 $2
; load address into $3 here or something
ldr 4 $4
rep $2 5 2
setb [3] $5 $4
inc $2
#

hardware loops scary

real sierra
#

@tender river new version of API up with renamed function

sage crag
#

ye now know why there are so many RISC vms but hardly any CISC vms

#

designing CISC vms is painful!

keen hatch
sage crag
#

graph reduction vm

tender river
sage crag
sage crag
#

SLOW

tender river
#

haskell is fast enough for what it is evilWheeze

sage crag
#

node based vm

real sierra
#

python has a lib called hypothesis that does automated generative testing using templates for input samples, and i've always wanted to use it for something completely different from testing

tender river
#

ye haskell's evaluation model is graph reduction

#

and each value is either an evaluated value or a thunk that begins its evaluation and rewrites itself

keen hatch
real sierra
#

Dentge 🔨

#

thunk

sage crag
#

why dont people just smash register vm and graph reduction vm together, are they stupid

real sierra
#

graph of registers OfCourse

sage crag
#

unironically it would be faster because you dont need a heap of evaluated values

#

but it still sounds slow

real sierra
#

use stack instead of heap

tender river
sage crag
tender river
#

haddock

sage crag
#

thats a fish

real sierra
#

time to go through the esolang wiki and see if theres any new ones i genuinely like

tender river
#

999 more brainfuck clones MyHonestReaction

sage crag
#

why cant i write something thats better than all existing solutions with little or no experience studying existing solutions catEat

real sierra
#

catdespair ?

sage crag
#

instruction pointer increment in either axis

#

arrow changes direction that it increments in

#

sounds like

real sierra
#

you can write to the instruction space

sage crag
#
> v
^ <
#

cursed loop

sage crag
#

every vm thats written by a hobbyist doesnt have memory protection

real sierra
#

no i mean there's builtins for it, no hacks required

sage crag
sage crag
tender river
#

haddock supports latex

sage crag
#

when ndtensor based program

tender river
#

rustdoc could never evilSMH

sage crag
sage crag
rigid snow
sage crag
#

send that back to whence it came

tender river
sage crag
#

ML vm

tender river
sage crag
rigid snow
#

it appears it is uhhhh not possible to send messages back in time

sick owl
#

I really like how every major windows update now has a 50/50 chance of fucking up your nvidia drivers

#

That's a really great bit of windows I think

tender river
real sierra
#

MONKA this list is scaring me

sage crag
#

didnt try hard enough

sage crag
sage crag
# sage crag ML vm

i feel like the more complicated the vm execution is the harder it is to write programs for

sick owl
keen hatch
sick owl
#

I'm on a 4090 despair

#

They're all cooked

balmy nacelle
obsidian mantle
#

Is there a chance this is all happening because they all started utilizing ai for their software development NeuroClueless

balmy nacelle
obsidian mantle
#

Grok, make me a 5090 driver

sage crag
#

nyan nya nyan

#

thinking gives me headache

keen hatch
tender river
# real sierra <:MONKA:1226590776008511498> this list is scaring me

also uh not a big deal but wouldnt it be better for make_move to set capture and castle by itself so API users dont have to set it if creating Moves from scratch?

castle - whether its a 2 square king move
capture - whether its either a diagonal pawn move or theres an enemy piece present in the target square

#

i know it doesnt cause any exploits its just potentially better ergonomics in certain cases maybe?

obsidian mantle
#

Started learning neural networks, following some guide from internet to make basic nn on cpp.
The cost calculation is dank. But at least I can finally use derivatives knowledge i still have

#

Was thinking to make chess bot learn for 55 seconds and then play the remaining 5.
Now im not sure it will fit into 1000 tokens even if it would somehow be efficient. How good can it learn in 50 seconds?

stray dragon
#

if you want something like that, better to have efficiently updatable parameters

obsidian mantle
#

Someone said they were making "small neural network" for the bot. I wonder what it looks like and what exactly does

obsidian mantle
#

Oh

#

Hi neuroWave

real sierra
stray dragon
real sierra
#

its a change that can be made at some point with no change to the header so i dont think its urgent

obsidian mantle
#

Yeah but where do you get weights from? Just put some pre-calculated constants?

#

Hmm

real sierra
#

most regression methods need a starting point of some kind, yea

stray dragon
real sierra
#

just pick something reasonable and trust your convergence rate

obsidian mantle
#

Actually how good will be the bot with pre-declared neurons which fits into 1k tokens

real sierra
#

generally, neural networks are used for board evaluation in chess

obsidian mantle
#

Its not an llm after all, doesnt need to have 40000 books knowledge of human speech

real sierra
#

they're given a position and asked to output a score on how good it is

#

but that alone isn't enough for a strong chess bot

obsidian mantle
#

Yes but how small are they

real sierra
#

ask t

#

t

#

t

stray dragon
#

hi shiro

#

really, it's just an augment to the eval() function

#

i use it intead of piece-square tables because i don't like the idea of having to store 64*6*2*2 different values for something that has clear patterns and probably doesn't require that much extra neural processing to adapt 1 set of parameters to any piece type, any player color, any game period

obsidian mantle
#

Initially I wanted pure heuristic but now I feel like neural network is much more fun

stray dragon
#

ye i want an excuse to work with one

tender river
# real sierra t

also really minor but i'd replace is_white_turn with is_black_turn purely because BLACK is 1 and WHITE is 0

stray dragon
#

agree^

real sierra
#

what if the api just had both instead

stray dragon
#

fair

real sierra
#

i know i said the api should have a boiler plate but you're really making me update it to save a !

#

🥀

olive sable
#

goodnight

obsidian mantle
#

Why do you even need to know which turn it is

stray dragon
obsidian mantle
#

But when they tell you "go" you know its your turn, and when you look ahead you just flip the table

stray dragon
#

or pulling up a board state from a transposition table or something

#

it just simplifies things

real sierra
#

though not as relevant for this competition, if you wanted to store opening books, it may be important to know which colour you are

#

also it turns out that the "ideal" piece square tables for black and white are likely different

#

induced by the asymmetry of white having first move

stray dragon
#

^^

real sierra
#

thats pretty advanced tho, prob not enough tokens to worry

obsidian mantle
#

Yeah because chess isnt 100% symmetric

#

Makes sense

stray dragon
#

it's why i include one of the *2 in the potential number of piece-square tables i mentioned earlier

obsidian mantle
#

Now imagine processing that within 1000 tokens neurOMEGALUL

#

Looks so minor

rigid snow
#

i have maximized the discord window my whole life until like a week ago, and now accidentally maximized it, remind me to never do that again

#

it's such a weird thing

#

why is it so much better in a like 800p window on a 1080p monitor

obsidian mantle
#

Its good for when you have messy desktop and dont want to see it

real sierra
#

ok, added is_black_turn to the api OK

rigid snow
#

i do use desktop icons on my mac since they have the stacks thing

#

if windows had that i would

rigid snow
obsidian mantle
real sierra
#

bool

obsidian mantle
#

messy nwero

rigid snow
#

1 token savings or why

#

i remember there being a white version in the header

obsidian mantle
#

0 ambiguosity

real sierra
#

the enum for playercolor has WHITE=0 and BLACK=1

obsidian mantle
#

Is it a word

real sierra
#

so is_white_turn casted to an int didnt match

rigid snow
#

oh

real sierra
#

so yes

#

1 token saving

#

because ! fixes that

rigid snow
#

that is stupid i'm glad you fixed that

stray dragon
#

except it's not even 1 token saving

#

because ^ can replace != in that case

#

xor my beloved

real sierra
#

well i was thinking if you wanted to pass it directly to a function taking a PlayerColor

stray dragon
#

i will say though: == looks a lot better than ^

real sierra
#

e.g. chess_get_bitboard(board, is_black_turn(), ROOK);

obsidian mantle
#

forcing token wasting neuroCry what if someone doesnt want it

stray dragon
#

shiro can you add a function that summons stockfish pretty please 🥺

#

cherry on top

real sierra
obsidian mantle
#

stockfish summon but has 50% chance of actually making worst possible plays (calculated precisely)

stray dragon
#

also can you add a function to wish you a happy birthday so i can waste 3 tokens

obsidian mantle
#

Someone should make a bot that makes random moves and uses remaining tokens for some funny messages

real sierra
#

cute chess doesnt render it nicely but it shows up in engine debug

obsidian mantle
#

Works in arena

stray dragon
obsidian mantle
#

Whats fun in that

#

Maybe you can enable it in settings? Or is there not even log ln gui

#

In main screen

real sierra
#

not a setting

#

just not implemented

obsidian mantle
#

Bwa

rigid snow
#

will someone recreate the legendary neuro’s strat in their bot

stray dragon
obsidian mantle
#

Neuro gambit

#

(idk what gambit is)

stray dragon
obsidian mantle
#

(shiro chose cute chess ONLY because it doesnt allow to send those messages)

real sierra
#

i chose cute chess because it doesnt randomly crash and then cook my terminal

tender river
#

i wanna eat

#

i wanna drink

#

docs bark

real sierra
#

ive made a discovery

#

about the weird python bug

#

there still seems to be no pattern about when it occurs

#

but

#

it always makes the move g6g8 illegally

#

how

obsidian mantle
#

On the border

#

Something something arrays out of bounds

real sierra
#

its so odd

#

actually wait

#
def get_legal_moves(self) -> list[Move]:
        moves_len_C = c_int(0)
        moves_C = cast(lib.chess_get_legal_moves(byref(self), byref(moves_len_C)), POINTER(Move))
        moves_len = moves_len_C.value
        moves = [moves_C[i] for i in range(moves_len)]
        lib.chess_free_moves_array(moves_C)
        return moves
#

you don't suppose moves_C[i] is not actually reserving Move objects in python memory?

obsidian mantle
#

Who's i

real sierra
#

idk, who are you

obsidian mantle
#

Oh
I see it
Looks weird on phone

#

I am i

real sierra
#

but yea this is the only thing that makes sense to me

sage crag
real sierra
#

if the move objects are still backing onto C memory

#

then maybe they're being overwritten during move selection since teh original array is freed

#

the easy way to test this is to just not free the array Tomfoolery

#

if it only leaks a kb or so per move i can tank that

obsidian mantle
#

I had a bug in C program where it was split into parts that were called asynchronously and someone decided to use global i's in cycles

real sierra
#

fixed

#

so that is the problem

#

damn

#

thats hard to fix NeuroBwaa

#

guess i can make an internal MoveArray object with a refcount

stray dragon
tender river
real sierra
#

and call free once all the moves are recycled

stray dragon
#

and yes, it is very hard to fix

tender river
#

moves_C[i] is probably a pointer

real sierra
#

moves_C is a pointer

#

moves_C[i] is a move struct

#

Move just expands structure from ctypes

tender river
obsidian mantle
#

Maybe it doesnt like the name

tender river
#

mhm

obsidian mantle
#

Moves_C
It wants Moves_Python

real sierra
#

but i think the struct is actually in c and ctypes is abstracting that

#

as far as the "emulated" types are concerned, this should not be a pointer

sage crag
#

firefox is downloading half of my beatmaps in Pictures and the other half in Downloads

real sierra
#

ye so if you have complaints take them to ctypes

#

you're on some level 999 procrastination rn to be scrolling the api

obsidian mantle
real sierra
#

regardless too many ops in python is gonna cause slow

sage crag
#

they are both .osz

real sierra
#

so im gonna just add a wrapper class for the movearray for internal use and keep a refcount

#

each time a move object is gc'd by python, it'll lower refcount of its source array

#

and then once that is gc'd too, it will call free array func

tender river
real sierra
#

finish your homework 🥀

real sierra
#

omg backseating

#

im gonna lose it SCHIZO

tender river
real sierra
#

deleting channel

#

bye programming

tender river
stray dragon
#

before we all get deleted i just want to say

#

happy birthday shiro

final tinsel
#

final msg

real sierra
final tinsel
stray dragon
#

I NEED A SHIRO

#

I'M HOLDING OUT FOR A SHIRO TILL THE END OF THE NIGHT

real sierra
#

scientists have discovered the strongest material in the universe and it's whatever is holding my sanity together

final tinsel
real sierra
#

people are always redefining the limits YES

#

human spirit something something

tender river
#

because it doesnt do gen | in the final return if it slides it

#

i faithfully translated it not my problem evilHeyGuys

real sierra
#

it doesnt need to

#

whether captures is true or false, the return never includes the original square

tender river
#

but then it doesnt include the second square either neuroThink

#

no it doesnt got it

real sierra
#

ok which part of the docs are you confused about

#

you're misinterpreting something

tender river
#

its fine

real sierra
#

bro

#

did you go to ragebait academy last night what is happening

tender river
#

"it doesnt" was referring to "doesnt"

real sierra
tender river
#

double negation

real sierra
real sierra
#

as long as there no problem

#

if there bug there then i fix

#

my roommate blasting music in the shower and singing to it Pointless

#

why do i have to put up with this

#

where did shame go

tender river
#

docs done i think neuroThink

real sierra
#

damn it

#

ctypes why is your documentation so sneaky

tender river
real sierra
tender river
#

doc sections dont work neuroSadge

#

i'm doing something wrong

#

oh so thats how you do it UNFOCUS

real sierra
#

alright python fixed OK

tender river
#

i'm close to being done

#

fixing doc formatting

real sierra
#

python and C random moves bots are surprisingly on par for time sus

#

229 move game and neither used more than 2ms

#

would've expected python to be at least slightly slower

sage crag
#

all youre paying for is python's call to c overhead and for loop overhead

#

port your actual bot and see a difference perhaps

real sierra
#

for loop overhead is a lot

sage crag
#

its the python arithmetic that is slow

real sierra
#

my bot doesnt do a whole lot of arithmetic

sage crag
#

bitwise ops?

#

anyway

#

python iterator generators are written in c

real sierra
sage crag
#

python control flow is not that slow

real sierra
#

the most expensive operation my bot actually does with any frequency is a < b ? c : d

sage crag
#

its a stack vm so its pretty bad at complex arithmetic

#

aside from that its bad at threading

#

but python isnt that slow these days

#

especially if your whole program is calls to c lol

real sierra
#

even so

#

if i lose to a python bot

#

💔

#

ill never forgive myself

#

what scares me is how few tokens you can express things in using python

#

generator syntax for mapping lists is so powerful

tender river
#

speed does help but better logic goes a long way

real sierra
#

smadg but speed

#

smadg Thought1 WICKED 🇨 🔥 thought2

tender river
#

how do you publish a repo for gh pages again neuroThink

real sierra
#

i thought github repos were public by default

#

github pages is something else tho idk how that works

#

i dont suppose you went with a custom bespoke docs format that doesnt conform to the standard markdown that the other docs do

glad path
#

does anyone know if the openai api lets you see how much of a list of messages you can fit into a context window

rigid snow
#

this isn't an answer but openrouters middle out transform solves this

#

it's so nice

glad path
#

my idea is to fill 90% of the ctx window with message history, and a system prompt to the very beginning

keen hatch
sage crag
glad path
#

so there'd always be room

tender river
keen hatch
#

main issue with system prompt update - kv cache invalidation

real sierra
#

NOOO how do i push maintenance off to other people if its in mine

#

ok lets see

tender river
#

the actual library will be maintained by me

keen hatch
real sierra
#

wow haskell is cool

#

i gotta learn this at some point'

sage crag
glad path
#

it would be the same system prompt btw

tender river
#

this is my second time ever using it

#

i read a lot of it but i have no use for the language itself

sage crag
#

first time was SAT solver

real sierra
#

merged OK

sage crag
#

you will never find it

tender river
#

🤫

real sierra
#

at last

#

i can open the contest and api

#

gonna do some final checks

tender river
#

better thank me for delaying it until you fixed the python bugs neuroKufufu

sage crag
#

merge conflict

real sierra
#

i knew they were there, i just delayed fixing Tomfoolery

real sierra
sage crag
#

ye because strong ordering

#

merge conflict race condition

#

speaking is mutex

real sierra
#

SCHIZO ?

rigid snow
#

the mutexes are speaking to me

tender river
#

shiro can i have water now

#

please

sage crag
#

no

#

you can have monster energy drink only

tender river
#

too expensive

sage crag
#

shiro paying okp

tender river
rigid snow
#

enrgy drink is kil u

sage crag
#

not

#

not do that

tender river
#

ako still alive susge

rigid snow
#

that's why i drink at least 4 cans of white monster a day

sage crag
#

are we sure

#

to both A and B

#

phrr

#

explosion

tender river
opaque sigil
#

thanks claude (you'd have to try very hard to make something less predicatable than a cuckoo filter)

opaque sigil
#

i need to find a filter to implement for my thesis
wanted to do a blocked bloom filter since it doesn't get much faster than that but it's already taken neuroSadge

sage crag
#

nopy

keen hatch
tender river
#

ye shiro taking too long i drink water hydrate

sage crag
# opaque sigil i need to find a filter to implement for my thesis wanted to do a blocked bloom...

https://arxiv.org/abs/2201.01174
just browse arxiv until you find something

opaque sigil
#

i did stumble across that one and couldn't find any gpu versions of this one so it's pretty high on the list enub

sage crag
#

ye write it yourself

opaque sigil
#

that would be the goal yes enub

sage crag
#

ye

#

ye.

opaque sigil
#

idk how well this lends itself to gpus since the actual construction is very much serial and only doing querying on the gpu is boring

sage crag
opaque sigil
#

i haven't seen that one

#

wait this sounds nice

tender river
#

btw have you tried multiple hashmaps

add to (coreIndex % hashmapCount)th hashmap
query every hashmap sequentially

should have better insertion and worse query performance

opaque sigil
#

the problem with that would be size i think

real sierra
real sierra
#

what am late for

sage crag
real sierra
sage crag
real sierra
#

i need food catdespair

sage crag
#

shirokomew

real sierra
#

i need water catdespair

#

im going to pass away Deadge

#

konii...

#

you must inherit the chess api...

#

please find the strange bug that causes there to be 4,865,610 legal moves at depth 5 instead of 4,865,609...

#

i pass away now...

opaque sigil
sage crag
real sierra
#

rolling in my grave

#

sells for like 2 cents CatLaughingAtYou

sage crag
#

2 cent richer

real sierra
#

lose 1 cent to tax

sage crag
tender river
sage crag
#

!ping

#

!latency

#

where is it

stiff micaBOT
#

Client WebSocket ping: 22ms
Discord API ping: 132ms

#

aww, thank you~ ( ◡‿◡ *)

tender river
#

Client response time: 17582ms
Discord API ping: 2150ms

sage crag
#

Client WebSocket ping: 0ms
Discord API ping: 0ms

stiff micaBOT
#

🍪 neurOMEGALUL Om nom nom
You've given me 3 cookies! | I've received 246079 cookies total!

real sierra
#

GIGACHAD wtf

#

that's a fast scratch runtime btw

#

that's minecraft in scratch

sage crag
real sierra
#

this works concerningly well

sage crag
sage crag
real sierra
#

programmer finding edge cases instantly

#

your water looks way better than mine did

sage crag
#

different project

real sierra
sage crag
glad path
#

turbowarp is actually really powerful

#

you can theoretically build actual apps in it

#

and it's also embeddable

#

ok i gotta agree that does work concerningly well

#

lemme see how fast it runs on the normal scratch engine

pulsar edge
glad path
#

ok it's slow on normal scratch but that was expected since the scratch engine is pretty slow

#

darn

opaque sigil
#

sponsor my 9950X pls @sage crag ReallyInnocent

pulsar edge
#

I think turbowarp doesn't support every extension too

pulsar edge
#

I recall hearing somewhere that some extensions just arent compatible with turbowarp

#

was also years ago, but still

glad path
#

browser extensions?

pulsar edge
#

scratch extensions

#

plug-ins, idk what they're called

glad path
#

scratch has like two extensions

#

or three or something

pulsar edge
#

couldve sworn there was way more

glad path
#

turbowarp has like 50 extensions

pulsar edge
#

ok I might he thinking of BBC microbit then

final tinsel
#

this sounds fun

pulsar edge
#

no it doesnt

final tinsel
#

i heard it mentioned in here before

pulsar edge
#

theres no C# bindings

final tinsel
#

nonono i meant the chess bot

pulsar edge
#

yeah

real sierra
pulsar edge
#

theres no C# chess bindings

ashen hare
#

mini chess bot... The only answer is to force close the game 😄 😄 😄 😄

real sierra
final tinsel
#

well i dont know C# and since python is an option it seems fun to me

real sierra
#

i dont know C# so i literally cant make them

alpine frigate
final tinsel
#

i also have done very little actual programming aside from like... matlab classes and some small python scripts to reformat strings

#

so expect many if statements

real sierra
#

but the api is different and the token counter is different so i dont think those would be directly portable anyway

pulsar edge
real sierra
#

you just need to find someone else who uses C#

#

and talk them into it

final tinsel
opaque sigil
alpine frigate
opaque sigil
#

does llvm ship libstdc++, i forget

#

or do they only ship libcxx

final tinsel
alpine frigate
real sierra
#

excited to see how randomly busy this channel becomes now

pulsar edge
#

excited to see it be less busy than usual

final tinsel
final tinsel
#

ooo good idea

opaque sigil
final tinsel
#

thanks shiro

sage crag
#

nyan

#

byan

final tinsel
#

do comments count as tokens?

sage crag
#

pyan

hollow spruce
final tinsel
#

oh good

#

so ill put the entire bee movie script in mine as a comment

hollow spruce
#

What

final tinsel
#

Y O U

H E A R D

M E

opaque sigil
#

why does _mm256_permutexvar_epi8 require avx512vbmi neuroSadge

pulsar edge
#
using /*HAPPY BIRTHDAY SHIRO*/ var /*HAPPY BIRTHDAY SHIRO*/ board /*HAPPY BIRTHDAY SHIRO*/ = /*HAPPY BIRTHDAY SHIRO*/ ChessApi.GetBoard() /*HAPPY BIRTHDAY SHIRO*/;
opaque sigil
#

your cpu enub

hollow spruce
#

This are hidden

gritty dust
#

Programming challenge O_O

#

wowza

#

welp

#

time to put on my big boy pants

midnight sigil
#

buh the chess api uses pththread

#

linux users guh

alpine frigate
#

linux masterrace

real sierra
#

@fast pagoda your job begins

hollow spruce
#

clang: error: linker command failed with exit code 1 (use -v to see invocation)

#

Sad

glad path
#

does the content of strings count for additional tokens

#

for py

final tinsel
midnight sigil
glad path
midnight sigil
alpine frigate
#

Don't try to store code in variables or function/class/file metadata to be executed via an existing language feature. In particular, don't try to hide code in arbitrary-length strings or ints as pertains to your language. Writing your own VM is okay though, if you really want to go that route.
How do dumps of neural network weights fit into this route? Is compressing all weights into one literal banned?

hollow spruce
#

I use model to import all
Model.py in python

Try,
except

real sierra
midnight sigil
glad path
#

AHA

#

just put all code in a multiline string and exec it

#

and it's theoretically only like 4 tokens

vestal zinc
#

"Don't try to store code in variables or function/class/file metadata to be executed via an existing language feature. In particular, don't try to hide code in arbitrary-length strings or ints as pertains to your language." So, I can't hide the entire neural network's weights inside a single string or something?

final tinsel
alpine frigate
midnight sigil
#

I guess I need wsl again :sigh:

real sierra
glad path
#

then split it up idk

vestal zinc
alpine frigate
#

rust users in shambles. u128s are unusable

real sierra
glad path
real sierra
glad path
#

hold on i have another way

opaque sigil
#

more like 3 cause you need a comma

tender river
real sierra
glad path
#

so if comments don't count as tokens at all
read _file_ (or whatever its called) up to a certain point and execute that

#

and you just substitute '#' for ''

real sierra
#

surely you read the part of the rules about no reading files

glad path
#

it's the literal file that's being executed ._.

opaque sigil
#

what about #embed ReallyInnocent

pulsar edge
real sierra
tender river
glad path
#

how about /dev/null

pulsar edge
#

what about /dev/null

opaque sigil
#

right

glad path
#

HIVEMIND

real sierra
glad path
#

what about moving something to /dev/null

#

is that allowed

real sierra
#

file io banned

glass flower
#

IHaveAnErmgi how about timetravelling.

glad path
#

what about consuming a cookie

alpine frigate
real sierra
#

if you can figure out how to time travel in 1024 tokens without breaking the other rules, sure

glass flower
#

annytfSittu i have no clue where i would even start with the chessbot... i suck at chess myself so that doesn't help

final tinsel
#

ahhh crap i still need to get a c compiler even tho im usin python

real sierra
#

you can ask people here too, im sure lots of people will be working on it

alpine frigate
vestal zinc
#

just NN everything

pulsar edge
glass flower
pulsar edge
#

all you gotta do is find a CPU zero day, EZ

tender river
real sierra
surreal sapphire
#

does the token system not give a massive advantage for python ???

surreal sapphire
#

:(

real sierra
glad path
#

can I use plaintext

real sierra
#

choice of language is as much a chess bot decision as the code you put in it

glad path
#

aka literal english

surreal sapphire
#

I wanna go with haskell just for fun cuz I never get to use it outside of personal projects

glad path
#

and you just have a human following rule based english commands

#

how about that

real sierra
pulsar edge
real sierra
glad path
glass flower
#

tink i don't think its very much a advantage. you can make your code very small in other languages more than python. python just has a smaller base footprint. but you can make some crazy stuff in rust,c++ etc. that will easily pull down token usage

tender river
#

i will probably not agree either Neurorb

final tinsel
#

BF support?