#programming

1 messages · Page 185 of 1

real sierra
sage crag
#
  • noooooo
#

just let me

#

macro expansion

real sierra
#

different languages tokenizer different ways

sage crag
#

no extra tokens

fast pagoda
#

Use openai tokenizer for the lulz and make the tokens just entirely unrelated to the language

tender river
#

lecture downloaded evilHyperYay byeleaf neuroWaveA

real sierra
#

I did think more on it and honestly C preprocessor directives might be ok

fast pagoda
#

The one for llms

real sierra
#

maybe

real sierra
#

ultimately it's just a compact function def

#

er

#

let me rephrase

real sierra
#

a subset of c preprocessor defs should be fine

real sierra
#

I'm probably writing my own token counting code anyway so I can just ensure it does

sage crag
#

do you know how large this expansion is

#

after you run the preprocessor

real sierra
sage crag
#

ye 800 lines

real sierra
#

yeah that's fine

trim valve
real sierra
#

you know your ram limit

#

if you want to use it all on code, go ahead

real sierra
fast pagoda
real sierra
#
aaa = a + aa;
#

big compressibility

real sierra
#

no wait

#

I have tar

fast pagoda
#

but no gz

real sierra
#

surely tar requires gz

#

I was able to extract a tar gz archive

sage crag
#

xz should be preinstalled

#

try tar xz

fast pagoda
#

i dont think tar requires gz all it does is group stuff if you dont specify -z

#

but yes xz should be part of the system by default

#

it's just slow because it uzes lzma i think

rigid timber
fast pagoda
#

damn why didnt i replace ls with eza sooner

rigid timber
#

ye

real sierra
#

which gives it lots of versatility

#

you're awesome

fast pagoda
#

it sits on teh sitter

#

power move

maiden geyser
#

581.29 and some windows updateneuroHypers

lament igloo
#

would it be really cool if we can use only numbers as variable names

fast pagoda
#

what i was talking about was:

if i am the script afunyun.github.io/foo-repo/assets/js/whatever.js and try to link to a file that's located at afunyun.github.io/foo-repo/assets/images/whatever.png, you'd think you would merely need to go up once and link it as ../images/whatever.png.

However, with how github pages works, it'll resolve that to afunyun.github.io/assets/images/whatever.png instead. Likewise, trying to just go to the root dir of the repo via a path like /foo-repo/bar.html will resolve to afunyun.github.io/bar.html

lament igloo
fast pagoda
#

couple ways around it but all require specifically configuring it for only gh pages which is really annoying

lament igloo
#

no wait this is really similar

#

except it didnt have the weird ../ bug

hollow spruce
#

Finally my mood fresh

dry sage
#

shir

real sierra
#

meant to reply to the message before that

#

em!

fast pagoda
# lament igloo no wait this is really similar

what i did was just add this to the html of the pages LULE:

        const REPO_NAME = 'foo-repo';

        function getBasePath() {
            const pathname = window.location.pathname;
            const segments = pathname.replace(/\/$/, '').split('/').filter(Boolean);

            // h8 gh pages & pathing
            if (window.location.hostname.includes('github.io') && segments[0] === REPO_NAME) {
                return `/${REPO_NAME}/`;
            }

            if (segments.length <= 1) {
                return './';
            }

            const depth = segments.length - 1;
            return '../'.repeat(depth);
        }

in <script></script> block on the page

lament igloo
#

cf pages doesnt have these problems lmao

#

all i have to do is to just add ./ coolguy56

fast pagoda
#

yeah the neuro place site runs on a cf worker and the paths function basically as i expected

#

there was a little weirdness compared to just like an apache server or something but much less stupid

#

i was like "it'll probably be easiest, for previewing purposes, to just deploy it on gh pages"

#

mfw ive probably spent more time fucking around with paths and stuff than i have doing hardly anything and it's literally just for the page deployment which isnt even where it's going

#

which is why i said screw it and did this

#

i put this inside the data.js that handles loading everything at first

#

and then the path to data.js itself was broken LOL

#

so it has to be in the page html which is so annoying

#

on the brightside it should be able to fix path resolution in all cases i think as long as stuff isn't structured wrong for how things are expected to be laid out in the file system

lament igloo
#

nice

fast pagoda
#

and when you post your code in a discord you become self conscious and notice having a nested if statement and can fix it

#

yay

rigid snow
#

thinking that it’s problematic and being ashamed of that is an achievement in and of itself

opaque sigil
rigid snow
#

i don’t like nesting either but personally i don’t care what others think, may as well be 10 nested if statements

fast pagoda
#

lmao

rigid snow
#

who cares

fast pagoda
#

