#programming
1 messages · Page 184 of 1
MCP connect?
Like a main switch for power connection
Im fine with just using this one
Looking good
But we need extra slot
you already surpass me so you're better than at least 10 people here I think
(here as in server, not here as in channel)
Whuh
I'm bad at it too and it's still fun
i wanted to say i'm worse but i'm definitely not
Silly
Ok i have connected the new sub
I think im at thd point where too loud is too loud
This sub dwarfs all my speakers here in pure output, and i havent even bass boosted it yet
Im scared of what this thing doubds like at full volume
I used to have to bass boost to make it flat
Now i think i need to do the opposite
New speakerlayout should be good
Sub in the middle
looks nice
especially with the mesh off, maybe it's worth it to take meshes off all of them
Should i put the centre on top of the sub or to the right of it? 
you should put the center at the center 
Ye i also like the meshless look tbh
Ok but where?
Wait i have an idea
i'd personally put it where the avr is, and avr to either side
next to the gamecube 
I think i should also lower the crossover from 200 to maybe 100
oh the sub is probably even louder then
Hmm maybe try
is this src file classifying types for a programming language
or is it classifying types for the host language (c++)

its an ida plugin

Why it feel like sniper code sample
My dump thought

Playing music

“Debugging my code is enough, now node_modules isn’t enough. My AI backend shows errors. NPM!!!”
A metal shaving from a copper wire fell into the avr 
so, we deployed our software to one of my VMs, I already have worse network traffic than any customer, so it was heavily under load. coworker thought to remedy this, I deploy their "fix" and now my machine does this:
The graph ending there is because something is hogging all the memory and even my SSH session is lagging :D
Lets hope it doesnt explode cuz idk how to get it out
what is a avr?
oh I see
Why do websites use so much memory?
Yo
Yo
Our kit is ready
what even
Let play some music
turn it upside down and vaccum 
Not yet, i have to do front right and center still
Maybe ure ure website is heavy!!!!
Honestly not a bad idea
about:memory
Today is raining weather
i mean that page does at least explain what's using memory, no?
er...
8GB extensions
Will look around more at home
hi
Yes?
Rare Elvyn spotted
so u a linux user
Yes
Mint Cinnamon
I sound autistic rn
Please level your TV I beg
no sam you should put it at 45deg
I'll take that compromise

@sage crag I did a couple more optimisations and now my lil gpu hash table is on average about 150x faster than the shitty cpu one 
Using the lower couple bits of the hash as a starting point for searching inside the bucket helped a lot
It wont stay level cuz its on a swivel bracket
I tried 3 times

The weight of the tv pulls itself fown to the side
Unlucky
attach random stuff to the back of the TV to fix the center of mass 
That doesnt work, that would infact add more mass
Hmm
Random brick taped to the TV 
yeah, but if you add it on the high side then it should make it stop tilting at least 
just need to put it in the right spot and make sure your mounting solution can handle the added weight
We appearantly getting a LTT collab with Linus Torvalds
changing the center of mass might still work but yeah it would be best to just fix the root cause then
What?! Lmfao
i also use that

u might want to consider swisstables, its one of the fastest scaling ways of checking hashes with parallelism
as far as im aware
Unfortunately I am bound to cuckoo hashing, as much as I would love not to 
yes, that as well
its not too hard to implement the same principles
maybe try nonlinear probing?
the same u8 also stores the status of the entry
i use 0xFF for vacant slot and 0x80 for tombstoned slot
what probing did you try other than linear
quadratic
and a variant on linear that steps based on the hash value
fsh
in the end for me linear was the fastest
There's barely any probing, just recursive eviction
That's the whole problem that idk how to optimise for
cpu
yes
cpu
iirc those dont really work with cuckoo hashing but we shall see
you can also try applying robin hood hashing
Cuckoo hashing is non-negotiable 
its a hashmap optimisation technique that modifies the order of items for more optimal lookup
I thought about hashing separately inside the buckets too but idk, sounds expensive

