#programming
1 messages · Page 52 of 1
Vedal really cornered the market for the AI VTuber. Unless you can make one that plays a game really well (without getting banned) you're prolly out of luck
(other than osu!)
Yeah but I think it would take like 5 years or something like that
Not only that, you'd also need to do really well on building a unique personality
I think the only hard part for me is to make something unique
Well, copying others won't get you anywhere
So Ill have to make something unique:)
Curious thing: I think melba is pretty good, but still not very popular. Why is that?
Preferably something that doesn't just use an average LLM and rather is something new
Yeah:) So it's really hard
Not a lot of uniqueness, the devs kinda got burnt out and she fell behind on tech

Well then I guess I'll have to invent myself rather than wait for new tech
I hear SNN has some potential, maybe look into something in that direction
Thanks:)
klang
c-lang
metal pipe clang
i call it cc
Kronk
klang
c-lang
gif
jif*
Jiraffe
If ur not entertaining urself, there's not much point
I will invent a new architecture for LLM lol see you in like 5 years


screenshot this and put me in your phd
Hope you succeed. Genuinely. 
Thanks lol I wont forget this if I get a phd id thank you guys first:))
I think getting a phd all for competing with vedal is overkill lmao
Even if u got a PhD
U would lack the funds anyways
inb4 this guy's actually a billionaire with a private data centre
Jeff Dean himself
I think competing with vedal for getting a phd is overkill lmao
Hey, if his Phd results in something breakthrough we all benefits from it
phd was making a new LLM architecture
Why lol
No way its john disco 
That's just research in general. Aren't you required to publish your finding for phd?
I'm done my physics exam
Ah
So, what is the maximum energy limit in a system?
Nice
I.. hello.. sorry
I mean define new llm architecture
Most llm architectures are just slight variations
Don't ask me lmao
Because it works lol if it works they dont touch it
salutations
And if google deepmind PhDs can't come up with a truly novel arch even with infinite budget
then 1 person is very unlikely
Unless ur an absolute mother brain
Bro lol max planck rewrote physics himself
Sorry cop?
What?
That's 1 in 1000000 people
But sure, you do you
I thought "John Disco" was a reference to my disco elysium profile picture
He did some stuff in quantum physics but i wouldnt say he rewrote it.
Max planck built further on einstein and louis victor pierre raymond duc de brogglie
Idk if Im the second max planck... But Ill try
It was, but i never played the game lol
Just remember to put me in the screenshot
Ofc I would😅
I was confused for a sec since I never knew De Broglie full name
💀
Based lol
That's an old one I had taped to my screen at work for years.
Although here peoples pins can be up to 6 digits lol
Fond memories of telling people that having a sticky-note of their password on their monitor defeats the purpose of both
4321 thinking they're slick

"no one will ever know"
oh also hi stellaa
Hi Crafter!

Ash did u migrate to green
shrek
glorp
@real sierra see? i am strong. speedlines are no match for my power. they cower in fear when they see me
yo
Iffy, I feel tired and lazy, the heat's not doing me so well
Been doing a bit of rust and cpp though 
How's yours?
Oops wrong chat sorry
My days been less stressful since I finished my physics exam like 20 mins ago lol, thanks for asking
Oh nice! How did it go?

I think I did well
Ignored it I’m idiot
I know I got like 2 small things wrong at least haha
Ahhh, do you have air conditioning or sm?
Sadly no, at least my home is well isolated and most of the heat stays outside
My pc isn't helping either 
Haha, well that's not too good, hopefully it doesn't get too hot 
It's fine, could definitely be worse
just write a note to yourself of what you want to do now, and do it tomorrow when you have the energy
less something specific and just a desire to be productive
Fair
If you want to be "productive" it must be about something tho
I have several things I could work on atm
If you just work on them a little bit at a time when you can, they'll slowly start to form
smh language bloat
real
while loops are based tho
I peek into general and instantly see a —
we had white loops already it's called loop if <cond> break else
a pizza?
its true
but did you have
while x := optional() {
...
}
whats the diffrence?
loop if y break else {
}
while !y {
}
but like, does it compile to the same thing or?
it does
yes

it seems like between yesterday when uploading it to itch and now the ebgine has broken down in a spectacular fashion
idk how cuz i didnt touch it but
there are another 50 of these errors

i must have fucked sometihn up with the header files i guess?
missing semicolon after InitGLContext in glcontext.hpp?
Classic c++ error message pointing to a different file than where the actual error is
I think all headers are missing semicolons 
oh no

im too used to python
oh i see another problem
if the return type is from a lib i need to include it in the header ye?
you do
For loadGLTF.hpp yes.
It needs the OpenGL headers, the tinygltf header and includes for the stl objects used.

Also, every .cpp should include its .hpp as the first thing it does. This makes sure that the header is compilable on its own, as it's the first thing that is parsed and would complain about GLuint and tinygltf::* types being unknown.

So the first line of loadGLTF.cpp should be #include "loadGLTF.hpp"
There are also some other reasons to do that like the one definition rule but I'd say that is not a beginner friendly topic to deep-dive on.
You know how Sam is with convention
hye
hey
What free software you recommend to fix up models for a resin printer? (inner cavities, etc)
i actually did do that
Oh, thats good then
now i get this
sorry i dont do 3d printing
I only asked because someone might. 😅
This is me, reading it on mobile
https://content.imageresizer.com/images/memes/chinese-guy-meme-4.jpg
zoom in or turn your screen
You only compile main.cpp. Add the other cpps
thank you, it looks like it may not work with mine. 😅
I only do FDM unfortunately
But can't you use blender?
they all need to be added to the makefile?
blender has a slicer?
Uhh, with how your code is structured. Technically no
There are 2 options. Quick and dirty is: just add them after main.cpp on the same command line
No, but fixing up the model usually done before slicing
The proper one is to compile each cpp to an objectfile (iirc -o flag) and then do a separate like command to link all object files into an executable
He #include every other .cpp file
uhhhh
Not anymore if the repo is up-to-date
i have this rn
i never updated the repo
You liar
Wait for real?
Benefit of the proper solution is that when you make a change to e.g. shader.cpp you only need to recompile the shader.cpp and reuse the older object files when linking.
And you can compile in parallel
but like, how do i make the makefile realize that only one changed?
I would strongly suggest learning build system now