i mean it worked just fine and wouldnt have been an issue with 1 level of nesting but i generally try to not say "oh well" so that i dont end up using some potentially problematic thing as a building block for other stuff and write myself into a corner (still do that tho)

real sierra
rigid snow
#

you heard em #programming post your entire corporate codebase rn

#

to get a raise

real sierra
#

meow meow meow meow

fast pagoda
#

i am just a very self conscious person in general for certain things (definitely not everything im sure y'all figured that out) which is part of why i have 40 repos on gh but only like 2 are public

#

even though literally nobody cares

tender river
fast pagoda
#

the slight offchance someone might look at it and be like damn that sucks

#

is enough

tender river
#

i forgive you

fast pagoda
#

mrow

tender river
fast pagoda
#

damn i used drop shadows here and everything and then compressed it with the shittiest setting imaginable

real sierra
#

i feel so close yet so far on this contest prep

#

I think I just need to stop thinking about it and get some code written

fast pagoda
#

evil's Reiatsu has a black aura but neuro's is pinkish

#

damn i need to fix the jpeg-ness here too wtf

fast pagoda
#

planning is for CHUMPS

#

write it all wrong and refactor it 30 times

real sierra
#

I would agree if I didn't have to write it in so many languages

#

the refactor complexity is O(kⁿ) where n is how many languages I have to consider and k is a painful constant

fast pagoda
#

UniversaLLM runtime: write it in one language and then when you run a given submission, it "precompiles" aka the llm sloprewrites the api incorrectly right then and there and runs that to account for the target language

#

i do kinda want to try to make something that does this essentially now that locally runnable MoE are seemingly decent enough to do it without requiring 40 gb of vram to run

real sierra
#

salute university burning down gg

fast pagoda
#

oh shit

#

real?

real sierra
#

free degree? pogs

#

maybe actually real

opaque sigil
#

https://developer.nvidia.com/blog/nvidia-rubin-cpx-accelerates-inference-performance-and-efficiency-for-1m-token-context-workloads/ hmmm, looks like it's basically only for prefill servers given gddr7 (also rip geforce supply)

Inference has emerged as the new frontier of complexity in AI. Modern models are evolving into agentic systems capable of multi-step reasoning, persistent memory, and long-horizon context—enabling…

fast pagoda
#

how much

#

only 100k a pop

opaque sigil
#

Who knows

#

Knowing nvidia you probably can't buy them as a single unit and need to buy a whole rack (which is fine that's what they're made for)

real sierra
#

that sounds like a couple fire trucks

fast pagoda
#

imagine that this is probably the smallest unit you can get

#

one of te racks

hollow spruce
#

Do u think about this joke:

A grocery store cashier asked if I would like my milk in a bag.

I told her 'No, thanks. The carton works fine.'

opaque sigil
#

Oh wait

#

ffs

fast pagoda
opaque sigil
#

So there's the Rubin GPU and now rubin cpx

real sierra
#

good joke, as someone with bagged milk I approve

opaque sigil
hollow spruce
#

I guess that will works

opaque sigil
#

I'm still curious to know what they're doing with vera

#

Or if it's the same shit but faster link

fast pagoda
#

vera rubin is the name of the person it's named after

#

is vera separate from rubin as a product

tender river
fast pagoda
#

they used GB for grace blackwell so i wouldnt be surprised with the name being VR or something

#

for the chips

#

VR100

hollow spruce
#

Hmm a last test a ai then cancelled for 1 day
: I started a new business making yachts in my attic this year...

The sails are going through the roof.

fast pagoda
#

more efficient

tender river
fast pagoda
#

as a packaging method

#

cheaper

#

fits better for shipping since bags are le squishy

#

less plastic

warped narwhal
#

Isnt it so awkward to use though?

fast pagoda
#

you put it in a pitcher

#

or something i think

tender river
#

mhm

real sierra
#

well it doesn't look like it's burning down unfortunately

fast pagoda
#

damn

#

looks like you'll have to go back to the getting hit by a bus strat

opaque sigil
real sierra
fast pagoda
#

superchip

#

thing

#

wew

opaque sigil
#

grace was just a boring old arm cpu whereas vera is supposedly custom designed

fast pagoda
#

inb4 "custom designed" like apple silicon aka still just arm

opaque sigil
#

The superchip is the combo or CPU+GPU

#

I mean yeah

#

It's arm

real sierra
#

custom designed = overpriced

fast pagoda
#

where risc-v

opaque sigil
#

But grace has off the shelf cores

hollow spruce
fast pagoda
#

speaking of apple silicon was the a19 pro anything exciting

#

i saw they pooped out a new iphone yesterday

opaque sigil
hollow spruce
#

Arm in server what do thing

real sierra
#

party over

hollow spruce
#

About this

real sierra
#

back to classes

opaque sigil
#

Have fun

opaque sigil
#

yeahq

rigid snow
hollow spruce
#

If Any one USING sql then tell me

opaque sigil
#

Also about the A19, there's some new memory integrity stuff that's kind of cool

rigid snow
#

i didn't know

opaque sigil
#

It's a blog on their site

hollow spruce
#

“I prefer Android over Apple. Apple feels too slow in design.”

opaque sigil
#

There's also uhhh

#

Some other new chips

#

c2 was the modem I think?

rigid snow
#

it's not

fast pagoda
rigid snow
#

it's everything wireless but cellular

opaque sigil
#

They have so many chips I can't keep up

rigid snow
#

cellular is a different chip ICANT

#

some letter 1x iirc

opaque sigil
#

c1x

rigid snow
#

what was the 2 one then

hollow spruce
opaque sigil
#

c2 is the new modem they're working on

rigid snow
#

right but they had a new chip for wireless

#

yesterday

opaque sigil
#

was it n something

#

N1?

#

idfk

fast pagoda
#

when u dont disable innodb_flush_log_at_trx_commit and run a giant import so it taks even longer Sadge

opaque sigil
#

Oh I was right

fast pagoda
real sierra
fast pagoda
#

just local

opaque sigil
#

Bluetooth & wifi

#

How is anyone supposed to keep track of this neuroCry

rigid snow
#

yeah n1

#

you're not

fast pagoda
#

i did see the n1 thing

opaque sigil
#

I swear they already have used like half the alphabet

rigid snow
#

a, c, m, n, t, h, ...

fast pagoda
#

what i dont understand is how they see no shame in still selling a mac pro with an m2 ultra or w/e when the studio has the m4 max & m3 ultra (where m4 ultra?) and theyll still charge you $7000 for the m2

rigid snow
#

w for apple watch

hollow spruce
rigid snow
fast pagoda
#

right but like

#

just discontinue it

#

i guess there's a moron a minute buying one still so why not

rigid snow
#

but some people still need it for pcie i guess

hollow spruce
#

I will buy rtx 5090 pc this money

real sierra
#

apple is closer to a cult collecting its tithe than a tech company

fast pagoda
#

so they have to suffer because they dont feel like updating the design to at least use the updated cpu lule

#

i know it's like soldered to the board but

#

apple has a lot of money to retool things without caring

#

i did kinda want a mac mini when the one with the M4 pro popped up for funzies since it has a lot of unified memory

#

but then it's still slow for inference

hollow spruce
#

We won !
Taked down by gen z

fast pagoda
#

but then i go on their website and see them still charging that much for several generations old shit and it reminds me why i never buy anything from apple

rigid snow
#

a while ago

real sierra
#

this guy is using his phone while holding a cigarette but from this angle it just looks like his phone is smoking and he doesn't care

#

aura

fast pagoda
#

swoon

#

go ask him out

real sierra
#

no

#

he doesn't have a chess bot

fast pagoda
#

eww

rigid snow
hollow spruce
#

@real sierra best of luck

fast pagoda
#

Well I was typing something about m4 pros and comparing w/ ai max 395 but my cat has other ideas

hollow spruce
fast pagoda
#

Yeah he said I'm not allowed to use both of my arms

#

Or sit straight

hollow spruce
#

Train him

fast pagoda
#

he trained me

#

my other cat knows how to play fetch tho

rigid snow
#

vedalUUH wtf is this discord

fast pagoda
#

layout 100

hollow spruce
fast pagoda
#

2

#

you have a similar colour scheme to mine mlnt

hollow spruce
#

Atleast Guess my thoughts was right this time

rigid snow
#

new chat layout is horrible do they have eyes at discord 💔 wtf is this three-mile gap

fast pagoda
#

mine doesnt do that tho

rigid snow
#

or don't actually

hollow spruce
#

I don’t update the client unless it’s urgent.

fast pagoda
#

i just did

#

now it like this

rigid snow
true hemlock
#

note to self, tighten threadripper socket or any other massive cpus because those amount of pins would make it lose contact to some of the memory channel pins even if just tiny bit lose

rigid snow
#

it looks so ass

fast pagoda
#

mine doesnt have the shadow like that

rigid snow
#

i'm aware it was a very specific edge case

fast pagoda
rigid snow
#

WHAT IS THIS GAP i'm gonna crash out

hollow spruce
#

Good night guys
It time for nap

fast pagoda
#

if it's overlay

fast pagoda
#

something is goofed with your discord's CSS and it's not using the right colours for the feathered shadow thingy

#

maybe try reapplying your theme, mine is set with the new gradient bullshit they put in

rigid snow
#

yeah

#

i reapplied and it's fixed but

#

the gap neuroDespair

fast pagoda
#

oh you mean around the chatbox?

#

it's ~le floating~

rigid snow
#

looks atrocious on irc mode

fast pagoda
#

irc mode makes me crash out

#

i've tried to use it

#

i would need the theme to make everything straight up IRC client tier

#

ascii layout

#

1990s throwback only

#

i cant have that layout with all the rounded bullshit

rigid snow
#

get a tui client

tender river
fast pagoda
#

looks fine to me in regular mode

tender river
#

it does look fine

fast pagoda
#

kinda a 30 foot padding between the message and the chatbox but that's for the typing indicator it seems

#

idk why they needed to move it up

#

it was fine under the message line lol

rough bloom
#

it looks somewhat okay in spacious mode because everything has huge gaps anyway
default and compact look bad with the new change IMO, but I'm already getting used to it

rigid snow
#

yeah pretty much what i was essaying about

fast pagoda
#

gui apps w/e

#

found it lol

#

ohyeah

rough bloom
rigid snow
#

x server over ssh without x server

fast pagoda
#

the guy has this macos crapola applied to his ubuntu install so it makes sense that this came from such a demented and twisted mind

#

oh wait that's his mac lule

rigid snow
#

that is macos

fast pagoda
#

yeah that's ssh'd to the ubuntu

#

i was like damn that's a pretty good recreation of macos tbh but also ew

rigid snow
fast pagoda
#

practical

#

mint 22.2 out of beta kool

#

that

#

is going on my laptop i think

#

where MX 25

olive sable
#

aight everything is properly st up and tested. the speakers work and sound good

#

sub clips sometimes tho

#

i watched the newest spiderman cuz its 4k and dolby atmos, and like before the surrounds arent really used a lot

#

but with the new speakers it does sound a lot more real if it does happen

real sierra
#

my brain is so fried CatDespair

#

this whole field needs to go

tender river
#

what a coincidence my brain is also fired

#

wait no differentword

real sierra
#

linear algebra was a mistake

#

it has only created sadness

tender river
#

linear algebra created you

olive sable
#

but i like liner algebra

tender river
#

be grateful

real sierra
real sierra
#

you like watching your gpu do the linear algebra for you

#

which is pretty sadistic imo

rigid snow
#

numbers neuroSCHIZO

tender river
real sierra
#

put eigen in front of one more term and I'm going to kill people

tender river
#

eigenshiro

real sierra
#

you're next

tender river
real sierra
#

going to go home and lament my course choices

#

prof said ODEs on Monday like that's something to look forward to

opaque sigil
real sierra
#

oh well

#

class is over now

#

I can go home and relax with some chess coding

#

sorry for complain

rigid snow
#

smh rule 7 violation

tender river
#

is ok nub maths is useful but feels so useless while you're learning it

real sierra
#

university taught me that being able to learn at my own pace is a strict requirement to enjoy math

#

I would happily spend hours learning this content on my own but I can't stand it when it's taught as a course

tender river
#

na too few evilHyperYay

real sierra
#

those who know

uneven pulsar
#

they just teach more math instead

real sierra
#

nono I mean

uneven pulsar
real sierra
#

I learned that from university because they teach at the complete wrong pace

rigid timber
uneven pulsar
#

i had like 9 math courses
took 17 or so to complete them

tender river
real sierra
#

I swear every class will spend half an hour explaining a basic fact and then pull out some lost math relic and leave the proof as an exercise

uneven pulsar
#

so much this

tender river
uneven pulsar
#

osu chay based fr

uneven pulsar
#

for a 6 semester bsc

#

i went
prep 1 1 1 2 3 skip 34samesemester

#

the wonder of "we will never teach this class again if you want a degree you do it this semester"

real sierra
#

I failed real analysis and I don't feel bad about it

#

I guess the trick to getting a degree in the 1900s was to make up a new definition for continuity

#

applications? glueless

uneven pulsar
#

ci/cd

tender river
#

maths does not have any applications

#

anyone who tells you otherwise deserves to be burned for heresy

uneven pulsar
#

for every commit c there exists € > 0 that separating c into c1 c2 at € and then running a build on azure for each is good practice

rigid snow
real sierra
#

AI is the future

rigid snow
#

one reply saved an entire ant colony FeelsStrongMan

real sierra
#

it's flying ant season here

hoary lion
#

ew

fast pagoda
fast pagoda
hoary lion
#

yes

#

vulnerability packages

olive sable
#

Frequency responso go brrr

tender river
olive sable
#

My phones mic is not acurate so its probably not that shaky

#

Even only 1 of these speakers cost more than my phone ReallyInnocent

#

I should buy the calibrated mic sometime to do roomcorrection

real sierra
#

c development WICKED

#

(i have not started the debugging process yet)

tender river
#

newero C

opaque sigil
#

Me when I write cuda on my laptop without a GPU and nvcc doesn't complain so I feel good until I try to compile on a device with an actual gpu and it throws a dozen errors at me

real sierra
#

question

#

i have a number of functions that look like this

#

er i cant paste from the vm one sec

#
struct Board *get_board(struct ChessAPI *api);
#

where you need to pass in the API

#

this is kinda annoying

#

i originally wanted to do something more like

#
struct ChessAPI {
  struct Board *(*get_board)();
};
#

which would make the calling convention nicer

#

but i dont think that works

tender river
#

shiro you're so javacore

real sierra
#

I KNOW

tender river
#

just use globals neurojuice

real sierra
#

wtf

#

c has globals?

tender river
real sierra
#

tutorial?

tender river
#

c tutorial erm

#

c language reference

real sierra
#

this is the same level of instruction as university but without the tuition payment

#

10/10

tender river
#

i'm willing to accept payment

real sierra
#

my wallet isnt

#

anyway thank you

#

this totally works

tender river
real sierra
#

this is why chayleaf awesome

tender river
#

true!

tender river
real sierra
#

typedef scary

#

i never used them before

#

i dont wanna break anything...

tender river
#

shirobwaa

real sierra
#

bweeeee...

tender river
#

shwa

real sierra
tender river
#

na use __attribute__((constructor))

#

useless encapsulation evilSMH

sage crag
#

wrong

#

typedef <Type> <Name>

#

ye done

real sierra
#

can type be same as name

olive sable
#

i think it needs to be a type?

sage crag
real sierra
olive sable
#

what

sage crag
real sierra
#

thats like the main use case tho

sage crag
#
typedef struct {
  /* ... */
} Board;
#

done

real sierra
#

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

tender river
#

ye

real sierra
#

thats possible?

tender river
#

nameless struct

sage crag
real sierra
#

hacking

#

but ok

#

how do i typedef opaque structs

#

in the header file

sage crag
tender river
#
struct {
  struct {
    int a;
    int b;
  };
  int c;
} x;

x.a = 5;
x.b = 6;
x.c = 7;
olive sable
#

nah im so confusded rn
granted ive been awkae for 30 hours

real sierra
tender river
real sierra
#

you just told me not to do that

tender river
#

konii did

#

i didnt deliv

real sierra
#

typedefs scary

tender river
olive sable
real sierra
#

konii typing a hate letter for me cryign

sage crag
#
// foo.h
typedef struct foo foo;

// foo.c
struct foo {
  /* ... */
};

i think this should also work

#

curse you for doing this

real sierra
sage crag
real sierra
olive sable
sage crag
tender river
real sierra
#

^

olive sable
#

should i sleep or nah?

tender river
#

yuh

real sierra
#

if i discover a bug in this api mid-contest i dont have to worry about anyone relying on weird functionality

#

ensures they only access the api thru the interface

sage crag
#

i destroy you

real sierra
tender river
real sierra
#

"encourages"

sage crag
#

it just makes everything but the interface hidden

#

but in theory if it were to leak

real sierra
#

i mean i guess the code will be public

tender river
#

in theory

real sierra
sage crag
real sierra
#

but you still wont peek inside right

sage crag
real sierra
sage crag
#

why you do if open source

tender river
real sierra
#

it was drilled into me as good coding practice

tender river
#

normal practice

real sierra
#

i havent written C in years ok Sadgi

#

i trying Sadgi

sage crag
tender river
sage crag
#

this probably best way of writing a clean interface but i still smite you

tender river
#

plain old data

#

In computer science and object-oriented programming, a passive data structure (PDS), also termed a plain old data structure or plain old data (POD), is a record, in contrast with objects. It is a data structure that is represented only as passive collections of field values (instance variables), without using object-oriented features.

real sierra
#

pointers FeelsStrongMan

#

you get no data

#

only pointers to data

sage crag
#

use pointers and i point you into garbage can

real sierra
#

pointers to pointers to pointers to pointers to pointers

sage crag
real sierra
#

data? nope, just another pointer

#

array of pointers PagMan

tender river
#

you can write java in any language

sage crag
#

does not mean you should

tender river
#

because every language is a strict superset of java

real sierra
#

i think you should be thanking me, pointers are smaller than the pointed data and easier to copy around mhm you're welcome

sage crag
#

bad bad bad

real sierra
#

makes fast C

sage crag
#

by value often cheaper

#

registers faster than memory

real sierra
sage crag
#

computer fast when it know what you want to do

real sierra
#

moves can maybe be by value...

#

they are pretty small

#

just two bytes

sage crag
tender river
real sierra
sage crag
#

pointer to 2 byte struct is bigger than 2 byte struct

#

you ban

tender river
#

shiro learn rust ye

#

CastCredentialsFactoryStoreProviderRequestStream

real sierra
#

that sounds like java PagBounce

tender river
#

fuchsia devs from android team

sage crag
#

HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor

tender river
sage crag
#

stop programming in rust

#

this isnt real code

tender river
#

this java code

sage crag
#

ye not rust

real sierra
#

java GIGACHAD

sage crag
#

me when i ```rust
|req: WeaveFactoryStoreProviderRequest| {
req.into_get_factory_store().map(|item| item.0)
},

real sierra
sage crag
#

it java

#

into_get_factory
factory builder

#

java

real sierra
#

im getting a pointer or reference to incomplete type "struct InternalAPI" is not allowed

#

can i not use a typedef in the same file that defines it

tender river
#

forward decl

#

declaration order matters

real sierra
#

what's out of order here

tender river
#

InternalAPI type not struct

real sierra
#

wait

#

nvm

#

no spoilers

#

(ty)

sage crag
#

also never ever typedef something as a pointer

#

end you

real sierra
#

i wont

#

promise

sage crag
#
typedef struct {
  /* ... */
} *Struct;

do this, you end

real sierra
#

i wont

sage crag
#

though i do actually use something similar

#
typedef char string[];
typedef char *varstring;

ye im cretin

tender river
sage crag
#

banned

tender river
olive sable
#

Goodnight Bedge

real sierra
#

bye sam

#

dream of cuda

sage crag
real sierra
#

bitboards despair

tender river
#

stdint.h

#

good

sage crag
#

use stdint.h

#

uint8_t => 8 bit unsigned int

#

so good

real sierra
#

i need 64 bits

#

is there uint64_t

sage crag
#

ye

tender river
#

ye

real sierra
#

🔥

sage crag
#

also uintptr_t

#

which represents pointer width integer

#

well, it represents a pointer

#

but you can do arithmetic on it

sage crag
#

for signed integer

real sierra
#

NOPERS no signs here

sage crag
#

you could also make your code

#

like

#

more readable

tender river
#

long long signed

sage crag
#

ye

#

typedef uint64_t BitBoard;

sage crag
real sierra
#

Awkward extra instructions for no gain

midnight sigil
#

👍

real sierra
#

i dont like readability RAGEY

midnight sigil
#

it free itself when the program closes

real sierra
#

it hides my implementation from me

#

so if i forget its 64 bits then i have to go check

#

uint64_t tells me up front

#

tho

#

it might be good for enforcing types on my functions

#

sanity check

sage crag
#

pls

#

this interface design 101 too

#

descriptive type names

real sierra
#

this isnt part of interface nuhuh

#

its internals

#

client need not understand

#

opaque struct

sage crag
#

u explod

real sierra
sage crag
real sierra
#

im thonking about which functions i actually need to implement for boards

#

i didnt really think about it until now

sage crag
#

@native surge write all of the letters between e and o on your keyboard

#

rtyui neuroNOWAYING

native surge
#

rtzui

sage crag
#

wrong

#

azerty bad layout

#

u bad layout

native surge
native surge
tender river
#

should probably do plague inc update now cirSlain

sage crag
#

oops i pressed a button on my keyboard and now its in

#

strange mode?

rigid snow
sage crag
#

assidhasudhasud

#

oh

#

winlock

#

oops

#

Alt + Fn +Win

rigid snow
#

now also known as

#

strange mode

tender river
#

winlock neuroHUH

#

bfkb113pbk has winlock it just disables win key

sage crag
#

ye ye

#

strange mode

rigid snow
#

wait yeah how does winlock make it strange

sage crag
#

i didnt know what it did

#

i had to figure it out by pressing every key again

#

i want pink irises susge

#

ye

tender river
#

contacts

sage crag
#

latural nogarithm

sage crag
rigid snow
sage crag
rigid snow
#

wontopen

real sierra
#

2.0.2 PagBounce

tender river
#

evilAAAAA unity spaghetti code

#

can i go back to maths

real sierra
#

wanna trade?

tender river
#

trade for maths ye

real sierra
sage crag
#

mistake

#

shiro unity

#

chaymaths

#

bad deal

real sierra
#

java unity

#

only C# is starting the JVM

rigid snow
#

why use microsoft java when real java exists

tender river
silent cloak
rigid snow
#

no

silent cloak
#

real java is too primitive and dog shit

sage crag
#

nyan if nyan

silent cloak
#

no structs

sage crag
#

why use microsoft java or java java

#

both bad

#

use a real language

rigid snow
silent cloak
#

define a real language

sage crag
#

anything that's not java or java-adjacent evilNod

silent cloak
#

cap

sage crag
#

jvm bytecode very good, clr very good

#

too bad their main languages so bad

silent cloak
#

debatable

rigid snow
#

neuroNOTED initing a groovy project rn

sage crag
tender river
silent cloak
#

what the fuck is that

tender river
#

just some unity modding

silent cloak
#

in what language???

tender river
#

f# (c# but good)

silent cloak
tender river
midnight sigil
tender river
#

ye F*

midnight sigil
midnight sigil
tender river
#

scala not kotlin

silent cloak
#

looks like python mixed with rust

tender river
rigid snow
silent cloak
#

(optimized to look terrible)

midnight sigil
silent cloak
rigid snow
#

i ban this topic

midnight sigil
#

microtonal music is good neuroSadge

#

out-of-scale hits hard as fuck

rigid snow
#

it does if you stay in standard tuning

tender river
midnight sigil
#

any microtonal theory works fine

tender river
#

not hardware issue

#

right

real sierra
#

my brain turned off

#

can someone press power on

sage crag
midnight sigil
rigid snow
#

blah blah only one right tuning

real sierra
#

that works Dentge

real sierra
#

ok i have a bitmask problem

sage crag
real sierra
#

i dont even know how to describe

tender river
sage crag
#

bug, shiro writing java

real sierra
#

writing c

sage crag
#

writing java

real sierra
#

my head hort

sage crag
#

you

real sierra
#

i need to

#

a

sage crag
#

vtable

real sierra
#

bitboard

#

useful function

#

translate bitboard

sage crag
#

bit bored

real sierra
#

left or right or up or down

sage crag
#

what mean

real sierra
#

ok so

#

bit board look like

#
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
sage crag
#

ye

patent walrus
real sierra
#

but sometimes those are 1

#

and it packed into a 64 bit value

tender river
sage crag
patent walrus
real sierra
#

in directions

#

up and down easy

sage crag
patent walrus
#

!tldr

real sierra
#

just shl/shr by 8*amount

patent walrus
sage crag
real sierra
#

but left right

stiff micaBOT
#
  • konii 2.0.1 and Cipher critique Java and Java-adjacent languages (konii praises JVM bytecode and CLR but says the main languages are bad); mlntcandy mentions starting a Groovy project. [Link](#programming message)
  • chayleaf says they’re doing Unity modding in F# and the group compares languages (caibi, mlntcandy, Cipher, konii etc. discuss C#, Scala, Kotlin, G, Python/Rust impressions); mlntcandy later bans the topic. [Link](#programming message)
  • caibi and mlntcandy debate microtonal music and tuning, with caibi defending microtones and saying out-of-scale hits hard, and mlntcandy arguing standard tuning matters. [Link](#programming message)
  • Shiro~ asks for help with a 64-bit bitboard/bitmask shift problem, posts the 8x8 bitboard layout, and the group discusses shifting up/down vs left/right (shl/shr by 8*amount, shifting columns, suggestions from chayleaf, konii, Vani). [Link](#programming message)
real sierra
#

how Susge

sage crag
real sierra
#

but need fast

#

no loop Awkward

sage crag
#

give me minute

tender river
real sierra
#

i think it

#

shl/shr followed by a mask

#

but idk how to build the mask either

tender river
#

manual

real sierra
#

mask lookup table

real sierra
sage crag
#
uint64_t translate(uint64_t bb, int8_t h, int8_t v) {
  if h < 0 {
    bb <<= h;
  } else {
    bb >>= h;
  }
  if v < 0 {
    bb <<= v + 3;
  } else {
    bb >>= v + 3;
  }
  return bb
}
```![evilNod](https://cdn.discordapp.com/emojis/1345473984921079848.webp?size=128 "evilNod") ye dont do
rigid snow
sage crag
sage crag
#

ye ye

real sierra
#

where does +3 come from Susge

sage crag
#

wait susge

#

i meant

#

v << 3

real sierra
#

oh

#

u missed something

#

the horz shift

tender river
#

shr write tests

real sierra
#

will move pieces to next line

sage crag
#

dont write test

#

test for weak

real sierra
#

need mask after horz shift

#

how mask

tender river
#

bitmask code with no tests neuroSCHIZO

#

llm simulator

#

hallucinate cod

sage crag
#

shimo

#

shrmo

#

shrimp

real sierra
sage crag
real sierra
#

i make changes until i am convinced it works

#

tests are for the weak

#

chess programming wiki please have premade code for this Prayge

tender river
#

no tests just copying

real sierra
#

chess programming wiki gives its code samples in assembly NAHH

#

none of these methods address the issue tho

#

all iterative

#

yucky

#

maybe i only need to shift one step at a time Copege

tender river
#

((n & 0x8080808080808080) >> 7) | ((n & ~0x8080808080808080) << 1) figure the rest out yourself ye

#

night shiro neuroLeave

real sierra
#

salute its over

tender river
#

ok one tip

#

try with 8 bit or 16 bit integers first

real sierra
#

64 first

tender river
sage crag
#

chabgpt

real sierra
#

wow

#

bitboards are

#

a lot more op than i thought

#

shift_ne(white_pawns) & black_pawns gives me half of the pawn attacks for white

#

and its a one-liner consisting of just bitwise ops

fast pagoda
#

bibboard

real sierra
#

could shrink moves to 16 bits...

#

but then would need functions to extract fields

#

would you rather the tokens or the memory

#

actually nvm i think i got this

hollow spruce
#

Im back

real sierra
#

bitboards are so much work but they make move generation so quick

#

definitely not rewriting this in python

#

c bindings all the way

warped narwhal
#

Why not just use the seb lague repo as a starting point or reference?

real sierra
#

that was my first thought too

#

which is how i found out he didn't link the contest repo anywhere

#

only a separate repo with the results

warped narwhal
real sierra
#

HOLY you dug it up somehow

warped narwhal
#

I was a contributor to it, so I had the link

real sierra
#

you're a contributor

#

you waited this long to say

warped narwhal
#

Only a small utility function

#

But a contribution nevertheless

real sierra
#

surprisingly relevant as im working on legal move finding as we speak

#

im too far in now tho

#

glad to have this for inspiration but i will see my implementation through to the end

#

thank you

silent cloak
#

I didn't know u coded Shiro

real sierra
#

YES i do

#

when i find a good project

silent cloak
#

Learn something new everyday

#

Should join the vedal secret 2 development 🔥

real sierra
#

pass

silent cloak
#

Not the birthday gift you want

real sierra
#

capitalDColon the kernel is not a dummy

patent walrus
#

imagine a discord bot that passes every single message through an LLM to figure out when you run a command with a prefix and parse apart the flags

#

surely that wouldnt waste immeasurably high amounts of energy clueless

real sierra
#

isnt that just

#

every amateur discord chatbot

patent walrus
#

every amateur discord bot is like if (message.contents == "!command")

faint sandal
#

imagine ||a|| discord ||bot that passes every single message through an LLM to figure out when you run a command with a prefix and parse apart the flags||
surely that wouldnt waste immeasurably high amounts of energy clueless

patent walrus
#

thats what im sayin!

silent cloak
#

Still a waste but less so

faint sandal
#

the joke is i'm talking about just discord

silent cloak
#

The joke is discord

faint sandal
#

the joke

silent cloak
#

The Joke™

real sierra
#

so now i have a mask of attacked squares for each direction

#

but i dont know how to efficiently map these to their attackers

#

time to do it the dumb way OK

silent cloak
#

Id help but I'm heading to bed and that would be a lot of backlog to read

#

But some way is better than no way

hollow spruce
#

First time I used chat gpt to code but where is my (test responce logic )

amber fractal
#

Hi chat, still no data recovery yet. However...

hollow spruce
silent cloak
amber fractal
#

4tb also has the same discount somwhow

silent cloak
#

Redundancy is often necessary

amber fractal
#

Believe me, I know I've just not had the systems in place for it. I'm planning on doing better this time

silent cloak
#

Im a massive data hoarder

hollow spruce
#

LITTERY WHERE IS 2% LOGIC
( I RECOMMEND U TO LEARN CODE BEFORE VIBE CODING)

silent cloak
#

Don't vibe code

hollow spruce
#

ALMOST PROJECT WAS FAST BUT MADE ME CONFUSE in MY CODE

amber fractal
amber fractal
hollow spruce
#

Hardware are cheap here

#

But ship must be cost

true hemlock
hollow spruce
true hemlock
#

not necessarily?

amber fractal
true hemlock
#

wait idk what's the norm for 4tb nowdays

#

oh?

#

300 aud now here

amber fractal
true hemlock
#

nvme getting cheaper Stronge