#programming
1 messages · Page 51 of 1
I guess
@sage crag are you older than 0 seconds?
my observations so far led me to believe, that picking rust as a language of choice has same reputation as picking bleed build in elden ring
Relative to what?
Rust is the most loved language, but it turns you queer or smthn i guess.
I dont make the rules
relative to the length of a second
between the date of birth and the instant you read this
Yeah this
You might be able to define konii's age as a limit
ok
do I make my raytracer multithreaded from the get-go
I'm definitely the most obvious male out there
two things that I cannot understand
(no)

Oh you're doing cpu side?


That's fair
Look, if anyone wants me to call them by their preferred pronouns, I'm down to it. But I can't even remember what I ate for breakfast so ymmv.
The raytracing project we have to do for school is uni-thread on the cpu 
that's fair
Your profile looks 1:1 like that of a girl that spends too much time online
HELP 
well my thinking is basically that because there'd be so many bins that I could use atomics with very little risk of it being much slower
that reminds me I should spruce up my profile at some point
how long have I had this pfp for anyways
Thu, 19 Jun 2025 20:42:47 GMT that doesn't sound right Last-Modified
how dare discord no longer tell you exactly when someone changed their pfp
dementia
Forgor
Goldfish
A PCB drawing
I don't think I still have the original ngl
is it time to search twitter for a new cat
or do I go the weeb route instead
I offer this cat
that sure is a creature

