#programming
1 messages · Page 185 of 1
different languages tokenizer different ways
Use openai tokenizer for the lulz and make the tokens just entirely unrelated to the language
lecture downloaded
byeleaf 
I did think more on it and honestly C preprocessor directives might be ok
The one for llms
maybe
yes and no
https://git.ablecorp.eu/lily-org/hbvm-c/src/branch/trunk/src/lib/hbvm.c
ye like i say read this file
a subset of c preprocessor defs should be fine
I did research and the c lexer does tokenize preprocessor directives as multiple tokens
I'm probably writing my own token counting code anyway so I can just ensure it does
ye ye
this code is a full implementation of hbvm

do you know how large this expansion is
after you run the preprocessor

ye 800 lines
yeah that's fine
gzip the file and set a max size 
all of my variable names are just different lengths of the same character
no gzip in system
surely it's not bee installed yet
wait you're right

no wait
I have tar
but no gz
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
this project might work pretty nicely, it supports quite a few of the usual languages https://github.com/RRethy/tcount
damn why didnt i replace ls with eza sooner
this is really good actually
it sits on top of this https://tree-sitter.github.io/tree-sitter/
ye
581.29 and some windows update
would it be really cool if we can use only numbers as variable names
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
looks like this is happening to cf pages too but different
couple ways around it but all require specifically configuring it for only gh pages which is really annoying
Finally my mood fresh
memory addresses:
shir
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
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
nice
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

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

i don’t like nesting either but personally i don’t care what others think, may as well be 10 nested if statements
lmao
who cares
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)
posting code in discord is a very good way to improve its quality
meow meow meow meow
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
copying
#programming message
shiro i'm very kind
i forgive you
we do counting not copying...
mrow

damn i used drop shadows here and everything and then compressed it with the shittiest setting imaginable
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
evil's Reiatsu has a black aura but neuro's is pinkish
damn i need to fix the jpeg-ness here too wtf
im telling you just yolo
planning is for CHUMPS
write it all wrong and refactor it 30 times
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
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
university burning down gg
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)
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)
that sounds like a couple fire trucks
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.'
put confucius say in front of it and it wrorks
So there's the Rubin GPU and now rubin cpx
good joke, as someone with bagged milk I approve

I guess that will works
I'm still curious to know what they're doing with vera
Or if it's the same shit but faster link
vera rubin is the name of the person it's named after
is vera separate from rubin as a product
we actually have milk sold in bags in russia
they used GB for grace blackwell so i wouldnt be surprised with the name being VR or something
for the chips
VR100
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.
same reason as bagged milk everywhere
more efficient
cheaper than bottles 
as a packaging method
cheaper
fits better for shipping since bags are le squishy
less plastic
Isnt it so awkward to use though?
mhm
well it doesn't look like it's burning down unfortunately
vera is the cpu, successor to grace

grace was just a boring old arm cpu whereas vera is supposedly custom designed
inb4 "custom designed" like apple silicon aka still just arm
custom designed = overpriced
where risc-v
But grace has off the shelf cores
Custom design?
speaking of apple silicon was the a19 pro anything exciting
i saw they pooped out a new iphone yesterday
Blackwell GPUs have risc-v chips 
Arm in server what do thing
party over
About this
back to classes
Have fun
scheduler right
yeahq
last year they had rt to show off, this year nothing new outside of the usual "best smartphone soc"
If Any one USING sql then tell me
Also about the A19, there's some new memory integrity stuff that's kind of cool
well that wasn't in the keynote at least
i didn't know
It's a blog on their site
“I prefer Android over Apple. Apple feels too slow in design.”
it's not
im currently quite chuffed at mysql but ive been populating this table for like 3-4 days for mediawiki so im something of a mysql pro
it's everything wireless but cellular
c1x
what was the 2 one then
Is sql enable on ure website?
c2 is the new modem they're working on
when u dont disable innodb_flush_log_at_trx_commit and run a giant import so it taks even longer 
Oh I was right
currently no i do not have a hosted mysql instance that is internet facing
; DROP Users; --
just local
i did see the n1 thing
I swear they already have used like half the alphabet
a, c, m, n, t, h, ...
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
w for apple watch
APPLE
Give extra for software update
they don't want you to get the mac pro
right but like
just discontinue it
i guess there's a moron a minute buying one still so why not
but some people still need it for pcie i guess
I will buy rtx 5090 pc this money
apple is closer to a cult collecting its tithe than a tech company
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
We won !
Taked down by gen z
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
true, i saw someone getting clowned on twitter for building a massive mac cluster for llm inference
a while ago
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
eww