Or if you want to stick with make: https://www.gnu.org/software/make/manual/html_node/Simple-Makefile.html
Simple Makefile (GNU make)
for GNU Make you define them as separate targets in the Makefile
Make will look at the timestamps of your source file and the corresponding object file and, if the source file is newer, recompile as needed
no
okay
they get included from the .cpp files

actually, I only considered the build targets, but I think you need to specify the headers as dependencies somehow
otherwise it won't detect when the headers change

#programming message
this is just specifies them explicitly, but it's ugly and seems both unreliable and unmaintainable
any GNU Make experts 
Do remember though that with make you need to either tell the compiler to generate dependency files, or you need to do a clean build after you edit any header
Or just use cmake as it handles it for you
yeah, seems like that is one way to do it
Otherwise you could edit a header, and any cpp file that includes it will not be recompiled
pretty sure that you need to specify the command for each object file individually
Make doesn't automatically know how to compile them
uhhhh
*Meson whispers
another supplementary c build tool
meson is the arguably least horrible C/C++ build tool
Hey, I'm an engineering guy ok
no proof for anything useful except a shell script 
But sadly not widely used enough. So I always make do with CMake
a makefile can take you a long way
This is where I am right now, I'll consider this to be my answer. (I was curious if there is anything better considering that it does not tell me if what I did to the model fixed it, but i guess no)
Thank you.
they're annoyingly explicit, but yeah, for now it would still be fine 
Yeah since makefile *basically* shell script
where is the basic setup page? 
this website is info overload
it works for many projects... but if you find yourself reaching for autotools you should probably use cmake or meson yeah
Why does meta make it so hard to download "open source" models 😦

But do you really need a solid print?
the code is open-source, the weights are proprietary
you can download them but you cant use them however you want
guys i failed at step 1
I can't even download them
Meta wants my personal info to download llama 2
For the unhardened resin to not get stuck inside the model? yes.
I'd prefer if it does not carve its way out later. 😅
this was supposed to be an easy fix
Huh, I didn't know that liquid resin could get stuck inside. Won't the slicer make support anyway?