I like this sideeye
what about this sideeye
Tis a very old picture
I could probably unpurple it
like my steam is already Kita
Then change the steam to cat
Very good too, though more subtle
:(
Niuh :((
ok different cat for now
but this one is a bit small and hard to see
so probably gonna change
just put 2 bytes per byte in your ssd
new cat pfp spotted
Reddit makes my head hurt
why do you need to put a ; after the } of a class but not a function? thats weird
Apparently neuro is just chat GPT or Llama 2 (also apparently llama 2 costs $100,000 to run locally (on the low end))
Welcome to C++
Reddit makes no sense
hey guys, i was wondering if anyone has any tips they could share for rvc stuff (rvc gui), i keep getting black screened or it doesnt output
very oversimplified there
neuro is a heavily finetuned version of an unknown premade model
Speaking of cursedness and cat
Is that for me?
I know its wrong but that's what reddit thinks
Factory reset
its not entirely wrong afaik
Wrong reply m8
oof

I can run llama 3 on my phone but apparently it costs $100,000
Llama 2 has small model sizes that can easily run locally on a gaming rig
Llama 2? Costing 100K to run locally? Complete garbage, you could run even the highest 70B variant on a double 3090 setup and that costs like 1400-1500 for the GPUs and maybe 3K for a whole system
It was not specified for how long will it run. In a couple of decades electricity cost can run up to 100k
Or a Samsung A55
Even less. If you quantize down the 13B variant it runs on less than 8GB VRAM.
I wanna shitpost with the neurovoice 
I can run 70B just fine on my laptop with iGPU. How fast it is is another matter tho 
Silly
I know its incorrect but that's what reddit seems to think
Also
why you even using reddit as a source?
Llama 2 only has a 4k context window, so that would be a highly limiting factor, but also explains the rapid finetune to get stuff out of the context and into the model.
Recreate neuro's voice through AI voice mask [one of those pictures of mega brain meme goes here]
Its funny
Seems like Reddit has a lot of idiots that don't know what efficient purchasing decisions are
Didn't someone say neuro is a finetuned model?
Apparently it's possible to do finetuning to increase context length
There are a lot of people that know what is AI, very few know how is AI
Oh super box hi
There are methods to do that (Yarn and Rope), but they are only effective to a certain degree
BTW this is the comment I'm referencing https://www.reddit.com/r/NeuroSama/comments/zw2a8w/comment/j46bkt6/
That post starts out strong with absolutely no clues being had
My new project idea requires creation of JSON file. Difficulty - Impossible
Seems like whoever that is is an idiot in more ways than one
I'm 99% sure that comment was written by GPT 1
I'm facepalming so hard at the suggestion of OCR'ing twitch chat
Would honestly not be surprised except that GPT 1 doesn't have enough data to write something that contains some of that stuff
I didn't even notice that

...wait, what?
I have 90 days to finish my ai :3
I wish I hadn't procrastinated for the last 2 months
the compile time has gotten long 
gotta wait liek 20sec each time
could be
you should rewrite all of the twitch messages onto a notepad and ocr that with a webcam instead
Chat I need advice
or have the notepad be read out loud by someone on a discord call into tts
very efficient
Unsure how realistic the article claims are... but "latency" is in the title:
https://zhihaojia.medium.com/compiling-llms-into-a-megakernel-a-path-to-low-latency-inference-cf7840913c17
go ahead
did this not exist? if not and this is a breakthrough then my question is, are ml engineers actually stupid?
Are people stupid? Maybe... Are people lazy? Yes
Removed by the wrathful hand of a mod
was that at least worth reading, i just started
bro im here to complain about drivers
good news, i found out what sensors my cameras are using
Is that complete rebuild with external libs?
Becasue that's pretty long ...
Is it really useful to have first-launch latency reduction? Maybe
Is it more useful to have long-session latency reduction? Probably
Content making isn't taking off and dude was upset about it. Nothing too bad
meson calls in the distance
i have a decent amount of libs and files ye
Did they remove my text?
How many of those are actually getting compiled every time though
i guess so ye
Bruh
idk, i hope not all of them cuz i didnt change them
find your own means to connect with the needed people, don't do it on this server
how hard is it to write my own drivers 🥹
If you just grabbed them off the internet as headers + compiled library then I guess they shouldn't be touched at all
wdym compiled library?
i should just buy a usb webcam surely nothing is worth this effort
.dll or .lib files
it doesnt look worth it to me lol
Ez. But writing actual functioning one is hard
thank u computed, appreciated 
that's should still not be 20s worth of compiling. The entire top block is STL and just needs to be linked, glm is pretty small and platform is youyr own tiny header iirc. Unless loadGLTF is gigantic there is no way this should take that long.
some of them have dll or lib files, but most dont
sdl has a dll and lib, and glew only has a lib
It's not. IIRC, all of sams lib is the source
wait my discord activity status is bugged in a very interesting way
Oh, so not all at least
its proably cuz im including and preloading some files
sdl is realistically by far the biggest one so that's good at least
Yeah, but I mean it. Writing driver for linux is easy. But when it needs to interface with hardware and function correctly, that's hard. Especially without knowing the full protocol
yeah i get it, it's probably not worth tbh
is there a git repo for this yet sam 
Oh, definitely not
i should make one ngl. but i will have to set up a proper .gitignore first
dont want to have a repeat of last time
The content should be *, and just ! everything that is your code 
you can just git init and then fill the file until everything you don't want is gone 

*
!main.cpp
!some_header.h
(don't actually do that for the entire project)
im splitting my files so there are a lot more folders this time lmoa
Yeah, I was joking lol
idk what build is but its empty so ill delete it ig
i've never seen anything like this. it's been stuck like this for a while, and i'm not listening to anything since like an hour ago
Solution, treat discord like IRC with multimedia 
i mean i do treat it as that - also voice chat - but the spotify integration is nice because spotify's own alternative doesn't show what my friends are listening to in real time
and our friend group does actually use this
it's fun to see someone who only listens to jrock suddenly listening to playboi carti because they pressed the play button on someone's profile
I don’t understand what’s wrong with trying to connect with people?
I’m not doing anything bad I need honest advice I was more so hoping that a mod would help me or sum but ig not
For content creation, go to art or general chat probably
Networking is not a purpose of general chats. It comes off as a sort of self-promotion and nobody really likes it. You are also in programming chat which has no relation to the topic you are pushing. And trying to debate mods usually doesn't end well, cause most of them have no energy for that and will just kick you
You are also in programming chat
"networking" vs "networking"
Oh ok cool I get that fr I thought since I might have to go down the programming route that if anyone knows stuff about coding my own Nero I could get help and since I was already on that way I might as well ask for content creation advice
Understandable, have a nice day
obviously it wouldent be a exact ripoff but I’ve tried to code something close but failed and gave up 😭
I would love to get so good at programming that I actualize my stupid idea of coding a bunch of bots in a simple environment where they would need to get resourses and gradually evolve ways to communicate with each other. So the purpose of it is to see what how would language emerge in this weird 0 player game
When you wanted to be linguist, but the only available education was mechanical engineer
what ways of transmitting information do they have
HELP ME WRANGLE FREECAD
An action opportunity where they would be able to use n-amount of any unicode symbols maybe?
as in we, on earth, usually use air vibrations and light to transmit information
or physical touch
I heard the Nero code is out there just public is that true I can’t find it
no
Yeah, let me just casually simulate the universe
That couldn't be farther from the truth. You maybe find "attempts" at a clone, but no. Our ai overlords are closed code
To be fair, even if the model is public, without the weight it doesn't do anything interesting
yeah I’ve tried to remake it but it’s impossible
Move them by hand until success 
then i predict they'll just choose a random symbol as a sign they want to tell a certain thing, so a symbol will roughly translate to a whole sentence - like "drop the X resource"
If it was "easy" to do, vedal wouldn't be in the position he is right now. But don't worry too much. Even making some kinda chatbot already takes effort.
Keep at it and maybe you'll find your way.
Just don't ask for my help. I have zero idea about AI
That is still interesting af, cause I want to have generations of them and majority of records would be passed down, like "when I said this to this dude he did that", so the meaning will consolidate overtime. Or chaos emerges and nothings means anything and I sob gently in several corners
do that but only the emoji ranges
that sounds fun
obviously they won't mean the same things to them as they do to us, but the idea of them speaking emoji to each other sounds amusing
has definitely been made with some special sauce, there has been A LOT of other AI vtubers / streamers and such, but all of them feel so bad and hollow compared to 
no idea what
has done but he has cooked, also the fact that he didn't just make
v1 and call it a day,
is the product of years and years of insane effort
Yeah, it will be funny.
Bot 342->Bot 451👉 👌 😘
Bot 451 drops a piece of wood to Bot 342

I am only like 7 years worth of learning away from making this project a reality, should be easy enough
Famous last words
Did you factor in how many rewrites you will inevitibly do when you skill up and become disgusted by your old code?
I can always start again!
And again!
My point exactly
Until I die, then I cant
please don't fall for that trap. Is better to do something, even if it horrendously coded, than trying to do something and re doing it mid way. You'll feel better that way.
I mean the skillset required is like 7 years worth of learning, factoring the work
Cause I am not a programmer
do you ever truly finish anything
there are always things to add
and iterate on
Just do a new better version from the ground up. Like V1, V2, V3... Wait
Oh, absolutely not. But at least, having some "release" is better than nothing. You'll probably abandon it even if it needs iterations 
I am starting a text-based fishing gacha now as a learning experience. Need to create a JSON file, pretty intimidated by that. Never have I made something so complex
i don't understand if this is sarcasm or not
oh don't worry then json is easy
JSON is pretty easy once you get it. But have fun trying to guess why your code is not working. Then you realize your code is not formatting the JSON correctly
you're using rust right? serde is great
If you haven't looked into parsing yet, the serde crate will get you there easily.
There will be like a list of fishes that you can catch and those that are caught will be added to collection, which must be preserved between the executions
So collection is json... I think that's how it should be done

JSON is good in this case because with serde you can easily serialize and deserialize your structs to and from JSON easily using serde
I used parse to turn a string into integer once
It works similarly but a bit differently. Let me fetch some code real quick.
You don't have to, but if you want to I will be glad
Usually it's really tough to teach me, because I can't learn from explanations for some reason. It works better when I bang my head against the problem until either the problem or the head crack
So I kinda feel bad for people that want to help me
Cause god help them
Let me just give you some example so you know what to look for
#[derive(Debug, Clone, Serialize, Deserialize)]
struct PartialToolConfig {
/// The unique name identifier for this tool
pub name: String,
/// The type of tool this is
pub tool_type: ToolType,
/// Human-readable description of what this tool does
pub description: String,
}```
serde is actually goated compared to what other statically typed languages often have, i'd take serde over gson or newtonsoft.json or whatever c/cpp have ANY day
So you can see there is that struct I defined
and above that you have that #[derive] thingy
The Serialize and Deserialize come from serde like this:
use serde::{Deserialize, Serialize};
Putting them there makes serde able to generate JSON for that struct (Serialize) or parse a JSON file into it (Deserialize)
Do I need to add something to dependencies? Last time I had to add randomizer function for example
Yes, you will need serde as a dependency
Aha
hey can you do ```rs\n instead of ```\n to have syn highlighting so it looks nicer, especially on bigger codeblocks
oh nice, didn't know that
it doesn't show up on mobile tho
Will this JSON be automatically created where it's needed or do I have to specify a path?
This was just enabling JSON do do parsing. The heavy lifting happens later.
Mh
you have to handle saving/loading manually, the correct terminology would be serialize and save to file/read from file and deserialize
In my case:
// Load the main tools configuration
let tools_content =
fs::read_to_string(&tools_config_file).map_err(|e| ConfigError::IoError {
context: format!("reading tools.json from {}", tools_config_file.display()),
source: e,
})?;
let partial_tools: Vec<PartialToolConfig> = serde_json::from_str(&tools_content)
.map_err(|e| ConfigError::ToolsConfigParseError { source: e })?;```
So what happens here is that I read the config file (plus some error handling). The config file contains several entries. serde then parses those entries into a Vec of the struct, so I have one struct in the vec for every entry in the file.
I am starting to feel like this project is a bit of a leap in difficulty in comparison to 2 previous
Actually let me simplify
I am adding this to notepad and hope that I will understand it fully a bit later
// Load the main tools configuration
let tools_content = fs::read_to_string(&tools_config_file)?;
let partial_tools: Vec<PartialToolConfig> = serde_json::from_str(&tools_content)?;```
rust does look scary to people who aren't used to it huh
This should be clearer
also unwrapping is fine in your case
First try to read the config into a large string. Then try to parse that string into JSON.
unwrap everywhere
By the way, random question: why do programmes leave } on a new line? It looks a bit nicer if it is left on the line where block ends imo
so we can move lines around
(oh god not this discussion again)
the brackets 
bracket discussion
I organized my thingy by keywords position and it looked like a pretty code sausage. People didn't like it
cargo fmt is your friend
it's the man himself
alright, i have a lil challenge for people smarter than me 
i'm currently working on a backup solution (wayyyyy overdue)

Generally you should let cargo fmt do the formatting for you. It will automatically apply the formatting that most rust programmers would agree on in most cases.
i've got production (pc) to local backup storage (a dedicated HDD on my local server) sorted. plan is to use syncthing to ensure my local backups are as up to date as possible
okay
one sec
But code sausage :( Look how neat and tight it is! :D
Look how hard to read it is 
I love my code sausage
back
i also plan to use a cloud storage provider for off-site backups, however i want to encrypt those files
Ohhh boy here we go again
you are my arch nemesis
also if you use vscode you can turn on format on save in settings in you have the rust-analyzer extension to automatically run cargo fmt on the current file
Oh, I have this one! I accidentally killed it by deleting main once
Don't worry. No matter how bad it looks at your eyes, it can always be worse.
so encrypting files you put on the cloud? i actually dont kow how to do that
but i don't want to encrypt the local backup, as a recovery method i plan to have is literally pulling the drive out of the machine and plugging it into my production machine to recover if all goes terribly wrong
You encrypt it before uploading
now here's the problem
to reduce local backup to cloud backup network overhead, i only want to be sending the changed files
well ye, bu i was thinking about having it as an automated pipeline
while still encrypting
Are you using Windows? For Linux there are ready-to-go solutions to do just that.
pc to local backup is windows to linux, but the plan is that it'll be local backup -> cloud backup
so yes, linux
If you go with Backblaze I'm pretty sure their Windows client supports what you want.
i am using backblaze, but i plan to only use their B2 storage service, not their personal backup service
borg backup should be able to do that
giving my data to the hivemind
my limited experience with borg has been good but I've unfortunately never tried it networked
i see you putting two lines on one line, that's very frightened upon to put it lightly - if you want clear visual separation don't be afraid to put empty lines between things, so in your case
let rn = rand::thread_rng().gen_range(1..=10);
let mut guess = String::new();io::stdin().read_line(&mut guess).unwrap();
let guess: i32 = guess.trim().parse().unwrap();
``` becomes ```rs
let rn = rand::thread_rng().gen_range(1..=10);
let mut guess = String::new();
io::stdin().read_line(&mut guess).unwrap();
let guess: i32 = guess.trim().parse().unwrap();
I used it locally for backups over network
hmm... borg backup seems to work for local, however i already have a local solution via syncthing, but i'll look into borg backup as it might be more designed for my use case
since syncthing is more file sync between multiple machines, not backups
i've been fighting syncthing for a bit trying to get it to work
Yes, exactly. This is the main purpose. To send files and sync them
Very different from backup
syncthing syncronizes, borg is backup
I'm also using syncthing for synchronizing files over 4 different machines, but I'm still running backups separately
i do like syncthing for it's real-time syncing (
), but yeah, switching to something like borg is probably best
If you want syncronization to untrusted targets, that's a very different ask
You can use both
i don't intend to do syncronization to untrusted targets, sounds like hell
i do need backups to untrusted targets (backblaze b2) though
pc to local is trusted, local to cloud is untrusted
Trusted or not, for backup just use borg. Encrypt it for the cloud target
actually i'd need a windows solution to replace syncthing i'm extremely dumb
Apparently borg can now use rclone, so that should connect to S3-like storages
can't believe they get people like me to moderate for an ai vtuber 
borg can do rclone? i doubt encrypted tho
Nah, moderation is another thing entirely
encryption is performed by borg
rclone is just for file transfer
You hand borg an encryption key, everything else is transparent to that
i don't see it playing nicely with rclone tho, cos wouldn't encrypting the files make it change every encryption it does
(idk what i'm saying)
iirc Borg splits files into chunks first
borg only backups deltas
So only the deltas will be sent
The first backup is everything of course, from there it's deltas
Yeah, for the first time setup it will take some time
I think you can also define how far the deltas should stretch before it has to do a complete backup of the file again.
i see, that sounds good for local to cloud
Oh, this is nice
but since syncthing is being a pain, i'll need to find an alternative
I think. Has been some time since I did configuration.
my main problem is once it finishes syncing, it automatically does local changes for some reason
(pc is set to send only, local backup destination is set to receive only)
Don't use syncthing if you don't plan on doing something to the file at the target is a good rule of thumb
And just use borg for the local too
i might have brain damage, i just started typing a google query as if i was prompting an llm
it's only been 2.5 years too...
worst part is ai overview might respond

obviously my solution is to abandon windows and use nixos 
(no idea what the context is but i always tell people that they are free to ask for help with it)
context is i'm trying to set up backups for my files and the only software i knew would work does not, in fact, work
I'll be here for arch user
including .CPP files
are you not uspposed to?
No
why
You're meant to use headers
Is this your first time looking at Sam code?
i want something opensource, but yeah 
i figured stuff out
Just use rsync to copy the files and cron to do that once a week 
Surely the best solution
Is rsync on windows tho?

There seems to be a cygwin binaries but installing cygwin just for rsync seems overkill
You seem to be able to use wsl for it. Or there is an app called robocopy that you can call if your use case is simpler
you have a cpp file - the compiler compiles each cpp file to an object
if you include the cpp file directly it just includes the source code thus compiling the file as many times as you include it (which causes issues but you already know what include guards are)
a header file just declares what you have in these cpp files, so you can use (the compiler can link) what has been compiled separately
Twitter ► https://twitter.com/thecherno
Instagram ► https://instagram.com/thecherno
Patreon ► https://patreon.com/thecherno
Series Playlist ► https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb
BEST laptop for programming! ► http://geni.us/pakTES
My FAVOURITE keyboard for programming! ► http://geni.us/zNhB
FAVO...
can i just generate a .hpp file or do i need to make one for each file?
thoughts on this?
https://github.com/restic/restic
There's cwRsync, but I don't know if it compatibles with rsync since they seems to have their own server
The premise is good, but I wouldn't know until they release v1
you guys encrypt files 
You don't really want your backup to not working because of the software has breaking change
i dont but i imagine cloudburst does some important stuff
i've heard of it so it must be fine 
I hate to cut into actually important discussion about smart stuff, but I need a bit of feedback on pseudocode and general logistics of my dumb project, like obviously incorrect order of operation or generally bad way to do what I described. And then I will vanish for a day learning how to do that
yeah fair tbh lol 
uhh yeah sure i do important stuff 
(i actually just don't want a 3rd party having my literal files, plus there are some files on here that aren't for public consumption, soooo)
my backup strategy is
never needed one 
fwiw you can put any rclone target behind encryption so borg should work with that no problem
only problem (depending on who you ask) is you now have to use their specific algorithm
i just take daily snapshots of my windows drive, has worked well enough so far 
time to make my own software for this
projection and view matrices are working, and i can load multiple objects now
i do have my most important files stored on my server as well as my pc so i can tolerate small-scale data loss
Rclone to local, borg to cloud
do i actually have any reason to not use to linux actually
trying to think if i run anything on a daily basis which is incompatible
YESSSS the music is back
beautiful
the one i posted earlier had funky town lmao
here
Sounds fine overall. Do you want the user to be able to do multiple actions after another like "collection" > "catch" > "collection" to see the updated collection? if so I would think about how to do this, not sure how comfortable you are with loops. And do you have an idea how you want to structure the JSON?
its beautiful, brings a tear to my eye
In general, an attempt at DRM (not the kernel DRM) for the software doesn't work well. Same with anti-cheat
But then again, some people actually make solidworks and fusion360 works on linux
I have no idea how to do loops or JSON structure, but the point is for me to learn them in the process. I just want to know what to NOT do, to avoid wasting limited free time on something that was doomed from the start
since you're making a rust game you absolutely should include a turbofish-ie ::<>
answering the question: i think the best way is to make the collection of type HashMap where the key is a fish enum and the value is the count of fish caught
looked at rclone, looks good to me 
wait actually should i give you code for how that'll look?
Aha, noted, thank you
borg looks good for local to cloud too, so that'll work too
just need to get the initial backup out the way
Ill figure it out. It's learning project to learn stuff
What a coincidence that what i need to use for fishing minigame is turbofish something
yeah the borg from star trek do look good
resistance is futile 


do i need to add .dll files for sdl and such to the github repo?
It's unusual to start learning loops with an infinite loop but thinking about it the concept might actually be easier to grasp with the loop and the break condition separated.
-# but then again I never touched rust so I may just be completely wrong here
loop {}
Fishies must loop, got it
Actually now that I think of this it's kinda counterintuitive that input-output game that just memorizes previous outputs requires infinite loop
this feels extremely wrong to me but i'm not a c/cpp dev so
ok
Just document things properly. Or you could also make it a git submodule (even if its hard to do it right)
Ideally dont do it, just document where the user can get the dlls or use a proper build system. If you must, use LFS.
also do not edit dependencies' code (it's called vendoring and it's bad, speaking as a package maintainer)
If its a closed source, they do that
like this then i guess?
yeah no shit there's nothing you can do instead, you're given a .dll and a header file
Ehh, not bad per sè, just tha if shit breaks, don't just blame the upstream immediately
just put the build folder in the .gitignore instead of all extensions of the build artifacts
probably, you are using a nonstandard layout that wont work well no matter what you do but ideally just dont commit library code and any kind of binaries to your repo
Which is why I said that its sometimes done (committing binaries to git)
libraries are in the include and lib folders so that should be fine
oh trust me i know it's done and i've seen it, i just said i don't know what's best practice
leme fix the header files situation before commiting
it is bad and you should feel bad if you do it, you are increasing the workload of everyone involved:
- library maintainers for not knowing of your issues with the library
- yourself because you now have to maintain a patchset and if the library updates you will have to update your changes too
- anyone who wants to use your code because now they have to compile the library with your changes instead of using their system libraries
i did make some minor changes to a lib, but just to fix some deprecated warnings
basiclty just removed 4 spaces
and if it can't be avoided because of e.g. philosophic differences, you should have a strong written justification for everything you change, otherwise you're making it for other people to understand your project
- Library maintainer won't know anything if I don't report anything
- Maintaining patchset, if being paid is literally the job
- Can't comment on this one. Because sometimes the upstream code does not have quite the features I need (like using different cryptographic library)
job security
write incomprehensible garbage so the guy they brought in to replace you does not figure any part of the codebase out
(will get you fired if you work in a team tho)
For real. The dude before me just straight up modifies mbedTLS for some bizzare reasons that I can't comprehend. The codebase is too big for me to comprehend alone and I'm not paid enough to fix it because it works
this is exactly why its bad
so something like this, and i include the header file?
when you fork it, you open the floodgates to maintenance hell, "just one more change" quickly turns into major incompatibilities with upstream
or do i need to add the includes too?
koreader and frida come to mind
building them with upstream libraries is impossible, and when i tried to build it with their code it still ended up being impossible because their changes are only made to build in super specific conditions
The #pragma once in the cpp should be useless and can be removed, otherwise yes, that's how you declare a function in a header.
You only need the includes that the header needs in the header (like if your function takes an std::vector the header also needs to include <vector>
so all of them then, ok
no 0 in your case
wdym?
But also, another library (which I won't name because I DO maintain an open source fork of it), straight up not following the spec (a key size of 64 byte is required instead of 32. But indeed a lot of cryptographic libraries supports 64 byte key while the one already available to me, don't support it)
my function needs fstream and sstream
if a type you need to declare your function is from an include, you include it in the header
you don't need those to declare the function signature tho
The function needs it, you don't need it to call the function.
so in the cpp, not the header?
mhm forks are sometimes fine, its just best to work with the upstream whenever possible and even if you cant you should first try to find a workaround
also, should i use hpp or does it not matter?
i'd say use hpp if you're writing c++ code, but at the end it's just convention
c++ has zero consistent conventions across the entire ecosystem
The compiler doesn't care but every human expects it to be named that way.
not every human
you can keep the single file as shaders.hpp too for all it matters and half the ecosystem will be fine with it
.h in c++ is common practice
what about this thing?
i got told this is better off in another file but since its compiler code idk
I have 0 expectation of any code I don't write lol
Okay to clarify, I meant everyone expects header and source to be named differently, whether you use .h, .hpp, .hxx, .h++ vs .cpp, .cxx, .c++ is personal preference
also fair
forgot the best one, .cc 
look. in your case you only need built in types to call the function, and it returns a built in type - so you don't have to include any types to declare it. if you, for example, in your function returns a std::vector, or expects one as a parameter - that has to be included in the header file
Damn, I guess I'm just a poser.
Not aa real c/c++ fan.
smh my head
One of these days someone will come up with cccp
.cplusplus
TIL that two c and p is filtered here lol
Why don't we evaluate .c++ and just use .d 
So my happy little accident of three c and one p actually pass the filter
so this can remain as a .h????
you assume the value of c is "c", what if it's actually "A" or something
yes
Yeah, that doesn't seems too problematic
there's no right or wrong, do whatever makes you happy (just don't include the same source code multiple times without a guard) 
aight imma push
Well either of those is a string, so c++ is just '\0' then and we end up with . 
why does githubg hate ++ in the name?
Repo name?
ye
Or laziness. That works out fine too

Do they use the repo name inside the url?
They can always escape it
oh hell nah
It is kinda nice if repo name and url match though
They match
But precisely because URL, if you want arbitrary character it would need escaping
Hence alphanumeric and _- is easier
i always git clone by retyping the url from memory, that's nice
i'd hate to do git clone https://github.com/ghost/My_C%2B%2B_project.git
Wait, did git not perform url escape?
Let's bombard his repo now, and scrutinize EVERYTHING 
makefile cursed
Imma change every bracket style
why is it lowercase
now i'm curious who ever decided that all -files should start with a capital letter
Wdym?
You cant just change it
Il deny the thingy
I'll fork it and named it better-game-engine-cpp
Ill just delete your fork

I will justset it to private if need be
I take my brackets very seriously
I see you

check prs
Idk where that is
you'll figure it out
time to fork and rewrite it in zig 
I figured it out
Did you make chatgpt write that?
Yap yap yap
Like i said before, the brackets are non negotiable. I would rather switch language again than to give up my ideals
Imagine conforming to anyone because they told you
never change
if you think it's right, do that, don't let any rando tell otherwise

Actual feedback: You currently ignore all glsl compiler warnings. The infolog might have some useful information even if the compilation succeeded, so I would always check for info log with
glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &length); and print it if length is not zero.
Oh ye true
That's probably more important with more complex shaders.
chat is this true

neuro straight up prompting evil on stream is something
i like how it mentions like committee judging as if the c++ committee isnt judging all the time anyway

so true 
I'm hungry
the mix of spaces and hard tabs in your code is killing me

New pull request dink donk
free 2t google drive for 15 months
now i have 8 t storatge across everything i have
wait until you're about to leave the org and having to redownload everything on there before you go
or have your account suspended

ye
I should have not removed the spoiler warning
yummy data spaghetti
Anyone here has experience with Python and wxWidgets? I've been trying to switch to VS Code recently and one thing I miss from using IDLE is the ability to call functions and see changes live on the GUI, but if I try to do that with VS Code, the GUI freezes.
Also, all of em can swim technically😭😭
Maybe they have a very specific definition of swimming
But they didn't tell you what it is for funsies
"Hah, look at this dude, confused af"
i installed an addon to automatically refreshed a page and it came with a privacy policy / terms of service

bro it's literally one line of JS in tampermonkey to refresh a page can u not
Is the technology patented tho
patented refresh tech
Well i would say the eagle, since that one usually doesn't live/hang out in water
It does swim tho 😭

They just do it rarely
And mostly for hunting
orb
pretty good swimmers too
better than most non-aquatic birds
take notess everyone
Im alive
Geography went okay, might have fucked up history tho
But it seems like everyone did so 

i saw a paper that referred to joins as lubs (least upper bounds) and thats a cute name more people should use it
counterpoint glb isnt as cute
lubs
Leave me alone 
Is that ai slop😭😭
you take multiple elements and find a singular element that contains all of them together isnt lub the perfect name
its purposefully bad, if the intention was simply to use ai the header/footer would be stripped
Turns out after the latest update my Windows has become much closer to unusable
It has significant lag spikes when anything with explorer updates, and task manager crashes constantly, even after reverting to a previously stable overclock
Ok, guys, very basic and stupid question. I create new projects by right clicking on the bin and creating new file. Just yesterday I tried to create one and it would tell me "its not an acceptable name for the file" no matter what name I'd choose. Format was specified with .rs. I wanted to recreate this error and ask how to fix it, but today it just agreed to make it without complaining. So uhh... I guess the question is: Is it optimal to create new projects like that? Or is there a better way?
Normally you would create a completely new project for each project
using ./bin is really only useful if you have multiple executables in your project that share code
nvm, it is still complaining lmao
Got it, thanks
If that file has no main() then of course it will complain
Ooh, so last time I ctrlC ctrlV first line so fast that I didnt notice the error
12IQ moment
People usually use cargo for their projects, might want to look into that 
Ok, now I understand how it works
But yeah, if you create an empty file it'll complain at first
this is using Cargo, it's just that only the src/ subdirectory is open in the editor 
In my defense: I just woke up
I mean same so
in my defense: i have a brick
btw, if you aren't already doing so, you should really try to read and understand the errors the Rust compiler gives you
they are very good and usually tell you what's wrong and how to fix it
What I find challenging is that most of the tutorials on programming languages and software assume that you already know some other programming language or software
also you can configure the vscode extension to autoformat on save
I love async rust errors 
random thing somewhere in your code isnt Send. Good luck 
Do people actually format on save
If you have a terminal open in vscode you can also run cargo check t o get the compiler errors
let's not consider async for now
yés
yés
They are indeed very well explained, dig it a lot
i just press space-f every now and then
That's where I go "cursor go fix this plz" :D
Sounds kinda annoying
cursor wouldnt do shit lmao
Works for me, honestly it's preference
Same, well different key combination but still
well, it depends on how deep you are
In my code base it actually fixed this exact issue though
it can work if the reason is a common pattern

It's so cool to read random conversations here. Like everybody is so knowledgeable and experienced in this stuff and you just toss around concepts that will take me days to understand and learn. Sometimes when I'm tired of failing to make my stuff work I just come here and read what are you talking about. I barely understand the subjects of conversations, but it makes me feel like I am smart too and what I do is much simpler in comparison, so I get back to tinkering with my code with "pfft, I am struggling with THIS?" attitude and it keep me going
Fr
Silly
Sameee
When youtube says they're adding more ads to the site:
What a great keyword. If I am mildly uncomfortable I unalive myself and everybody around me
(Wait this is probably the wrong channel to post in)
@ruby timber
New laziness method
Artist Terence Broad makes AI produce images without any training data at all.
AAHAHHAAH
Calling this a crash is actually not really correct. unwrap() will cause the program to panic and shut down normally.
New billion dollar tactic
.unwrap() is not a keyword
it's just a normal method, it's not part of the language itself
AI abstract art
Im still grasping the difference between a keyword and method
That's a nice choice
FR
Just slap random meaning on this image and sell it for 2m
i have more
STOP
you cannot defeat me
get lilac'd
llc
🇱 🇱 🇨
🇨 🇧 🇹

I lost my headphones 
right after closing that pr? what an odd coincidence
i'm sure it's just a coincidence 
yes i took them as retaliation, merge the bracket thing and i’ll give them back
Nah i closed that yesterday
And ill keep it closed
You just dont understand. Its not about the function header, its about the even
{
}
btw i thought you might want to know, you're mixing tabs and spaces in that repo
is it even possible to insert a tab in vscode if the file is configured to use spaces
the { } are the smallest of your crimes
found my last school year's grades 
3 = barely passing
5 = perfect
wait
was i tweaking, it's fine now
guess the github app just bugged out, oh well
i am not pfew, it is fucked up in the glcontext.cpp

yes
I didn't even notice that 
but it's pretty common in C I think
because its structs not classes
then you create an actual object of class objects and give it a the name obj which is singular when the class is plural
and on top of all that
none of the class methods actually interact with the class. There is no need for it to be a class at all
wait 4 in maths what
i expected you to have at least 6, fake programmer smh
i am bad 
that particular one actually is a class 
there are other similarly named structs though
no yeah i get that
Woah, you got astronomy
I cant see the diffrence so most likely yes
Good
That one is a mash of stuff i stole online. I cant be bothered to learn all the sdl functions for now. It works
I know a decent amount of sdl now
found this from an old project i did with live2d in 2021
I didnt put it like that
don’t feel bad, i don’t have my grade sheet on hand but here’s the егэ result (bottom line is out of 100)
Is it?
I know, it's mixed tabs and spaces
using a formatter would fix that btw 
very much so yes
its test code ok lmao
mine was uh around 65 i think? idk
either way i dont feel bad because i'll just learn something if i need it
true and based
Needs to be implemented still
when you are planning to fix/remove this "test code"? 
Ill do it manually
If i remove the test code there is nothing left.
Its all test code
.clang-format fears this guy
I knew it, it's never getting changed 
.clang-format doesnt do what i like
you can make it do what you like, probably

you definitely can
that "probably" was because I don't actually know clang-format that much
but yeah, it has a lot of options
i’m even pretty sure the default is what he needs
it absolutely does 
Will it keep indentation in the #if?
ok THATS on you
This one



I like how this entire thing is me just being "im wrong? No! Its the world that is wrong!
"
don't let Sam see any more of the options in that page or he will get ideas
No
No what???
you don’t understand, he’s innovating and reshaping the cpp ecosystem
fax no printer
Im afraid to google it tho

I have a sandpaper here
Cant watch that rn in school
ligh blub juce
reshaping for the benefit of who 
for the benefit of everyone
Why, none other than the man himself of course
he's being paid by companies that sell 4:3 monitors
he's not being paid by e-ink display makers thats for sure
4:3 monitors are superior for productivity anyways, 16:9 only got popularized because of emergence of media on PC
he is being paid by big curly fries. its all subconcious propaganda
clearly you havent wrote enough apl 
or perl
4:3 is cozy and good for osu but 16:9 is better for split windows
turn on wrap lines
Speaking of e-ink, the fucker at America decided that it would be a good idea to have dynamic pricing using e-ink price-tag at the shelves. That idea would be good to reduce paper use and they fucking turned it into capitalism idea

i like my 16:9
most apps nowadays are designed to have sidebars and they dont work as well on 4:3
reduce paper use by replacing it with electronics and plastic 
paper is so scarce
Yeah, imagine one year paper and ink usage to print all of those price tag
Not to mention it needs to be cut and the labour cost
probably negligible compared to the replacement of broken e-ink displays because a snotty kid felt like pulling it too hard
i'd imagine more paper is wasted on receipts and weighted items
indeed
Hmmm, I don't know. Acrylics can be a pretty good barrier and they are transparent
e-ink is nothing if not fragile lol
with the displays i can't take off the sticker and notice i'm being scammed though 
just print on the packaging directly
Behind acrylic? How would you reach it if not by deliberately breaking it? Which for 2mm acrylics is hard enough
supermarkets are places of chaos
the price tags on shelves are already eink in many places
it’s easier to update them this way
I don't know how you guys are imagining the design. In my mind the shelves has a recessed duct for the display and electronic. Layered over by some protective barrier which can be acrylic
it’s already been a thing for like 5+ years hello?
more than that i think
Yes, I know
But its pisses me off if they truly did a surge pricing thing
oh it’s 2025 
An electronic shelf label (ESL) system is used by retailers for displaying, typically on the front edge of retail shelving, product pricing on shelves that can automatically be updated or changed under the control of a central computer server.
ESL tag modules use electronic paper (e-paper) or liquid-crystal displays (LCDs) to show the current ...
An early system first offered for sale by National Cash Register (NCR) in 1997 used modulated backscatter of radio waves to provide two way wireless communications between the labels and the store’s radio network
wireless 
Yes, and the current gen uses e-paper
i'm imagining a thousand wireless devices and it doesn't sound good, but i'm sure they have some good industrial technologies for dealing with that
what do you need two way communication for
acks?
Check the current price
Ack too
oh true
Reporting battery level
i think it can be useful to avoid persistent memory
But then it would reset every reboot
you don’t need persistent memory anyways if they’re always on
I don't know. I prefer less chatter on the RF side of things if possible
one dies, you go swap it
Just the batteries
if it only does it on boot it wont really affect much
True I guess. But I still prefer that if the device turns on, it doesn't need ANY interaction for the user because of battery swap.
First time setup only
After that, just price change
well now yes, in the 90s tho? you avoid power independent memory when you can
especially where cost quickly adds up
You need persistent memory anyway to make them addressable
Even 32-byte is more than enough for unique ID and some price or other metadata
you can do that with rom
just put their serial in there
I wonder how good base 4 is. Like our dna is base 4 so it should be good?
I guess I'm not old enough to truly use ROM
wdym "good"
Base 4 can transmit more information per the same symbol count because they have more symbol
guys base 1024 is superior because you’ll never need anything more than one digit to represent any number for thousands of years of scientific progress to come
true! switch to hieroglyphs for numeration
Well, if you didn't know how Wi-Fi is transmitted I don't know what to tell you guys
They certainly didn't use a single symbol for single bit
are you talking about erasure coding?
Base2^64 
Quadrature amplitude modulation (QAM) is the name of a family of digital modulation methods and a related family of analog modulation methods widely used in modern telecommunications to transmit information. It conveys two analog message signals, or two digital bit streams, by changing (modulating) the amplitudes of two carrier waves, using the ...
802.11 is QAM
wait this is the stupidest shit i’ve ever written, numbers past 1023 have not been discovered yet and won’t be for thousands of years apparently
Like would the extra complexity be worth it?
No
well, do you have a reason to use Base 4? what would you be using it for?
computing is inherently binary because of how transistors behave
also it’s the minimum amount of states to represent anything, can’t represent much with base 1 i’m afraid
I should add, general purpose computing
As some specialized computing can be more efficiently done in analog or other system
yep that’s what i meant
Off 
Kyutai just open sourced their latest ultra low latency STT system
Idk
Im just studying biology rn
oh
VAD included
Kyutai STT models are optimized for real-time usage, can be batched for efficiency, and return word level timestamps Timestamps let's go
But is DNA truly base 4 tho? Aren't the protein always pair?
then no, no need for base 4 particularly
Yeah it'd be binary too since iirc the two pairs are also always in the same orientation (could be wrong on that)
nyoom
vllm out of the box but it queries models through http so should be easy to use any framework with it
No, the orientation just didn't matter. But the ATCG (IIRC), always pair to exactly one. So A will always to T, and T is always to A
That means A and T are equal symbol so to speak
No they arent.
You have A and T/U, C and G
They can appear any way they want
A and T dont get treated as the same
Guess I misremembered then
I mean because the pairing
It's been a couple years
"0.5 second delay" "2.5 second delay" ultra low latency 
apparently they reduced the effective delay after end of speech from 500ms to 125ms at least, can probably do better than that too
DNA proteins always come in pairs no? It's the RNA that is not (if my biology is not shit)
This is sooo useful
Yeah maybe I remember it incorrectly.
Base 4 would imply 16 combinations though
Yes, that is also what I was thinking
I deal with global alignment like once a year and then I forget all about DNA until the next time 
You have 4 options for the first codon, 4 options for the 2nd codon, and 4 for the 3rd.
So 4^3 meaning 64 options for aminoacids
Of which 61 get used
Other 3 are stops
https://github.com/diwu1990/UnarySim
unary computing is a thing
kinda cheating though, they're still using bits, just one at a time
It feels like something that should be published on SIGBOVIK instead
ikr 
didn't expect to see a PyTorch implementation with a serious goal and awards and stuff
astronomy
how do you get that
i wonder what they teach in there
the 2021 me's desktop was so cringe
4 proprietary apps and vscode in hotbar 
when did you switch to nvim?
no idea 
realistically in 2022 because i was feeling like absolute shit when i had to waste so much time in uni i was desperate to learn anything in my free time
Hey guys , do you guys have any recommend aivtuber on GitHub to try? I am having trouble on running kimjammer , been stuck for a day now. And my Gemini run out of service til tmrw
Discord Canary
How easy is Python for data analysis/visualization? I'm used to writing everything in C/C++
Should I code an AI Vtuber to compete with Vedal lol
goddamn the bingo is eating good today
Many others have tried, so go right ahead
No point, you can't compete with Neuro
Do yall call clang
Klang or c-lang?
For real?
clang, link a sound effect
Neuro saturates the market already, no space for any others, especially considering making something even as good as Neuro would be quite hard
I mean, I think the AI Vtuber field is still pretty new, so I think there's still some chance:)
Starting from a point of competition will not work. Create something that you think others will enjoy and go from there.
Not really, Neuro took everything there is, at least in her niche
If you wanted to AIVT you'd want to do something new rather than the same thing again
I think I will have to code something that's really better
How do you even quantify "better"?
Making something "better" with an LLM won't really get you anywhere, you'd want to do something completely new like an entirely different architecture with some kind of advantages over LLMs
At that point Id just get a phd lol
At least it'd be more productive than making just another LLM AIVT
Exactly


grr


