#🪅-progaming
1 messages · Page 47 of 1
i was being sarcastic lol
progaming
servers
@hoary sluice i have the thinkpad
Which one
me rendering a cube at 3.4k fps on my phone
i got it for £500 i think it was worth it
it looks nice on zed too
i love inconsistent icons
why
get the catppuccin icons extension
@frosty obsidian what if i called the library "pipette"
what library
my compose color picker library
very cool
it doesn’t matter how it looks i just needed something to show
i haven’t configured it properly yet
lmao
i think whoever picked those icons just grabbed random stuff from google
wing hates me
so i can install various dev things without worrying about storage
i had to uninstall haskell because i ran out of storage
no it’s a nerd font but i know what you mean
im referring to the nerd font devs
oh xd
@frosty obsidian hi
i really like that color display
nick@arch
fake
how do u even tell the colors apart
idk
thats a very blue/purple color scheme
lmao the thinkpad came with a bulky charger and i thought i was gonna have to take it around with me but the port itself is just usb-c 😭
not sure if having a less or more powerful charger can break it
the plug i use has a transformer built in but idk if its the same size
probably doesnt matter
yea ok
usb c negotiation so good
the speakers on this absolutely suck compared to my macbook
shouldve expected this tbh
haven't fixed the value bug yet i see
dont know how
just fix it
how
code
5 years
yop
can anyone take a look at my settings code?
whenever i use it whether enabled or not vencord just doesnt appear
const settings = definePluginSettings({
showHeader: {
type: OptionType.BOOLEAN,
description: "Desciption Here; 🔐",
default: true
}
});
whenever i use this it just fucks my vencord
and is just the default stable discord
instead of discord with vencord
dk whats wrong with it
enabled/disabled boolean setting
What is the error that shows up in the console?
got it working
Gesundheit
you will regret 16gb of ram
how many watts does the actual charger have
theres phone chargers with 120W that are tiny and the thinkpad prob needs like 90
use anything but gnome pls
ur the type of person to like sway or hyprland
how do i get a fancy window thing to switch desktops with gestures on wayland
gnome had it built in
u mean switch desktops with touchpad?
yea
- thats really slow
- plasma has it but idk where
install catppuccin qt
configure super shift $n to switch the active window to workspace $n
ok i did that
perf seems like its about throttled to 1/3 of full when on power saving mode
i installed catpuccin for kde lol
this is some good code™️
I want to do some memory measurements to see how hungry i am
i got 16gb of ram and i regret it
always running out
@deep mulch somehow vscode managed to drop the path delimiter after my username on all my extensions 😭
LOVEhttps://github.com/microsoft/vscode/issues/237547
yeah however i use a really minimal setup
16gb was enough on my macbook it will be enough here too
i have 16gb and I dont think it ever ran out
my bad
its more that enough if you only ever make compilers
i cant run my voice assistant on my laptop
it requires ollama, rasa, and a speech to text, zed, r-a and qt creator running and i always have discord open so my cpu and ram struggle a lot
WINDOWS ISSUE
Linux issue because my laptop doesn't support Linux
ok thats just not a thing
Lol yes it is
no theres just no way u can install windows but linux "isnt supported"
snapdragon x elite chip
@hoary sluice enlighten me on how no graphical output, no usb input, no keyboard input, (guessing no trackpad input, havent gotten far enough to test that yet) means "supported"
i know there is no keyboard /usb input because grub displayed graphical output, but didnt accept any keyboard input
and once it booted (via grub default choice timing out) screen went black and theres no graphical output
what distro did you try
cause linux works perfectly fine on raspberries so i dont see why it shouldnt work on other arm platforms
and from what im reading with the right setup it works
debian, ubuntu, linux mint, fedora, nix
mint fedora and nix dont have good arm support
using asahi linux on fedora rn
did you try the ubuntu 24.10 arm concept
im pretty sure arch linux has "alarm"
which is built for arm
yes but its not as good as ubuntu for snapdragon
that wasn't a thing when i last tried, and ive been too busy to try again
and i wouldnt call needing a concept build good support
also theres an official debian image from snapdragon
why does the naming matter
its just an arm build
what matters is when i download the arm iso off of ubuntu, that it just works
so you want to use the generic arm iso instead of the iso designed specifically for snapdragon x elite?
what laptop are u using
no, what im saying is that i would not call linux "supported" if
- you need to find a special build that isnt clearly listed on the main download page
- only an official debian image and an ubuntu image work
while it might technically load, i wouldnt call that "support"
this is a poor approach to foss, especially to an operating system on a very much new platform; there arent enough people using it to warrant a lot of work to be done on ensuring full support, but there is enough support to get a working image, every distro works if you put in enough time into making it work, but thats unneccessary, because the people at qualcomm and canonical already put in the work into supporting snapdragon x elite
idk why you dont want to call this support
you have multiple linux distros running on your platform
with you needing to do barely any work
you can get nix working on it if you put in a few days or weeks of effort, but you could also just use ubuntu with nixpkg
im going to try installing what distros i can tonight, and ill let you know if i manage anything
i wouldn't call debian and ubuntu separate
sure
*in this context
with that mindset there are like 3 distros
you can turn ubuntu into arch in a day
lol i put in a few days of work a while back to no avail, but hopefully its improved
the concept of a distro is pretty abstract, its just what kernel is used and what apps are preinstalled
ive also tried to build my own nix iso in the past, but it ran into the same issues as the official one
then you didnt put in enough effort
whether that effort is pointless or not is a different question
its hard to get an os running on a new platform, people did the work and now theres support
its probably easier to install the ubuntu image, change the gnome theme, install nix on it, change the neofetch ascii art and call it nixos
did you call linux a new platform xd