woke up and immediately started coding in my head
the project worm has taken control of my brain
if you precompute the hashes and store them alongside the entries you get to do that for free 
ye that
strange way to celebraye your birthday but who am i to judge, you do you
prediction: it'll end up on the pile of other incomplete projects
nuh uh
Btw I'm making a cuckoo filter so there are only fingerprints stored (first n bits of the hashed key) 
i woke up and immediately started reading papers
got nerdsniped hard
I feel that
started doing my work for me 

shr hash
Yo

your unique board hash is 4, you're welcome
Yo
Yo
Yo

How is ure night tho
oY
it's daytime here
I just awoke
ye i was about to say
there are better hashing methods for known datasets
even integers have better hashing methods than generic hashers

I wrote in java
💀
actually no

I think the first implementation of this I ever did, years ago, was Lua
https://github.com/zig-gamedev/zmath
simd maths
zig
rewrite in Kotlin, it'll stay compatible 

What why u need learn
Npm is suck
Pip is slow
Include is kicked me
Asm forgot
hot take: newest PHP versions aren't that terrible...
I'll take php over most other languages
Maybe I learn qskit end of my school life
Need physics
What should I do should I go with data science or ai dev
Or software engineer or hardware Engineer
?
I get more confusing to choose paths
that's a choice I think you should make based on your own interests, not those of others
Gaming is my interest
Wait a second I'm also be game dev
Need maths and physics
Thank for idea @real sierra
why must think to make new stuff
why must know to make new stuff
the page still exists the cert is just expired
regardless it's an annoying spec
too many commands

incredible
load bearing standard hosted on a calculator
bgp 
and uses them to update some local cached stuff
but on top of that, the chess bot has to be able to read that local cache
or ipv6 
so there gonna be concurrent access 
do I need to worry about synchronization primitives and stuff
idk how those work in C

oh true I very much might be accessing it over v6
v4 fine

bad admin 
well yeah, if you're doing concurrent stuff, you do need to worry about synchronization... unless you manage to write something that can never run into a race condition of any kind
smh writing your backend in C instead of rust
no atomics = data races = bad

ngl I was going to say the same 
rust does make concurrency trivial
I want languages to easily be able to make bindings to the methods I expose
its possibly the only language where you can actually be sure concurrent mutation wont backfire
wont help with debugging tho
C seemed the logical choice for that
Rust can expose C bindings
rust has c ffi both ways
no atomics = no data races (because you programmed better) = good



I don't think a basic UCI client would be that difficult to write...

valid opinion, even if I don't share it
it feels like I have to completely relearn programming to use it
the return on effort is just not worth when C is right there
not java cant use 
you can do C ffi in Java
no shiro dont worry you will be shot either way
tbh I'm kinda tempted to try and find another sort of game to do in my own time
a lot more people are forgiving of C than Java
but like not something that's been studied to death
Zig? 
especially since the API will be unavoidable for the chess bots

I'll write the API in C and if you wanna make zig bindings to the C header that's fine
do 
hm?
.
my current idea certainly exists but I'm not super confident in it
play? make game? make bot?

shiro a game just for you
birthday simulator?

I kinda want to experiment with giving bots less info
like they don't get an absolute speed, or position
is it considered mean to force people to do ffts in their bot
sort of
I mean
this just feels like you would add code to re-derive the expected parameters from the set you get
and then plug it into an existing bot
as normal
vs? singleplayer?
so same but slower no?
surely if there's a cpu time limit / realtime competition there'd be a tradeoff here though
undecided yet, still in the fielding ideas stage
fft is pretty fast and they probably don't have that many new data points per turn
probably vs because it would bring some interesting offensive measures
you can reuse a lot of previous data no?
my main idea though is to make it slightly more "realtime" vs
as opposed to lockstep turns
ofc still very much undecided on a lot of stuff
if the previous thinking cycle took longer than expected, use a cached value for your parameters
when thinking is simple, update them
i would still take an approach of adapting inputs to use a traditional bot tho
instead of simplifying the bot
again I still haven't massively thought about how the game would work
I can send my very confusing and unhelpful diagram if you want 😭
I have plenty of those already but I think the channel would like it
basically each "point" emits a "sound" at a specific frequency that bounces around the map
each ship can "hear" sound (would need at least two ears to allow orientation, potentially allow people to change ship design)
to spice up the game ships could also have the ability to emit sounds themselves
ignore the wii tanks
I just needed a map and was lazy
again though, very much in funky idea land rn instead of "would this in any way be fun"
true
atm its mostly just trying to figure out what would even be work as a game
combined with my current random interest in signal stuff for no good reason
alternatively I just make normal asteroids
and call that good enough 
asteroids strategy is just hold spin and spam shoot at the right time
humans aren't very good at the second part
screeps
robots are godly


