#programming
1 messages ยท Page 193 of 1
it is from the AUR!
check for any of these 
arduino-ide was a match. thank you! no longer making me remake electron every time :D
...it was a dependency for an old AUR package, wasn't it? I guess the idea was to check the Required by (73) section of the package
why wont it work
random function decides to not exist
why this function of all functions? 
like i dont get it
at all
the function name comes lexicographically last, is that why?
sewers
My dear fiancee, this is the last place I expected you to go for linux help ๐ญ glad it worked for u tho certainly did not expect ot
o hihi

where ELSE
good point xD
ffi 
no elp 
oh yeah that is my fiancee btw @real sierra

I forgot she was here
nice to meet you
shiro i can help
you can do it shiro!
I can't beloeve I saw you text in neurocord

LMAO
YPU SHOULD MAKE A THINK BUBBLY FOR SILLICATE





we are all silicate in our hearts
oh you're missing a library
it looks like
its trying to call a .so file that doesn't exist
the file eixsts
the chess.zobris key is missing so uh
eitber your library is fucked
the file is definitely being found because i didnt tell it that name
or update it
found it on its own
readelf/objdump 
WHAT
there is no update 

uhh, you might have a linking error
or you have a variable naming scheme issue
well you can see what its looking for
so just ctrl + f through the file for it
ctrl+f through the .so?
ysah
as accessible as any other function
oh
yeah
try making the functions public
@real sierra
recompile first
then if that doesn't work
hold on
i might be messing up the typedefs
right
no public/private in c
wasn't aware shiro was using plain c
no public/private in c++
method visibility is not about linking
ohh, CPython (Cython)! gonna use that for my next labwork, actually
@real sierra hey shampoo what will provided through the chess api, am i right to assume the function to check if a move is legal will be included?
it will include a function to get all available moves 
perfect
i have an early version of the header i can give you, one sec
yippee
aren't these not the same like at all
imagine chess if promotions weren't allowed
i lose well before that point so not much changes for me
welp im gg i think
if i put the typedef before the struct def
then gcc complains about the typedef being incomplete
if i put the typedef after the struct def
then gcc complains about the typedef's usage in the struct
forward decl 
i cant
use struct by name without typedef
struct A_ *a;
typedef struct A_ {
} A;
wait did you just define the pointer first



?
pointer 
โ
shiro silly
but the struct is a board
not a board *
they arent interchangeable
struct Board*
breaking all my code
remove 23 also
the typedef required
because the struct contains a Board *
cant define the struct without the typedef

so no *?
ask chatgpt to explan why struct Board* is required


typedef struct Board Board;
struct Board {
};
add more Board 
same problem 
ye fix yourself

Happy birthday
๐ป

its actually working

FFI success
now to write a chess bot in python
no wait
this was supposed to be a wrapper module
right
hi

hae a good day bye
use (get|set)attr if you must
mrmm
sadly python doesn't have escaping for keywords afaik 
though i guess it doesn't really matter, it gets annoying either way
this is
super hard to implement
im so confused
they tell you how to cast from C pointers to ints
but not how to go the other way

this is so half assed
i hope it just works first try

surely cffi doesnt do anything ungodly with char types

ok its done!

im
actually kinda shocked
it works
?
like it just
...works?
explain?

it actually looks so elegant too
you would never know
that said idk if it leaks memory or anything
wow
that was actually incredibly easy
im a little shocked