no i called snapdragon x elite a new platform
oh
@frosty obsidian they're adding VerticalSlider ButtonGroup and a drag handle thing to compose m3
something called a FloatingToolbar
also lots of references to something called an override
@hoary sluice either i cant find the official debian image you mentioned, or it has the same issues as all the other arm isos
@hoary sluice the ubuntu concept ISO has the same issue
Anyone here ever wrote a tampermonkey script? how do i made a 1 click install link for my tampermonkey script? just opening the .js link from github doesnt seem to prompt the install page to appear
you want the file ext to be .user.js
and it needs the userscript header
i think thats how the script i copied used the updateurl and downloadurl
idk how to get direct download link url to a github file, that is the url from when you click 'raw' to view the raw file
oh
i thought this was a question
thanks, let me try
nice it worked ty xd
@frosty obsidian compose-pipette
@ornate quiver does android studio hide all the useful tool windows for you
like logcat, device manager, build will be hidden for me every single time
its so so annoying
no?
Android studio is ass
so true
Im actually thinking of making a phone app, but im pretty unsure of which framework to hse
I want to use the material components tho
Perhaps flutter could be a great choice, but i dont want to learn a whole new language
On the other hand, i found android studio overly complex with all their shit, but thats like 2 years ago
guhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
it genuinely pisses me off so much
im expecting it to always be there 1 click away
id recommend jetpack compose but know that it has a pretty steep learning curve
as might as we all hate react native it might be the best option if you're lazy and already know react
Does support the material design though
compose does
I have no idea about RN
I kinda fell in love with it as it looks good in google ecosystem
then again you could just go for no framework at all and just use views directly
I know there's material component libs
Ill take a look at the jetpack compose, thanks 
Ohh its similiar to compose multiplatform
it's the same thing
yop
cool I updated and now I ksu just won't install despite flashing with no errors
android studio is typically recommended for android specific development
but intellij will still work fine
VLAs seems to be pretty interesting topic in C
Lmao
Android studio is buggy as shit, for me IntelliJ work better
Does anyone know how the hell to use windows WH_KEYBOARD_LL because for me it only works while my app is focused for some reason
simply don’t use win32
Compose massive W
I just love how you can make anything look good with very little effort
Especially these custom buttons I made to look like keys
https://cdn.discordapp.com/attachments/1291472546939670548/1345474560073666570/Screenshot_20250301_201409.png?ex=67c4ae54&is=67c35cd4&hm=db43ef917746fa7e1506ac5807174114e790c477fbaaf7c494f8973d9161d214&
Ok but then how do I achieve the same effect as evdev but on windows
skillz
hardstuck 130 for almost a year
lol
my raw is crazy though
i also have 116 in c++ xD
android studio is intellij
but modified and worse
It's def a worse experience though
Especially when using Compose Multiplatform
But even just for android-only
my experience has been fine
pov: every jetbrains ide
jetbrains try no to make an ide for literally everything challenge (impossible)
you can make your own jetbrains ide actually
Jetbrains makes a good plugin for Lua when
Luanalysis was amazing but isn't updated in like 3 years
update it
probably having trouble with jetbrains' own language support system
At least it's not as bad as LSPs
LSP is at least standardized and works across editors
But it's slow, lacks context, ignores type stubs, needs to be installed separately from plugins for some fuckin reason, and some more issues I can't remember
language support was never suppose to be client-server thing 😭
its a compromise
might just be dumb but what do I do here
You're probably building from the wrong dir
ok then
follow the docs and you won't run into issues
I am
I am literally on docs
I will kill the person who designed winapi
he is probably already dead
Then I'll revive him just to kill him
man
you have no idea how much i relate to this
i've been emulating on android
and fuck dx
fuck winapi
proton helps
but fuck me
dx game: 20 fps min settings
vulkan game: ultra settings 60fps
I need to make an evdev-like API on windows
Horror
i'm just trying to turn my phone into a steam deck
but android being arm64 becomes a problem rapidly
learn rust
Why tho 
great tooling and documentation. the same devs that make the language make every possible thing you might need. a package manager, an lsp, a formatter. no need to pick from million third party utilities
also you’ll be able to write “blazingly fast 🚀” in your project description
Uh k
i think you forgot something
its @vital plume
true
blazing fast memory vulnerabilities 🚀
That's c++
does anyone know how to launch a url via firefox as a popup
ie, you can't navigate and the address bar is hidden
the closest is --kiosk which launches it as a fullscreen app
minimum effort
how would electron work tho
webview is so easy
actually hold on --kiosk works if i make a hyprland rule to then unfullscreen it
import webview
webview.create_window('Hello world', 'https://pywebview.flowrl.com/')
webview.start()
huh interesting
@ornate quiver im scared i need to take a mobile app development class
theyre gonna be teaching like android app development with java 8 and views and deprecated apis and using eclipse i bet
i wonder if i can somehow skip it
if his school is so outdated that it uses material before android studio was a thing then zeet should drop out
i can at least understand eclipse being forced for a more general java course but definitely not one for android
true
so many recompositions happen in my color picker sample and i have no idea why
yes
id say theres an 80% chance its xml/views based though
there is a chance it could be react native too
its redrawing the sweep gradient circle every time the color changes even though the gradient hasnt changed
DEATH
i will never use react native
you hate that its a realistic possibility
very bad
one day you will...
it is becoming the future of mobile apps
remember companies are lazy
why hire swifties and kotlinions when u can just repurpose ur webdevs
@deep mulch i will react you to produce 1G fe/t
web devs worst kind of dev
if the class isn't required for your degree then i probably just wouldn't take it
it's required
guh
@frosty obsidian you will be required to write an operating system
probably not
its just cpp
they're not teaching low enough level to make an operating system
@frosty obsidian you will figure out why my code recomposes so much
nop
gu
I don't think I can release yet there's bugs I found
and so many unnecessary redraws
just push the bugs 
don't let perfect be the enemy of the good
if I do this right it'll be really pophlar I think
since all the other options suck
so I wanna get as much right as I can before release
yeah didn't you want to make the app icon background customizable
ye
lovee
rusher this is #🪅-progaming
let me husk
nop
is there anyone who used s3 client(for minio specifically), is there any way to attach "metadata" to the file? in javascript, preferrably with bun s3
nini
nini
@formal belfry is this real mantikafasi
bio checks out
mantika alt
this is a new one
STACK
SMASHING