@real sierra best of luck
Well I was typing something about m4 pros and comparing w/ ai max 395 but my cat has other ideas
Cat had other idea ?
Maybe food or attention
Train him
wtf is this discord
layout 100
How many cat in ure home
Atleast Guess my thoughts was right this time
new chat layout is horrible do they have eyes at discord 💔 wtf is this three-mile gap
mine doesnt do that tho
I don’t update the client unless it’s urgent.
wait for everyone to stop typing
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
it looks so ass
mine doesnt have the shadow like that
i'm aware it was a very specific edge case
WHAT IS THIS GAP i'm gonna crash out
Good night guys
It time for nap
if it's overlay

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
looks atrocious on irc mode
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
get a tui client
wait its ok in cozy mode?
looks fine to me in regular mode
it does look fine
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
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
yeah pretty much what i was essaying about
i saw some project on gh that lets anything run in terminal
gui apps w/e
found it lol
ohyeah
combining all the downsides of a GUI app and a terminal to create the worst possible experience
x server over ssh without x server
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
that is macos
yeah that's ssh'd to the ubuntu
i was like damn that's a pretty good recreation of macos tbh but also ew


practical
mint 22.2 out of beta kool
that
is going on my laptop i think
where MX 25
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
linear algebra created you
but i like liner algebra
be grateful
absolutely not
no you don't
you like watching your gpu do the linear algebra for you
which is pretty sadistic imo
numbers 
put eigen in front of one more term and I'm going to kill people
you're next

going to go home and lament my course choices
prof said ODEs on Monday like that's something to look forward to

oh well
class is over now
I can go home and relax with some chess coding
sorry for complain
smh rule 7 violation
is ok
maths is useful but feels so useless while you're learning it
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
na too few 
those who know
i wish my uni reached that level of education
they just teach more math instead
nono I mean

I learned that from university because they teach at the complete wrong pace
average 2016 node project
i had like 9 math courses
took 17 or so to complete them
the way i did it in uni
sleep at the lecture
look up topic online
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
so much this
everyone changing colors 
osu chay based fr
we had a tower of 4 real analysis beyond some others (discrete math, numerical analysis, logic, formal languages, linalg, a few i forgot probably)
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"
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? 
ci/cd
maths does not have any applications
anyone who tells you otherwise deserves to be burned for heresy
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
AI is the future
one reply saved an entire ant colony 
Instantly full rp mode humans can't compete
Isn't this the list of the pwned packages
Frequency responso go brrr

My phones mic is not acurate so its probably not that shaky
Even only 1 of these speakers cost more than my phone 
I should buy the calibrated mic sometime to do roomcorrection
C
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
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
shiro you're so javacore
just use globals 

this is the same level of instruction as university but without the tuition payment
10/10
i'm willing to accept payment

this is why chayleaf awesome
true!
typedef 
shirobwaa
bweeeee...
shwa
this also solves problem of people potentially calling functions before starting the API
i think it needs to be a type?

can i have typedef struct Board Board
what
please not do this
thats like the main use case tho
???????????????????????
ye
thats possible?
nameless struct
ye
opaque?
struct {
struct {
int a;
int b;
};
int c;
} x;
x.a = 5;
x.b = 6;
x.c = 7;
nah im so confusded rn
granted ive been awkae for 30 hours
struct declared in header but defined in source file
typedef struct Board Board, typedef struct Board_ Board, typedef struct _Board Board, either works 
typedefs scary
konii typing a hate letter for me 
// foo.h
typedef struct foo foo;
// foo.c
struct foo {
/* ... */
};
i think this should also work
curse you for doing this




what is your usecase for such an abomination

encapsulation, api
^
should i sleep or nah?
yuh
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

does not 
ok "ensures" might be a bit strong
"encourages"
i mean i guess the code will be public
in theory

so
but you still wont peek inside right


interface design
it was drilled into me as good coding practice
normal practice
ban 

shiro shiro still try to use less pointers more pod ok
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.
use pointers and i point you into garbage can
pointers to pointers to pointers to pointers to pointers

you can write java in any language
does not mean you should
because every language is a strict superset of java
i think you should be thanking me, pointers are smaller than the pointed data and easier to copy around
you're welcome
bad bad bad

computer fast when it know what you want to do



that sounds like java 
fuchsia devs from android team
HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor

this java code
ye not rust
java 
me when i ```rust
|req: WeaveFactoryStoreProviderRequest| {
req.into_get_factory_store().map(|item| item.0)
},

weave
it java
into_get_factory
factory builder
java

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
what's out of order here
though i do actually use something similar
typedef char string[];
typedef char *varstring;
ye im cretin
typedef struct {} A, *A_p;
banned
donot
ye
ye
🔥
also uintptr_t
which represents pointer width integer
well, it represents a pointer
but you can do arithmetic on it
no signs here
typedef uint64_t BitBoard;
struct Board {
BitBoard white_rook;
/* ... */
};
@real sierra
extra instructions for no gain
👍
i dont like readability 
it free itself when the program closes
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
this isnt part of interface 
its internals
client need not understand
opaque struct

have you done exploding yet
im thonking about which functions i actually need to implement for boards
i didnt really think about it until now

type every letter between ö and ä
should probably do plague inc update now 
buhybdjiNAoiudfgbh/,qxWAbfŋħv,9WODesxbguhfv•»Μ·Iudcbvejzfhn
oops i pressed a button on my keyboard and now its in
strange mode?
remember i had to rip out the keys on my laptop
wait yeah how does winlock make it strange
i didnt know what it did
i had to figure it out by pressing every key again


i want pink irises 
ye
contacts
latural nogarithm
astigmatism
you're tv you can just output whatever color you want
ye open new feature request
wontopen
2.0.2 
wanna trade?
trade for maths ye

why use microsoft java when real java exists
https://github.com/chayleaf/Nuerax shiro your task is to disable pity mode popup 
L take
no
real java is too primitive and dog shit
nyan if nyan
no structs

define a real language
anything that's not java or java-adjacent 
cap
debatable
initing a groovy project rn

what the fuck is that
in what language???
f# (c# but good)
ye F*

scala not kotlin
looks like python mixed with rust

that's just G
(optimized to look terrible)
microtones


any microtonal theory works fine
random bug
not hardware issue
right

wontfix
cough if they have a context consistency
blah blah only one right tuning
that works 
ok i have a bitmask problem
vami we need bug fix
i dont even know how to describe

writing c
writing java
my head hort
you
vtable
left or right or up or down
what mean
ok so
bit board look like
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
ye
fix, shiro should just use go
right:
shift 1 cell right
shift left column 1 cell up
etc


need be able to
shift this
promote to member*
!tldr
!tldr
just shl/shr by 8*amount


but left right
- 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)
how 
well, its just the 2d coordinate to 1d array thing
give me minute

manual
btw the bit order here is left to right, bottom to top
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
}
``` ye dont do
correct! we were definitely discussing and comparing G the very real programming language and then i banned discussing languages. good times
might have to swap the directions i wasnt paying attention to the axes

bb <<= -h surely
ye ye
where does +3 come from 
multiplication by 8
wait 
i meant
v << 3

shr write tests
will move pieces to next line

that was the plan 
i make changes until i am convinced it works
tests are for the weak
chess programming wiki please have premade code for this 
chess programming wiki gives its code samples in assembly 
none of these methods address the issue tho
all iterative
yucky
maybe i only need to shift one step at a time 
((n & 0x8080808080808080) >> 7) | ((n & ~0x8080808080808080) << 1) figure the rest out yourself ye
night shiro 
its over

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
bibboard
need opinion
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
Im back
bitboards are so much work but they make move generation so quick

definitely not rewriting this in python
c bindings all the way
Why not just use the seb lague repo as a starting point or reference?
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
you dug it up somehow
I was a contributor to it, so I had the link
Only a small utility function
But a contribution nevertheless
https://github.com/SebLague/Chess-Challenge/commit/a1fdbee6ba1d4da1543d7182587be6ee9bfc2dd1
My contribution
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
I didn't know u coded Shiro
Not the birthday gift you want
the kernel is not a dummy
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 
every amateur discord bot is like if (message.contents == "!command")
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 
thats what im sayin!
Tbh could just use NLU models
Still a waste but less so
the joke is i'm talking about just discord
The joke is discord
the joke
The Joke™

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 
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
First time I used chat gpt to code but where is my (test responce logic )
Hi chat, still no data recovery yet. However...
Buying new ssd
Gotta back stuff up
4tb also has the same discount somwhow
Redundancy is often necessary
Believe me, I know I've just not had the systems in place for it. I'm planning on doing better this time
Im a massive data hoarder
LITTERY WHERE IS 2% LOGIC
( I RECOMMEND U TO LEARN CODE BEFORE VIBE CODING)
There is no logic in AI
Don't vibe code
ALMOST PROJECT WAS FAST BUT MADE ME CONFUSE in MY CODE
That is not same discount, that is 100 off
Average @true hemlock offer on hardware
expensive 
Do u want import form
Another country
not necessarily?
Yeah I guess main brand 4TB is expensive
@true hemlock 2TB as well
nvme getting cheaper 

























unity spaghetti code






