#programming
1 messages · Page 49 of 1
long as some level of compensation is involved and our topic is unique enough
submit something for the 39c3
we're likely not going to consider EU again anytime soon
simply too far and too expensive
No music sadge
But looking good sam
we also almost had trouble finding a suitable flight because many of them required a transfer flight in... Hong Kong
in which we'd most likely uh
yeah
he sure is rotating 
do you want me to put free bird or funky town over it everytime i post here?
Yes haha


I'm at the chaos communication congress almost every year. its like a holiday
web is fucked, like ussual Failed to load glTF
theres always some inconsistencies between local and web

Make the transformation like the banned gif
For AI developer this may be an interesting read
does this only apply in the usa?
Vedal one day off the rum
Yè, but interesting read nonetheless
ill read it but i think that i can safely ignore it then
works created by humans with the assistance of generative AI might be entitled to copyright protection depending on the nature of human involvement in the creative process.
i guess if we create another song with ai voicelines, we could still copyright it then
that "might" is doing a lot of work there 
The problem is you need to perform some processing to that output
true
the instrumental is 100% copyrightable cuz we did that ourselves. the voice is ai based tho
Because in the article, I think it is generally agreed that the AI output alone, even if it went through a meticulous user input/parameterization, cannot be copyrightable
are these inconsistencies in shader stuff or just how code executes
because the first one makes sesnse but the second 
But now it begs the question, even if using generative AI technology, what is the difference between audio output generative AI and voice synthesizer
its mainly the difference between the compilers i think. emscripten likes very specific things
like this for example
this worked on local but emcc is complaining
it did cause this tho, im prettys ure
Something so horizontal is so hard to read on my phone haha
all:
g++ -O3 -Isrc -Isrc/include -Lsrc/lib -o main src/main.cpp -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lopengl32 -lglew32
run:
./main

the wall aproaches
lets try it lmao
its not that bad actually
most of it is just from test code
Are you sure they're targeting the same cpp standard
The wall exists for a reason

could be that or differences between GCC and Clang
I hope this isn't a gcc vs clang thing
deprecations seem like they should be due to the standard
I'm giving up it's like impossible to read on phone lol,
Just turn yourphone
Either way don't use g++, use clang++
There's no reason for you to compile with two different compilers
how did I not think of that lol, it worksss
I am dumb as hell holy
Or zoom in
nah, let him use different compilers, at least that way it's portable
free extra testing 
I turned my phone along the z axis. Now what?
I meant if I zoomed in I'd have to scroll 10 years to the right to see the rest lol 
Idk
Looks like this has been deprecated as of c++20 so either ignore it or add -std=c++17 to both compilation commands idk
I think clang 20 defaults to c++20 so I guess that explains why emcc doesn't like it
Yes
nuro tag
the best way to stop something from being annoying is to do it so often that it becomes a chore 
maybe even a habit
Gae again
dude just declares I am gay
Are you
no
what are you then
Don't worry, it's a meter. If the gay'o'meter is too high then I drop the bomb again
Yo, I want to become a programmer and create websites, can you recommend any language to start with?
check the pins
typescript is used for websites, and you can write the backend with it too
you will also obviously have to learn html and css
other than that, yes check pins
o,thx really,i think its be long path but funny
you can go to this page and it links some resource in the bottom https://www.typescriptlang.org/docs/handbook/typescript-from-scratch.html
Learn TypeScript from scratch
Thank you, this will really help me, at least I think so.

shad
hi scadu
no js?

obligatory https://www.destroyallsoftware.com/talks/wat
Yay
pog