devilish FIENDS
Do I SERIOUSLY need to handle this edge case
brug
the compiler people love giving funny names to mundane errors
More commonly called buffer overflow
Guess it gets a cooler name since it's more dangerous than a heap buffer overflow?
Since the memory layout is more predictable
glue-on-roach
Needed this 💎
to fix an issue where the IR
Would just
"Lmao, skip the GEP"
"Faster this way idk"
okay i got it
new ff profile, .desktop entry that launches spotify.com in that ff profile in kiosk mode in a new window, then unfullscreens it via hyprland
works really well
dont have to install native app

im gonna switch over to eww from waybar i think
love
Remind me to make JNI bindings for llvm codegen
insane
WHAT GOOD WOULD THAT BE/
LIKE
why
Because then I can rewrite my interpreter/compiler in Kotlin (blessed) instead of python

Like
LLVM is in C++
You're going to write, JNI, for that?
Handling the fucking nightmare tier of nested pointers?
Auto gen bindings? Sure.
Any form of fluency?
k
not happening
Just use a native lang
Rust or Cpp whatever
Tidy

could you use the Kotlin native llvm backend and repurpose it
Horror
Honestly if knative got CPP interop I'd be more than happy
I mean, can't be much worse than the python bindings
@runic sundial your c++ looks fancy
or just use rust
thats too far
you need to jump
I tried rust and quit
you can use rust for webdev
You're making it worse
it was never bad
what about multiplatform app development?
like kotlin multiplatform
memory safe and fact website ⚡🔥
not enough to make a language
unfortunately
but its most of the way there
you can create your own :D
there probably is a framework for that
@valid jetty when linter for elle?
maybe
Found something https://github.com/redbadger/crux
do not
do
do y’all think he likes dynamic arrays?
yet another js bundler released
another one is rust too 
guys its blazing fast
did you know its blazing fast ™️
they got an AI chatbot




