#programming
1 messages · Page 63 of 1
lol doubt that
okay yeah it has to be an integer type
will drawModel be a function on makeModel????
i feel like what you want is a Model class with a constructor and a draw method or sth
That is one of the selling points yes
but in the case of ROCm, you are looking ahead for multi day rebuilding
anyway, class names should be nouns, make is a verb so it should be a function
if you have a cachex where you can push the build, you can just build it remotely and use it
but I did not setup a personal cachex yet
16GB version?
compared a lot of cards and this was the one I chose
Been wanting one for a while, finally found one cheap enough
still works iwht a single 8pin, have eno... who am I kidding. I was drunk and it was high number but lower cost than other options
happy with it aside from the morning pain of figuring out that I needed bios update and manual linux-firmware build
the BIOS itself was freezing every 5-7 seconds and beeping 
even Cachix wouldn't really help, they just store the build artfacts, you still have to build it yourself 
maybe in combination with nixbuild or a powerful VM or two, but have fun finding one that can build ROCm in a reasonable amount of time 
I mean I need to build it once until new releases
so I can allow it to build for 2-3 days
the bad part is I cannot use my PC until then lol
yeah, that works
though you don't really need Cachix for that, can just keep it in the local nix store
The naming scheme needs some work ye
Model class is taken by the tinygltf lib
Fair
Anyways im going to a festival now
Bye
it's not, their class is tinygltf::Model not Model 
ora
i love nixos
why is it so fucking hard creating a modular system where each .nix file is loaded into a property
i hope evil will perform with the new hit single boom
Silly
where do u live that its so bright outside
9 28 here
Sun us actually setting, just camera exposure
and its pitch black
Hii
Hi 
u at concert?
dam for me its a shitty night time
oooh
Yes
dam
Sound test rn, were getting drinks
i was playing ultrakill like after 100 tries of beating gab on brutal mode😭

enjoy ur drinks
i wanna be in the beach relaxing😭
not playing ultrakill out of boredom😭
@olive sable i want you to cherish that moment and enjoy it whit the fullest
enjoy it to the best and have a great time
you can do that, but why?
anyway i can help with that error if you send code
i want to configure nixvim in folders so I can just create a nix file with the plugin name
I threw it out so I cannot send it sadly
Okay
I go each year but sure
i might be wrong on this but couldn't you just have a module that sets the appropriate options per plugin and import those? 
like idk, importing ./pkgs/nixvim which in turns imports all the plugin files
or is the goal for it to automatically pick them up
something like
{
imports =
map
(f: args: {
plugins.nixvim.${lib.removePrefix ".nix" f} = lib.applyModuleArgsIfFunction (toString ./plugins/${f}) (import ./plugins/${f}) args;
})
(lib.attrNames (builtins.readDir ./plugins));
}
but its easier to just export plugins.nixvim.{pluginName} in the files themselves
Yeah that is what I'm during currently
that is why I thrown the towel in and just define everything manually now
its like 20 characters per file and allows plugin config to configure stuff in other plugins or in nvim itself, worth it imo
The ultimate goal was to have the files in a plugin folder, and those are auto imported into the nixvim.plugins = {...}
you can use builtins.readDir for importing everything in a directory
yeah based on other configurable software which has like 5 options are already 100 lines long
and nvim can easily have 50 config options
i dont understand what you mean but whatever
i mean if I keep the nvim config in a single file, it'll be longer than 2k lines