💊 
train on 600 elo matches
so we get the most average bots
we compete for the lowest winrate

worstfish
you should probably train on 100 elo matches so you get a better sense of what the competition will be
everyone seems to think the bar is making a bot that can outperform a human
but I also have yet to find someone who has any clue how they'd make a chess bot
so I think it's a very level playing field
job of the bot is to find the worst move, which requires to exclude the best moves, aka it need to know the best moves 
Best Move Paradox
i noticed recently that almost all of the websites i visited recently are now loading their assets with
Filename-RandomString.ext
image-utils-DEfDlrY6.js
which is kinda annoying for cache reasons
prevents bots fetching ig?
is it random or is it a hash?
no it's
some places do that so they can more easily update assets whilst still having caching
it's random so an older version does not get cached
cdn filtering?
thats one thing
but i think its used to protect game assets as well
the missile knows where it isn't...
caibi is kinda right tho
you just swap some signs around and minimax becomes maximin
same algorithm for both tasks just different preference

surely though there's more bad moves than good moves later in the game
so you'd have to explore a wider tree rather than a deeper one
but finding a worst move is hard
maximin 
for example :
https://[url]/games/richmanRelease/resource/animation/role/mv_role_201_tex_c4be8467.png
if it was mv_role_201_tex.png, i would have downloaded every single character assets from the game by now
but if its mv_role_201_tex_c4be8467.png, it suddenly gets hard to download all assets
considering that neither opponent would ever take anything, you'd just end up with "most moves to draw" simulator
because you're basically solving the problem of "how do I get to checkmate quickest" for the other player
and it's even worse because the other player probably moves assuming you're making intelligent moves, too
50 rule 
tbh, if a move is forced, the bot has to play that move
i get what you mean but there's literally client side code that fetches that, which you can parse
it's not done for obf reasons at all, it's just a side effect
take after 49 moves every time 
so, it's somehow balanced even with worst vs worst
why are we competing for the worst bot now
worst bot is random chess move generator
if someone wants to make a worst bot implementation they can go ahead
i've seen their terrible plays
false
so since we have 15 pieces not counting the king, 30 for both sides, 49 moves per capture... an optimal game would always last 1470 moves and end as a draw
wuh why
if you're doing random then you could pick a good move
a check can reset the rule
not capturing specifically iirc
you need to specifically not pick a good move
random can choose good moves by accident
oh, can it?
mhm
an intentionally bad bot, however, can place their pieces to minimize the amount of ways a random opponent can avoid taking their pieces
random
check if good move
if good, choose another one
there u go
you just shrink the opponent's legal move set to only include moves where you lose material
check if good move

easy one liner
surely
then an optimal game would end when one side runs out of time, so not only do you have to pick the worst move, you have to do it fast
📞 🤖 "hey stockfish is move good"
though actually, the 50 move rule is about captures and pawn moves, it doesn't say anything about checks
let's verify it on lichess 
relevant part of FIDE rules:
9.3 The game is drawn, upon a correct claim by a player having the move, if: 9.3.1 he writes his move, which cannot be changed, on his scoresheet and declares to the arbiter his intention to make this move which will result in the last 50 moves by each player having been made without the movement of any pawn and without any capture, or 9.3.2 the last 50 moves by each player have been completed without the movement of any pawn and without any capture.
so ±1500 moves still stands
oh fuck ur right
actually the 50-move rule is only upon claim by a player, we have to use the 75-move rule which is applied by the arbiter without player input
though iirc a lot of websites will auto draw after 50?
yes they do, but that's just a default
on lichess for example you can turn it off
(i think)
make a mov

