#programming
1 messages · Page 23 of 1
what a nice commit hash though
compiling on a laptop 
it burns help
i will finetune you with qlora next

i will quantize you, i will prune you and i will sparsify you with structured 2:4 sparsity
alright the new shellcode is [0x48, 0x8b, 0x44, 0x24, 0xf0, 0x53, 0x48, 0x8b, 0x58, 0x08, 0x48, 0x8b, 0x00, 0x48, 0x01, 0xd8, 0x5b, 0xff, 0x64, 0x24, 0xd8] and the new stack offset in run_shellcode is + 4 rather than + 3

next you will get matformed
konii how fast is hblang bogosort
the arguments are much closer in stack which means theres less stack pollution (0x10 rather than 0x30), but because of the increased register usage the function now has to push one more register leading to +1 in return address
instantaneous
best sort implementation hblan on top
hblang compiler will see bogosort and emit perfect asm
O(1) for 1/n% of all cases
nvm im wrong it just uses 8 more bytes for no reason
oh yeah I was gonna simd this at some point
oops
its supposed to do sub rsp, 8 instead of sub rsp, 0x10
avx512 bogosort
chills

now all we need is to bring it back to bf16
cause we love bf16

WRONG EMOJI 😡
ye
first ever
from shiro since 2023 
catting urandom may have been a mistake
so its probably my fault?
you should pipe it to ffplay or aplay

yeah i think this is what i did
turned into this
function toggle_pixel 4;
push_value 64;
push_arg 1;
sub;
pop_d;
if_else_d JGE toggle_pixel_break toggle_pixel_test_y;
@ toggle_pixel_test_y
push_value 64;
push_arg 2;
sub;
pop_d;
if_else_d JGE toggle_pixel_break toggle_pixel_go;
@ toggle_pixel_break
push_value 0;
return;
@ toggle_pixel_go
push_arg 2;
push_value 64;
call math_mult;
push_retval;
push_arg 1;
add;
pop_d;
push_d;
push_d;
push_value 16;
call math_div;
push_retval;
push_arg 0;
push_arg 3;
call toggle_pixel_inner;
push_value 0;
return;
# toggle_pixel_inner(idx, word_idx, buf, on)
function toggle_pixel_inner 4;
push_arg 2;
push_arg 1;
add;
pop_d;
push_d;
push_d;
push_memory;
push_value 0b0000000000000001;
push_arg 0;
push_value 15;
and;
push_value 15;
sub;
call math_shln;
push_retval;
push_arg 3;
pop_d;
if_else_d JEQ toggle_pixel_inner_off toggle_pixel_inner_on;
@ toggle_pixel_inner_off
not;
and;
pop_memory;
push_value 0;
return;
@ toggle_pixel_inner_on
or;
pop_memory;
push_value 0;
return;
chayleaf prettify it
its blowing up the call stack
so i must've done something wrong
but idk what
probably forgot a semicolon