// Example C bot using the Chess API
#include "chessapi.h"
#include <stdlib.h>
int main(int argc, char *argv[]) {
for (int i = 0; i < 500; i++) {
// at the start of our turn, get the board
Board *board = chess_get_board();
// find all legal moves for the position
int len_moves;
Move *moves = chess_get_legal_moves(board, &len_moves);
// play one at random
chess_push(moves[rand() % len_moves]);
// cleanup
free(moves);
chess_free_board(board);
// end our turn
chess_done();
}
}
the sample C bot
# Example Python bot using the Chess API
from pychessapi import API
from random import randrange
for i in range(500):
# get the current board
board = API.get_board()
# get all legal moves for the position
moves = board.get_legal_moves()
# play one at random
API.push(moves[randrange(0, len(moves))])
# end our turn
API.done()
the sample python bot
not while true 
im starting to think the slowness might be worth it for all those tokens
you never know
i dont think its possible for a chess game to last that long anyway, between the threefold repetition rule and the 50 move rule
do you kill process after game end
great question
i have no idea what the tournament software does
it seems a bit jank

i just click buttons until it works
i dont think the tournament software ever tells you when the game ends
you just dont recieve any more positions
the tournament software definitely manages the child process/thread so it probably kills the bot or something

in theory it's supposed to be able to send commands for the bot to pause thinking and stuff but like
whos gonna implement that
๐
ye too many tokens

thats why i didnt bother
but yeah that was
ridiculously easy to implement
the pychessapi wrapper is 150 lines and most of them are just like
"yeah you know that function? do it"
the bootstrapping script is only 62 lines and most of it is a string with all the C defs
and thats the entire thing
you can put it on one line 
looks nicer this way

https://doc.pypy.org/en/stable/discussion/ctypes-implementation.html
apparently pypy supports ctypes
too long
so you can jit python with c support
this uses something called cdata under the hood
might even be decently fast
i try not to think about it
anyway this was like
most of the coding i had to do pre-tournament
you can also straight up compile python using mojo
there are better ways of doing c ffi with mojo though since its compiled

the fun part is you dont need to

mojo is a strict superset of python
reminds me of aparapi for java 
awa

ye anyway i think you should run all python bots with pypy or something if ctypes works with it
since its free performance for those bots


maybe also try mojo compiler
if they lose performance for using python thats kinda on them isnt it
authentic python experience
Not yet

i made all of the code i wrote plenty fast
up to the end user to make their bot fast
dont susge me 
they cant control the speed of python

not help when python is 100x slower than c

shirmo
Let them suffer 
sebastian lague said everyone had to write in C# whether they wanted to or not 
python users should bow before me for my gracious nature 
im gonna brute force your chess games with pure gpu flops
sometimes when i read python chat i like to think of myself as a goddess
no ffi

works on my pc is fine, thats where all the submissions are running anyway
๐
cant use bash
gonna write it in asm



do you know my architecture

hbvm
hblang language
it compile to x86_64-linux too

i even have a logo idea for you
ok
you're gonna love it
so
lets say
you stripped the vm down to the bare essentials
and added some instructions for playing chess 
needs a chess-themed name to differentiate it from the main hbvm yes?
so we call it...
h1vm
because
because h1 square
๐ฅ ?
and hb was for holey bytes
but 1 is a bit
so now its holey bits

i have been thinking of nothing but chess for like a week straight
this is just 1% of my power at this point

Idk why but this sort of reminds me of a total antagonist to this: The Void Linux OS. As The name was chosen randomly, and is Void of any meaning.
Honestly If I ever wrote chess bots, Id just Call them like "1200 bot" or something actually useful like that

its just a silly rule
ill just say no storing code in variables to be executed by means you didnt write
well you can use ctypes ints
and then anyone who wants to write a bot that toes the line will get banned 
thats a pain to anyone using python
i dont want to force everyone to do that just because someone might abuse ints
that doesnt make any sense
yes 
phrr
annoyance for ppl
and token loss
for no reason
it silliness
it a friendly contest i just keep rules simple
will be obvious if ppl are being dumb about it
thank u
for being friend

writing code lonely sometime
it nice to have people to chat with
i destroye