no no this is important

The fifty-move rule in chess states that a player can claim a draw if no capture has been made and no pawn has been moved in the last fifty moves (where a "move" consists of a player completing a turn followed by the opponent completing a turn). The purpose of this rule is to prevent a player with no chance of winning from obstinately continuing...
can I cook your pc instead
we draw after 2200 moves, that's funnier
and for the next round in the tournament we have LoseBot vs SegFaultBot
no capture in 50 moves => either bot can claim a draw
no capture in 75 moves => draw automatic
oh yeah shrio what is your defence against just like going over to the opponents memory and messing with them
once again I invite everyone to join in the contest, the bar to be competitive is VERY LOW
and the API will be friendly
VirusTotalFlag bot
hook the enemy's move api call and make it random 
I think the current rules would outlaw that
good thing UCI doesn't have a mechanism for a bot to claim a draw 
and I also think the operating system might explode you
surely it depends how you're actually making people compete
which ngl I haven't quite worked out yet
it wont run in different vms 
idk I'm not shiro 
well both bots won't run in the same process, so you can't just mess with the opponent
or not easily
its easy
its easy if you know where the bot is in memory, know the memory layout of the bot program, and are running as admin 
nah both in same vm
cool check does not avoid the rule

both running as same user
no root
process_vm_writev
on limux maybe
you won't be running as admin obviously 
will it be windows or linux vm
Linux vm
anyway
the rules say don't mess with the backend
I would consider this messing with the backend
not part of your bot = backend
bringing a gun to a chess fight 
ye i'll obfuscate my bot
what if I inadvertendly cause ub in the backend 
by accident
right
BACKEND
helpful
well ub can only cause trouble for yourself, so...
what if the behavior is winning the tournament immediately
valid
then I'll fix the bug and rebuild the bot
😔

shiro can you please add undocumented stockfish api
can we bribe you to not do that
i might participate then
rigged
won't
secret stockfish mmio
nuh
wink wink right?
please 
sql inject the competition score database 
can i bribe you to let us bribe you
i'll give neurobot a cookie
not if i do it first
🍪
Om nom nom
You've given me 32 cookies! | I've received 243103 cookies total!
if you can figure out an undocumented stockfish API, you can figure out a better way to get good moves
where konii 2.0.2
my cookie highly valuable
I have a bug report


ye lots
I'd like to report a bug where all bug reports are marked wontfix
wontfix
hmmm im not aware of such a bug
havent experienced it
wontfix
it's occurred to me that testing my API will require writing a chess bot
in every language
wrong wrong wrong
Time to learn C and C++ and Rust and Java and Kotlin and JS and ...
make a super-language that transpiles to every other language
if you write it, that super language can be hblang
so there's this thing called large language models
just ask ChatGPT to write a chess bot 
do it the programmer way 
im absolutely not doing that 
here comes LLMs writing chess bots again
we had this discussion
idk how good the code was tho
banned for abusing hidden stockfish api
it'll work, if done without machine learning but only algorithm wise
LLM can't do shits with machine learning code
they spit jargon
i'm confused
that's because they're trained on people that can't do shit with machine learning code and just spit jargon
why not prompt llms to write bots if it's for testing the api
I don't trust an LLM to write correct code for tests
if someone said "here's my tests, an LLM made them" I would fire them
writing test code is one of the only uses for llms in production to be honest
well you should read it
if you have a bunch of test cases though
flat graphs are nice
@sage crag
not if you need specific tests
it's not abuse if it's intended
(you have to have a special secret key to be able to call the stockfish api, you obtain the key by sending Shiro 50 bucks through paypal)
just spam some stuff that would do as a normal player
or just simply stress test it
not linear
spam random stuff = test
I mean I needed a bot like this anyway I guess
I wanted to have a starter bot for each language
that makes random moves
it'll be linear on a log graph 
ye
all i can confirm is that they have performance characteristics worse than log_2(x)
anything else is dwarfed by exponent