i miss the poghd sticker...
real
ok you made me check how fast urandom actually is ```sh
$ dd if=/dev/urandom of=/dev/null bs=8M count=3000
3000+0 records in
3000+0 records out
25165824000 bytes (25 GB, 23 GiB) copied, 34.0017 s, 740 MB/s
suprisingly not that bad
- that's writing to /dev/null which probably adds some overhead somewhere

wait what did people actually use it that much since you introduced it here
monochrome bu

banger
wait who are you
how should I call you now
damn the virus really is spreading huh
oh question
i didnt set the upper bound
why do u guys never report it when scammers send links here and stuff
do you just start pentesting them or something
mods scary
lightlilac
its funny
I like octuple checking I'm not about to ping the mods over a kid who sent a message that I read wrong
but half the time they're just ppl making 2 cents an hour to send scams from prewritten scripts
instead of bots
you can tell because they leave the quotes on the messages they copy paste to you
oh look new chatter 
bro those people coming here with ai generated chat messages talking about using ai to make ai are appearing more and more often
idk what push_memory or pop_memory is
oh right
i never see them
shiro should ban #programming completely for the greater good
push_memory assumes there is a memory address on top of the stack, pops it, fetches its contents, and pushes that back onto the stack
pop_memory assumes the top of the stack is a value and just below it is a memory address, pops both and stores the value at the address
okay so its like pop ecx; mov ecx [ecx]; push ecx
something something turing something sounds like vanor
when are we going to have super rare vedal appearance
and thats like pop edx; pop ecx; mov [ecx] edx;
exceedingly rare

"Vibe Coding", and "I want to make Neuro" should be on the same space considering how often they are done by the same person 
there are ways to make vedal spawn
with top 1 way obviously being networking problems in C# of some sort
ive tried before
and he just reported my message in staff bot and went back to his business
Every time
"in c" yeah it's done for 
reminds me of how he said before that he would pay everyone except you
what are the odds that to prove shiro wrong he will spawn right now
dash
real
discord is such a goated app I meant to reply to that totally
yep, this was realy fucking funny

Classic
accidently replying to the wrong message
my wallet weeps
or accidently pinging the wrong person
when I use compact theme I commonly react my own messages
if i had a nickel for everytime somebody accidently Camila instead of me, i would have two nickels, which isnt a lot but its weird that it happened twice
which is kinda funny but ðŸ˜
only this exists
toggle_pixel(a, b, c, d) {
if 64 - args[1] >= 0 {
return 0;
} else if 64 - args[2] >= 0 {
return 0;
}
a = math_mult(args[2], 64) + args[1];
toggle_pixel_inner(a, a / 16, 0, 3);
return 0;
}
toggle_pixel_inner(a, b, c, d) {
a = args[2] + args[1];
b = *a;
c = math_shln(1, (args[0] & 15) - 15);
if args[3] == 0 {
c = ~c & b;
} else {
c |= b;
}
*a = c;
return 0;
}
ok chat i was thinking
would a diffusion transformer be a good or bad speculative draft model
for an autoregressive one
it would serve okay
sounds similar to Medusa, where AFAIK the whole idea is to augment the model to decode multiple tokens at once
but I don't see where diffusion would be necessary here, though I guess it could increase accuracy with some performance cost due to requiring multiple steps
i didnt specify to chayleaf but the subtrahend forsub is the second-topmost value on the stack, not the topmost
so they decompiled the subtraction backwards 
konii using neuroPog not HD 

ok i give up for today, this will just remain broken
im happy enough with all the math functions
ill get the display working eventually 
then i can graph things 
immediately after saying that, my PC bricked itself
restart and pray
that's so interesting, deepseek started a code block in its reasoning, didn't finish writing the code and continued reasoning in comments, even doing other code blocks all prefixed by //
mito in #programming
0528 has some funky reasoning traces
i think that compiling is faster than interpreting the bytecode mhm
anyway your code will probably benefit from cache line optimization more now
when u remember u left the DGX B200 running
but also you probably need to measure a noop program in fakern and subtract it from the right time
well either way it will be faster
actually biggest fear
i neurotically check my cloud instances
even if there's no chance it's currently running
My new OS has dispatched
0.8ms vs 27ms is still a great improvement 
omg
The unraveling began when creditor Viola Credit, which lent Builder.ai $50 million in 2023, seized $37 million from its accounts after the company defaulted.
😠😠ðŸ˜
this is insane
ai company was underpaid staff all along
does anyone wanna join my "ai" company
we provide many benefits like
no pay — we are looking for individuals who put learning before earning first, and will appreciate the experience of working more, which reinforces their human side by showcasing empathy and willingness of democratizing technology for everyone to use
tldr; work for free
i'm interested, i'm looking for companies who put people before the profits, with paid leave without a time limit, something something idk cant do buzzwords, do you have that
actually that sounds like an interesting optimization problem, working in a company that has paid leave but doesnt pay you while you're working, so you have to keep a balance between paid leaves to get paid and working to not get fired
the company i put in every time a place asks is "AIFunyun"
lol
me me pick me
the thing i'm working on has a cute mascot agent am i hired
bet.
you learn me how to make an AI, and i dont pay you a dime
even if they dont pay you you can write a program that gets you money
#include <iomanip>
#include <fstream>
#include <iostream>
int main() {
long double money;
std::ifstream source("/dev/random");
source >> std::get_money(money);
std::cout << money << std::endl;
}
any examples?
C++ is a sane language 
The word "democratizing" has become such a red flag in recent years, it's always the shadiest of AI companies who act like they're starting some great awakening
initech is cooked
until there are actual files on ableos, dont bother tbh
Unlike you!
when there are you can come up with a concrete solution, abstractions without knowing what they abstract over are kinda pointless
also epoll and io uring are useful, but if they do get introduced by ableos they will be a bit of a pain to deal with and if they dont then everything is easier but also less modern
are buffers a way of sending data or a way of sharing data?
so "udp pipes"?
there are no udp pipes i meant that they arent for streaming data
are there capabilities?
or will there be
My new vision ai text reader broke again...
I think I broke ChatGPT.
It has been doing this for the last few minutes
It’s still going
llama is NOT open source https://www.businessinsider.com/meta-yann-lecun-shared-open-source-ai-model-2025-5
Bros just wanna get out data and create a monopoly
ðŸ˜ðŸ˜
aint nobody giving data to 'llama'
dead arch
international regulation?
im sure that will happen 
Dude we can barely maintain international laws in regard to War crimes, Meta really thinks AI training data will be able to fall under international law?
me
tjeu
they'll just pirate it anyways
(it's fine if you have a gazillion dollars)
but if i were to do the same thing it's off to debtor's prison for me
behemoth is great but the only person that gets to use it is zucc for his personal waifu ai
I’m gonna make neuros xp

Would it be acceptable to have mobile render in 720p?
Would give a lot of extra frames
the human eye cannot see beyond 480p and 24 fps after all
720p at 6.8 inches is 216 PPI, do with that information what you will
actually, realistically it's higher
720x1544 would be 250 PPI at 6.8"
yeah I'd say so
tldr: more than enough
216 PPI mhm

original retina is still all we need tbh it looks great even now
the larger retinas are under yeah
Ah shit it's gunna take 8 more hours @olive sable. Ay at least it's better than like 5 more days tho ðŸ˜
in the 200s


pro display XDR is 218 ppi apparently
damn
so basically the same
just market it as "same ppi as pro display XDR"
i do wish companies would use ppi more than resolution to advertise their products sometimes
May you perhaps be interested in this 240ppi display I have somewhere?
ui scaling on macbooks is super weird, it’s like it’s downscaling a higher res with some weird ass algorithm. but i actually really like how it looks? it almost tricks your brain into thinking the pixel density is much higher or some shit idk
the text is sharper
hey if it works it works
Isn't it just simple math?
Amount of pixels / area
but don’t look too close or it actually looks ass
it’s not by area though?
part of that is just the osx text rendering being significantly nicer than windows for so long
imo
look too close and anything will look like ass tbf
jony ive personally wouldn't let the interns go home until the text made him go "OH YEAH"
windows is weird, there are ways to work around it (mactype my beloved) but yeah
i think i should make tablets keep 1080p tho
pic related, it's jony and one of the interns he held hostage until OSX text rendering was perfect
240ppi for example is a 4k 16 by 9 display
24"?
16 inch, slightly larger than what I have but I cba to remember correct math
Mentally my mind was at 15.6 inch 4k touchscreen
my desktop has 108.79ppi
tablet is 273.36ppi
and my phone is 404.89ppi
if i did the math right
out of those my tablet has the highest res at 2944*1840
native res vs downscaled, see the weird ass sharpness effect? yeah i like that. and the downscaled thing is the default btw
of course super exaggerated because phone pic it's almost unnoticeable in person
shouldnt some of you be sleeping by now
perhaps
just one more bug fix
Actual math is 219.51ppi
add more precision
Vacation. It's 02:44. I expect I'll be up two more hours. 
results were allergic to giving me screen dimension
byter!!! 
ive been so hard at work writing code
it may or may not be 2.47am


I've had to take short rests twice today 
My last week has basically been one continuous rest lol
I have absolutely no energy to program anything
would it be possible to acces something like localhost from another device on the same network?
im getting tired from waiting 5 min each time to build it on github
i cant take naps 
access the local ip of the device
Figure out the IP of the device (wifi, Lan), and use that IP
you can but if you bind to 127.0.0.x you can't
I also can't 
its localhost 8000
Yeah that's not available externally
localhost is just an alias for 127.0.0.1 is it not
Yes
they both point to the loopback

rule of thumb to make your stuff externally accessible you have to bind to 0.0.0.0
127.0.0.1 / localhost can't be accessed from other machines normally. But you can forward requests to it
nort my program so 
this 👆
nginx my (not so) beloved
networking pisses me off
Does it have a config or start parameters?
yeah bind address should be configurable
Also, pretty sure you can use nc to redirect private ports to public ones
Hi guys ^^
first thing would be trying if it maybe just works already as is

I have a question i wanted to ask before i forgot it again
can run ipconfig (on windows) to get the ipv4 ip for the relevant network adapter and just access that ip from the other device
About possibly simulating emotions with ai
Someone post the thing
don't forget to turn your firewall off btw
my honest reaction the effor needed to static thunderbolt network connections
Disclaimer i started getting into coding as hobby a few months ago so im still really bad >.>
Searching for konii msg brb
if your firewall completely blocks port 8000 by default i'd be confused
But basically
Couldn't you basically make the AI evaluate words or sentences and sort of give points to different categories?
already filled
i assume windows it's just easier to turn it off there
Ah fuck
And then mix them together like RGB to get an emotion?
why does ipconfig not open?
it imeadiatly closes when trying to run it 
That sounds like sentiment analysis
what platform
win11
Oh so this already exists?
Just look up sentiment analysis and see if it's what you want
huh it should display stuff, does ipconfig /all show nothing either?
( i only know json so far)
Oh no im far far away from making my own ai sadly >.>
I barely know 1 language ;-;
opens -> wall of text in a terminal -> closes after 0.1s
bing
Just thought i'd ask in case this was some 500iq move .-.
yeah you want the wall of text
What's I 1? I can't tell what it originally said
you look for the IPv4 Address entry
100 html "programmers" vs 1 chad json programmer who would win
in realistically the first adapter probably
I have an idea no one has thought of before
oh wait
Who is the json programmer? :0
Oh yeah that one was the ai generated product statement
Or are ya talking about me? :0
run the command in a terminal
its cuz i was using win+R
yeah
In general, you can pretty much expect anything you can think of to already have been done in some capacity before. It is combining of things that usually brings something novel to the world.
Just to, ya know, lower your expectations of yourself. Just have fun developing
Nothing personal. Lots of people come here and ask questions, but because they're new they don't know that we answered those a thousand times. So at some point we came up with a bingo for it haha
smash bros failure

pretty sure they were replying to me about the html programmer vs json programmer thing
mine is 127.0.0.1
Both ig
Oh lol. Kinda flew over that. Chat was quite fast 
Json isn't really a language btw. It's a format.
pretty mid subnet mask imo
Unless my definition is off?
I use 10.255.255.255 locally cause I'm an idiot and too lazy to type long IPs 
Oh right
nah my subnet mask is 255.255.254.0
neither JSON or HTML are programming languages because they don't instruct the computer
But then again it kinda is if your using an API no?
mine is 255.255.255.0
Since i'm teaching myself by modding a game
my ip is 192.168.1.136 😎
Why do you guys have such weird subnet masks
Im still proud as fk
Or, rather, unconventional
Literally the most normal subnet mask lmfao
I genuinely came up with smth that works and is used by professionals
"The most common subnet mask is 255.255.255.0, often used for Class C networks."
subnet mask buddies 
Or atleast in a nutshell
literally the most common subnet lol
Oh my god I'm an idiot. Of course.
listen it's 3 in the morning
I should change my answer to 255.0.0.0 then
i mean, json was almost called jsml, i'll let you figure out what that stands for
Also if i posted stuff related to the mod i'm making for a game
Does it go in the game channel or here?
Hi
Figures that femboy is eepy rn
Why's he light now and not a shadow
i mean, its 3am for us rn
True but sleep is for the weak!
nah, sleep is for the week
Hi operator 
but its sunday
I recall he didn't like being called a femboy. 
Hi
He doesnt like being called a female, femboy is different 
nah he actually doesnt like that either lol
Yeah.
if you wanna call someone a femboy you can have a go at me no problem 


byter is basicly pleading to be called a femboy now

if you're feeling like it, you might be able to get away with just
caddy reverse-proxy --from :8080 --to 127.0.0.1:8000
btw
noooo 👉 👈 dont call me a femboy ~~~~
I only have the description on like 3 discords. Still getting used to it okay. But been called cute so often now 
what? whgat does this do?
bro what the fuck is going on
Femboys
new chatter :real:
a reverse proxy that takes requests on port 8080 and forwards them to the local port 8000
Someone mark the bingo box!!!
Only programmming socks exist on bingo smh
i guess femboys and programming are synonymous
This is what I meant earlier. You can just use netcat 

Do I need to post them for it to count? 
You make it sounds like thats not normal tho 
Yes
Think I'm gonna go to bed. You guys actually helped me get rid of the headache 
even having a single 3090 is more than most people can say
I think has to be chat topic
open a random .rs file in vim in the background
Oh and I guess talking about the bingo thing itself then doesn't count. Fair enough
I forgor how much they go for now, i started with one, got two, then right b4 4090s got insane i snagged ine for 1.8k, for local ml hosting the 4090 is stupidly op
depends on where you live
most peole ive seen here say that for thm its between 800 and 1K
I'm willing to have sam ship over 3090 if I need it
here they are 600-700 tho
prices are insane here
i got mine for 675, but they've gotten cheaper i guess
The fact that Rust is my main language has nothing to do with the femboy thing. I mean it's true. But it doesn't mean anything 

they want me to learn rust, which is he same as trying to indoctrenate me int femboyism i guess
4090 best investment for my case, i just put anything i want 2x, fast by default on it, then use optimizations that only work on the 4000 series or above
I got lucky

I grabbed it whilst cheap and community helped me pay remainder
Basically i sniped it
clearly you should learn hblang 
i cant tell if that better or worse
I hear that has a lesbian infection
it is


well this is interesting, if i dont use localhost but instead 127.0.0.1 ity does WWWWWWWWWWWWWWW
Wwwwwwwwww
im so confused
my keyboard when I move in video games
huh
it doesnt even seem to be doing the file downloading
it just broke
clearly you have to learn bhopping and airstrafing
check the console
https://youtu.be/-v5vCLLsqbA?si=UnEOSIOkTmgNQ2CJ this may interest you
I found a way to turn Portal 2 into a web server.
Thank you for watching!
This project is available on GitHub: https://github.com/p2r3/HTTPortal
Join our Discord server! https://p2r3.com/discord
All music used is from the Portal 2 OST in this order:
- Robot Waiting Room 6
- There She Is
- You Are Not Part Of The Control Group
- Halls Of Science 4
Haven't played any games where those physics exist 
the built-im debug console in web seems to be dead
an example of a game where those physics exist is right above your message
nono the browser console
crazy timing lmao
python only shows this
how do i acces the web console?
ussualy i do right click inspect
but i cant right click
ctrl shift i
f12
it shouldn't be
well if the program uses localhost and you suddenly use 127.0.0.1 then it'd make sense if it starts complaining
it shouldn't start making cross origin requests
LMAO
i was right 
what's the actual hostname
It angy
idk
wait is it just hardcoded that a debug build fetches stuff from localhost:8000
i have horrible luck with port 8000 and end up using 8001
every time
or how can that happen
last time i had a super nightmare with localhost it was because docker fucked my entire network stack 6 ways from sunday
btw i fucking HATE docker
i think so
i guess if you fetch stuff from python you can't do fetch("/this_would_work_regardless")
classic CORS
idk what cors is but sure
[--no_opt] [--archive] [--icon ICON] [--cdn CDN] [--template TEMPLATE] [--ssl SSL] [--port [PORT]]```
i guess the port arg should work?
it's what makes me hate websocket more than i should
basically makes it so fetching stuff from a website from another website has to be explicitly allowed, so you don't have money taken away by requests to your bank by visiting a random web page
you need to set --bind 127.0.0.1
werent we trying to set it to 0.0.0.0?