i will write my chess bot in 70 js files with 500 npm deps and bundle with rollup esbuild webpack snowpack turbopack rspack browserify parcel and submit the result
not external if bundled 
token limit
what if the dependencies are each 1 token
dependencies are external 
nuh uh iโll bundle and say i wrote it myself 
no internet connection either
you donโt understand
iโll bundle and submit the output
like uhh the git repo is inside ./build
im just gonna keep reading off the rules list until one of them ruins your idea 
no executing stuff stored in variables with builtins (if you write your own VM its okay)
not what bundling does
thats definitely over the token limit then 
if its under the token limit tho then thats fine 
i have no problem with you including external libs as part of your source code submission
but they have to be in your source
all files would also have to be valid js/ts, assuming i actually went to support it
also strings banned
strings not banned

just dont be dumb with them
โ
if i just banned konii i could remove half the rules 
konii pls make up a few more ridiculous ways to abuse the rules 
rules have to exceed the token limit itself to be perfect
ban strings
๐ฏ
"I can't work for a week because I had an accident. My right hand hurts a lot."
Man I was planning on abusing this 
Storing an entire neural net in a single python int
Also numpy is still an external dep so your stuck with ctypes if you really want to. (Not like even that can stop me from cramming more into single values as I'd not be using all 64 bits anyways)
Also ban python annotations due to them being readable at runtime. (it is technically a string so should be covered)
I can use C# right

:(
is C# hard to support
the token counter supports it 
if you write a wrapper, and i can figure out the build chain on my end, then sure
build chain is dotnet publish && dotnet pack
can it support elisp 
I don think anyone would use C# though because it uses more tokens than C for equivalent code
plus C is faster
shiwo 
these are all the langs the token counter supports
some less relevant than others

though if someone makes a latex bot that'd be impressive
why is it sorted alphabetically by extension instead of lang name
insane behavior
64 int limit has nothing on me when I can use use an 8bit model and do some unpacking.

well i will say
shiro
C can use 64 bit integers
what cpu do you have
ryzen 7 5700x
how much of that performance translates into the VM is a different question
can I put an AVX512 instruction in my binary and cause your machine to hard crash ๐๐
You'd just get a Illiegal instruction error
time to create a vm escape in 1024 tokens
if you're writing a C# wrapper you may as well right
shhh
sssure

@real sierra Can we allow strings if they are at or under 8 chars? (Python does use unicode tho so idk how that is going to work for them me)
i dont think im actually gonna ban all strings
ill hand-check all submissions, given i have to compile them all anyway
pretty hard to hide that much data
regardless of how you stringify it
same goes for ints that fill about 50 screens worth in the horizontal direction
LIFE update not Major damage

I feel like 8 chars works well as you'd probably only use it for sumbiting moves or debugging anyways. Plus in most langs it is 64 bits
Just as a general guideline
What servers updating rules?
Chess bot tourment
i'll let it simmer but i really dont know that a limit is required
surely people wont be THAT adversarial
I wouldn't even say hardlimit, just a something that can be considered always safe (as your better off using an int anyways)
"no single token should contain more than 64 bits of data" might be a good way to cap it
you heard it here first folks, you can't name a variable more than 8 chars
java users are in shambles
simd in shambles
and assembly kek
Also it'd be 8 chars
it's fine there's already separate rules for not extracting info from variable names, class names, other metadata
I'm going to hide your wallet in a firepit
people here will come up with some novel exploit using a broken feature in the C tool chain to slide a giant neural network into chess, and then not write the bot that would use it
crazy to behold
xd
I still need to crunch my bot down below 1024 tokens
I'm running out of ideas for shrinking it though
it's already so tiny
shiro
yesh
size does matter
that's like the main challenge of the contest

I've gotten it from 1450 or so down to about 1140
without loss of functionality
Goodmorning 

Sam what languages do you know
in order of how much you like them
i know TI-basic, 1/10
python is nice but very slwo, and no types, 6/10
C++ is fast, but writing header files is miserable, 8/10
python does have support for types, it's just not strongly enforced
ooh
the code on this page, for example
https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html

Assembly is simple, but you have to think like a computer, 10/10 would clank again
dutch, 7/10
english, 6/10
french, 5/10
Why is dutch at the top
I hate it lmao
it has a lot less stupid rules than both english and french, so i like it
I prefer german and english second
Dutch is probably my most hated language next to java and lua

<1000 tokens for a chess bot is actually rather doable (still missing some small features and proper troubleshooting but it's mostly done)
and that's with ~200 tokens being used to add a tiny 480 param neural network
Yo
yo
How silly
Meanwhile I can't even use the one language I would participate if I could use
I know how to C slightly, I just don't feel like it if I can't use my main language
fair
NEURAL NETWORK????
mhm
i think i fixed the fps issue in web for ai attorney 
or well, i mostly just told them to downgrade to renpy 7.5.0 and fixed the code to not crash in that version
I wonder what broke in later versions
i could look into it, but i dont see the value in doing so
It would be funny to fix it
it would take days of work even figuring out what changed and ho it affected the web release
days sounds excessive
Ai project got delayed and I will chill for 5 days
did someone else do this or did it just pull up by itself
they went from python 2.7 to 3.12, they changed the graphics pipeline, they changed memory managment, and a bunch of other stuff
in renpy 7.5 they compile python for web via transcrypt, in 8.4.1 they use emscripten iirc
ah yeah that's a massive pain then
i could probably figure out what exactly broke, but i dont get paid enough for this
bro sounds like he's in the sewers 
nah thats definitely what being in the sewers sounds like
better
permitted by the repo owner but it'll do this to all PR in the repo
@real sierra is there currently a rust api for your chess thing?
I for the funsies put GTA V at max graphics settings and right after the game loaded the fps dropped to like 10 but a few minutes later it stabilized at 50-60 FPS (this is still on the Ryzen 9 7900X iGPU)
having it stabelize over full minutes is a bit weird
i assume the latter because an igpu this new on a game from 2013 should be able to push more than 60
im assuming its vram limited
Legacy technically.. but it was on FiveM
oh fivem
Which adds its own improvements
you can't even compare singleplayer vs gtao performance
since it's so drastically different
fivem is going to be its own thing
I mean.. i was hosting the server on the same pc
yeah i'm talking graphics wise only
Okay fair
on legacy i am getting like 150 fps in singleplayer and like 40 in online
2060
ok maybe not 150 that seems ridiculous
more like 80-90
mostly talking out of my ass rn since i haven't played in ages
shoot the repo owner for enabling it
i mean that i don't remember how much fps specifically but i remember the difference between singleplayer and online being crazy
prime example, gtao on ps4
not "literally unplayable" as a hyperbole, like actually literally unplayable
10 fps

For me the difference isn't too bad tbh
assets take forever to stream in
you added delay not reverb 
I ADDED BOTH
But that's also maybe because i usually don't care too much for graphics settings and adjust them constantly to make the experience as best as possible
yes but you should have added more reverb 
I mean... reverb is just emulating a lot of instances of delay all placed in different spots, and all relatively short

Though there is that one plugin that really does it well with raytracing and stuff that i still wanna try out
But imma need a threadripper build for that
I mean... i use different kinds of reverb for different results
modulating the room parameters 
you'll never guess who owns the repo
Now i probably don't need the fancy ray tracing reverb for my silly lead
But it would be funny
no no what i mean is you can have any room with convolution reverb
Room yes
But there are more properties to consider
Also i love modulating the heck out of every reverb parameter to create wierd sounds
so i was right
Love how they put a pic of Pro-R for the valhalla software as well
No i meant more like the different properties like plate, tape, vintage etc
but why do you need ray traced for that 
RTX reverb
Never said i needed that one for that purpose
I said i wanted to try the raytracing reverb for the funsies
how expensive is the raytracing reverb
ah yes
pc with 3090
browser exstension: "nah thats a GTX 980, trust me"
and i said that you should be able to replace it with convolution reverb, at runtime at least, like throw an impulse into the rt reverb and you have an IR of the room you want
you must do what must be done
so having a baller pc isn't a requirement
wait you know how cubemaps work
Convolution reverbs are ass imo
what if the same but with rt audio and IRs
At least the traditional ones
for games
it's owned by mandiant which is owned by google
ableton hybrid reverb is goated 
another day, another reason to hate google
Ehh.. it works better than ableton vocoder for colorbass stabs ig
one of my browser exstensions is fucking up my yt
Wait imma find yt video of the silly reverb i was talking about tho
Gimme a few hours
I wasn't satisfied with how reverb plugins sounded when doing realistic reverb, so naturally I spent two years developing my own like any sane person. Learn more about Wave-Based reverb here :
https://tomiwailee.com/wave-based-reverb
https://instagram.com/tomiwailee
Music credits :
Opening trumpet solo inspired by : Ricardo Mollรก Albero - Th...
if you want my opinion as someone who actually kinda makes the genre, this is what sounds best for that imo
- whatever chroma by xynth audio & nasko does
- resonators
- pitchmap/retune/etc
- vocoders
- IRs
in order
Yeah no shit
what do you mean no shit i contradicted you 
You can't contradict an opinion tho
Just if only thing you had is ableton stock stuff
The hybrid reverb vocodes better than thr vocoder
i am esl pls be patient 
Whut?
i do feel like contradict isn't the word but i don't know any that fit better
But pitchmap is da goat
i still love how resonators sound more
and it's very easy to sound like pitchmapcore with pitchmap
needs to be used very carefully mhm
Alr, let's make some track when i get home and slap way too much autotune on the vocals
Especially if i can do that with another musical warcrime commonly called future bass
nope, not a browser exstension thing, specificzlly only happens on my main account
its youtube doing this to me
either my account is flagged for some reason, or its one of those UI change tests
you're gonna have to define "fucking up my yt"
it kinda looks like this now
no channel, no subscribe button, no comments
no date, no views
i never asked for this, i want it back
congrats, you get the (dis)pleasure of partaking in one of their A/B tests
you can solve this problem by not using youtube for a week and seeing if its fixed later
:3
there is already a thread in the help thingy with 37 other poor bastards
beaned 
i tried an exstension that changes the alyout, but it seems like the back-end is just not suplying the amount of views and stuff
golden lock award
welp, i just sent them a strongly worded feedback 
I'm sure they'll listen
if you feel like dealing with that can of worm there's probably a flag somewhere in their js script you could toggle with ublock or sth

i bought the calibration mic for my avr, im pretty much entirely through my monthly budget now 
it was only 30 bucks
that is probably smart
ill put the money from next month in saving, partialy
nope
is the c api anywhere?
you should invest everything into highly volatile meme crypto coins
please don't actually do that
ye not crypto
I've sent the C header file here a couple times I think
meme stocks aren't any better
get the latest one
if i put my money into something it wont be for memes
not sending the rest until I make sure it's production ready
<1024 token full rewrite is surely possible
"no one will understand the code but it's le "secure" tho"
the C API is 1700 lines
morning fellow programmers
not understanding rust is a skill issue clearly
rust definitely supports c bindings
it should be pretty easy too
can't be harder than pyo3
wait what's the topic i cant do tldr anymore
dam
rewrite chess in rust?
ah
or rewrite the chess api in rust?
have I not proselytized you about my chess api
proselytized
I'm planning to host a mini chess bot tournament here 
hmmmmmmmmmm
where you write a chess bot and then they all face off in a tournament
when?
so I wrote a nice API for it to sit on top of
convert or attempt to convert (someone) from one religion, belief, or opinion to another.
chess api religion 
just bindings dw
no dates fixed yet but I was aiming to start at the end of the month and then have submissions open until November
alright shiro expect my submission
wait are llm's snn's etc allowed?
Python and C currently supported
yes, but
there is a token limit on your submission
it must not exceed 1024 tokens 
part of the challenge
that is small
tokens being lexer tokens here, not LLM tokens
?
i was bored
i made an SNN that can play chess
and it doesnt use any lexer tokens from what i remember
I probably have to explain this better
probably
when I say lexer tokens I mean how your language interprets your source code
most if not all languages break them down into meaningful chunks
e.g. int x = 1; -> ["int", "x", "=", "1", ";"]
yep
as you can see, it's easy to burn through tokens
you will have to send me the api to check for that
c++ is just C with extra steps after all
(and i still need to gcc compile)
i just realized a way to check for how lazy a developer is
here's an early version of the C header
dont see any meaningful issues there
should be supported
the token counter supports C++ and I should be able to build it too
so I don't see any issues with you using it
?
shiro does it have to be cpu only code 
yes
everytime vscode fetches an error when trying to build/compile files manually i get a beep

and i forgot to disable that before running my 20 agents to bugfix since im lazy
I think the rules already state no parallel execution or threading
so gpu falls under that
ah
how much cpu can i use?
all of it
ah so only one thread
yeah single threaded
what is the range of ram im allowed to use
since i already have a plan
thats quadruple of what i need
there's a host of other rules too
but I'm not gonna share all of them because you're not technically supposed to start yet anyway

optimization is normally my department so i got what i need now ยฏ_(ใ)_/ยฏ
that bot is gonna be 200 lines max
the contest might start earlier than end of Sept if I can get this API tested and code reviewed by then
yeah pretty much
the bot I wrote is like 200 ish
alright then
Hi, I'm a biologist and trying to make connections with other stem people

well the bot im gonna make is use ram as extra cpu if i do it right
welcome to the nerd den
@tight sparrow is also a biologist
sadly aint a stem person but i know a few people

Like idc i need friends too
btw @real sierra you probably have not tried every trick in the book
what did you code your bot in?
is it a code limit or just generally using too much performance
my code is too big
ikr
yk i could probably code that bot in straight bash if i do it right
I've replaced almost every loop definition and pointer type with a #define symbol to save tokens
damm
does it actually read the board?
Is it okay to type here general questions and stuff related to carrier choices idk ?
all technical talk here only
career choices you mean?
this channel is mostly meant for programming-related discussions
carrier choices are probably fine, career ones idk
oh right
actually shiro i have a question
I use Rogers 
what's up
is using agents for debugging a sin?
you can do whatever for debugging
using agents is a sin
idk what agents are tho
llm
i make my own llm's and stuff
when i get an error and i don't understand it i happily give it to chatgpt, but i try to use my brain too
yeah i have 800+ files to debug and agents are fun
500 git worktree's 50 agents eating my tokens
I google my error and a stack overflow post from 11 years ago fixes everything
Okay its kinda programming related -.-. i know nothing about programming, but is it worth to learn python at least because i get asked a lot if i know it or not in biotechnology related jobs
I think it's worth it
ive seen too much "fix build system compilation" errors today so i span up agents
it can be very useful for processing data in some fashion and crunching numbers
learning python is a good idea
also if biotechnology also has implants and prostetics in the category then you want to know python
python is not too difficult and widely used so id say its worth it
if you have any automated sources of data that you work with, python is an accessible way to comb through it all
or you could do it the hard way and make an algorithm in C/c++ to do most of the data crunching and filtering
(wich i do not advise but its a choice you can make)
definitely harder and not the use case for C
very much so
then again most of the applications i made myself are in assembly
because i want it that way
brb agents just said they're finished
hmm i'd say i should say i do know it then fast learn it if i got an interview 
if my then 7 year old brother can randomly show me python code he wrote then it's not that hard to get a hang of it and you should too 
I mean they teach it in schools nowadays yes but not my time















wtf