i'm saying that having to prefix each plugin config file with plugins.nixvim.pluginName = ... isn't a big deal
i don't understand how what you're saying relates to that
interestingly my nvim config is only 568 lines long (if we ignore notlua which is 1.5k lines of nix code)
Oh that, that was just my irk that I did not want to do
just my stupidity wants to only declare nvim-tree = {
or not even that, just have the file contain the actual plugin config
but now I opted to doing this after error to error
you can achieve it with something like this but i like the normal approach more
why overcomplicate it when there's a simple solution 
simple AND more flexible
Mhm
this isn't the simplest solution
the simplest solution is to throw out the pc and move to a farm
that is the ultimate goal
also I should configure vim the default way and then migrate to nix lol
question i know i might be clueless but how difficult would it be to make a card game like magic as a beginner in coding. what would i need to learn ?
does mtg even exist in a digital form
anyway, depends on how fancy you want the graphics to be
it does but i wanted to make like a card game based on the neuro verse that would play like mtg or yugioh
i just wanted to make something simple like 2d art nothing to much art detailed
card games are probably the simplest to make programming wise but obviously they're harder to balance and make "feel" good
right now i am learning python but i was wondering if another languge would be better for it
i mean, python can work, unity or godot would probably be easier to work with
Do you want the card to have a fancy graphic?
Also Toast, has your issue about the superglue resolved yet? You could try Nitromethane or Acetone. Both are Cyanoacrylate solvent and should soften it
Oh, so you do want it with fancy image. Do you want to make game for the art or the coding?
hblang compiler now has dead code elimination
meaning that the hashmap benchmark is only 3979 bytes
sup
go to bed
Nono, lets make him fix his code

some guy puked on my pants so im taking a sjower
it was 99% beer so im not havign a total meltdown over it, but i still dont like it
i also got superbox's 500 in cash now
i can make a money fan now

just need to go on the train for 12 hours tomorrow now
Cut down the number of compiler errors to just 6. Fishies shall work soon
mrrp mrp meow
nyaaa
it has a constructor yes
that was already how it worked
Random question: for how long have you been coding/studying computer science guys
Programming as an occasional hobby for...26 years?
Oh god I'm old
erm for like 9-10 years
I mean, such an experience is something to be proud off
I've been doing coding for about I want to say 12ish years as a hobby
So that's over half my life
what do you guys think of this differential for the rover im designing in cad?
Correct solution with no air problems 👍
You can also close your eyes
The exhaust ports are left open so should be fine
What would be the max rpm and torque that this gearbox will experience?
its litterly 100kg/cm and 200rpm so no where near the max load
Dang
Airflow? What's that?
Then it doesn't really matter. Transmissions are not really my specialty, but most of the differentials I saw in textbooks were using spiral hypoid gears, for smoothness of the transmition and more even distribution of force, but the subject of my education is commercial vessels where the engine is the size of an average house and axles can be half a meter thick
Same, but also, 100kg/cm is like what? 9.8Nm? Probably will be fine if its made of steel
Aluminum is another story tho
Allowable stress for a part made from ASTM A485 hardened steel is up to 30000 kgf/cm² 
I assume he meant kgf/cm²
Btw, do you know any good MCAD software for linux besides FreeCAD?
Hahhahaaha, good question
Yeah, I'm just throwing my punch here because I have no real alternative for now lol
theres no good linux cad
ok there are some options
i think bricscad is available
MCAD, because for ECAD KiCAD is good actually
but there arent good free options
Yeah, BricsCAD is good and provide lifetime license
I just don't have the money for now lol
Coming from a country where the yearly wage ~12000 USD is considered high
You see, we are forced to learn to design stuff in the software that was made here, in Russia. Therefore everything I ever touched in terms of software is Kompas-3D
Or КОМПАС-3D without transliteration
we had it installed on our uni pcs but i never used it
Looks like the next vllm release will finally support Blackwell out of the box \o/
Honestly, I wish CAD and art program is not monopolized so much
I mean, we are being taught decently how to use it, so it's better to comply with the learning program and just go with a flow instead of learning a different software by yourself
I am not smart enough to go out of my way and disregard all the education that I am getting just to prove a point
Especially since I didn't have a computer for the most of my life and now everything tech-related is a herculean task for me
aight the code is compiling, i just cant see it
time to get out renderdoc
motherfucker
Sam trying to debug after getting hammered is giving off Vedal energy
the Vedal Peak is at about 0.4 
Vedal is doing a job of like 20 people now, so it is expected that his proficiency at 1 out of 20 jobs might drop a bit
he does have a whole team
its not like he is oding this alone
ved has about 30 employees iirc?
???
I feel like his perfectionism wont let him completely delegate a job to someone else without being directly involved in the process and just check the results from time to time
ye is very protective yes
Do people actually celebrate Mothers and Fathers day in other countries?
Here its more family tradition thing so it depends on each family
The whole country itself is indifferent to it
I feel like around 5% of people here know when those holidays are
We are too preoccupied with never ending religion related holidays to keep track of those
Also to those that recommends me Kotlin Multiplatform, I ended up back to flutter. Android Studio doesn't like me
ye
we do
jsut a card or some good liquer
Interesting
Time to kill creatures of hell in Ultrakill as I listen to Celldweller - Wish Upon A Blackstar album
Gotta love computer math 
yes, usually its a gift and a card or sm
average floating point comparisons
Having anything float be exactly equals in a computer is always a bad idea
I'll have to find another way
Do it as int of smallest unit
So you can have value of int from 0-100
How do i insult my computer in computer language
Since you seems to need it a multiple of 0.01 anyway
cuz bninary is in base 2 you work with halves
you can get 0.5, 0.25, 0.125, 0.0625, ....
so 0.07 would be like 0.0675 + 0.0078125 + ...., not exactly 0.07
same thing with 0.01
Negative power of two, but that's one way to put it
oh... OOH... so... i convert the range to: from 6 to 350, then i divide them by 100 and get the desired result?
could work....
flesh avatar speaks perfect metal, THIS happened 
More like, define the base unit and multiply the int by said unit. So for example, you said that it needs to be multipleOf 0.01. That means it is the base unit. The value is therefore the int * 0.01. It's easier to reason about unit for me, but also it will depend on context
Then you limit the range of the int from said base unit
then you could rename that to zoomPercent
but also make sure to use integer instead of number as the schema type
The joys of JS
I get it. That would also require a little more math but... i can work with it.
Theoretically, what is the most optimal way to modularize unit converter?
Like, if I have unit distance, and wanted it to be able to convert from a distance unit to any other distance unit
Should each unit be its own class with tons of member functions?
define "optimal", also what language
Let's say rust
eh idk
i myself would make the code run on meters and have some functions for converting for things liek the ui
I'm... i'm gonna stick with this. Seems to work fine. Thank you.
Optimal as in, the best practice to structure it so when I want to add new conversion it doesn't take much copy pasta
idk if its better to have a ton of extra data per class instead of copypasta'ing
This is for the case when user can input arbitrary number in arbitrary unit and wanted to convert is to any other arbitrary unit
if you're converting between arbitrary units without massive code duplication, I think you'd pick one base unit (metre), and have everything have a conversion to and from that, then adding a new unit is only 2 methods
So yeah, that's what makes me think about it. I do usually do internal representation with canonical unit if I need to do some math
i agree with worm
The really lazy way around this is allowing close values
So still the same approach huh
Yeah, that makes senses now that I think about it too
in some languages (e.g. C#) you can define implicit conversions so you can hide it from the caller, as length_in_feet.toMetres().toMiles() looks somewhat odd
idk on rust though
Do you need the input zoom_level to be float?
Because if not, I suggest change the schema type to integer
JS doesn't have an "integer" type. It's all numbers 
You can validate it by using Number namespace
software design for flexibility (a book by gjs) has an entire chapter on units
Nice, thanks for a book reference
it will be a hard read if you dont have prior lisp experience
Nah, I'll be fine. Maybe come back a little insane and mentally scarred but otherwise fine
Anyways.. the game threats zoom as a float internally so ideally the input would be float but cannot have that. I gotta stick to a fake percent integer 
There's bigint technically but that's kinda wasteful
Or use the parseInt
still i'd recommend starting with sicp as sdff is almost a spiritual sequel to sicp
Yeah, this is usefull in code, but not in the JSON schema. But thanks. Could be usefull.
looks like im properly loading the meshes, and the drawcalls work, just not going on screen apparently. cant wait to figure out why the fuck its doing this 
Yeah, what I mean is you can force the schema to be correctly accepting int, and just write a simple adapter
Just my suggestion tho
I have enough on my palate I guess 
Ooh.... thank you for the suggestion. I'll consider it... in another time. It's super late tho
2 am again
Im still procrastinating as to how to have undo/redo in the art program, but in the meantime I added the paint bucket and line tool. I have no idea why but the paint bucket doesn't work on the color black which is weird but not really a big issue at the moment.
You can try to take a loot at other open source program implementation for undo-redo
Hmmm, I suppose the typo works fine
Loving the rebrand Mistral 
Mistral rock 
They're my fave lab
MS word art logo
coding is starting to hurt my brian

Legit question but has anyone here tried to make an ai like neuro sama here?
kinda
there have been some low effort clones for shit and gigles, and some original projects
but no attempt to 1:1 recreate iirc
Melba...
is melba from #programming ?
I kinda wanna create one to be my Fren
i havent seen much talk about them here
I don't know lol
i thought the question was specifically about one made here
cuz like, atorin and elvyn exists
lilac and paige do too
but those arent meant to do the exact same thing as neuro
oh my what has happened to my internet its so slow i cant even google for the speed test
Evil cut your internet privilege
91 BYTES
absolutely wild
network bridge brought my 210mbps download speeds to 1mbps
no its from #1164093385058029638 message
ok im done rewriting the entire gltf laoder
lemme see if it compiles to emscripten now
correct

its including glew somewhere, which is bad
ye im including it correctly everywhere
maybe the makefile is fucked?
fixed 
makefile was not fucked, but it did not help
nah, it was all fucked
ah, im getting a memeory overflow
gn lads
gn 
So it begins lol
-s ALLOW_MEMORY_GROWTH=1
im sure this will bring no issues 
For WASM target?
ye
Ahh yes, WASM memory management is a nightmare from what I remember
At this point I think it's better off to create the engine in JS and distribute the desktop version as electron apps 
this is actually prolly a good place to ask. Im Doing a 3D unity game prototype, i was researching free / opensource was to convert low quality video data to unity compatible fbx animations cuz i want a way to make humanoid animations fast. I looked into rokoko / deepmotion and they look good but they need payment. Is there opensource alternatives for this kind of tech? (now that i think bout it its vtubing basically but the animaitons are in an fbx file / unity humanoid compatible format)
nah
so vision to skeletal animation?
yes basically
i know mediapipe can do pose estimation but thats just realtime. im not well versed in animation like that so just curious about options,
Yeah I think if the goal is pose estimation you may want to use OpenUSD format since it can be scripted
i dont have much experience with that, i just animate myself.
i could learn that but... im lazy as hell
i get the process but it will need time to get quick at
so if there is a way i can figure out just do the stuff , record myself boom fbx generated automatically slap that in unity that will be huuuge
for the project im planning i will need to do custom character creation later on tho, i might find someone to help here long time later
You said mediapipe, but have you look into it?
Because I think it is good enough no?
https://ai.google.dev/edge/mediapipe/solutions/vision/pose_landmarker/python
Mediapipe i feel like its good for realtime stuff like vtubing
but idk how to convert that into stored animations compatible with unity
I don't know how FBX format works tbh. I just assume that it describes a bone to move and how it move relative to the joint
idk either, i use gltf
So you already got the hard part done, that is detecting the joint poisition
That is why I suggest using OpenUSD
Or yeah, gltf. But I don't know if gltf can store animation or not
it can
I think ill use rokoko
it seems it provides unlimited usages as long as the animation is 15 seconds long which is good enough for me
Well, mocap is another matter entirely then
Because you can have more tracker than pose estimation
yea sorry thats what i wanted to say
I found this but don't know if you already encountered it or not
https://github.com/freemocap/freemocap
ye i saw that
but not in detail
i think i could output a blender scene format, then edit it there then export to unity
that flow could work ill try that out and rokoko
hi friends
no
But its not RTX Vedal
Now try to ask ChatGPT to render it as photorealistic image
Caramelldansen

mfw dont have chatgpt plus rn so im just waiting in queue
It's fine. Take your time. I'm curious what monster would come up lol
gemini's take (on non realistic) is spooky
Still looks normal to me 
Sam, you won't believe me
P H Y S I C S
That is already further than what I could achieve tbh
Test scene my beloved
Well I've known this project enough to know this is test scene the second
What is test scene the first?
It was a mountain beach scene if my memory hasn't failed me
Wonder who did texture art for that one 
it started with a terrain shader, i added texturing to that and some basic water.
then i added the buildings, and the terrainshader had to go cuz of using webgl now
that's literally how we got to know each other 
I still need to set up payment as Sam still owes me payment
what was it? 2 bucks?
2 euro yeah

oh my

oh come on
you like what you see
i ddnt think it was funny to begin with, and its still not funny now
so no
i dont like what i see
dang that's rough man i'm sorry to hear that
Noice. Ship it
Use the money from Superbox 
highest quality audio backing
what? why?
do you think i dont have 2 bucks besides superbox's money?
If that was in my currency, you'd legit get a good stack of money
i wish murican dollars were cooler
Sleep on the train and miss the stop 
i like going to canadia and getting their money
if i got it in 5 euro bills id have a stack of 100
i do wonder why all these bills have some dudes signiture under the europa flag
Mario Draghi apparently
is it bad if i like usd bills
id suggest an optometrist but idk
i see yall drawing
where?
With the highest denomination on my currency, you also got a stack of 100
damn
After ff stops having a stroke
Highest denomination that is not a novelty is 100k here
crazy, i once helped move $100k equivalent in our currency, that shit was two packaged 30cm tall stacks
but our highest denomination is like $50
Sounds sus
trust me it's as legal and fine as it gets
100K IDR is around 8-10 USD
Oh damn, it's even lower
6-7 USD apparently 
The smallest still circulating denomination is 100 coin. So yeah
because idk about you but i can't comprehend $0.000023
that's still very small
It's 37 cent. The cent is still used for calculation but no fiat is minted for it anymore
so you have 2 decimal places in banking
Yes
Which is why the l10n for IDR usually Rp #.###,##-
Or the dot and comma switched for truly local use
bwaa bwaa bwaa
wondering who that was
Avengers... Assemble
its my budy ol pal shadowlilac
canvas so far
ignore top right 

looks like ski free
THE'RE EXPANDING

FLAG ALERT
Now it's rotated german
btw this saves
the belgian are invading! hide your chocolate
And shuffled too
its jsut thew belgian fglag bruv
we just devaluated at one point, maybe y'all should too (this is for one usd)
also yes holy hyperinflation 
I know, but I always confuse it with German at a glance
The government had a plan to do that. But then again, it is the government we are talking about
If I were to flag the thing would get whited out
stole the words out of my mouth
@nocturne olive canvas 
@autumn ore Can we not have the currently selected pixel set to none once you get a response from the backend?
what do you mean, liker you dont want it to unselect
I'm placing pixels too fast and my position keeps getting wiped because of server delay
bwaa on the canvas
upadte pushed, sould be out in like 30 secs
bwaa spotted
i have it i think
it wasnt before? i was using mobile
Me zooming in on the canvas: "Firefox has stopped responding"
oh crap
I'm grabbing this on OBS
Firefox prefomance is lovely
what is goin on
firefox
efresh yo page
maybe you should stop rendering the grid at a point
Wanted to share this first, then refresh
when zoomed far enough out
Mmmmm, yummy slideshow. Yeah what mlnt said
Implement some Level of detail stuff
im asking chatgpt for help
Also, which one of you here suggested rendering a table cell in HTML as a pixel?
Nope
its a canvas
installing an intel app on my amd pc for c++ profiling 
I know. But I remember someone here made a suggestion to render something on the web using HTML table cell
VTune?
ye
Me when zooming in and out of canvas
dang
ye my gpu is jumping to like 5% when zooming
toi like 5 percent is crazy
New rng has dropped
this is quite funny i think
Don't worry, JS got Math.random
to be clear i am not clicking
ohhhhhhhhhh that's why it is funny
im stupid and mislinked the words in my head
i was hinking about arg's
POUWSHING NEW CHANGE TO FIX PIXEL PLACING
10
9
8
7
6
5
4
3
2
1
done

So this is what it feels like to test in prod huh
I could do UI
ill add u as contributor on github
moving my mouse to place pixel makes my sleected pixel move
refresh your page
just fixed that
whats ur github udser
igglyn
might take a sec to go down the wire underseas
will be able to see: Your IP address, ip grabber smh
ther eis no ip grabber 😭
github itself has ip grabber features smh
let me grab a drink and figure out a design
ok
wydm
Vedal at work here guys
I do have a dark mode plugin as well
true, its using the medaia flag tho, i dont know why but movbile browsers just like to cache css
This is what it should look like
Slideshow but the touch controls are better than mouse zoom
you do know that's a solved problem, with caching i mean, right
No…
if you use a bundler it should just give you a differently named css each time
or, most common hack
./index.css?983742897492 change numbers for each deployment
usually a timestamp but does not matter
multithreading in a game engine 

firefox is so sluggish sometimes
yeah i need to optimise
gotta love how fast v8 is
because everyone builds on the assumption everyone will run it in chrome
guys yall do stuff and give @amber fractal your ui desing ideads
I'm lucky I spent time in design, just quickly figuring out what the codebase is
Bet
im a moderntkinter expert
@fast pagoda this
ahh ok
and change the link to github.io/neuroplace
Has to be strictly neuro related or else it gets bonked by mods
well looking at it it's pretty much html/css/js without anything else which is based but also you could use like tailwind
i mean the backend consists of just like the grid
so we can
ill add u as a contrib
is ur user afuntun
lemme add u
@autumn ore not the best at js, think you can add something to collapse the sidebar?
i could
ye
at least you can pull that down and it still works
easier time than erroring due to not being on the github
ill only cvchnage the backend if we need it in the frontend
https://afunyun.github.io/aifunyun/ i have a sidebar collapse going here it basically took over 9000 years to implement
lemme clone it and look at it
accept my invite
i would redo it in like react
yeah i find it very simple
could break it into a few components like <Canvas> <ControlBar> <PixelLog>
and slap like material-UI library in there boom
I'm just editing what exists as I haven't used any libs suprigingly enough
@fast pagoda @amber fractal renamed the respository to neuro.place
the greatest readme of all time
mfw codeium is active in wsl
that'll have to change
i try all the AI code assists once in a while just to see how they're doin, give a task then cry at the results
codeium is one
well i guess it's called windsurf now
oh crap i killed the serve rby accident
F
Removed the most annoying scrollbar in history, feeling good
its back up
Bought the rest for another 5 bucks 
i wish houston had trains
Too bad
Nope, compiling a few changes before opening a new one
lmk when i'll merge into this one i just made to fart around with
Sam is now Sam Gamgee confirmed
?
"I'm going on an adventure"
what is the gamgee supposed to be?
and nah i depart in like an hour or 5
sam gamgee
what are yall up to
Samwise Gamgee
crying in "wglSwapBuffers is using 71.7% of the cpu time"
was waiting for iggly to commit what he's doing
im waiting for a commit too

I'm pushing the commmit, had an extra to do
i can understand how it might use a lot at 6K fps, but i was hoping to go higher and this is limiting me rn
I'm not as fast with coding as some of the others here
no rush lmao i was just answering le question
if im coding fast, it means i used chatgpt
chatgpt big wpm
i mean i used chatgpt for a bit to fix the selection bug
i use it daily, mainlky cuz im not used to c++
i fixed my local repo to use the right remote WITHOUT destroying my entire local repo
i'm so proud of myself
(the entire script totally wasnt written by ai)
that expalins the shit performance lmao
Bro, wdym 6K?
fuck it we push main
pulling
#programming and chaos
Small edits for now
6000 fps currently
it do be faster than python
(by 1.5x)
in python we were cpu limited to 4k in 1080p
now im doing cpu limited to 6k in 1080p
Perform async i/o read and do it in separate thread
i started a branch
Sound whenever it exist should also be on another thread
cool
the funny thing is, i cant use the same multithreading in local as on web
so every single thing i multitheread will need 2 files
and by that i mean, formatter changed one(1) line slightly in 2 files
so i pushed that ish
Oh right, there's that too lmao
Ah yes, the multi process apporach
it just is two processes with a random socket
doesn't the GIL mean you can only exec python on one thread anyways
i already tried to optemize this with the commented out code, but it caused webgl to shit itself
cuz multithreading
lemme see if i get more fps tho
I'm loving the chaos that happens today
As long as it isn't AI, I do love this chaos
The torture AI? Yeah
ye 6.3k eitherway
no real diffrence cuz thats not the botleneck
Yeah I forgot you were doing lots of buffer shenanigans. That means batching
https://svelte.dev/ might be more ideal for this particular use because thinking about the react DOM trying to handle a whole pixel canvas is giving me second thoughts
i mean it would work but it's not compiled in the way that something like svelte is, react pretty much would re-render like
the whole canvas
for a websocket update because it'll essentially re-run the component + all child components each update
svelte would already know what needs to be updated in the dom
Anything for the canvas to not cause a meltdown
Honestly that is my main issue tbh
https://github.com/samvanmaele/game-engine-cpp
behold my holy codebase
its actually not that bad this time
im pretty happy with most of this code
Do the processing on the separate worker? Canvas can be rendered off the main thread right?
I'm not sure personally. @fast pagoda thoughts?
sorry was renaming branch lule
it would be good yes
you don't handle a canvas through a vdom
or through react at all actually
and that's not "best practice" or whatever it's just not a fucking thing
that's what i was thinking to do originally which is why im reconsidering
the only batshit crazy part of this code is the litle hack i had to pull to make emscripten accept a class function as the main loop function
react-three-fiber is a thing tho but that's completely different
was thinking if using react would use like useRef to handle <canvas> and then messing with it through useState/setState w/ a useEffect hook for the mouse events
that's fine
Welcome to the chaos
i was just thinking that setState would essentially trigger a whole rerender
i could be stupid af though
if no changes in dom it doesn't do anything
Canvas is a single element, that's the issue
you're confusing react rerenders with dom updates
It should not do that if you don't manipulate the DOM
The only way this would work is if it were a SVG/Table but that is a warcrime with how large the grid is.
its 500x500
250000 element list 
could make it bigger with optimisation
10 second rerenders 
on a good day
Don't know about other framework but if you want to track mouse position inside element Vue has this
https://vueuse.org/core/useMouseInElement/
So you could track the pointer position and only perform update to the canvas when needed
Such as after confirming the pixel placement
my thought was action like mouse moevement triggers onMouseMove
inside the state handler we then calculate new offsets
once we set those it would trigger a rerender right here which reruns everything in the component
react then creates a new vdom to compare diffs but there would be no diff to worry about so no DOM update
so the real overhead would just be comparing the "diff" that doesn't do anything i guess
i wasnt thinking in terms of canvas being its own self contained single element
bruh does intel expect me to read assembly? 
Wait, onclick also provides the X-Y coordinate no?
Grab the guidebook for asm, chop chop
Then you don't even need to track the position all the time
true
just dont update any state unless clicking a spot
ignore the whole thing
but zooming would be slow
(It already is slow as balls)
that's true lmao
I don't work with canvas directly lmao
useEffect(() => {
const listener = (e: MouseMoveEvent) => { // i think it's that type?
// update state or whatever based on mouse pos
};
canvasRef.current.addEventListener("mousemove", listener);
return () => canvasRef.current.removeEventListener("mousemove", listener);
}, []);
I just use marker.js and call it a day
why dont you just, actually zoom in on the render instead of the entire asset?
Just mouse event IIRC
idk how this works but cant you just render to a buffer if a block changes?
Canvas is basically a buffer (correct me if I'm wrong)
everything is a buffer that's right
i mean like, if the canvas itself is too laggy to move around and zoom in on, dont move it around and just render it to a png or whatever and move that around
I'm not gonna try btw
bro does not have glew installed and it shows smh
that’s not the issue. are you familiar with figma? the whole thing is a canvas
nope
I know, what I mean is I'm not going to install it kek. Currently doing something else now
okay
figma is goated
figma balls
Past me's shortcut name

I'd do it again
I just re-read all of the MDN spec
CSS can zoom canvas
no
don’t use that
also it’s not gonna scale the pixel density
which i think i s what you want
I think for pixel placement it doesn't matter?
but it’s gonna be blurry
Indeed
That's an issue yep
fixing perf issues with css
excuse me while i fight with npx sv create because the guide i was reading that says use npm create svelte is outdated apparently
Hey there are people here that oppose the idea of js run on the web lol
Hmmm, How bad would it be to just calulate a subsection of the grid on the fly (besides the idea of moving the grid being the most jank code on the planet)
Maybe take a look at marker.js zoom implementation there
we're gaming so far lads
My idea is to just have the pixel placement be separated from the render state
The renderer will accept the pixel placement and pan position to then render it on the canvas
tailwind v4 is standalone
yeah ive noticed
i think that’s what it’s saying
So the pixel placement state is an array of 500x500, each with rgb value. The render state is the zoom and current panning position/offset
well i tossed vite into the mix
and it generally wants to use postCSS to mess with css variables
and that's not playing nice with tailwind
ootb
whats up
Chaos as usual
installing 10000 dependencies to use tailwind + vite + svelte
Inflated runtime cost for two snippits of code 
afyunyn plz ping once the figma is done, I want to do some more reading
one would think that plain html and css are highly contagious diseases that can only be approached with 20 layers of indirection
ye idk how this Vtune works, the swapbuffers is down to 5% cuz i changed some compiler settings
it can probably just see what the cause is better now
@amber fractal @fast pagoda sdont forget the serve rlink
-Ofast be like
if you want something more complicated than a blogpost then yes, that’s exactly correct
@amber fractal @fast pagoda what are yalls emails so i can add yall to the figma
exactly correct might be the stupidest combination of words i’ve ever produced
don’t put them here 
insert cash or card here
I've done plenty web projects of varying complexity and can't say that it ever scarred me for life to do css and html
“no tip” covered with a sticker
oh are you referring to react and tailwind then
it’s not because css or html are hard
looks like im buying dev mode
you don’t need that
it assumes a perfect mockup which even people paid to do figma don’t ever do
from my experience
Much better to reimplment
looks like i aint wasting my money then
this is sure something
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Neuro.Place</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
<style>
body {
font-family: 'Inter', sans-serif;
}
</style>
</head>
<body class="bg-gray-100 flex flex-col min-h-screen">
<header class="bg-white shadow-md py-4">
<div class="container mx-auto px-4">
<h1 class="text-3xl font-bold text-gray-800 text-center">Neuro.Place</h1>
</div>
</header>
<main class="flex-grow container mx-auto px-4 py-8 flex items-center justify-center">
<div class="bg-gray-500 w-full max-w-4xl h-[60vh] rounded-lg shadow-lg">
</div>
</main>
<footer class="bg-gray-200 py-4">
<div class="container mx-auto px-4 flex justify-between items-center">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-black rounded-md border-2 border-gray-300 cursor-pointer hover:border-blue-500 transition-colors"></div>
<span class="text-gray-700 text-lg">Selected: (0,0)</span>
</div>
<button class="bg-gray-600 hover:bg-gray-700 text-white font-semibold py-3 px-6 rounded-lg shadow-md transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-opacity-50">
Place
</button>
</div>
</footer>
</body></html>
the 71% swapbuffer has now become "unknown stack frames"
how does that help
??
intel vtune wtf
vtune just kicked in YO
im like "vtune what is causing the botleneck"
and vtune is like "
shit dawg i have no fucking clue what im even lookign at"
Fun isn't it?
no it looks like crap 
How do you guys get 8 hours of sleep in under 2 hours?
Hence the fun 
my sleep schedule shifts constantly, i know it looks like i'm up seemingly 24 hours but it's different days
looks neat
that could work
ok guys i have to shut down the server
for a bit
@fast pagoda @amber fractal https://ytsodacan.github.io/neuro.place/experimental design.html
oh yeah i noticed the server is kill
not your onlyfans
well at least that confirms that my server integration is working normally
i have discovered that the SDL_GL_SwapWindow(window); is indeed using a lot of cpu
without it i get no video output, but i do get 50K fps
I sure hope it doesn't do what I think it do
Oh, then safe. But why must it be called window. I thought it swap the entire app window instance lol


why is it all outputting to stdout 
it just does by default
it seems
i JUST bun add --dev @biomejs/biome
and ran it
and that's what it's doing lol
i think it's detecting a shitload of vite output generated garbage files
now why it's generating that much trash output
good question
Oh, you should try to back read lol
Try to change the biome.json to use VCS, it will then use the .gitignore file
i just didn't realize vite would be blasting that much random junk into a temp dir
public static void haltCondition(){
int[] numbers = {1,2,3,4,5,6,7,8,9,10};
for (int i = 0; i < numbers.length; i++) {
if (numbers[i] % 2 == 0) {
Vector<Integer> vector = new Vector<>();
vector.add(numbers[i]);
numbers[i] = vector.get(0);
System.out.println("Even number found: " + numbers[i]);
}
if (numbers[i] == 6) {
System.out.println("Halt condition met at index " + i + " with value " + numbers[i]);
break;
}
}
}
alan turning halt concept is really fascinating
why the vector
THEY always meet at 5 and 6
?
make your tailwind look like bootstrap 2025 tutorial

bwa indeed
idk i though i can add many vectors and increment them so the halt condition doesn't fail and since they well meet a 5 and 6
if i made the numbers from a range of 1 to 6 they would meet at 2 3
🫠
Vector<Integer> vector = new Vector<>();
vector.add(numbers[i]);
numbers[i] = vector.get(0);
You allocate a vector, put a single number in it, then get the number from it again and then just drop the whole vector
no?
whats that for
thats the condition
i always keep to 5 to 6 looping inside the same argument
when i aded 0 it went from 6 to 6
wait yea its no use
well now that it's using the .gitignore properly it's much less terrifying
extremely classic that the only remaining issue is a random any given it's me

💀