3000 is superior
3001 and 8001 for me
--bind 0.0.0.0 so it listens on all adapters
okay
that way it should hopefully also be accessible within the same network
as long as it doesnt get blocked by some other policy
yea
the way is clear
do i need to turn of firewall for that aswell?
try with it on first
on windows probably
This site can’t be reached
The webpage at http://0.0.0.0:8000/ might be temporarily down or it may have moved permanently to a new web address.
ERR_ADDRESS_INVALID
if it doesnt work u might need to allow it thru firewall
heh
id check your firewall
0.0.0.0 is not an ip you access
yes because 0.0.0.0 isn't an actual ip
you need the local ip within the network
but also yeah you can't access it thru the browser like that
you have to use your pc's ip
you can access 0.0.0.0 from localhost tho
you should be using
ooooooooooooooh
127.0.0.1?
or i guess localhost/127.0.0.1 on the same pc
no
or directly localhost:8000?
wait
do ipconfig and get ur pc's local ip and use that :8000
i have accessed 0.0.0.0 locally at least a few times when doing some bullshit
ok ye its probably working
the whole point of 0.0.0.0 is that it's inaccessible
ok nevermind
so that's probably why it works lol

The page requested an origin-keyed agent cluster 
this would be the client/browser blocking it
0.0.0.0:port redirects you to 127.0.0.1:port? how?
in browser yea
guys my ip is 12.34.234.0
0.0.0.0 is the current host so i guess it's reasonable that the browser would just redirect
but why tho? 
guys my ip adress is a multiple of 1
Which browser are you using?
Oh, okay then. The browser is making you a favor
yeah chrome doesn't do it
how do i unblock it?
depends on what's doing it, it looks like it's literally the browser config is too strict to allow it
try a different browser
turn off your ad blocker
firefox also hates it
that's the CORS i know and love in FF at least
basically
the scripts are being loaded from somewhere other than the actual URL of the page origin
and it hates that
oh my god that's not how you implement that why does it insert the bind address into the client side code
it tried GET /archives/0.9/pythons.js from 0.0.0.0:8000 and that failed in some way
aaaaahhhhh 
wdym?
it looks like it's literally just serving no CORS header whatsoever
you use location.host in js or just omit the hostname entirely
you can try making the script load from a relative path
so it's not trying to access both 0.0.0.0:8000 AND the script's path
time to fork pygbag? 
add Access-Control-Allow-Origin: * to literally every response 
also speaking of browsers
https://press.opera.com/2025/05/28/opera-neon-the-first-ai-agentic-browser/ apparently this is a thing now?
why does opera have so many browsers?
another opera version 
but it literally makes requests to the wrong place, how is disabling cors gonna fix that
if it's actually where it thinks it's at it should load
but yea it might not even be reachable
Opera Browser, Opera GX, and Opera Mini, opera Neon
serve the script from relative path to the host would be the move for me
because rn it's accessing some other place
but not actually relative don't do ./ kids
gotta lova chatgpt code
# Heuristic: check for tablet-like resolution
is_tablet = max(width, height) > 1280 and min(width, height) > 720
``` is your device more than 720p? tablet spotted
but like if your page is localhost:8000
then have your module at src="/archives/0.9/browserfs.min.js" or something
confucius say
It could work
But you can't rely on such thing
i just let react scale things and ignore it unless the boundaries are too thicc for the resolution i want to use
i mean, ye it would work. but ill have mainly desktop users so not really a good idea
thos mf have 4K and stuff
that is actually exactly how it's supposed work if there is ```html
<meta name="viewport" content="width=device-width, initial-scale=1.0">
basically device-width is not the actual amount of pixels, it's with ui scaling, so on a S20 Ultra for example it reports 412px wide
honestly mobile might be higher resolution on average than desktop rn but scaled in the dumbest ass way
most people on pc probably rolling that phatty 1080p
but it's not scaled to make it look like it's 480p like a phone is
rn i have this mobile check working
if hasattr(platform, "window") and platform.window.mobile_check()
but it already breaks if you put the mobile browser in desktop mode
Is your goal to detect who's a mobile user?
yes
tablets dont get seen as mobile via this btw
which is my problem
How about you judge the platform from a keyboard-like input-type?
Mobile rely on touch screen
So you could possibly. Detect if any input is of touch-screen type for example
actually just rely on screen width & height to determine type of device
you don't need anything else
if python code does account for scaling do it in js
depends on what you want to do with that, for example draw touch controls when there is a touch input detected not when the res is right
Why do you need to detect the device?
but generally media queries is how responsive websites work
most phones dont have enough power to do shadowmapping
desktop does
oh then don't do res, scratch that lmao
i mean you can but i'd use it as a last resort
clearly you should default to shadowmapping and change it if it's too slow
(don't do that)
Then try to do some computation using WebGL or WebGPU or whatever you need to do. If the result of the benchmark is not good, then do your logic
A mini-benchmark can be placed on after page load but before you perform other heavy computation
you want to play my game? lets first mine a bitcoin and we'll see how many setting you shall get
Yeah, not ideal but that's the state of the web
there has to be a better way tho
Yes, but it is only heuristic at best. Screen device is one, user agent is another
If you catch an error when doing heavy computation, what is the difference than running mini-benchmark?
if fps <2
device = iphone 3gs

user agent then
Yeah, pretty much this. But do it before the game actually play for best UX rather than detcting it on-the-fly
rn im trying some shit like
if hasattr(platform, "window") and hasattr(platform.window, "touch"):
DYNAMIC_SHADOWS = 0
HEIGHT, WIDTH = 720, 1280
else:
DYNAMIC_SHADOWS = 2
HEIGHT, WIDTH = 1080, 1920
but even desktop has touch so idk
maybe its a bool
yea i mean agent can be spoofed but for the purposes of detecting general device it should be fine
hey, the S in the 3GS stands for speed 
it stands forr shit
i phone 3g stinky
Not just spoofed, on certain browser they outright lie to preserve privacy (blending with the crowd)
yea but u detect that cuz they tell u they're a oneplus 5
they don't no
ye its a bool
i think it works now
if hasattr(platform, "window") and platform.window.touch:
DYNAMIC_SHADOWS = 0
HEIGHT, WIDTH = 720, 1280
else:
DYNAMIC_SHADOWS = 2
HEIGHT, WIDTH = 1080, 1920
glorious code
then you can go fuck yourself without shadowmapping
it will just have more ps and less graphics lol
if it even detects it as touch
it will
Welcome to the web development ma dude
the one(1) piece of window scaling i have in the current project
and then tailwind does tailwind stuff
are you sure that won't blow up on non-touch systems?
wow
it works fine on my pc
im building on git for tesing it on tablet rn
guess they handle this automatically then, nice
workflows are so slow 
I don't know enough latest python ecosystem to help with that lol. But try looking for cacheable step. For JS/TS, I use pnpm and it can cache the downloaded dependency and node so subsequent run is faster since the runner doesn't need to setup node and download the dependency again
in js you can check for if properties exist by just putting them in a bool statement like that because a non-existant property is undefined, i think here that maps to python as None so works too
yeah that's why i was curious
that sure was a sentence, like damn
you could detect like device pixel ratio changes from them zooming the page ever
at least you can in react
i think you can also query the dpr in css
and just apply different rules based on what it is
i forgot to gitpush 
oh my god you ran it manually
this deployement pipeline is so cumbersome
that's why half my commits have "i hate git" in them
Its fine if it is a release/deployment thing for small project
i didnt even now you could do it not msnually
you're "supposed" to have it trigger on push but you're actually not supposed to do anything and people used to deploy remote desktop tools onto windows workflow runners and have a free vm for a few hours
if you feel liek it you can make a whole pipeline that has the build go as soon as you push
so do with them whatever you feel like
tbh i dont even know what a workflow does, it jsut has the code stuff for my gh pages
For reference, running it automatically on event just takes a few line
on:
push:
branches: [ main ]
jobs:
build:
.
.
.
not if the repo is public
i dont only change the buyild. so might try to only trigger it when that folder changes maybe
eventually
not now
public repo
that would require me to be able to handle people looking at anything i do
Real
bold of you to assume anyone cares
free promo lol https://github.com/samvanmaele/game-engine?
mods im joking i know promo isnt allowed
its relevant to the topic
Goddamnit
hi programmers
hi
reminder that you are more efficient when fed and watered

im also more efficient when it isnt 4.30am
i shall consider it
I am also more efficient when I have no other responsibilities
but I have responsibilities
is watering oneself referring to drinking water or taking a shower
yes
You don't need to smell good to program
i find i'm most efficient when i have other responsibilities and im ignoring them to do whatever it is
Others might need you to smell good though

i havent bathed in months
holy
i showered 2 days ago tho
ho
run markdownlint
2k problems
I could see if I have something for improving sam's pipeline, considering I download firefox during my github actions
im sitting here wondering if its even worth opening my code
im either going to spend another hour trying to debug it and probably fail
or im going to bed

bed seems nice
I have had the same bug for 6 months
just one more testbuild
admittedly I've also been busy to do work to fix it
but I also have no clue how to fix it, seems like a package issue
delete venv and hope for the best
surely that'll do it and surely you even have a venv
its rust
everything is python
rm -rf target && cargo build 
disgusting at least use uv
my solution was using nix for my github actions 
pip is a shitty tool i dont care
pip install 
uv pip install 
uv is fast for what I've seen
it's fast, correct and comes with qol features, what more can you ask for 
It could be written in rust 
it is
that's the whole point
Yeah I knew that already
all i know is spinny square go brrr
isnt this what ty is supposed to do
yeah but it's in alpha
i havent had a reason to use it over ruff yet though i have installed it
they're 2 completely different programs
yeah but like
ruff is a linter/formatter and ty a type checker
We love taking a million years

imagine if git had a feature specifically for bigger files
see that's what i guess i dont care about nearly enough probably

i have type checking straight up off half the time 
i turn it on if i want my problems thing to light up like a christmas tree and piss me off while i go fixing all the shitty decisions i made
and then turn it off again
and pretend ruff is just catching everything even tho it's definitely not
obviously
because it's not a type checker

i think i just hate pylance
the funny thing about pylance is that it's still by far the best language server
At least for local the nix env I built still has no issues
thats good
i feel like pylance just loves to absolutely explode
gigabrain quote
i usually have the strict type checking off cause why would i use python when i can just use literally anything else
i think they use mypy for that?
normal vscode: problems 0
type checking strict: 746 problems
You have type checking off because you hate it being typed, I have it tuened off because I don't know how to express complex types, we are not the same
i have it off cuz i dont want to be told what to do
Question SamVan what time is it for you?
bout 5am
Bro... So you didn't sleep
not yet
ill be sleeping from in 5 min till 8.30
ah

well lads what do you think my vision AI text reader that works 10% of the time will get grade wise
this guy
wait sam don't you have school??
Love your pfp
so ye chatgpt has absolutly no clue what its doing i guess
A+ impressively low ocr accuracy
current gh pages built is broken now, dont care, need sleep
chatgpt needs to turn pylance on
NOOOOOOOOOOOO

can i like roll back to the previus one?
It's not even OCR it's a yolo vision model trained to detect text lol
sweet jeuss
jesus
Haha I'm cooked
I want to reroll this, not 
It's 600 lines of madness
wait so is it yolo model just for the bounding boxes and then something else or is the yolo model doing the OCR too
damn... sucks
time to undo the commit
No, the yolo model detects letters and punctuation and detects spaces between those letters to estimate words and stuff
and it does and average y value across a full word to determine the line at which it's on, etc
i mean that's some cutting edge shit if i ever heard
Cutting edge if it worked better lol
I had a small dataset of 2k images tho
i have to say if someone said "OCR" i would not hop to "yolov5" at any point
MAYBE to detect where text is
It's ocr but if a crackhead decided to make it
how do i make the old one active?
was yolo the one where it creates a crapton of boxes and then refines the ones that are relevant
yea the object detection models
It doesn't create boxes you need cv2 to that but it detects stuff yes
ultralytics
i mean yeah
F E A T U R E E X T R A C T I O N
True except for bounding boxes it's good at that
i dont use that spo nah
damnnnn
Sadness
Welp my teacher is going to bully me on how I made an ocr lol
he's going to say "you should've used an ocr library"
I'm bullying the teacher back
But trust bro yolo is based
just hook it into mistral ocr real quick on the sneaky
fuck you i feature extracted the features of the text and it said " F U C k Y 0 U"
Lollll my beautiful code
Brings a tear to my eye
I wish I could post that on github
make that your entire README
lol
A very good reason for markdown readme files, images
ye because i need to embed useless source diagrams and shitty header images
they make me feel safe
Does anyone know how tf to code or are we all just guessing until it works lol
True I guess until I stop getting 2000 errors
i have a concept of a plan
I guess until I understand
Lol so true
I told my teacher I'd just make something to read text or sm that was my entire plan
just throw poop at the wall till it sticks
i wish my phone's battery lasted that long 
I uhhh... Use my phone too much
Double or nothing!
Goodnight man, hopefully tomorrow your coding goes better
current version is just borked
rip
sometimes it do be liek that
the next thing i'm meant to do rn is integrate fuking monaco into this thing
and i REALLY dont want to
i should go sleep too probably
What time is it for you?
05:13
pm right
What time zone is that?
right
CEST, eu time
c'est la vie
Ah... You're 6 hours ahead of me
are you French?
i don't go to the lecture either way so i can just sleep until noon 
no my references are just outta control
lol based
I would like the version up on github to be working always, but the testing for mobile just needs to happen via gh i guess
I cant be bothered to make a 2nd repo for demo builds or use itch
make new branch
Nah

oh hey I fixed it
It was the timer I wsa using to block the loop causing a desync on windows (but not linux???) so it wouldn't read the USB polling at the right time


