LMAO THEY PUT THEMSELVES INTO “WHO IS USING” SECTION
0 days since new javascript bundler
when new runtime 😦
is ther a single node compatable one besides node?
bun does a great job ig 
still isn't fully compatible but a lot of things work
idk about deno
but deno literally broke their initial goal by implementing npm and node support 
bun 
iirc it isnt node compatabel
im gonna send my first email patch ever
so nervous
@deep mulch @royal nymph could you guys take a quick look to make sure i didnt do something stupid
oh
I don't know what's the trend but
Why the fuck are runtimes bundling sqlite ?????
Are they playing "who's the biggest bloatware" competition?
yop
the only think i can guess is that its used internally somehow and if its being used already, why not expose it for other use
But the thing is that it's not..
sqlite is pretty lightweight and suuuuper useful
in a sense it might be bloat for 99% of apps but you could say the same for the rest of the stdlib...
the entire node ecosystem is full of bloat anyways
lc.g orm
-# <:i:1263593669215256597> You are using the new page system • Leave feedback or report bugs in our Support Server!
tl;dr use some sane API instead of writing sql
that's not a bad point but still, std (we're talking about node modules, not js features itself) is mainly for communicating with the operating system itself - that's why we have runtime
it's unnecessary to bundle sqlite into runtime, it can be an external dependency
by this logic we don't need npm and we can bundle everything to runtime
mb 
Bun has built-in s3 client 
thats even worse than sqlite




node and deno so sane
wait few months and node, deno will implement it
this seems like a neat feature tho
so just a bundler? or
runtime should only contain engine to run the js and modules for interacting with the os
sqlite is probably built in because unlike other databases, it only exists as a library
an native executable by the looks of it
Which is trash cause you cant even set s3 file metadata and the docs are horrible
and it being written in C adds challenges for third party library devs
possible certainly but not easily
what is bun used for
i wonder what this kind message is
how
why’s it hidden
its too kind 🥰
nah i mean like is it some plugin or
vp hide media
rust rust rust rust rust rust rust rust
stawp it
this was released a long time ago
is that githubs fault tho?
yes
Lmao
@valid jetty should i absolutely never use unwrap in prod or is this acceptable
impl From<&str> for Command {
fn from(s: &str) -> Self {
match s.to_lowercase().trim() {
"AC" => Self::Cancel,
"AI" => Self::StartRecording,
"AT" => Self::StopRecording,
x if x.starts_with("C") => Command::Config(x.strip_prefix("C").unwrap().to_owned()),
other => Command::Unknown(other.to_string()),
}
}
}
if-let-guards when
x if let Some(x) = x.strip_prefix('C') => Command::Config(x.to_owned())
maybe soon actually
rustc: if let guards are experimental
see issue #51114 https://github.com/rust-lang/rust/issues/51114 for more information
you can write if matches!(<expr>, <pattern>) instead of if let <pattern> = <expr>
"Soon" as in "open since 2018 with little news"
Midnight by refactor, with comic shanns
Tokyo night variant
evil
you can use matches
but the snippet they shared uses the x later
yes i just realized
Rust confuses me. I want to learn it, but I still haven't found a good explanation for borrowing
I will learn it sometime in the future 
(Also the build times suck ass lol)
but the runtime is blazingly fast
So is c/c++, and I can code faster in those
giant skull emoji
my frontend for this is in qt c++ and its honestly unbearable
build after clean takes around 3 minutes for me
normal build takes a second
project isnt that big tho
its literally just glorified pointer references
References are domesticated pointers
pointers if they were implemented safely
this is release build after a clean
no clean
debug build
use if let or at the very least expect
That's so much faster than rust tho
there should never be a case where you panic with no reason
debug build
i was talking abt rust
yea but it cant panic here