idk what else to compare, i guess space per key would be one
try uh
computational hashing problems
i cant think of any

sparse graphs
atm i just generate however many random numbers i need, insert them all and then check how many of them are in there 

there's technically deletion i should probably include somehow but eh
read this as "computational heating problems"
deletion not always required
whole other problem
which instructions generate the most heat
simd probably
probably avx-512
ye, AVX usually
mhm
or the amx ones
vectors vectors vectors
solved problem
no longer interested
🔥
i could test someone constantly inserting and deleting but in reality anyway would like dump a ton of keys at once and then check
since it's pretty much just a lookup table
🔥 🔥 🔥
cold
used to be below chat bar
new discord updatw?
yeah
i miss the other new bar they had where it was inside
it's not fully solved
you may be able to generate even more heat by mixing AVX with some other workload that can be executed in parallel, probably through SMT 
too bad they scrapped that one
I was watching video about display and audio cables.. and somehow people (including the video creator) forget that DVI also carries audio
article on the future of space travel has become bad
Like i have been using this very long DVI to HDMI cable with no audio cable to connect my media PC to my TV
tv as PC
posture
oh hi another ableton person in programming
i made something extra silly, look at my discord activity
wontfix
ok
nuh-uh, you said nevermind
"Tweaking OTT"
it picks the device i have a selected parameter on
It's pretty cool tho
that's the idea
anyways turns out they have python scripting for adapting midi controllers, here's the code https://github.com/mlntcandy/AbletonDiscordPresence
i just ignored the controller part
I know FL studio has that too
Don't know if it is that capable as ableton's implemention tho
oh fun part, no official docs, 0
As someone who maintains her own implementation of lua... i 100% disagree
"when the square lead doesn't sound good, slap 100 OTTs"


memory management is painful
Handling lua objects is so incredibly annoying
ye best scripting language c
Cuz they're all arrays
I think the C API is gonna need a lot of convenience functions
Agree
in this case i can comment on that after looking at some implementations, i think the point is to have easy access to system apis which python has, their runtime is literally cpython
actually i lied sorry
because you lose so many tokens just doing stuff like tracking array len
dont remind me of https://www.softintegration.com/
i forgive you 
Oh interesting starts implementing it into next discord bot
the scratch intermediate representation must be a fire language
It's all json
sweet

Turbowarp has a tool that can transpile the intermediate language back to JS
compile
into js
its transpiling technically 
transpile compile same thing 
"Friendship ended with typescript, now i write my js with scratch blocks"
Like i said in the message
what did TS do
no no machine code not language
not trust it

It failed at being like civet
I need to work on ScratchOS v2
do I make caller responsible for freeing everything
do I just have them put length in a separate var
why free if close
so based
(i havent touched lua)
everyone experience manual memory management
or explode
well personally i wont be freeing any memory
virtual memory is infinite
I probably need to give them functions for freeing particular structs if I don't give them a transparent struct
ye
you will need to
more API funcs 
it may be easier to just reimplement the API in python instead of making python bindings
(not for shr)
bad slow

me explode
don't make me manage memory in python 
I literally cannot free an array in python
actually
can I just make a binding to free

where is that even stored
do I want to know
I guess it's CPython so
the C environment is already initialized
nono I mean
if a C function returns an array of pointers to structs
I can have a function for freeing the struct from its pointer
but what about the array
hm why dont you just use the python module bindings
it exists in c
or if you want to use rust use pyo3
do I want to use rust
export free from the C API
you don't have to worry about allocators then
yes
python has this
Rust has a few very nice chess crates that would simplify things a lot
c also have these things to be fair
c has everything
I want every language to have roughly the same API exposed to the end user
don't just wanna collect random chess packages for every language
you don't need to...
means for the backend api implementation
rust's memory model is unfortunately not very compatible with other languages
oh