good
hey the more equals the better 
ive heard horror 
90% of the "horror" can be avoided by just not using == thankfully 
I kinda want to use === in my code and send it to my teacher to see how he reacts lol
when using js as god intended (for one-off scripts you put on your web page) == is actually good
there's like one legitimate use case for it and it's catching both null & undefined at once
Wait 3 equals is a thing
we haven't learned that yet lol
that's uhhh, concerning
(we're doing c++ and python java is next year
Yeahhh that makes sense
cause == does type coercion which is how you end up with all the seemingly random equalities

it's kinda fucked cause depending on the types involved it actually does multiple coercions
so [1] == 1 for example turns into "1" == 1 and then 1 == 1 iirc

very intuitive

throw completion? does that mean it catches exceptions and returns false or does it mean it throws?
all those ?s and !s are confusing me
i think it means it throws
exceptions on loose equality 
there are assertions inside some of the conversion functions, maybe that's what they mean?
nvm they explicitly say the assertions shouldn't need to be checked by implementions
ah i found it
here's where it could theoretically throw
cool so TIL
https://projects.blender.org/blender/blender/pulls/140596
hurray the stupid compositor node bug is going to be fixed

now I can continue crash down on Blender 4.5's comp nodes
r
Given this is a neuro server probably python unfortunately
I think it would be rust though ngl
dont think so
depends on how you count it I guess
if it's just about how much it comes up then it's hblang
actual usage? probably something stupid like JS/TS or Python, maybe also Nix 
great now i have to repackage iopaint
and also remember how i did denoising 

english

m
i'd rather use js thaank you very much
@stark needle one :NOTPogHd: please
software
WHY IS THE PACKAGE NAMED IOPaint WHILE THE SOURCE DISTRIBUTION ISNAMED iopaint-1.6.0.tar.gz
whatever.
makes sense to me
no
That question would probably fit more for #artist-alley
Python or JS is my guess

ah yes, thanks for cutting that off right there google
i am
darn
Can an unstable memory overclock (that works fine for at least the first day) cause:
- 100% reproducible task manager crashes
- atrociously bad performance
- lag when trying to close stuff
or should I consider that as Windows being stupid?
(all of those only appeared around a day after the initial startup with the overclock)
Overclocking anything may degrade performance yes. So it could be, try tuning it down a bit
or just see if turning it off magically fixse 
Yeah, that too. If it fixed by turning off the OC then dialing it down may help
Otherwise, god save windows
I rebooted and everything is back to normal
I guess I have to see if it does it again (the OC is still on)
Also gonna run a memory stress test for longer than 1.5 hours I guess

First time I've pushed the timings below linear, as before I was just upping frequency (maxed out frequency at 3800)
cococococo
ayaye coco jambo
Hi everyone I am in robotics as I wanted to further my programming skills I was doing what's called a kiwi bot. essentially a robot that a triangle a wheel on each side of the triangle. I had everything working for the most part It's in java. I wanted to do field centric but I was only ever able to do field centric backwards I never had any help as all my class mates prefered block based code but I used Intellij more or less the same thing as well as using what's called called first robotics. My team went to worlds 3 times in a row and hopefuly continue that streak we havent won worlds yet tho on first inspire FTC. Basicly this project was my own specifically for the class for whatever reason I could never get field centric working on the robot I was working on I don't have the code to reference. Could somebody explain how I would get it working on the robot I was working on I like to learn even after I never was able to test the final iteration. Sorry for the long explanation I tend to ramble all over the place just how my brain works. Id apperciate if someone could help me I wanna buy my own robot parts eventually but currently can't afford them so I can't do any tests. Cheers
again sorry for the ramble I can't stop when I am on a tangent I don't understand it myself tho if someone could give me an answear it would be much apperciated. More so the math portion of the code as I think that's where I went wrong
Have you tried this? This is also in Java
https://gm0.org/en/latest/docs/software/tutorials/mecanum-drive.html#field-centric-final-sample-code
Oh, you were using track
But I think the principle should still hold
yea I've looked everywhere it due to how over complicated I made everything my teacher was absolutely befouled(I think thats the right word) on how much I had as I wanted to have as many safty messures and my teacher can't program so I was on my own I did go through that tho the closest I got was it being back wards. I used theta as the unknown angle and I just never fully got it working. I am curious if you could explain it
Basically to remotely drive a robot from the frame of reference of the field, the robot will need to know the heading it's facing relative to the field north.
I was limited to what I had aswell I had four motors for 3 for each wheel 1 for the arm and I remember how over kill the arm is. Some how I believe I managed to get it to move in 2 directions with a motor
Yea I know I had that working I don't understand why it didn't I wish I had a refrence I had alot of debug messures aswell
realistically my robot was over kill and way above what I was supposed to do I just really enjoy doing something that I have no idea about and just doing it. hence why I am so fixated on why it never worked
I am gonna see If I atleast have an old version of the code somewhere
I kinda don't have my college material on me so this will have to do. See, if you give the command to move to 0 degree (North), you don't have to do anything
But let's say the robot is now heading around 45 degree
You have two options. First is to do the rotation first, then the translation
not exactly as there is a wheel on the back remember in a triangle type I used I created the "front" left and right. essentially all of it mostly worked it's when set up everything is when it stopped
Ill send a rough look to what it looked like
Or you could perform the turning manuever by calculating the center of rotation
Yeah, the process is the same. The difference is just for the driving equation when doing forward kinematic and inverse kinematic
Like, no matter the robot construction, you will have to do counter rotation by 45 degree first. That is governed by the kinematic system
But to do field centric drive doesn't depend on that
Is your triangle robot using omni wheel?
Then that makes it even simpler to reason about
here let me explain it better
essentially I had Front Left Right and Back Front is controlled by two wheels back and forth. The Back is controlled by the back wheel aka the third side. like I said I had it backwards but even reversing the math and everything could not fix it maybe faulty parts I don't know. Front is always facing the forwards when you move left on the joystick it would correct itself so front is facing left now. because I had to also adjust powers as I needed to make sure everything worked. I had a week to do it so not much time as I didn't start building the final robot by the week prior
or you can combine the transforms into one matrix and then they will both be applied at the same time
good evening guys. i may or may not have fallen asleep while studying
I got the math for the left right to tell the robot thats yaw then used the back to run the motor so it's facing forwards and the left and right to run to that position
good evening well what were you studying?
oh neat I love just learning the formulas for math something so satisfying about it
the geometry part does x towards you, y to the right, and z up.
its fucked up
I'm sorry, I still fail to understand it. Try to reformulate you question and the problems you're trying to solve maybe
Welcome to robotics lol
i like my minecraft/opengl and blender world spaces
Well geomentry tends to be more fun when your doing it other than that it's anoying
Based
?? that's literally blender
nah, when i use blender i put x to the right
yea I thought you would I think I over complicated when doing so but I can't really do any testing as I am broke as shit and can't afford parts
I’m not very good at coding, but I have a question.
Vedal mentioned a bug let Neuro-Sama have access to his location. I was wondering how this is even possible since I was under the impression that computers can’t do anything unless you program them to do that thing, and Vedal wouldn’t sit down and code a “let Neuro see where I live” function.
Plus I don’t know how computer location tracking works, but I though in order to access data you had to go get it from the place it is in the memory, which means you need to know where it is in the memory. How would Neuro know what it is and where it is in the memory?
Also can she just access the whole computers memory and pull whatever she wants all the time? I didn’t think that was how that worked.
she can make web requests, so chances are she asked google "what is my location" and got the rough answer
Oooohhhhhhh
they could ask what's my ip and they could do the same
nah, IP's are innacurate to all hell in the uk
it depends
to me dns server is more accurate than ip
oh I am in canada so It deffitly diffrent tho I imagine public ips stay the same
Or if she is given access she can just use a terminal
A chart of every coordinate basis used for which software
my IP says that I live just west of london, which is 550km from my actually place
noted
is that public ip or is that your routers ip
triangulating location now
curl ipv4.icanhazip.com
Now all of china knows you live within 550 km somewhere in the radius west of London
i got refused a purchase once because the payment operator thought i use a vpn because my ip was 3000km away from my billing address (i was literally at home and not using a vpn)
Wait but he said it was for a week would she not have been able to do that before 2 weeks ago?
one giant circle we got em
meh, she will have always been able to do it, but probably just never had the reason too. "haha I have your location" has a limited amount of places/situations where it is funny, and neuro has been programmed to choose the most entertaining option
She’s done it before.
alright sending bombs around london in a circle with a circumfrence 3455.75191895km your fucked
my isp was showing my rural town :)
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAA
and my current one shows the city which is enough to narrow down where I live
america tends to have more accurate estimations (assuming you're in america)
I am not
cause they sell all your data over there
you dodged a bullet
well, if you live in england then you have to deal with being english
so you're not much better off
chat, do we prefer z axis for up or y axis for up
*Neuro cuss you
If someone wanted ones data they would just search you up the internet is so easy to access now your information is bound to already be out there
do people really prefer the american accent over the english one?
Z up. You people see a white board and think, "ahh yes, Z must be forward/backward". I see my notebook and see the Z axis coming to my face
as long as z isnt going to the right im not commiting any crimes
smh
I know I hate when they have pop up books z axis always aims for my eyes
people just like different
What is the one used by directX again?
i got my results from my physics exam pog
Meh I would just do it for funzies
RHS, Y-up right?
what did you gett
His results
8/10, 8/10, 8/10, 6/10, 5/10, 8/10
When drawing something, it makes sense that x is right and y is up; then, z is naturally towards or behind you, whatever it is (dont remember it). When charting something like coordinates, it makes more sense to use x as right and y as forward, then z becomes the vertical axis.
Basically, imo it makes sense to use whatever is least important for the domain as the z axis; though this may be questionable math wise
what was 5/10 about
thank u shuni
finally got the display 
Dat swap
something about the raw power of a wave. i said something about planck but he wanted a diffrent formula
you have to configure it obviously
letss gooo, welcome to the nix side
I like my arch

Then use arch! Thats the best part, that everyone can use the one that works for them
was it not E = h*f
Arch is structurally sound and can bear a ton of load by distributing the stress
fuck elitism and gatekeeping OSes
use windows Smuge
LINUX brother LINUX or you can attempt to root your windows
ye thats planck, thats not what he wanted. he wanted something something k^2 /2 idk
kinetic energy or somewhat, idk

I mean, if someone wants to use Windows, then so be it! I (will try) not push Linux on them but if they ask Linux all the way (situations may differ from user to user)
i gave that k = m * omega^2, which gave me half points
we need everybody on linux tho that will fix everything neuroClueless
*Take a look at Sam
wdym?
I agree I like windows for it's ease but when I am doing anything other than gaming or anything that doesn't like linux I am using it but if I am doing anything between I am using linux dualbooting it at least tho with debian I have had less issues than arch surprisingly
i bet 50 bucks im eventually gonna change to a dualboot system
Slowly all games will work flawlessly on Linux 
windows for games, and linux for work
I mean xbox and asus is doing some nice thing with linux
Sadly no, Asus and Microsoft are rolling out a gaming windows with their new ROG
root windows it is possible tho takes alot of finesse
Oddly enough, me too
Fuck closed-source vendor program
WHAT
nah, if I would care, I would do a windows VM or make it work on linux
NOOOOO
https://www.windowscentral.com/gaming/rog-ally-2-faq
IT has a new, weird explorer-less windows on it
the only reason I dualboot over a vm is I am using a gaming laptop and it does not like VMS
Which makes it a bit ??? for me, cause why not just use xbox as a base?! It is already x86_64
I think it's so they get free playstation exclusives
I'm too used to windows 😔
honestly if it works and enough people fight for more access I say just stick with it
also wsl strikes the right balance of comfort for me
though I wish usb stuff was easier
You know its probably easier to chop off windows BS than to add features to support more games without the game developer has to do anything
Oh yea I forgot about those I haven't tried a WSL yet
Honestly I cannot wait for game issues to arise due to missing explorer related stuff
But Xbox now has playstation exclusives I mean honestly lowkey smart
God Of War on xbox goes hard
Honestly I am just waiting for nintendo to throw in the towel and add there games on pc
why would they do that when they are winning?
cause as long as I have pokemon nintendo can go fuck itself right through there giant assholes
Well I havent bought an nintendo product since the 3ds
I'm sure that will crash the market for them
the switch 2 is the fastest selling console of all time and it has a single game
it's funny how everyone hating on it flipped there switch upon release
but I refuse to gobble anymore of nintendos dick they have screwed me over too many times.
that was too graphic I regret saying that
The goal is that certain components do not start until you switch to desktop mode and actually need them
i forgot to state (here) that i decided to install nix on my 16tb seagate exos drive instead of my main nvme ssd (because, well, i dont wanna have grub and windows share the same disk due to dualbooting issues and i cant afford an ssd atm) UNFOCUS


Shoot did I say that
a little bit
bro
you might want to consider not saying that
Sorry I don't know what came over me
wow
i had a glowup

so shiny
I mean sometimes it happens to the best of us right
Yea I think you might be
Honestly I fully deserve that warn something took over

What happened here?
the evil
Need any bomb?
no bomb
I only have the tutel image one
I'm considering deleting it since everytime I open my gallery his face greets me
here, of *all * places bro 😭
It just happened something came over me the neuron activated and I acted upon it
bro just has no self control
You might be on to something
I forgot where I got this meme. By chance, did any one of you send this here before?
bro forgot this is #programming
Hey, I tried to find who sent me that
i didn't send that

why did he chew it
would you rather have him swallow the egg whole?
Touchè
I do it just got to make sure my throat is nice and moist
brother are you high?
Alright so the criminal that sent it to me isn't here at least
brother you are the criminal

Not yet(surprisingly I have never been high or planned on being high.)
Anyone wanna share the curse to #general-network ?
not really
no
Rare
hblang pog
what goes in programming stays in programming
@real sierra i have defeated the speedlines with the power of krita assistants
surely i'll stop hating them now
surely


:SpeedR:
:SpeedR:
If they dare to open the channel that is
nah they would never
Man and I thought id live another day mods please mercy
Have you seen some shit that happens here? They are afraid of what happens here
shiro? who? 
actually I am not scarred strike me down mods you don't have the balls
yeah the mods must be terrified of us
yea
is there some serious
ness going on right now
I mean naturally I am very intimidating there shaking in there boots
it would be funny tho.
give him a 3 day timout
was there ever
i do indeed feel a catastrophic lack of glue in here
My sheer power emanating off of me right now they would not have a chance


thank you shiro
yea I mean what else am I supposed to drink water never
non programming context

we will now stick together shoulder by shoulder
Programming? How interesting
glue (the UI layout prototype)
is it just me or does #programming have more normie topics now?
i feel like it was more nerd shit a year ago
Do you prefer we go deep dive into how mov is turing complete again?
glew (opengl extension wrangler library)
sure
glewless 
i do happen to have glew 
should've used libc 
GL-eww
gloo (a cold dome with no eyes)
(libc wh
)
its made by the big C to sell more C
the consequences of being one of the topmost channels in the server
it was better when it was buried under everything else 
glew 
What did you do there? Shit on ZFC?
why is the object of morphisms lying
hey what's wrong with ZFC
it should be telling the truth
Sir it's your birthday I see I wish can you put that really cringy it's your birthday with like the dinosour costume I swear this isn't a fever dream

?
Nothing. Maybe you're one of those that reject the C
the correctness of the C depends on the answer you want
it's silly to argue whether it should or shouldn't be there in general
choice of axioms is ultimately a question of interpretation of the problem
C the language?
The axiom
Of choice
I am kidding my bad
in cas you havent noticed
can I get a tutorial
shiro is always birthday
I really need it man I am like physically incapable
oh, shame 
I have a disease that strictly restricts me from doing so it's called offtoposis
probably why I don't stick to one project at a time
hi shir
shiro what is your favorite set
mine is the empty set by the way
my favourite set is the set of all sugar crystals
its size is uhhh
its size is 1 as long as it only contains itself
more than 1
Dang
no, its like a pointer
0 
so does a pointer not count as a value?
pointer points to value. pointers are values. if a pointer points to itself, the size of the pointer doesnt change, because pointers have (generally) one size
i guess then its fully empty, as longas there are no other values in the set
but itself is only filled with itslef, so its meaningless
there is nothing of substance
its essentially equivalent to a singleton set since a singleton list
Hey, this is not #artist-alley
i will draw you programming
Weird threat, but ok
me next
I knew that ticket was overpriced
thank you AI for this very clean and completely not visibly AI generated foreground removal
the ambiguous green mass
I say it looks perfect
i can read links

ah yes
i think most people have this video id memorised
Just the last XcQ
this is why links should be aes-encrypted with random bytes prepended and a globally known decryption key
wrong order
No you can't 🪄
-#
Only you can see this message • Dismiss message
try harder
i thought other people couldnt send stuff liek that you anyways?
so like, who would fall for that?
you'd be surprised
mostly those that don't know the in's and out's of discord
nice embed lmao
use <> around your link to remove embeds
aka:
[also strictly on topic](<https://www.youtube.com/watch?v=dQw4w9WgXcQ>)
A Catchy, Silly Song. . .
Real Video: https://www.youtube.com/watch?v=w0AOGeqOnFY
no.
there you go
Noice
then you can use a custom emoji like this:
and the small header (-#) to make it look like an ephemeral message
web is working again 
em script who?
the emcc command had grown even longer 
emcc -O3 src/main.cpp -o output/main.html -I src -I src/include -I models --preload-file shaders --preload-file models -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s USE_SDL_TTF=2 -s MAX_WEBGL_VERSION=2 --use-preload-plugins
at this point i should just put it in the makefile
Bash script 
no
im looking trought the json.hpp script to see where the warnings come from...
and holy fuck
@sage crag new graph just dropped
Jokes aside, who failed to bother to write a macro for this
it is, quite literally, a macro
Yeah ig it is
found the line giving the warning, on line 26570....
even i never wrote a script that fucking long
Text editors must love dealing with files this small
im runnig that local server rn too so im using 25gb ram rn

theres a reason i bought 64gb i guess
i wonder what to do with my other 64gb ram, seems like a waste to sell it

its only 3200 compared to this 3600, but still decent
Depends on if you have another computer ig
i have my old pc, but the plan was to sell it. its been months tho so i doubt its ever leaving my house
might make a server out of it for the gamejam
i believe i sent that one on this server before
Not the worst idea
So time for it to be linux
the c/c++ packaging is so bad that having a dependency as a single file is heaven in comparison
fair
also its not called a script
We found the culprit everyone
whats the difrence?
egg
egg
See? I knew I wasn't crazy
hi t 
hi iggly

Bruh, ST doesn't even have STM32G431VBx3
today i learned that linux very recently got a BSOD for the kernel panic
Will it be CAN 2.0 or FDCAN. Only god knows
Wait, they did?
weird that it's ssd related
did you know idris has built-in transmute
yes, apparently since 6.12
That would be funny
But note that sometimes getting a static IP or domain is pricy, depending on if you can do it with router configurations or not
Finally, useful bluescreen
Just use cloudflare tunnel. Is free
idd asume just port forward on my router, than run that through cloudflare?
so i dont leak my ip
If your IP is public, yes
I don't know, I just use a silly bypass thing with a router setting
But sometimes residential ISP doesn't provide that OOTB
whats OOTB?
out of the box
Out-of-the-box
don't port forward if your IP isn't static
just use Cloudflare Tunnel, it's easier 
i losrt the ability to portforward anyways
Ngrok, bore.pub, tailscale....
ikr
it also makes sharing using other devices way more convenient
I knew that some routers have incredibly limited functionality, but literally no interface? 
Anything that costs money or doesn't work directly without any setup on the client machines is not an option for me personally
And I have a router bypass anyway, so who cares
im assuming the installer turned it off via usb
look up how to enable it then
dont need it anyways, ill use cloudflare if need be
I don't know how big is the latency tho
old one was the left one, now we have the right one
Use python instead of swiching to a decent lanuage for years mhm

Bore.pub is entirely free
Well, I don't know what it is
me neither
Tcp tunnel
they rebrand existing hardware
i'm not much better i'm maining js/ts
And what does it map to? Where does the tunnel end?
its something from sagemcom router
And is there uage limits?
we have unlimited
The diffrence is that js/ts doesn't have any other options, python does have much better options
We love unlimited
the latency added by CF Tunnel should be practically nothing compared to using Cloudflare normally, which would the case anyway to avoid leaking the origin IP
even when using Cloudflare the physical distance and ISP routing stupidity will probably be the majority of the latency for a lot of people
idk dioxus (wasm rust) is pretty good for what i do which is frontend, but i don't use it
Yeah, fair point. Packet do be traveling round and round
Okay so basically, the command would look something like
$ /usr/bin/bore local <port> [--host <ip>] --to <bore_server>
Where bore_server can be either a selfhosted instance or just bore.pub
And then it will assign a port on the relay server that is linked to your app
And port 80 and 443 (standard http and https ports) link to their github
I've heard awhile ago WASM for elements is still lacking, but maybe it is getting better than when I last heard
Seems particularly silly to me
I use it for all my stuff
Nah, useful when behind a NAT
Well, I guess I don't have to worry about that
also btw the latency is the same as proxying through cf regularly (the ddos protection orange cloud icon), it's just you initiating the request vs them so you can bypass NAT and firewalls
I wait until my upload is not 20mb compared to GB download to do decent serving
i cant anymore
... I've been trying to import discord for my python chatbot for the past 30min now and shit aint working
Only 1 ISP here that provides +50Mbps upload for residential. And even then, it's availability is limited
we love python for discord, it has no issues at all
I have noticed 
if someone here has a death note can you pls write python in
The #1 reason I don't use discord.py anymore
My current project is in python but I'd still be doing it
does sb maybe know how i can fix that it cant resolve the package?
install a diffrent discord framework 
I'm a changed man after I know uv for python
Meanwhile me: Kotlin
https://interactions-py.github.io/interactions.py/ I prefer using interactions.py for discord
imma try it out tmr, thanks
for now I'll try gambling by changing the interpreter a bit

What could go wrong
linux
BSOD
what in the damnation that is systemd is that
I rember a vid awhile back saying systemd was going to add BSODS, seems like it now exists
Honestly, if you see BSODS as an issue then just I'd ask what you do prefer for easily grabbable debug infomation.
The bit magically transferred via EM radiation of the CPU being made to compute in a certain pattern
Of course, how did I not think about that?
systemd isn't even hiding the fact that they want to be just like windows (which means shit) anymore
I'd disagree with all of it being bad, just like every OS. Some parts are good, some are bad; and right now we don't have a very best solution.
with windows, most are bad
and it gets worse as time goes on
i'll go with a sentence that Several UNIX Admins go with in regards to systemd: "If this is the solution, i want my problem back."
on a side observation: That BSOD looks like it helps with goddamn nothing.
it gives you a QR Code... Yay? that's it?
it accomplishes close to nothing.
windows' bsod doens thelp much either tho
Linux's Kernel Panic actually gave you a detailed memory dump on screen
where it showed WHERE exactly it failed
but no, let's go backwards and dumb shit down because "people are too stupid" or something
or "COM-Based Terminals/Debuggers are too antiquated" despite the fact they do the job just fine
hell, with a Terminal/Debugger you could also debug the kernel panic yourself.
instead "Make way for Systemd's Sorry Attempt at mimicking windows", because we haven't done that more times than not!
it all does not make sense for me.
instead of trying in vain to code something for people who shouldn't even use computers in the first place, use that effort to actually improve the software people actively use your platform in the first place. and not whatever red hat feels like doing it because they think they have "more power than god" on what becomes law in the linux world.
Man, I like how interactive coding software is. Almost too interactive. Like I tried to fix some stuff, deleted main to see what's gonna happen and compiler just stopped working. Needed randomizer function and googled how to implement it. Turns out that I need to just type [rand = "0.8"] in a toml file and after doing that it just like "Gotcha fam" and downloaded something, and then BOOM I have a randomizer function. Coding is awesome. I still don't understand anything, but it's cool af
Yeah, for stuff like that rust has a pretty good developer experience
Can't wait to learn syntax properly and delve onto low-level stuff. Like physically moving bits inside of memory, how cool is that
Still can't really wrap my head around {} and ; difference. Like if I finished the block and defined the scope or compound expression, why do I need to terminate the statement with ; ? Why can't it understand it without the explicit ";"? Weird stuff
{ a; b; c; 5 } evaluates to 5, { a; b; c; 5; } evaluates to ()
(() is the type that contains nothing, also called unit)
you can try something like
println!("{:?}", { 5 });
println!("{:?}", { });
println!("{:?}", { 5; });
As far as I understand type is like a well-defined operation, like square root in math. It does what it does and nothing else. And then we feed variables to it for transformations?
There are a lot of very similar concepts and I get mixed up in them for now
{ a; b; c; d } means:
evaluate a and discard its value
evaluate b and discard its value
evaluate c and discard its value
evaluate d and make the result the block's value
but if you remove d, there is nothing to define the block's value, so the block will evaluate to nothing, that is, ()
Rust is kind of unique in that everything is an expression
type is not really an operation, its closer to a set of allowed values
I have a long way to go
So you can assign variables to the result of an if statement
not really unique, its a idea that appeared in the 50s
Or you can match on an if statement that uses a closure as it's condition
Unique as in not many languages that you see actually have it
So, value can de assigned and also can be evaluated and its two different things, right?
Evaluate is compute the expression?
yes
Makes sense
You have unlocked new role
nwerole
nwerole
I have unlocked it
If there is no instructions to how evaluate a variable it will return the variable? Like If I just say "go evaluate 5" will it return 5?
5 indeed just evaluates to 5
If I say go evaluate { a; b; c; d } it will return d?
yes
not really return, returning is a different concept
the block itself will evaluate to d
same difference here 
It will evaluate it in secret from me
its not really in secret, you made it evaluate it 
so
let x = {
println!("test");
5
};
println!("{x}");
this will print
test
5
Funny
mrmmm
So string test is assigned to a variable x and then it like "oh, also: 5"
konii purring noises
no, string test is not assigned anywhere
String and just text are different things, got it
5 is assigned to x, println!("test") is just evaluated but nothing will be done with the result of println!()
thats not really what im talking about
anyway, the important thing is the program will run whatever computation is before ; but not use the result in any way
If it doesn't use the result in any way why would it print it? Printing is a result, no?
printing is a side effect, the result is ()
when some calculation is ran, it has results and effects
results are what the program gets, effects are what happens to the world
I feel my horizons expending rn
some languages make it more obvious by separating the two concept, but rust decided to just allow any computation to have side effects
It's fun tho. Difficult stuff is fun
also its by no means a solved problem, some of the cutting edge language designers are working out ways to make effects nicer to think about
Can I group like this {a; b; c}; 5? Will it evaluate the set of variables to 5 or is it wrong in terms of syntax?
this is equivalent to just { a; b; c; 5 } yes
And fn function() is a syntax way of telling computer "the next block is the definition and mechanism of a function called "function" when you are asked to execute this function you do exactly what is written in the block {} right after it"?
This is unit, right?
it is a bit different, functions have multiple arguments specified in parentheses, a zero argument function doesnt take a unit it just takes zero arguments
there are some languages where functions only have a single argument, in which case a function that takes 0 values will indeed take a unit
overall though yes when you have a function it can roughly be thought of as just replacing the function call with that function's body (with some caveats for early return)
i wonder if its more accurate to distinguish between scopes (blocks) and scopes (closures)
I mean, I made a simple program that asks you your name and if it's my real name it praises you and if it's anything else it insults you. And I manged to make it work by defining fn main() and having a block with everything else right after it
yup, good job 
ok now get the actual username with the Command
people in this channel have been programming for years, often on their jobs (40 hours a week)
for lots of us we also do it in our spare time when we arent working (the rest of the hours of the week)
i dont think they know any windows commands 
Its an std::io thing. I wanted the program to be interactive, so you have to type it after cargo run
hm?
stdin
I need to type the name into terminal of a compiler
i meant change the name check to compare the input name against the actual username
rather than a constant
but it was a joke 
While I have people to bother: is "?" always an error indication symbol or does it have other uses in rust?
in rust i dont think it has any other uses
except when used in a string or as a character or in comments of course
wouldn't it be better to look at env vars for the username rather than spawning a whoami
env vars are easier to fake than uid
ok damn are we making a super secure app or something
I think I'll learn struct next. Seems like a fun concept
it should be fairly safe to just go in the same order as whatever is the material you're using
I just create a problem for myself and bang my head against it until it works
ending up with rust as a first language is crazy work ngl
I wanted to start from pure C, but I didn't figure out the compiler
It just didnt work no matter what
from my experience teaching someone C as the first language, i think rust is a nicer option
i can recommend using wsl or msys2 if you want to touch c on windows
windows sucks for c programming 
I was like: download this thing that must work out of the box and be all done instantly.
Missing the linker
Download linker
Missing the linker
My face when
with msys2 or wsl its as simple as
gcc myprogram.c
I mean, C is my second target after I learn rust. I want to do low-level stuff. Like real low-level stuff. I want to speak assembly like its English
do you believe rust is a better learning experience and that the skills/concepts will translate better to other langs? to be clear i don't think it isn't i'm just asking for insights
no one speaks assembly like its english
thats why we have compilers

I will be the first
sure you will
good luck with that 
i think that if you have the time its better to learn multiple languages of different paradigms, and typed languages are the best for beginners because beginners make sooo many mistakes
Can confirm
rust in particular has a heavy focus on tooling so it has good error messages
wdym "1" == 1 is false its literally the same python 
print("1") prints the same as print(1) so it must be true
The c ecosystem on windows is so bad, I've seen people reccomend to just download the zig compiler and use it for c
Use notepad
dont do it tho
sure zig cc works fine and also produces smaller binaries than gcc but uh
well, i guess zig cc is mostly just a frontend for clang
If you are really desperate it's better to try that than to give up at least. I only tried it out of curiosity once to see if it'd work but haven't done anything with it other than that
My friend who is good at coding does C in VS code and says that it works decently. I mean, he also has Linux, but I am not sure if it plays a role here
Everything is much nicer on Linux other than gaming as far as I can tell. I gave him an old laptop that I wasn't using. It had 90% load on desktop. Like just moving your cursor around caused it to lag. Two months later I am at his place and turn it on. It FLIES. He installed some Linux distro on it instead of Windows 10 that it had
gaming is easy on linux as long as you use steam
you wont be able to run valorant or roblox or league or other games with anticheat whose developers actively fight linux users, thats about it
but there are other problems like not having decent cad software
zig as a c compiler is especially great for cross-compiling since it ships musl for basically every platform 
Yeah, it was funny to scroll through the programs my friend installed on the laptop. There was full microsoft office, but every app is like a knock off version of it's windows counterpart
i assume you're talking about libreoffice, not microsoft office
Not saying that they are worse, just look funny
I mean in terms of functionality, yes
and libreoffice is actually available for windows as well https://www.libreoffice.org/
Free office suite – the evolution of OpenOffice. Compatible with Microsoft .doc, .docx, .xls, .xlsx, .ppt, .pptx. Updated regularly, community powered.
He was trying to indoctrinate me into Linux for months, but I am not ready to be converted yet
I crave comfort of Windows
Well, to be honest even using Windows is a struggle sometimes since I am pretty new to having a PC in general
I'd say not so much, click and play is diffrent from making sure proton vibes with the game then have it work until something else breaks.
Easy for linux level people, not so much for average
what's a " 1000 line switch statement" ?
bad
explian like the tech illterite numbskull I am please.
you have 1 thing
and a row of 1000 other objects
you start at the first one and check if the original 1 thing you have is the same object
ok
very complex cause
if (matches #1) do thing
... 999 more branches
woah 😮
luckily since computers are fast its not too bad, but idealy you limit it
Ideally you'd be splitting it up into smaller partz
yeah that would be smart
It can also mean that the entire code is within the switch statement
the fun thing is that this isn't necessary true
is it not?
it depends on what the optimiser feels like doing
ah
it can turn it into a table
switch case fallthrough 
Can it be optimized by sorting the 1000 variables first and then applying comparison to probable matches? Like if the value must be positive and we have 400 negative ones we can disregard them after the sort. Or will the act of sorting itself be more computationally hungry than 1000 comparisons?
if you already know that some cases are more likely than others you can declare them in that order yeah
thx guys 🙂
Oh, like "if less than 0 don't even bother" type of stuff? Yeah its better than sorting for sure
The compiler can definitely do that, but there is also the consideration that for "just" 100 cases it's probably faster to just go through them top to bottom so it's not that simple to choose to do that
thats not really how switch statements work
in C, a switch statement just compiles to a lookup table (or potentially a few lookup tables)
I really like optimizing stuff. Its scratches my brain in a funny manner
the reason long switch statements are bad is not performance but code structure
how they work is language dependant?
that sucks
Can't you just collapse things you don't want to see?
in python, you must use a series of ifs
well, there is match nowadays but its pretty new and rarely used
mfw 3.10 is almost 4 years old and half the ml libraries still don't seem to support anything newer
in C#, switch statements also support strings
which are first hashed
then compared using binary search rather than a lookup table
(since the hashes are understandably very far apart)
and then compared character by character to make sure its not a hash collision
Create a hash map 🤓 ☝️ (I don't know what hash map is but I heard it's a solution to everything)
loud incorrect buzzer
pinephone camera produced grayscale output
#merch message
granted the install has not been updated for like a year (not my phone)
had to comment out this code form the gltf loader cuz it broke renderdoc
im guessing its cuz renderdoc leaches off the leftover cpu-side buffers
What language is that?
c++
It looks cool
What does ++it do
it increments it its basically the same as it = it + 1.
though in this case it's a bit special because it is an iterator
A value can have +1 as a treat
Il prett sure it++ adds one to it, but also returns it without the +1?
c++ is good but assembly is not fr
Then dont write asm
correct
Yep, ++it and it++ do the same to it, but prefix ++ increments first, then returns it while postfix returns the original after incrementing.
yeahhhh I tried it and hated it lol
Ok, what is returning a value? Can a value be used without being returned?
Chris Titus just reported that Microsoft has begun firing devs of Windows 11 and replacing them with AI programers. I guess all of my Windows 11 errors will get forwarded to Vedal from now on. 

hows peoples day btw
Someone tell Vedal there is a problem with a GPU driver
Nah I'm not paid enough for this shit
Good, learned a lot from wise coding elders of this chatroom
Returning a value is something a fuction/operation can do
< "Someone tell Vedal there is a problem with my Windows PC"
Veeedaaal my pc is on fire, stop mining crypto on it
That only happens if you got a lamp
It seems like it's a very fundamental thing so Ill just read a book later, cause bothering random people to explain everything is not it
Imagine the line int var2 = var1; here the statement var1 returns itself for the assignment. When we replace that with var1++ or ++var1 it makes a difference
I am not qualified to understand this statement yet, will figure it out by myself later. Thanks for feedback tho
Maybe 'returns' is not the correct term for it, maybe 'results in' is more accurate 
I don't like words in general. Usually when I learn something I bang my head against the wall trying to do what I want to do and in this process I start intuitively and subconsciously understanding everything
So I might sound incredibly dense when being taught by someone, but when I learn by myself I am a pretty quick learner actually
Italian.
Grazie
So the correct nomenclature would be ++it is an expression and this expression results in a value.
-# Thanks c++ standard 7.1.1 [expr.pre]
Switch engines, it is not worth it 
Can't 😭
Idgaf of graphics but procedural generation support
smh, just code it yourself 
i feel like surely there's a better way to get procedural general support into whatever you need than including unreal engine
It is more of a large scale map loading method
Pretty sure unity is painful on that kind of tasks
I would make algorithms by myself but I do not want to handle genshin sized map loading by manually 

also speaking of ue, the other day i felt like going through the repo so i tried building it but it created so many threads as part of the build it kept dying 
Hiiiii
SuperComputer is non optional
I think im cooked
audio processing in ML is far bigger than I thought
I just wanted to finish this soon but 
i am not going to make the ue5 before summer break


Unity bad
Unreal worse
Anyways, my phone keeps breaking over the antenna usage
Before it was only 4g, now it also breaks my bluetooth
@olive sable what game engine should we use then?
Or godot
Life is Roblox
Fr fr no cap 💯
Anyways, goodmorning and bye.
I have exam in an hour and forgot to revise yesterday
Time to die 
@pliant tree and @tight sparrow
the query testing for the pet command!
sorry it took so long
i was writing comments
virus
ignore that, discord added it
dude i added comments for better understanding, why do you sitll tihnk its a virus
anyway, bye
virus
broken
broken
broken
perfection
It should be ashamed of itself


virus