In my experience, rust builds take anywhere from 5-30 minutes for small - largeish projects
elle takes about 30 seconds to do a clean debug build
whats a small - largeish project
@hoary sluice you should try to build elle
you prob have better specs than me
you build the voice assistant
i tried on both m1 and i7 11th gen and it’s about the same
where do i find + how much space will it take up
.
and the size of the target folder?
release takes 9.44s
wtf
i mean your only dep is levenshtein
yeah
16k lines of pure rust code with only rust’s stdlib
and levenshtein is a single 60 line file lmao
😭
i could embed it straight into the repo and then build with rustc instead of cargo tbh
icps takes 0.87s/2.3s after clean
about 80% of the time is spent on compiling whisper-rs speech to text
@valid jetty do u use gay indents
not really
@valid jetty how do i run 'cargo run' by pressing a keybind
nnoremap?
in zed
i figured it out now
@valid jetty press alt shift t, type echo hello and press alt enter
rust is getting the nodejs treatment
500 deps for a simple function
do u see any output
those deps are warranted
sure
[dependencies]
async-trait = "0.1.87"
bytes = "1.10.1"
config = "0.15.9"
cpal = "0.15.3"
directories = "6.0.0"
futures = "0.3.31"
futures-util = "0.3.31"
hound = "3.5.1"
notify-rust = "4.11.5"
regex = "1.11.1"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
thiserror = "2.0.12"
tokio = { version = "1.44.0", features = [
"fs",
"io-util",
"macros",
"rt-multi-thread",
"sync",
"net",
"time",
] }
tokio-tungstenite = "0.26.2"
reqwest = { version = "0.12.12", features = ["json", "stream"] }
url = "2.5.4"
whisper-rs = "0.14.2"
these have their own deps
the largest rust project ive compiled is zed on linux
they had 2k
compiling zed requires shutting down everything and going outside for an hour
i always no_default_features = True my deps
was half an hour for me but true
had to touch gr*ss
Gross
gruzmother
thats a lot wtf
sounds like JAVA JEPs
exactly lol
blom
comparing compile times accross different languages is kinda dumb
not all function the same
go doesnt do borrow checking
i think it only takes me like 5m idk
i mean if we ain't building it from scratch w/ all the dependencies
💀
why is it so indented
reveal that fn right now 🔥
rust
i haev a 20thousnad line divine compiler
the difference between a professional and an amateur is that you write your own compiler
I'm more of a decompiler fan
why is it 90% if/else statements 😭
gotos 
🗣️
Is this like, c
no
its holy c
Cursed
almost 10k loc
im not comparing them
just saying
real
i love compilers
e
are u just making unix
no
Full File: 2016-04-16T00:00:00+00:00 - Terry A Davis Live Stream (q7bJ-Y93uR4).mp4
Full Archive: https://archive.org/download/TerryADavis_TempleOS_Archive/
Visit my main channel: https://www.youtube.com/c/juanchosmrl
terry davis opinion on minecraft
Build awesome chat, video, and activity feeds for free with Stream https://bit.ly/3XGCXOi
Let’s take a look at the latest advancements in AI voice technology from Sesame, as well as new agentic systems like Manus. Learn how conversational speech models work from a technical perspective.
#tech #ai #thecodereport
💬 Chat with Me on Discord
ht...
insane
cool
fireship slop
@valid jetty notice whats wrong?
this is such a common error why did noone notice it here 😭
if the prefix isnt 'C' it returns None
its cause rust doesnt want unpredictable stuff
guh??
a function shouldnt either do something or do nothing without you knowing
whats the error type
its an option
it will literally never hit the first 4 cases
you .to_lowercase it
it can never match AC or AI or AT or C
because thats uppercase
i was talking abt .strip_prefix
i alr fixed tne lowercase thing
rosie you need sleep
fireship more like watershit
HORROR
wtf is this microsoft slop in my discord devtools 
i literally just pressed ctrl c
why did it appear
chat is this real
Real sadly
So i can finally just get autocompletion from lsp without waiting for an eternity?
good
im thinking of sending gc to waste in my jvm and just letting the user manage their objects on their own
not sure how good of an idea it is tho
Java user will never manage their memory
just write a gc lol it’s not that hard
people make it sound more complicated than it is
@dense sand if you want i can write a basic gc in C and litter it with comments so you can understand how it works
writing an efficient one isnt that difficult either if your final goal is a stop-the-world allocator
however if your plan is a generational allocator with multithreading then it becomes a lot harder
i know how i could implement the m&s algorithm, its just that my heap isnt constructed well enought to support it lol
hm
what does your heap look like
if your heap has an alloc and free method then the gc should derive easily from there
under what condition can i mark the memory segment to be freed though? when its not being referenced anywhere?
when you run the marking algorithm and that segment is not marked
@valid jetty hiii
Efficient stw gc is a contradiction
@dense sand naive impl
// assuming allocator contains a typical dynamic array of Regions with buf len cap
// where a Region is a struct that holds a size, buffer, and marked bool
void collect(Allocator *allocator) {
// unmark all regions
for (int i = 0; i < allocator.regions.count; ++i) {
allocator.regions.elements[i].marked = false;
}
// mark reachable regions
// youll have to define these roots manually based on what youre doing in your jvm thing
// if it was just a basic gc for a language you would put the top and bottom of the stack here
mark(allocator.start, allocator.end);
// free unreachable regions
for (int i = 0; i < allocator.regions.count; ++i) {
if (!allocator.regions.elements[i].marked) free(remove_element(allocator.regions, i));
}
}
// takes an arbitrary allocator and the start and end of the region to scan for pointers on our heap
// this is a seperate function from the collection itself because the simplest way to do this is recursive
void mark_thingies(Allocator *allocator, const uintptr_t *start, const uintptr_t *end) {
// get a mutable copy of the ptr so you can add to it
uintptr_t *current = (uintptr *)start;
while current < end {
uintptr_t ptr = *current;
// basic restrictions to skip over pointers which are obviously invalid
if (ptr != NULL && ptr % sizeof(uintptr_t) == 0 && ptr > 0x10000) {
// check if ptr is within our heap
for (int i = 0; i < allocator.regions.count; ++i) {
Region *region = allocator.regions.elements[i];
if (region.buffer < ptr && ptr < region.buffer + region.size) {
// mark region and then recursively call the marking function for this buffer
// the simplest way to think about this is: you allocate struct A, and that has struct B inside
// the only place where struct B will be reachable is through A, so it shouldnt be freed until A is freed
region.marked = true;
mark(allocator, (const uintptr_t *)region.buffer, (const uintptr_t *)(region.buffer + region.size));
}
}
}
current += 1; // ptr arithmetic, adds on sizeof(uintptr_t)
}
}
void *alloc(Allocator *allocator, int size) {
// collect if too big
if (allocator.total_size + size > allocator.threshold) {
collect(allocator);
}
// add to the list of regions
self.total_size += size;
Region *region = new_region(size);
push_element(allocator.regions, region);
return region.buffer;
}
idk how your heap is set out but if its one big continous buffer you can just iterate by pointer size through it until the index is bigger than the pointer youre searching for
and then to free you add that region to a freelist instead
also ideally here you would call mark on every root you have
ie (in a systems gc), the stack, static variables/fields, etc
@dense sand what if you just make everything rc
INSANE
?
yop
me
cursor chat with claude
i asked it to move the button to the left and it just did display: none
oh : ) xDD
well its ai so its dumb lol
llms like enforcing their own agenda more than yours
dont trust them
FUCKING WHAT
its struggling with css and html thats not a good look
css and html are so basic : )
my teacher deadass told me to use react for my small site for school project
brainwash
sponsored
how and where do you get roots from
in C you get the roots by allocating a variable at the start of ur main function which gives you the top of the stack then allocate a new stack variable in the collection function
gives you an approximate range of the stack by taking their difference
and then you use that as your initial mark
then it iters through the entire stack looking for allocations?
actually this is a gc so a heap but
yes
iters by ptr width
then the things it finds are also recursively scanned
how does it know whether or not the thing it's currently looking at was not already unused?
wdym
like it finds a match right
and it marks it
but like
how does it know that "match" isn't just an already-inaccessible pointer that just happened to be in memory at that time
basically why does it not just mark everything thus becoming useless
I tried copilot for a bit and it made me realize how crucial actually researching and asking around is for learning
because stack memory which is no longer in use is taken up by something else and overwritten
if the pointer lasts maybe 1 extra collection because it just happens to survive thats not relevant thats an implementation detail of the stack on unix systems
SOLIDJS AND TAILWIND
tbh the autocomplete gets in the way more than it helps
i use the tabout plugin in all my editors, and it takes over it
so instead of tabbing out, i autocomplete some random, broken shit
however, the chat can be nice from time to time
is that the entire codeblock
then turn off autocomplete
using copilot without knowing the language is actually crazy
i can get behind asking a chat llm for debugging help
llms mid
if u ask an llm what 1+2 is, it will do a backflip and tell you its 4 because of ... and ...
yes. idk what happened but suddenly all models started just editing the last line
might be a cursor bug or smth
why are u using cursor
i have a full paragraph of rules on cursor for it to work pretty well
what 💀 u can give it rules
yes
stuff like "dont unnecessarily try to add more packages" "avoid overuse of comments" etc
havent u seen that study where it says ai likes to force its own agenda 60% of the time or smthing
rules aint going to do nothing
We're getting typescript in go Oh there's already a talk about it
it’s for a silly school project
i cba to do webdev
oh god
microsoft engineers are such noobs
Which AI does cursor use?
is it not its own ai text editor?
you can select but i tried all it had - claude 3.7, claude 3.5, gpt4o
a custom one for autocompletes called cursor tab, for chat and agent you can choose between the gpt models/claude
claude 3.5
ah i am not sure what that is
does using claude 3.7 reasoning cost money
can you make a divine compiler with all of those llms
you have a set amount of premium requests per month, claude sonnet and gpt 4o+ (and more) fall under there, the other ones are free
the difference between chat and agent is that chat is a normal chat and agent can run commands and edit files
can an ai make a kernel
🔥
though i pay for it as i use it for work
once you hit the limit on a paid account you are put into the "slow" queue where it may take longer to get a response
monthly quota 💀
can an ai make a 20,000 line divine compiler
what abiout a wayland compositor
dont enable that lol
sus mode
we are in the age of ai... and we cant stop it
star wars is such a great series to watch
@placid cape do u have wake word detecion yet
and async recording
im thinking about permanently recording and making a ring buffer so when you press play the start index is set and when you press play it returns the audio between the start and stop index and there a limit of 10 minutes per recording cause i dont think anyones gonna be talking to a voice assistant for 10 minutes
this way you can have multiple clients using a local recorder
doesnt really make sense but allows for it to share the same microservice trait as a remote recorder
it ends up using 38.4 MB
Yes
there's also microwakeword which is probably better for you
i think im gonna use https://github.com/Picovoice/porcupine
they have rust bindings
maybe not
what do you wanna put in there
a ringbuffer with 1 minute of 16k recording
altho i just found out that the stack is only really faster for allocation not for reading of big data