fair tbh
just do c ffi
well you'd have to do that anyway bc Rust doesn't have its own stable ABI
@real sierra please this is important
YOU CAN NOW CHANGE FONT SIZE WITH CTRL+PLUS
mod spam ping spam
keep mods distracted
then we can send another wave of mr beast bots

sherm cube does not rust thanks to its high chromium content
does sherm cube not rust or does it rust very fast
like aluminimum
aluminimumumum
aluminium

sherm cube incompatible with Firefox 
rewrite sherm cube as a Tauri app
aluminimum osu
java spring app
nah, don't need to ship a whole dang chromium
still use webview
hblang Shiro cube
badge
true...

ngl better than most alternatives
qt 
arena is a gtk app that floods the terminal with warnings 
I using it as the chess server
and willingly deal with C++?
psychopatht
c++ not bad if you arent doing osdev
i just remembered using qt
All seat are booked only support are only Available
(Imx 3d)
java would be the perfect language if it had operator overloads
that's the only thing missing
surely
Java
ah yes
operator overloads
those really good things
that make languages better
I should be get crime

Npm
Pip
Include
you can complain after you've tried doing vector math in java
ohh yeah random question, is there alternatives to chromedriver
you can complain when i dont have to do the same thing in hblang

a.add(b).sub(c).dot(d.unit().scale(5))
you really used that example and not string equality 
Some one asked what dev are u
me :
Console.log("hello")
ye
equalsIgnoreCase 
this is java?
this is how all typical language that dont do operator overloads look
shr picked out the worst example on purpose

My country has no government
look fine
shiro skill issue
I picked that example because I made a rendering engine in java once and it scarred me
i barely can read this oneliner, the () is making me crazy
We kick out government

nepal 
They ban social app and we kick government
True
uhhh

i fail to see what started this
no rule 3 violation just stating history

my favorite rule 
awa
I will transfer to india soo 🙂
Because vpm doesn't need but sacrifice tiktok
anyways, i got lazy on making a new warning box so i just did this instead 
(its for my silly wiki page)
Not vailed
(???)
well, it works
Ure print
Undefined
what 
am i having a stroke
no
no I dont think the stroke is on your side
i'd use neocities or gh pages
but cf pages is probably not bad
just use what you want
CF pages supports dynamic content through workers, not just static files
but if you have only static files you can just anything you want 
Im going out outside
Bye
( After seeing seen not vailed code ) Bye I will back Tommorow
also Pages is semi-deprecated in favor of Workers
(doesn't matter though, they're basically the same thing)
gh pages
needs 4 dns records to connect
cf pages
only needs one cname record
i have a lot of domains so this one cname record helps
oops wrong reply

DNS? just store the IP and connect directly
i swear if pages turns into cf workers
i cannot use their filesystem at all dawg
i meant connecting a domain and subdomain
i feel like neocities is a bit limited compared to cf pages
but the website there are dope, i wish i can design like that
hosting static files is really easy, it's the default setting
anything more gets a bit difficult and you're tied to CF worker APIs but just don't 
I hate pages and the way it resolves paths
that's crazy
I don't want to use fuking Jekyll just to host a subfolder
Without the paths breaking
u mean / and ./ ?
Totally broken if you have the page in a repo and it's meant to resolve to like gh.io/repo/page
i dont have one
ill just put ./ tbh
doesnt bother me much
I had to add a js module to the subpages in a repo to specifically detect if it was on gh pages and fix the path resolution
If I didn't want to use Jekyll basically
thats.. weird
are people going to want a rust chess api
make it then turn it into a dll file somehow 
I put the path fixing script inside my main js and it didn't work because the path resolution to load the script itself was broken lmaooo
I'll make a document saying what functionality the API is supposed to provide so people can implement language-specific versions themselves 
I'm happy to crowdsource this part
Without explicitly hard linking to it
You can get around it easily by just accounting for pages in the site structure but the pages deployment in this case is just meant to be a quick sanity check type thing since local server will resolve links that a static server might not for convenience
they will figure it out themselves
So I don't want to reconfigure the whole thing just for the pages
I also need to figure out a nice token counter method
















reading papers all day