It isn't
Idk what other models to use
Nope. it does not know what/how to fill it out.
Got it. That must be suck. FDM slicers usually place support anywhere they can
isnt the model submerged in resin anyways while printing? it will get stuck inside any holes there are no?
Yeah, that's why he wanted to make the model solid
Mistral models are mostly Apache 2.0 I think
but if you want Llama specifically there are a lot of mirror repos that serve them without the approval requirements
Just use LM Studio honestly if all you wanted to do is check it out first
Edit: wrong person to reply, but yè
Feck it I'm using deepseek
sounds totally legit
E
I'll send you a 16 exabyte zip bomb and we'll see /j
Download from unsloth
Deepseek is a very large model u likely cant run
What's that?
I was gonna use DeepSeek‑R1‑Distill‑Qwen‑14B then realised I can't get a pytorch bin for it
dont use reasoning models for vtubers lol
Saved it differently, and the original reported issues are not there... I think it will break, but we'll see it tomorrow as the second test print.
Or do, and let's see the shenanigans that will come out of it
Wasn't the idea but I'll note that down
deepseek r1 is a reasoning model
I wasn't gonna use deepseek for my neuro ripoff
But I need a pytorch bin file
I feel like I'm being really dumb
nobody uses the .bin or .pth formats anymore, safetensors has been the way to go for a while now
most models that don't specify some other format are compatible with HF transformers
just don't expect it to be fast 
Yeah idk why youd use the meta implementation of llama
And what the hell is safetensors
So I've gotta rewrite my code to use this new weird format?
if you have a way to use your existing code and you don't want to rewrite anything then go for it
all I can say is that LLMs have standardized on safetensors (and GGUFs if you're using llama.cpp)
Can I convert safetensors to bin files?
What are you actually trying to do?
Download llama 2 as a bin file so I can then use my code to covert it to my custom format
That seems silly
Yes
My ALT + TAB is now just completely gone
I hate this update
My code uses a custom format and I've only got 89 days to get everything working
Using the taskbar is SOOOOOOOOOOOOOO SLOOOOOOOOOOOWWWWWWWWWWWWWW
when you make voice to text and get : 1.0.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1'
What is the assignment?
There isn't one
September 18th is just the release date of this thingy (that's the technical term)
Task manager is also completely gone...
Rust when I didn't specify the data type for the output of a function:
Same energy as when you completed a science calculation but forgot the unit
The right click context menu is gone
15 what? Apples? Airplanes?
Wtf did you do?
I did a quick search and didn't see it mentioned, but Vedal and/or anyone else working on agentic gaming may find this interesting: https://github.com/lmgame-org/GamingAgent
It isn't real time like Neuro, so it may be of limited use, but it's always interesting to peruse how other people approach similar problems. If nothing else it would be interesting to see Neuro run the benchmark and see how she does. (Maybe not necessarily live, since it's not real time, it might be boring to watch on stream.)
I didn't do anything, except updated Windows
I'm gonna have to Linux this thing
There's no way I can use this state of Windows as a high-uptime system
don't
how?
I literally don't know how a Windows update can cause this
by delaying them so long thats how
I don't use Windows 11 cause I'm not a masochist but it really sounds like your update failed / corrupted. Sounds like a system restore to me. You did create a system restore point before updating, didn't you? 🤞
I just updated a couple days ago and this issue appeared
exactly
Why would I do that? Also I use Windows 10
after not doing so for like half a year
Only 71 days
To be fair, most LTS distro probably will do it just fine with just half a year
Well then it's not the update. I'm on the most recent update of Windows 10 and have none of those issues. Sounds like it messed up the install. So, why would you do that? You are learning now, I suppose.
which windows isn't
And this is MS, famous for its backward compatibility to the extreme
Now it works but set to the wrong language
Fair
there are languages that are statically typed but still have full type inference (like ocaml or haskell), but yes, rust chose to go with the compromise of requiring type annotations for functions
LTS or not if you don't restart a linux after updates you are just larping security
At least there is hot patch
in many statically typed languages, you would have to specify every single type, even for variables
Just enough to hold on for a bit longer
But to be less snarky, Windows often makes a sys restore point before updating or installing new software, check when your last restore point is, might save you.
I may just have to rewrite that one server that I've been putting off rewriting and move to Linux because at least that should actually function
I wonder what happens if the outcome of a function can be one of many types. Like it can be an integer or a float point... Something. Forgor the name. One with the decimal point. Must you specify all possible types or can it just... Figure it out?
no, its just an error
you have to use sum types if you want to use one of multiple types
(called "enums" in rust)
do i need to add the headers of every single lib im using?
How would the caller know what the function actually returned after? If it's a primitive, then it can't. It needs to be some sort of container
And now the taskbar is barely working any more
huh
it means everything compiled just fine but you didnt tell the linker where these functions are (in their compiled form)
Yea, I mean... it's easier to work on when it doesn't at least. Personally I run Ubuntu 22.04 on my linux server where I do all my AI/GPU tasks, and run Windows 10 as a client machine so I can use programs thsat don't run well in Wine, like Clip Studio Paint. Then I SSH in with MobaXTerm (or NoMachine if I want a GUI). Could not recommend it more. If I didn't need some software Linux / Wine doesn't like, I'd ditch Win 10 all together but, tis what it is.
ld error means a linker error. Ld is the linker program name
You have a compiler and linker
heres a minimal example to reproduce a similar error:
int thisFunctionDoesntExist();
int main() {
return thisFunctionDoesntExist();
}
I understood around 30% of this message, so I should probably get back to reading rust documentations
With Kotlin you'd return a "Number" type for that, same for typescript.
If it is not available, you pick the type that fits every possible return value.
in this case I think it's because the g++ commands for the object files don't include the output file name, so it tries to link it when it shouldn't do that yet
mhm its subtyping
Any 

subtyping doesnt work well for systems programming imo, even in typescript it causes a bunch of issues honestly but it works well enough
Typescript has other issues to be honest.
well, rust does have limited subtyping in the form of trait objects and lifetimes
Trying to open any software no longer works
Taskbar = bloat
I think I'm gonna have to dig out the random 4TB NVMe I have lying around and install Linux, and do the migrations from that side
This is just unusable at this point
I heard you can make Linux run off of a usb drive. I don't know all the possible issues with that, but it sounds cool
the issue is that usb drives are slow and bad
That is the average installer.
No issue at all honestly. Maybe slow storage but thats it
This thing is so broken I can't even get to the shut down button
Unlike windows, you have a usable system while you install it.
good description thanks s&box
do you have the various object files (extension .o) in the build directory?
if no then try to replace the -cpp parameter with -c
-# actually, just do that anyway, pretty sure that -cpp is just wrong here
Honestly. Give me a desktop, something that can figure what my hardware needs and a graphical package manager and that is the bare minimum for a usable and actually user friendly system.
in 15 years i have had 0 performance issues with any windows version starting with xp - even vista, 8 and 8.1 were good
How do I shut down this thing when I can't access anything?
shut down the pc?
Yes
I think you know the answer.
that worked 
onto the next error
I can't get the shut down button, I can't get CMD for the command, I can't do anything
There's even this
https://tails.net/
True. Ubuntu was the closest IIRC
I guess it's power button time
There is a "shutdown" button at the back, near the power cable. That always works.
Then mint is second
I'm abandoning mint for good tomorrow, I got all of the hardware issues back that I did not have for the last 5 years.
Yeah that's why its second. Garuda is third
wdym arch clearly is the most easy and user friendly distro
gentoo too
manjaro IS user friendly. Cachy looks to be the same.
inb4 manjaro DDoS arch again
but manjaro sucks
Scratch that, what is the fedora derivative again for desktop? That is third then garuda
that is fedora
Fedora is linux trying to be windows and I won't ever touch it again.
It decided to silently wipe one of my drives without making it sure that I know that it will do that.
what does this even mean, i’ve never touched fedora
Oh, yeah lol
Windows style installer to begin with, tries to think way too much for you.
striving for a good ux is a good thing actually, even if they fail
Nah same ux as any other distro.
i do have .o files now, they're just not linking toghether now
Why would you need a custom saving format
Since at the end it's torch tensors
Saved in the bin file
I don't know why I did it
But I did

dont they just use calamares
Is that a software name?
I only know the food
It looked familiar, but it was also doing things that it did not make clear to me.
I diagnose you with: a bad case of not-invented-here syndrome 
Now I've gotta figure out this safetensor magic
Yay
as opposed to: good cases of not-invented-here syndrome 
now i just need them to combine 
holy makefile batman
dont you need something like -o main.o in the g++ invocation
It's pretty easy
This is what I mean when I don't mention UX for a user friendly distro. Most of the time the quality we have is "good enough" in that department.
We're really in the "hardware/software compatibility" stage with Linux, and that is why the deck matters a lot.
surprisingly no, -c is enough, you can see the generated main.o in the file explorer
If u use the python library
ye it just doesnt want to link them
Its so simple chat gpt was able to make a conversion script for me
But safetensors refuses to install
vibe coder alert 🔔 get the bingo card
and it's still fundamentally broken because it doesn't depend on any headers yet 
😭
wdym? i have headers
you could just use wildcards instead of listing every single file
balatro sounding mf
you haven't declared them as dependencies yet
ok i will go back to scrolling twitter again for more brainrot
so i need to put every singly lib im using as a dependancy?
i thought this was doing that CFLAGS= ... -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lopengl32 -lglew32 -Wall
wait wait dont leave i have something for you
and just like that, shadow left never to be seen again
the compiler has the include paths so it knows where the headers are, yeah, but Make doesn't know that they're dependencies yet
so right now if you change a header Make won't recompile anything and stuff will break in confusing ways
(also the objects of the libraries and the headers of the libraries are very different things, but whatever)
is this how we're gonna get kids to learn algebra?
I don't understand the language but still get most of the important words and they make me recoil in disgust
flibbity jibbity jibber jabber
its romanic so southern europe
Italian isn't it?
SRC = $(wildcard src/*.cpp)
HDR = $(wildcard src/*.h)
OBJ = $(notdir $(SRC:%.cpp=%.o))
$(OBJ): $(SRC) $(HDR)
g++ $(CXXFLAGS) -c $(SRC)
something like that should be possible to generate the object files. Dont quote me I havnt written a makefile in some time

makefile:8: *** missing separator. Stop.
remove the spaces around =
this creates a target for each object file?
-# also it still lacks dependencies on the included headers
but you dont have to adjust it every time you add or rename a fille
the issue is with the g++ command
well yea, you need to actually create the variable for the flags and all that jazz
or just paste it there I guess
Yay 
The audio is getting more and more nuked
Can't wait for the V1 when the audio is full static

$(OUTPUT)lib/%.o: $(LIB_SRC) $(LIB_HEADERS)
$(ECHO) " CC " $@
$(QUIET) $(CC) $(CFLAGS) -fPIC -o $@ -c lib/$*.c
taken from linux makefiles
$(OUTPUT)/%.o: %.c $(BPF_SKELS)
$(call msg,CC,,$@)
$(Q)$(CC) $(CFLAGS) -c $(filter %.c,$^) $(LDLIBS) -o $@
this too
most of it is just variables for configuration
is this better than what i curently have?
if anything you should consider using the $(OUTPUT)/%.o part or similar
having all the object files in your project directory sucks
true
jsut gotta figure out how it fits
good enough
CXX = g++
CXXFLAGS = -O3 -Wall -Isrc -Isrc/include -Imodels/V-nexus
LDFLAGS = -Lsrc/lib -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lopengl32 -lglew32
OBJS = $(OUTPUT)/main.o $(OUTPUT)/shader.o $(OUTPUT)/loadGLTF.o $(OUTPUT)/glcontext.o
OUTPUT = ./output
$(OUTPUT)/a.out: $(OBJS)
$(CXX) $(OBJS) -o $@ $(LDFLAGS)
$(OUTPUT)/main.o: src/main.cpp src/shader.hpp src/loadGLTF.hpp src/glcontext.hpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(OUTPUT)/shader.o: src/shader.cpp src/shader.hpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(OUTPUT)/loadGLTF.o: src/loadGLTF.cpp src/loadGLTF.hpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(OUTPUT)/glcontext.o: src/glcontext.cpp src/glcontext.hpp
$(CXX) $(CXXFLAGS) -c $< -o $@

hi shiro 
hi sam
omg he remembered my name 
learned an exciting Linux trick today
if you feel like it you can add a rule for creating $OUTPUT where you create the folder and then putting that as prerequisite for others so you don't need to manually create the folder
"Esc, T" swaps the arguments on either side of the cursor
btw i think there are ways of adding dependencies separately so you can create a common rule and then manually add extra headers as dependencies when needed
that would be cool but i dont know how
oh like in bash?
yeah
that probably an emacs thing then since bash uses emacs keybindings
ohhh I see
i configured readline to use vi keybindings though
it's very useful tho
i just use fish anyway but its useful in programs like python that use readline too
too many times I'll have an option like --threads 2 and then my stupid ass adds another argument like --threads --verbose 2 and ruins the command
so being able to instantly swap those last 2 options seems handy
you might be overestimating my vim familiarity
I know q, x! and /
never needed anything else
esc -> from insert (typing) to normal (do commands) mode (puts the cursor right before 2)
dB -> delete from the cursor to one WORD to the back (so the entire --verbose including the trailing space)
B -> go one WORD back (so right before --threads)
P -> paste before the cursor (so it ends up inserting --verbose including the space right before --threads)
A -> go back to insert mode and put the cursor at the end of the line
programmers will do anything but actually write their code
btw WORD means anything that isnt whitespace, if i just deleted a word instead of WORD i'd only remove verbose instead of --verbose
i'm not a vim zealot i'm just a vscode/intellij hater 
i'd switch to emacs or kakoune or whatever if necessary
is VS Code with Vim emulation okay
i dislike it because of microsoft not because of technical reasons
i feel like with github you can at least justify using it because using github means networking
but with vscode there's zero justification
guys did you know they killed atom? smh now i have to switch to sublime
they killed vim now i have to switch to ed
welcome back from your cryosleep, the year is 2025

?
I write my code, thank you very much.
Also, happy birthday.
i think i’m gonna make a website, are joomla and ember.js good choices? or should i use drupal instead?
joomla is good but imo you should install wordpress
Wordpress is a useful tool, but I do find it to be too much for me.
anyway if anyone else wants to configure readline to use vi keybindings, put this in ~/.inputrc
$include /etc/inputrc
set editing-mode vi
set show-mode-in-prompt on
CXX = g++
CXXFLAGS = -O3 -Wall -Isrc -Isrc/include -Imodels/V-nexus
LDFLAGS = -Lsrc/lib -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lopengl32 -lglew32
OBJS = $(OUTPUT)/main.o $(OUTPUT)/shader.o $(OUTPUT)/loadGLTF.o $(OUTPUT)/glcontext.o
OUTPUT = ./output
$(OUTPUT)/a.out: $(OBJS)
$(CXX) $(OBJS) -o $@ $(LDFLAGS)
$(OUTPUT)/main.o: src/main.cpp src/shader.hpp src/loadGLTF.hpp src/glcontext.hpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(OUTPUT)/shader.o: src/shader.cpp src/shader.hpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(OUTPUT)/loadGLTF.o: src/loadGLTF.cpp src/loadGLTF.hpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(OUTPUT)/glcontext.o: src/glcontext.cpp src/glcontext.hpp
$(CXX) $(CXXFLAGS) -c $< -o $@
$(OUTPUT):
mkdir -p $(OUTPUT)
this should do the trick for making sure there's a build folder btw, replace with whatever you use to create folders if they don't already exist on windows 
Not even wq?
folder need to be created first apparently but besides that it works 
i think
ok nevermind?
something to do with spaces vs tabs i guess
btw, what is prefered? spaces or tabs?
i dont mean makefile, i mean general programming
spaces
there are a few projects that use tabs (Linux kernel
) but generally everyone uses spaces for everything now
at least for VS Code I think it's spaces
yeah nobody uses tabs
tabs kinda suck because they look different for everyone
tabs is the default in hblang though
if vscode has tabs being 4 spaces in a trenchcoat, then why is the formattign on my github fucked?
you might've copied the initial code from somewhere with tabs
ah
Sam, imma be honest with you, since the start of your project, the whole thing has been cursed that I lost track what may have caused which
oh yeah i wrote this inside discord so checks out
that just happens when you start a project in a language you dont know and develop a liking to doing it a certain way while people dont like that way cuz of sytandarts or whatever
You use the desktop client? Because I can't seem to input tab on the textarea in the browser
i do
Yeah, and I am all here for it seeing it all unfolding 

I hope you realize that these conventions exist because all the other ways to do things kinda suck 
erm ackshually it's not a textarea it's a <div contenteditable="true">
nah, it's C++, all hope is already lost in that regard
the current issue is not using a formatter and accidentally mixing tabs and spaces as a result 
Why can't people use semantic HTML
because a textarea can't do anything
i do feel like the "wasting space" argument is pretty shit when most monitors can fit 100+ lines on screen at the same time
1440p fits 169 lines, im sure 4k does over 200
if you have a 480p screen then you wont be able to run my code anyways
idk what kind of monitor you have, but for me it's ~50 lines 
wait i might be bad at counting
though the absolute amount of visible lines doesn't really matter when the amount of vertical space wasted is relative to the total line count
no i just made a typo and did the rest of my math with the typo
i can fit 69 lines
not 169
why is there math involved in the first place huh
the 4k thing
you use contenteditable if you want to insert html into the editable area, can't do that with a <textarea>. "semantic html" does not apply here because it's a technical limitation and accessibility is easily fixed with aria- properties
fair enough
I see. Luckily I never have to encounter the needs to have rich-text input
i did notice that people here seem to be against scroll wheels with max file sizes of 70
it's not impossible to deal with or anything, yeah
it's just wasted space regardless 

huh
it's an actual nightmare yes
its not a waste to me 
oh ye mlntcandy, your fork is outdated 
once i gitpush this at least
His edit is just a single regex replace
why? thats not fun
thats not fun at all
i cant tell anymore if vscode does tabs or spaces by default
or does it change the default if you change the size of tabs?
you can see the current setting in the status bar at the bottom
alternatively
my horizontal screen can fit 127 loc now
if you want to know the default then I guess just create a new file and see what that says
you use 2?
for Elixir, yeah
is that normal?

You don't actually code like that right?
....right?
Same, I used 13" laptop too, and my 2nd USB-C monitor is the vertical one
It's nice for reading the docs
huh
some languages value horizontal space a lot
do yall put tabs on the unused spaces or do yall leave those at no indentation?
To the point that the limit is 60-80 col
leave them empty
just preference or?
most linting tools complain about there being useless space
ok
and more consistent
I hate space with semantic meaning with a passion. *looks at python and yaml
this just happened cuz i converted all the tabs to spaces with an extension and i have another extension to show white space at the end of a line
I don't think you even need an extension for that though 
Whitespace is an esoteric programming language with syntax where only whitespace characters (space, tab and linefeed) have meaning – contrasting typical languages that largely ignore whitespace characters.
As a consequence of its syntax, Whitespace source code can be contained within the whitespace of code written in a language that ignores w...
which one?
MY EYES
the converting or the whitespace?
the converting
You can replace with regex or manually copying the tab
i will not remove the embed, it gives important context 
TIL that it has a name
https://en.wikipedia.org/wiki/Off-side_rule
The off-side rule describes syntax of a computer programming language that defines the bounds of a code block via indentation.
The term was coined by Peter Landin, possibly as a pun on the offside law in association football.
An off-side rule language is contrasted with a free-form language in which indentation has no syntactic meaning, and inde...
the inlay hints make these lines way longer than they should what 
your VS Code looks fancy 
also you overshot the line width limit smh my head
yeah that's really ugly
I don't even use vscode anymore 
I actually wonder too
just very wide
as in, themed
also command palette on the right
that's just a wide screen
I don't think the command palette is on the right
Oh actually that's my screenshot cropping that's a bit weird, the palette is on the middle
Anyways
I use zed nowadays
At this point I'm basically switching editors once every two months 
zed users are real???????
"nowadays" like I've been using it for ages but it's been two weeks
I prefer Psioniq file header
I don't exist, don't take this for proof
what is zed?
Code Editor
the last letter of the- a code editor
genius answer xD
I'm still waiting for lapce
uhh, what else would one answer that
Its a code editor with (milk?)
oooooh fancy
It's actually the first editor I actually spent time configuring and it was fun
catppuccin mocha
A touch of Intellij
How does one make Firefox run on the iGPU? I don't want it wasting 3GB of VRAM that would be better used for training
i like it 
i do too
Right- I'm so used to the color scheme I didn't even notice it
It's so good
On Linux Mint that is, I just gave up on Windows because it became entirely hopeless
Can you change github theme to use catpuccin? Because I use the github theme on my editor just to make it easier for me
Pretty sure those are just different themes
You could try creating your own theme based on both of these
that would probably look quite bad
I mean changing github the website to use catpuccin
unless you're picking colors yourself being inspired by both, not literally taking colors from the theme
Oh that's very possible yeah
John Py tohn
Who said an LLM can't create an LLM
There's extensions to change css of websites, I just have no idea how to use one, never tried it
i did a typo
Uses the Stylus extension
Oh, nice
It was super easy for me on windows, for linux I just disable HW acceleration in the browser settings.
So now I can ditch github theme 
I'm pretty sure my integrated graphics should be able to hardware accelerate
I read pytorch and I agree
Question: to make the program work with JSON files I need serde dependency. I found serde and serde_json. Do I need one of those? Do I need both?
Ya, but it's a pain in the ass and what is the benefit?
I'm pretty sure there's a device use flag somewhere on the browser
Saving VRAM while keeping acceptable performance?
okay this is cute (flashbang warning)
Try looking for it on the library of babel (Arch Wiki)
you doxxed your school mate
it's not exactly private information
Ok, maybe you are doing some crazy shit in your browser that required gpu accel. Mine runs fine without it
you need both
if you look at the serde_json docs you can see that you use both crates
I run pxls and YouTube, those two things can really take some performance
Spent all day reading rust syntax rules, watching youtube videos and such. Sit down to code. Head empty, 0 idea what to do. 👍 .
Are you also just starting out?
Yep
Do you have a language in mind
Several, all of them human
I dont, i got arch linux on my ol laptop, felt cool and now im very slowly learning python and C++
I dunno about pxls, but youtube has basically no impact on my CPU.
Serious answer: I started with rust
Ive only heard about rust in the cpp server my friend invited me to
Bold move
I think this is what you need to use, but I never botherd to try setting it up: https://wiki.archlinux.org/title/NVIDIA_Optimus
ah yes, the C++ mascot, very cute
Difficult tasks and overcoming them RRAAAGH

K, bye, thanks for help. Will go reread an article on enums for the 5th time
you should start from the basics
no need to do full projects for now
I mean, that's what I was reading and watching all day
I will just implement them now. In the perfect world I should blitz through my idea. But we are not in a perfect world
if you are using any kind of external dependencies thats already not really the basics
serde is a complicated piece of software
And I am a complicated piece of human
Oh god, I can't iterate enums, I will have to convert it into a list somehow. Oh the misery
Oh, thats why you need impl. Cool
the other day I had the same issue
dont recall how I solved it now...... but haven had to convert anything
I can feel my grey matter expanding inside of my cranium
Why do you want to iterate over the enum? That's usually not something you need to do.
Using my purely theoretical knowledge from 2,5 articles I read and 3 youtube videos I watched I can deduce that we need to borrow names of fish from enum and turn it into integer through impl
exactly, I was like at the end doing <enum>.<value>.name something like that
and didnt had to do iteration
Normally you use enums directly and don't need to convert them to some number. What are you trying to do?
male github profile
Well, I have a list of fish you can fish. It will be a hashmap later, so enum is for that, because... I think its the proper way? Hashmap will then go to long term memory in json file that will be my collection of fish. BUUUT we need to pull random fish on catch command, thats why we need to iterate it for rng
God I am so fucking smart
If you want to store the number of fish you caught for each type then a hashmap from your fish type enum to a u32 will do
YES, EXACTLY
nyoom
I'm so in the zone right now that I can almost hear [Ultimate Mr. Robot Original TV-Series Score Music Mix for Hacking, Coding & Programming] playing on the background as I type
you probably don't need to convert your fish enum to an integer though
I assume you want to used your RNG to pick a new random fish type, right?
Yes, catch command gives you one random fish
So you could for example impl a get_random_fish() function on your enum
which would return a FishEnum
but how random if fish not number
That's 95% of what I usually do
impl FishEnum {
fn get_random() -> Self {
let random: f32 = rng.random_range(0.0, 1.0);
if random < 0.2 {
return Self::FishA;
}
else if random < 0.5 {
return Self::FishB
}
Self::FishC
}
}
More new concepts
So you have this method get_random on your FishEnum that will return a fish value
like
let new_fish: FishEnum = FishEnum::get_random();```
Instead of the if/else construct you can also match on random and give ranges as the matching arms, but that might be a bit much for the moment
I kinda wanted to avoid new_fish thing and just return one random fish value from fish enum, and the fact of its returning will be recorded in a borrowed hashmap and alter JSON file, but if this method allows me to skip list creation step it's worth it probably. It's not like I can assess what is optimal with my level of knowledge, I just have a vision and try to implement it, so not a critisism, just saying that it's not the way i imagined it
Yeah, match was planned
This article makes me wanna commit a crime
Damn, the more I think about this the more smart of a choice it seems
Enums are a very important construct in rust because of static typing. If you shuffle en enum around it will always be explicit what type it is so the language will avoid errors that can happen if you mismatch types (like can happen in C or Python). For example you cannot pass a string into a function where a FishEnum is required. the compiler will not let you.
If you have some way of turning your enum into another type (like an integer) then you are giving up that guarantee, so it's not a very idiomatic way of writing rust.
When you are starting to use more external dependencies you will find that most of them define their own types and enums exactly for this reason. The interfaces become very explicit, making it harder for the user to use them incorrectly.
There is a good youtube video on this, let me find it real quick
Today we're talking about how to design your projects in Rust without using inheritance.
Thanks very much to today's sponsor Quadratic.
Head to https://quadratichq.com/ to try it out!
❤️ If you would like to support what I do, I have set up a patreon here: https://www.patreon.com/noboilerplate - Thank you!
📄 All my videos are built in ...
Im a low-level vibes enjoyer (thinking about what I want to to make and then thinking how to do that)
I need to learn what self does for that tho. Didn't mean to implement it, so kinda put it aside for now, but change of plans has occured
The Self type inside an impl is a substitute for the type you are impl'ing on
So in this case Self would be equivalent to FishEnum
Oh, that seems easy to grasp
This is useful if you rename the enum later. You don't have to replace every instance of it in its impl stuff
Intelligent 
Why isn't there a keyword like EnumVariant:Enum_name or something like that? That would refer to a variant of a chosen enum so you could do stuff with it later
Okey... i looked at rust hash map and i got an idea... what are you trying to do... the thing is... for me, that sounds like you want this:
"HashMap<FishkeyName, number of fish>"
If you want just this, seems that you can get all the values in a vector using this:
some_hash_map = score_table.values().cloned().collect();
If you want to then say, save more stuff about those fish, then you would probably want something like this:
"HashMap<FishkeyName, some_class_about_your_fish>"
that class could store anything like, the name of the fish, fish color, or whatever.
There is also the lowercase "self" which is used in function signatures like this
impl FishEnum {
fn to_string(&self) -> String {
match self {
Self::FishA => String::new("I am FishA"),
Self::FishB => String::new("I am FishB")
}
}
}```
Here, `&self` is a reference to the object that a method is being called on:
```rs
let fish = FishEnum::FishA;
println!(fish.to_string()); // <- Will print "I am Fish A"```
I have no idea of rust, sorry, i can only help by intuition
Note that fish.to_string() does not have a parameter, but the function definition does.
Oh god... Thank you for your effort, I will copy that for later, but rn I cant understand this at all. Will learn some stuff and return to that
It's okey. Take your time 
Oh, while we are here: method and keyword. I still don't really feel the difference
Keywords are things like if, let, return and so on
A method is a function that is implemented on a struct or enum, so the get_random() or to_string() examples from above
Ok... But what is .read_line then?
But it can be implemented without structs or enums
No.
If you have a ".", then you have some object before it
like in fish.to_string()
Ok, got it
Thanks
Read about this at least 10 times and even asked AI to explain, but still didn't get it until now
There are also static methods (don't know if they are called that in rust, maybe they are called type methods?), like the FishEnum::get_random(). That's a method implemented on the type directly and does not require an object. fish::get_random() probably doesn't even compile.
My brain tells me that it will probably work with a proper set up before it, but I can't explain this intuitive conclusion and cannot elaborate on it in any way
okay i may be stupid
so i set up a sftp remote in rclone
and it did mounting perfectly fine
but the second i tried to do a clone or sync it decided that it, in fact, could not see any file on my machine
so i set up an actual sftp server thinking that was the problem
now it doesn't think anything exists 
It appears my Linux Mint GPU switcher thing isn't letting me run stuff on the iGPU for some reason, even when set to Intel only mode
Does anyone have any idea how to make it actually work so I can save some valueable VRAM?
local fs to local fs works fine
but trying to do anything against the sftp remote other than retreiving files FROM it fails
or more accurately, doesn't bother
Very important for optimal NeuroSynth training
this does not seem right
If the setting persists across reboots then try that. Otherwise restart apps as needed to get them on the iGPU. That's all of the advice I got.
It doesn't let me get anything running on the iGPU, I've tried to get especially Firefox on there for hours now
My setups normally deal with it well, but that isn't everyone's.
Does your DE happen to be on dedicated?
Only thing I can think of is that it is keeping the option from that.
Well, there is that one Nvidia optimus thing that's meant for swapping GPUs but even setting it to only Intel mode doesn't make Firefox run on Intel
Yep I'm aware of that, but you didn't answer my question
Is XFCE running under dedicated graphics
XFCE? I'm on Cinnamon
It does appear to be running on dedicated, but I have no clue how to decide where it goes
I'd fix that first tbh
sorry i have no idea how the linux mint switcher works, but i assume you have an nvidia gpu?
Yep
Do you want a Mac for college, but your parents aren’t quite on board? Download the Parent Presentation: https://apple.co/4e4ykEI. Available for free in PowerPoint, Google Slides, and Keynote.
The presentation template has 45 customizable, parent-persuading reasons why Mac is crucial for college. Watch comedian Martin Herlihy show a group of...
Well, I have no clue how to switch where the DE is
No matter what mode I use, only Intel, on-demand or Nvidia only, it always has the same stuff on the dGPU
also are you using wayland or x11? idk whether cinnamon has been updated with wayland support already
Of course. Convince your parents that is a good idea to get an overprice non upgradable machine 
X11, because Neurolings
That's less of a headache at least
Apple is so shameless lmao
Nvidia card
X11
DE stuck on dGPU
switcher not doing anything
wise words from apple: Ram is gold (well in pricing
note that files in /usr/share can be overwritten by updates and you should ideally edit stuff in /etc instead
how? your guess is as good as mine, good luck
Gold is less expensive than their ram upgrades. It's ridiculous! You can pay two machines for the cost of more ram
Managing GPUs is probably the closest thing to black magic that exists
true
now time to let idk asus or something like that to make a same video about why ppl should get a notebook
I've tried everything to get steam-vr to run on dGPU after a system upgrade. None of them have worked
I Avoid IOS like the plauge
liquid glass isnt as good as I thought
personally not a big fan, and idk for those who uses old A13 chip, their ipad might explode after updating lol
b
Well, I certainly don't see a config file for the Intel GPU to set as primary
This stuff is messed up, I just want my iGPU to take this really VRAM heavy app
It shouldn't take hours to make that happen on a fairly standard Intel + Nvidia setup
there is some way, but you'll have to read forums or wikis to figure out how
its not that bad
i only use a macbook for macos tho lmfao
if you use amd it uses integrated graphics by default (on my machine at least)
i have to explicitly run apps with DRI_PRIME=1 if i want to run them off the dgpu (unless the app explicitly requests to run on the dgpu)
Mint should allow me to set what GPU to use for each app but it's being really annoying and not putting anything on the iGPU
Welcome to linux
the curse of "user-friendly" distros is that they dont really teach you troubleshooting
It doesn't help every result is the opposite of what I want
Intel + nv also does it right, at least on my system
try this
isee
That doesn't appear anywhere in the Nvidia settings
anyway, wayland may or may not fix it, switching to open-source nvidia drivers (if you are using proprietary ones) or back may fix it, or possibly even a newer kernel
Seconded, I didn't troubleshoot until I landed on NixOS (popos! mainly, some fedora before then)
you can also try prime-select
honestly i'd recommend arch over nixos for newer people, nixos adds a whole new challenge to learning linux
I personally don't mind the challenge, but definitely not a recommendation ever
vulns were found in chromium https://chromereleases.googleblog.com/2025/06/stable-channel-update-for-desktop_17.html
there was also this a few days ago
🙏
Well, funny thing, now it's running on Intel and only Intel, the dedicated GPU isn't even outputting
progress 
That was achieved by adding this in an XOrg config file in /etc/X11/xorg.conf.d
File 10-intel.conf
Well at least I can confirm that my bot works
The side effect of my phone blowing up will be inconsequential

Get pinged
run /fuck_off to stop these messages
@grok is this true
My colleague found this museum piece that was thrown out. Asked if there's a way to reformat and put on an old OSX.
2002 iMac G4
I don't think these things had the ability to install from USB back then.
https://docs.kernel.org/filesystems/ntfs3.html looks like this one does read/write 
idk if the kernel mint comes with supports this though (looks like it does as a module)
Apparently I just had to boot and properly shut down Windows
oh yeah that'll do it too i guess
I'm gonna configure the Neuro stream capturer and go to sleep
I'm gonna have to install Streamlink is something I just realized
I guess I'll have to recompile the capturer because of a change in Streamlink
Well, that took a while, but I think I did it
Time for me to sleep I think
Tomorrow I'll have a ton more stuff to solve, like how to autorun this stuff
Saw that going for $300USD back in a vintage tech shop
Of course of course
NOOOOO! I hope you get better 
Nooooo :((( 
hope you get better soon shadow
Chat i cant believe
My sister's teacher
Tells to use the same password for all like 26 students
And the password is like 6 characters long of only letters and numbers
💀💀💀💀IT infrastructure on a new level
I accidentally left 1 extra screw in my pc case while adding two storage drives, now I spent 30mins and still couldn't find it

I mean I can just leave it there, but I'm more afraid of it shorting things out
buh
I'm crashing out
entire primary and secondary school has the same password for every student account
you can change it but no one really does
my feeling when my school password is 32 characters long and everyone loses their mind when I type it in front of them (I need 3 tries every time)
i suppose you already tried shaking the pc around to see if you can hear it? 
goodmorning 
gpu decoding 

i would try to find it ye. maybe just turn your pc upsidedown
my school password may or may not have been an elaborate smiley face for the last 6 years
well they are small af but I stole it from an 10+ years old pc 
I have 3×26 char (3 different 26 char password) I need 3 tries because I forgot which password I use for which account
The trick is I compose it from the simpler password, so the 3 password is technically just a permutation
300gb + 120gb < 512gb, while I have an 8tb hdd, I guess I'll never use those 2 drives 
guys
500
also one for 550

there's aslo a wholesale of 90 broken 4090's for 150
no chip no memory
the real ones are 1.2-1.5k


There's the scam
no thats the 90 4090's
they're pretty clear about them being non-functional
for 150 its not bad
Oh
you just need the ram and chips
I don't read the first part
Either China or Russia. Both of those countries are notorious on hardware mod
Like, literally using server cpu and designing a desktop motherboard
Which is not bad since it is a functional hardware not go to waste
the 3090 is pickup only so they'l show it works in their house i guess
so not too suspicious
so I left my bot running overnight
fuck_off command is crazy
the bot uses probably the worse 200 lines of code anyone here has ever seen, but it was written in 15 mins so it was to be expected
fuck off command is genius
Because you introduce me to github theme catppuccin, I've now back to ricing my setup lol
Lmao yeah it does that to you
I installed the thing and I didn't realize it would install the theme on like 130 websites
I'm not complaining though
Now my KDE Plasma 6 is catppuccin, my firefox is catppuccin, my GTK is catppuccin. Imma catppuccin everything
Fr no1 cares about amazon and Netflix anymore much
Experiencing that feeling when you keep finding more and more ways to do what you want to do and now you are on a side quest to find out how all of them work and can't start the very thing that prompted you to search for these ways