i think its time to ```rs
struct NotSync<T>(T);
unsafe impl<T> Sync for NotSync<T> {}
That sounds like a bad idea
thanks :3, sorry for the late reply im ill and my bunny install is borked 💀 so i couldnt reply
i need to put a sync recorder (cpal::Stream) into an async function because the microservice trait is async and there needs to be an implementation of it which uses websockets and records audio on a remote host, and i think id rather make something thats inherently not async into async than the other way around
Perhaps confusingly, the Sync trait has very little to do with async
struct SingleThreaded<T>(T);
unsafe impl<T> Sync for SingleThreaded<T> {}
unsafe impl<T> Send for SingleThreaded<T> {}
Have you considered using spawn_local instead
Or the corresponding function on whatever runtime you use
the cpal::Stream is inside the &self which is passed to an async function
Types that are !Sync can, by definition, not be accessed from multiple threads
Doing so anyway is ub
(Other than raw pointers and UnsafeCell, where the !Sync is just erring on the side of caution)
the stream isnt actually used inside the async fn
its just inside &self
it records into a ringbuffer which is then read from
Then split it up so you only pass the parts you need into the async fn
if i can figure out how to do that
but chatgpt can!!
one struct has a producer for the ringbuffer and another has a consumer and is also Send + Sync
chatgpt cant
I would not trust chatgpt with unsafe
Original Source - http://www.osnews.com/story/23796/Recreational_Programming_With_LoseThos
An interesting look at an earlier version of Terry's operating system. It also shows Terry before his schizophrenia was quite as bad.
it removed the unsafe
also its not like im blindly copying it
what the fuck was i writing in aoc LMAOOOO
huuusk
i fell off so hard theres no way i can do this now
Which day is that?
For 2024?
LMAO
what is that syntax highlighting
its github with an arc boost
this is the most cursed python code ive ever written i feel
import sys
def can_fit(ls, ks):
return not any(l == '#' and k == '#'
for lr, kr in zip(ls, ks)
for l, k in zip(lr, kr))
def solve(c):
check = lambda i: [b.split('\n') for b in c.split('\n\n') if all(c == '#' for c in b.split('\n')[i])]
ls = check(0)
ks = check(-1)
return sum(1 for l in ls for k in ks if can_fit(l, k))
with open(sys.argv[1]) as f:
print(solve(f.read()))
``` lmao
concise but at what cost
It was fun to write
But don't ask me to explain the code
😭😭😭😭😭
d21
The nested keypad one? ||```py
import functools as F
@F.cache
def G(s,N,B,H):
if-1==N:return 1
o=0;A=N-1,' ^A<v>',0
for c in zip('A'+s,s+'A'):p,P=map(B.find,c);x=P%3-p%3;x='>'x+'<'-x;y=P//3-p//3;y='v'y+'^'-y;o+=min([G(x+y,*A)][:P%3 or p//3!=H]+[G(y+x,*A)][:p%3 or P//3!=H])
return o
for N in 3,26:print(sum(int(k:=i[:-2])*G(k,N,'789456123 0A',3)for i in open("21.in")))
lmao
i decided to keep mine at least a little readable cause its not meant to be golf
Oh yes it is
my repo isnt
Yeah it was hard
1h46 and still got top 500 is crazy
100th is 1h 1min 13s
still works perfectly https://aoc.xhyrom.dev/
oh I need to fix the "Showing stars for the year 2025"
I should start working on aoc again if I want to finish all years before this year
i say that every year
this time im actually close
why not rust is an understandable question but why not CSHARP?!?!??!
Rosie not human
degen
people are suprised about microsoft making a sane decision
Not as bad as mine: ```
≢⊃∪/{(⍸m≠⍵)∩,∘.{⍺+⍺-⍵}⍨⍸m=⍵}¨(∪∊m←↑⊃⎕NGET'/tmp/aoc8.txt'1)~'.'
go is not a sane decision
go is pretty sane
still garbage collected which means code is more concise and you have less of a risk of memory leaks but you can do a lot more things in parallel and its a lot faster than in javascript
a lot of things from checker.ts look like 1:1 translations of the js version and its still 10x faster
without any dedicated optimizations
so take that as you will
is that apl
C# competitor to go????
it's a totally different language
where did you get this graph?
remove c, c++, c#, obj-c, logos and makefile
and this would be a language composition i can see myself using
Yes
haha awesome
For me you'd have to remove everything except that tiny bit of python and fill in the rest with 2% CPP 0.1% CMake and the rest Kotlin
Mine would be rust and python, with a dozen single-percents
alright
another thing in my endless tasklist
lmao real
i hate that day has only 24 hours
so TRUE
@valid jetty what what what what what
https://godot-rust.github.io/
this has been a thing for years why am i only now finding out abouti
it
poggers
Rust community ís insane
insane..
nah its shite, unity fucking sucks for this
doom 2016 and ethernal supports full vulkan
so i can raw-dog it on vulkan and run it on ultra at like 60fps
ghostrunner is like 40-50 fps
crysis 3 remastered is like 40-60 fps
most unity games run like shit tho, but unity can be ported to android with one click, most developers just dont do it
@valid jetty @fleet cedar on a scale of 10 to 10 how horror is thishttps://github.com/eagely/voice-backend/blob/main/src/service/recording/local_recorder.rs
tomorrow im gonna try again to make it safe
.map(|n| n == device_name).unwrap_or(false) → .is_some_and(|n| n == device_name)
ignore the eprintln
And ```rs
pub struct UnsafeSendSync<T>(pub T);
unsafe impl<T> Sync for UnsafeSendSync<T> {}
unsafe impl<T> Send for UnsafeSendSync<T> {}


i know
and i kinda dont care anymore
i spent like 4 hours trying to find another way
Why not create the stream on the thread it lives in
cause the goal is to have it record permanently
What does that have to do with which thread creates it
it doesnt rn but thats a problem for tomorrow
you mean share its buffer between threads and create the stream in its own thread?
i tried doing that
kinda
and thats what im planning on doing in the end
the good thing is now i have at least another 5 pages of content in the thesis
reading the node ESM and CJS docs for fun 
its growing up rigyht before my eyes
🥺
1337
my divine kernel is 11337 loc, rightfully so
elite haxorrrr
im hacking the matrix
We're so back
xD
chatgpt moment
the code is ai generated too lmao



